aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
diff options
context:
space:
mode:
authorZhenGuo Yin <[email protected]>2023-05-09 09:42:11 +0000
committerAlex Deucher <[email protected]>2023-06-09 16:32:43 +0000
commit7a66ad6c087ee3863cc9a8d696ac2191d1c2e904 (patch)
tree5fa8645bbbc1acbf55c9a2498cad7a98d61900ff /drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
parentdrm/amdgpu: Fix missing parameter desc for 'xcp_id' in amdgpu_amdkfd_reserve_... (diff)
downloadkernel-7a66ad6c087ee3863cc9a8d696ac2191d1c2e904.tar.gz
kernel-7a66ad6c087ee3863cc9a8d696ac2191d1c2e904.zip
drm/amdgpu: set finished fence error if job timedout
Set finished fence to ETIME error if job timedout. Signed-off-by: ZhenGuo Yin <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_job.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_job.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
index c3d9d75143f4..aca3a2bfe8d2 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
@@ -65,6 +65,8 @@ static enum drm_gpu_sched_stat amdgpu_job_timedout(struct drm_sched_job *s_job)
DRM_ERROR("Process information: process %s pid %d thread %s pid %d\n",
ti.process_name, ti.tgid, ti.task_name, ti.pid);
+ dma_fence_set_error(&s_job->s_fence->finished, -ETIME);
+
if (amdgpu_device_should_recover_gpu(ring->adev)) {
struct amdgpu_reset_context reset_context;
memset(&reset_context, 0, sizeof(reset_context));