summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
diff options
context:
space:
mode:
authorChunming Zhou <David1.Zhou@amd.com>2016-05-30 04:58:50 +0300
committerAlex Deucher <alexander.deucher@amd.com>2016-07-07 21:51:12 +0300
commit1974e30eb1a120f2d2af5e092288b763fa82df65 (patch)
tree8f4bb469b8a9fc7dbaeb34df4da2c0307af1244d /drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
parenta909c6bd9f9223e91b40b1c56c2c81ae504295b3 (diff)
downloadlinux-1974e30eb1a120f2d2af5e092288b763fa82df65.tar.xz
drm/amdgpu: add gpu reset to timeout handler
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_job.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_job.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
index 34cd971a9afa..d4791a7f8075 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
@@ -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,