]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Add a reason string to the devcoredump
authorJohn Harrison <John.C.Harrison@Intel.com>
Thu, 28 Nov 2024 21:08:22 +0000 (13:08 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 2 Dec 2024 23:50:41 +0000 (15:50 -0800)
commit429915acaea15e28dbedd31698283ef860d4f039
treebb53b1523bea5a30c56c711f8894f3b4ca1a0eb9
parent0a7477507b11a73f75f4e6878e0c88a903e502bf
drm/xe: Add a reason string to the devcoredump

There are debug level prints giving more information about the cause
of the hang immediately before core dumps are created. However, not
everyone has debug level prints enabled or saves the dmesg log at all.
So include that information in the dump file itself. Also, at least
one of those prints included the pid as well as the process name. So
include that in the capture too.

v2: Fix kvfree vs kfree and missing kernel-doc (review feedback from
Matthew Brost)
v3: Use GFP_ATOMIC instead of GFP_KERNEL.

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241128210824.3302147-2-John.C.Harrison@Intel.com
drivers/gpu/drm/xe/xe_devcoredump.c
drivers/gpu/drm/xe/xe_devcoredump.h
drivers/gpu/drm/xe/xe_devcoredump_types.h
drivers/gpu/drm/xe/xe_guc_submit.c