Skip to contentSkip to conversation

drm/amdgpu: suppress repeating tmo report

PATCH In review Monk Liu 2 participants 2 messages May 13, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Monk Liu

author
#0 lore raw

PATCH 1/1 drm/amdgpu: suppress repeating tmo report

only report once per TMO job and the timer would be restarted upon the job finished if it's just slow.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +2 -0
index 1397942..1500bb9 100644
@@ -51,6 +51,8 @@ static void amdgpu_job_timedout(struct drm_sched_job *s_job)
 
 	if (amdgpu_device_should_recover_gpu(ring->adev))
 		amdgpu_device_gpu_recover(ring->adev, job);
+	else
+		drm_sched_suspend_timeout(&ring->sched);
 }
 
 int amdgpu_job_alloc(struct amdgpu_device *adev, unsigned num_ibs,
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1557727298-21050-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw

Am 13.05.19 um 08:01 schrieb Monk Liu:

Quoted 5 lines

only report once per TMO job and the timer would be restarted upon the job finished if it's just slow.

Quoted 9 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +0 -0
index 1397942..1500bb9 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_job.c static void amdgpu_job_timedout(struct drm_sched_job *s_job) · line 58

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +2 -0
@@ -51,6 +51,8 @@ static void amdgpu_job_timedout(struct drm_sched_job *s_job)
 
  	if (amdgpu_device_should_recover_gpu(ring->adev))
  		amdgpu_device_gpu_recover(ring->adev, job);
+	else
+		drm_sched_suspend_timeout(&ring->sched);
  }
 
  int amdgpu_job_alloc(struct amdgpu_device *adev, unsigned num_ibs,

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx