]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/guc: Reformat dead CT reason string to be devcoredump compatible
authorJohn Harrison <John.C.Harrison@Intel.com>
Tue, 25 Mar 2025 20:31:11 +0000 (13:31 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Fri, 28 Mar 2025 16:44:56 +0000 (09:44 -0700)
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>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250325203111.3907426-1-John.C.Harrison@Intel.com
drivers/gpu/drm/xe/xe_guc_ct.c

index 72ad576fc18eb583110b44b118abeba4c6be936a..686fe664c20d24a5e007e12f25b46cd783f7ce78 100644 (file)
@@ -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);