summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-07-16 10:07:03 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-07-16 10:07:03 +0000
commitd710647d67a95b18ecf92e1684874167be21f3f7 (patch)
tree96450d967b81a2b30c0a3efe85c5707a302c185f /sys/dev
parentded84f5dcb8be0a1005d4046ada4ab9809a6211b (diff)
drm/amdgpu: don't do soft recovery if gpu_recovery=0
From Marek Olsak d7915047a1d59474d06789a9dd1925064969e080 in linux 5.7.y/5.7.9 f4892c327a8e5df7ce16cab40897daf90baf6bec in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c
index 4981e443a88..2f0eff2c23c 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_job.c
@@ -36,7 +36,8 @@ static void amdgpu_job_timedout(struct drm_sched_job *s_job)
memset(&ti, 0, sizeof(struct amdgpu_task_info));
- if (amdgpu_ring_soft_recovery(ring, job->vmid, s_job->s_fence->parent)) {
+ if (amdgpu_gpu_recovery &&
+ amdgpu_ring_soft_recovery(ring, job->vmid, s_job->s_fence->parent)) {
DRM_ERROR("ring %s timeout, but soft recovered\n",
s_job->sched->name);
return;