aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorAndré Almeida <[email protected]>2025-02-04 07:05:28 +0000
committerRodrigo Vivi <[email protected]>2025-02-13 17:15:44 +0000
commit6fe52b63f569c11a70b737751055afd46c4454b3 (patch)
tree2adfb0673498ae724ebabc20be64418e415dd9c7 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentdrm/i915: Use device wedged event (diff)
downloadkernel-6fe52b63f569c11a70b737751055afd46c4454b3.tar.gz
kernel-6fe52b63f569c11a70b737751055afd46c4454b3.zip
drm/amdgpu: Use device wedged event
Use DRM's device wedged event to notify userspace that a reset had happened. For now, only use `none` method meant for telemetry capture. In the future we might want to report a recovery method if the reset didn't succeed. Acked-by: Shashank Sharma <[email protected]> Signed-off-by: André Almeida <[email protected]> Reviewed-by: Christian König <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 6800f72fafd2..24ba52d76045 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -6122,6 +6122,10 @@ end_reset:
dev_info(adev->dev, "GPU reset end with ret = %d\n", r);
atomic_set(&adev->reset_domain->reset_res, r);
+
+ if (!r)
+ drm_dev_wedged_event(adev_to_drm(adev), DRM_WEDGE_RECOVERY_NONE);
+
return r;
}