drm/amdgpu: add gpu reset to timeout handler
authorChunming Zhou <David1.Zhou@amd.com>
Mon, 30 May 2016 01:58:50 +0000 (09:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:51:12 +0000 (14:51 -0400)
so that we could actually reset the GPU when it hangs.

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c

index 34cd971a9afa05a2ca8e91ab96665aa5594cff4d..d4791a7f80750d598f29ca211bfbc6e4f2b3640b 100644 (file)
@@ -36,6 +36,7 @@ static void amdgpu_job_timedout(struct amd_sched_job *s_job)
                  job->base.sched->name,
                  atomic_read(&job->ring->fence_drv.last_seq),
                  job->ring->fence_drv.sync_seq);
+       amdgpu_gpu_reset(job->adev);
 }
 
 int amdgpu_job_alloc(struct amdgpu_device *adev, unsigned num_ibs,