Commit c3b6c607 authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher
Browse files

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.

Suggested-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarMonk Liu <Monk.Liu@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent dca29491
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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,