]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm: Create a task info option for wedge events
authorAndré Almeida <andrealmeid@igalia.com>
Tue, 17 Jun 2025 12:49:46 +0000 (09:49 -0300)
committerAndré Almeida <andrealmeid@igalia.com>
Tue, 17 Jun 2025 14:32:47 +0000 (11:32 -0300)
commit183bccafa176f4519a15ec5c35a47495cbea658c
tree666dc741ae1fad888314a4c2200b55da6a63fb5b
parent3bfd1af74a7fc239ab05bc780e2f455c37fe6219
drm: Create a task info option for wedge events

When a device get wedged, it might be caused by a guilty application.
For userspace, knowing which task was involved can be useful for some
situations, like for implementing a policy, logs or for giving a chance
for the compositor to let the user know what task was involved in the
problem.  This is an optional argument, when the task info is not
available, the PID and TASK string won't appear in the event string.

Sometimes just the PID isn't enough giving that the task might be already
dead by the time userspace will try to check what was this PID's name,
so to make the life easier also notify what's the task's name in the user
event.

Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-by: Raag Jadav <raag.jadav@intel.com>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20250617124949.2151549-4-andrealmeid@igalia.com
Signed-off-by: André Almeida <andrealmeid@igalia.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/i915/gt/intel_reset.c
drivers/gpu/drm/xe/xe_device.c
include/drm/drm_device.h
include/drm/drm_drv.h