[PATCH] drm/amdgpu: Make sure IB tests flushed after IP resume

Christian König ckoenig.leichtzumerken at gmail.com
Fri Jul 13 16:21:15 UTC 2018


Am 13.07.2018 um 17:41 schrieb Leo Liu:
> Fixes: 2c773de2 (drm/amdgpu: defer test IBs on the rings at boot (V3))
>
> Signed-off-by: Leo Liu <leo.liu at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com> for now, but we 
might want to move that even further down.

Christian.

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index aeb1b279a4cc..ae2776428add 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -2771,6 +2771,9 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon)
>   	if (r)
>   		return r;
>   
> +	/* Make sure IB tests flushed */
> +	flush_delayed_work(&adev->late_init_work);
> +
>   	/* blat the mode back in */
>   	if (fbcon) {
>   		if (!amdgpu_device_has_dc_support(adev)) {



More information about the amd-gfx mailing list