diff options
| author | André Almeida <[email protected]> | 2025-06-17 12:49:46 +0000 |
|---|---|---|
| committer | André Almeida <[email protected]> | 2025-06-17 14:32:47 +0000 |
| commit | 183bccafa176f4519a15ec5c35a47495cbea658c (patch) | |
| tree | 666dc741ae1fad888314a4c2200b55da6a63fb5b /include/drm/drm_drv.h | |
| parent | drm: amdgpu: Create amdgpu_vm_print_task_info() (diff) | |
| download | kernel-183bccafa176f4519a15ec5c35a47495cbea658c.tar.gz kernel-183bccafa176f4519a15ec5c35a47495cbea658c.zip | |
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 <[email protected]>
Reviewed-by: Krzysztof Karas <[email protected]>
Reviewed-by: Raag Jadav <[email protected]>
Acked-by: Christian König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: André Almeida <[email protected]>
Diffstat (limited to 'include/drm/drm_drv.h')
| -rw-r--r-- | include/drm/drm_drv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h index 63b51942d606..3f76a32d6b84 100644 --- a/include/drm/drm_drv.h +++ b/include/drm/drm_drv.h @@ -487,7 +487,8 @@ void drm_put_dev(struct drm_device *dev); bool drm_dev_enter(struct drm_device *dev, int *idx); void drm_dev_exit(int idx); void drm_dev_unplug(struct drm_device *dev); -int drm_dev_wedged_event(struct drm_device *dev, unsigned long method); +int drm_dev_wedged_event(struct drm_device *dev, unsigned long method, + struct drm_wedge_task_info *info); /** * drm_dev_is_unplugged - is a DRM device unplugged |
