提交 1974e30e 编写于 作者: C Chunming Zhou 提交者: Alex Deucher

drm/amdgpu: add gpu reset to timeout handler

so that we could actually reset the GPU when it hangs.
Signed-off-by: NChunming Zhou <David1.Zhou@amd.com>
Reviewed-by: NJunwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 a909c6bd
...@@ -36,6 +36,7 @@ static void amdgpu_job_timedout(struct amd_sched_job *s_job) ...@@ -36,6 +36,7 @@ static void amdgpu_job_timedout(struct amd_sched_job *s_job)
job->base.sched->name, job->base.sched->name,
atomic_read(&job->ring->fence_drv.last_seq), atomic_read(&job->ring->fence_drv.last_seq),
job->ring->fence_drv.sync_seq); job->ring->fence_drv.sync_seq);
amdgpu_gpu_reset(job->adev);
} }
int amdgpu_job_alloc(struct amdgpu_device *adev, unsigned num_ibs, int amdgpu_job_alloc(struct amdgpu_device *adev, unsigned num_ibs,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册