[Intel-gfx] [PATCH] drm/i915: Add Gen/GT info to GPU error state

John.C.Harrison at Intel.com John.C.Harrison at Intel.com
Thu Nov 21 00:31:42 UTC 2019


From: John Harrison <John.C.Harrison at Intel.com>

Added gen & GT info to the error capture.

Signed-off-by: John Harrison <john.c.harrison at intel.com>
CC: Matthew Brost <matthew.brost at intel.com>
---
 drivers/gpu/drm/i915/i915_gpu_error.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c
index 7118ecb7f144..4c92892d05fb 100644
--- a/drivers/gpu/drm/i915/i915_gpu_error.c
+++ b/drivers/gpu/drm/i915/i915_gpu_error.c
@@ -693,6 +693,8 @@ static void __err_print_to_sgl(struct drm_i915_error_state_buf *m,
 	err_printf(m, "Subplatform: 0x%x\n",
 		   intel_subplatform(&error->runtime_info,
 				     error->device_info.platform));
+	err_printf(m, "Gen: %d\n", error->device_info.gen);
+	err_printf(m, "GT: %d\n", error->device_info.gt);
 	err_print_pciid(m, m->i915);
 
 	err_printf(m, "IOMMU enabled?: %d\n", error->iommu);
-- 
2.21.0.5.gaeb582a983



More information about the Intel-gfx mailing list