From 8b33469a35a4c133494ab0c6480cc2c0b66f4db6 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Fri, 29 Jul 2022 21:48:23 +0000 Subject: [PATCH] WIP: radeon: show wb mapping --- sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c b/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c index 083745eb1606..656f179cec45 100644 --- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c +++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c @@ -513,6 +513,14 @@ int radeon_wb_init(struct radeon_device *rdev) radeon_wb_fini(rdev); return r; } + device_printf(rdev->dev, "wb mem_type=0x%x placement=0x%x" + " pa=0x%llx gpu_addr=0x%llx kmap_type=0x%x kva=%p\n", + (unsigned)rdev->wb.wb_obj->tbo.mem.mem_type, + (unsigned)rdev->wb.wb_obj->tbo.mem.placement, + (unsigned long long)page_to_phys(rdev->wb.wb_obj->tbo.ttm->pages[0]), + (unsigned long long)rdev->wb.gpu_addr, + (unsigned)rdev->wb.wb_obj->kmap.bo_kmap_type, + rdev->wb.wb); } /* clear wb memory */