Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/guc: Reformat dead CT reason string to be devcoredump compatible
@ 2025-03-25 20:31 John.C.Harrison
  2025-03-25 20:36 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: John.C.Harrison @ 2025-03-25 20:31 UTC (permalink / raw)
  To: Intel-Xe; +Cc: John Harrison

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

The dump on a dead CT tries to emulate the devcoredump formatting (it
would use devcoredump code directly but that requires more re-work to
happen - work in progress). So update the print of the dead CT reason
code to match the format of the 'reason' string that was added to the
actual devcoredump a little while ago.

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
---
 drivers/gpu/drm/xe/xe_guc_ct.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c
index 72ad576fc18e..686fe664c20d 100644
--- a/drivers/gpu/drm/xe/xe_guc_ct.c
+++ b/drivers/gpu/drm/xe/xe_guc_ct.c
@@ -1828,10 +1828,10 @@ static void ct_dead_print(struct xe_dead_ct *dead)
 		return;
 	}
 
-	drm_printf(&lp, "CTB is dead - reason=0x%X\n", dead->reason);
 
 	/* Can't generate a genuine core dump at this point, so just do the good bits */
 	drm_puts(&lp, "**** Xe Device Coredump ****\n");
+	drm_printf(&lp, "Reason: CTB is dead - 0x%X\n", dead->reason);
 	xe_device_snapshot_print(xe, &lp);
 
 	drm_printf(&lp, "**** GT #%d ****\n", gt->info.id);
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-03-26 18:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-25 20:31 [PATCH] drm/xe/guc: Reformat dead CT reason string to be devcoredump compatible John.C.Harrison
2025-03-25 20:36 ` ✓ CI.Patch_applied: success for " Patchwork
2025-03-25 20:36 ` ✓ CI.checkpatch: " Patchwork
2025-03-25 20:37 ` ✓ CI.KUnit: " Patchwork
2025-03-25 20:54 ` ✓ CI.Build: " Patchwork
2025-03-25 20:56 ` ✓ CI.Hooks: " Patchwork
2025-03-25 20:58 ` ✓ CI.checksparse: " Patchwork
2025-03-25 21:37 ` ✓ Xe.CI.BAT: " Patchwork
2025-03-26  3:34 ` ✓ Xe.CI.Full: " Patchwork
2025-03-26  4:23 ` [PATCH] " Lucas De Marchi
2025-03-26 18:32   ` John Harrison

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox