[PATCH 13/14] [DEBUG] dump stolen region

Robert Beckett bob.beckett at collabora.com
Sat Jun 25 14:35:15 UTC 2022


---
 drivers/gpu/drm/i915/gt/selftest_reset.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gt/selftest_reset.c b/drivers/gpu/drm/i915/gt/selftest_reset.c
index 5c37950c3e85..9ac77134e2ae 100644
--- a/drivers/gpu/drm/i915/gt/selftest_reset.c
+++ b/drivers/gpu/drm/i915/gt/selftest_reset.c
@@ -193,6 +193,7 @@ __igt_reset_stolen(struct intel_gt *gt,
 		u32 x;
 		bool busy;
 		struct ttm_resource_dbg dbg;
+		struct drm_printer p = drm_debug_printer("BOB_DEBUG: ");
 
 		ggtt->vm.insert_page(&ggtt->vm, dma,
 				     ggtt->error_capture.start,
@@ -239,7 +240,8 @@ __igt_reset_stolen(struct intel_gt *gt,
 						__func__,
 						orig_busy[page].busy,
 						orig_busy[page].err);
-
+				pr_debug("BOB_DEBUG: %s(): STOLEN DUMP:\n", __func__);
+				intel_memory_region_debug(gt->i915->mm.stolen_region, &p);
 			}
 			max = page;
 		}
-- 
2.25.1



More information about the Intel-gfx-trybot mailing list