[PATCH 04/12] drm/amdgpu: reset hw jobs when gpu reset

Christian König deathsimple at vodafone.de
Fri Jul 1 09:21:21 UTC 2016


Am 30.06.2016 um 11:34 schrieb Chunming Zhou:
> Change-Id: If673e1708b6207d70a26f64067dc1b0b24e868e7
> Signed-off-by: Chunming Zhou <David1.Zhou at amd.com>

We need to merge this with the patch which restarts the jobs, otherwise 
the scheduler will just sit and wait forever for anything to finish 
after the reset.

Christian.

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 5c4691c..742ad22 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -1951,6 +1951,7 @@ int amdgpu_gpu_reset(struct amdgpu_device *adev)
>   			continue;
>   
>   		kthread_park(ring->sched.thread);
> +		amd_sched_hw_job_reset(&ring->sched);
>   	}
>   
>   	/* block TTM */



More information about the amd-gfx mailing list