diff options
| author | Chunming Zhou <[email protected]> | 2016-05-30 01:58:50 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-07-07 18:51:12 +0000 |
| commit | 1974e30eb1a120f2d2af5e092288b763fa82df65 (patch) | |
| tree | 8f4bb469b8a9fc7dbaeb34df4da2c0307af1244d /drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | |
| parent | drm/amdgpu: fix ring debugfs bug (diff) | |
| download | kernel-1974e30eb1a120f2d2af5e092288b763fa82df65.tar.gz kernel-1974e30eb1a120f2d2af5e092288b763fa82df65.zip | |
drm/amdgpu: add gpu reset to timeout handler
so that we could actually reset the GPU when it hangs.
Signed-off-by: Chunming Zhou <[email protected]>
Reviewed-by: Junwei Zhang <[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.c | 1 |
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, |
