[PATCH] drm/amdgpu: suppress repeating tmo report

Christian König ckoenig.leichtzumerken at gmail.com
Mon May 13 10:13:21 UTC 2019


Am 13.05.19 um 08:01 schrieb Monk Liu:
> only report once per TMO job and the timer would
> be restarted upon the job finished if it's just slow.
>
> Suggested-by: Christian König <christian.koenig at amd.com>
> Signed-off-by: Monk Liu <Monk.Liu at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
> index 1397942..1500bb9 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
> @@ -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,



More information about the amd-gfx mailing list