diff mbox series

[2/3] drm/gma500: Print the start address of the GTT

Message ID 20230830154546.499987-3-suijingfeng@loongson.cn (mailing list archive)
State New, archived
Headers show
Series drm/gma500: Fix the failure to map the stolen memory | expand

Commit Message

Sui Jingfeng Aug. 30, 2023, 3:45 p.m. UTC
The PGTBL_CTL register provides the starting physical memory address of
the Graphics Translation Table (GTT). We want to see what's the value in
it. This patch is useful for debug.

Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
---
 drivers/gpu/drm/gma500/gtt.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c
index 379bc218aa6b..112418301866 100644
--- a/drivers/gpu/drm/gma500/gtt.c
+++ b/drivers/gpu/drm/gma500/gtt.c
@@ -243,6 +243,8 @@  static void psb_gtt_init_ranges(struct drm_psb_private *dev_priv)
 		gtt_mem = &pdev->resource[PSB_GATT_RESOURCE];
 	}
 
+	drm_info(dev, "Phys start of GTT: 0x%llx\n", (u64)gtt_phys_start);
+
 	pg->gtt_phys_start = gtt_phys_start;
 	pg->mmu_gatt_start = mmu_gatt_start;
 	pg->gtt_start = gtt_start;