drm/amdgpu/sriov: Need to set in_gpu_reset flag to back after gpu reset

Liu, Monk Monk.Liu at amd.com
Thu Apr 26 07:39:36 UTC 2018


Reviewed-by: Monk

-----Original Message-----
From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf Of Deng, Emily
Sent: 2018年4月26日 10:07
To: Deng, Emily <Emily.Deng at amd.com>; amd-gfx at lists.freedesktop.org
Subject: drm/amdgpu/sriov: Need to set in_gpu_reset flag to back after gpu reset

Ping...

> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf 
> Of Emily Deng
> Sent: Wednesday, April 25, 2018 2:38 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Deng, Emily <Emily.Deng at amd.com>
> Subject: [PATCH 1/2] drm/amdgpu/sriov: Need to set in_gpu_reset flag 
> to back after gpu reset
> 
> After host os reset gpu reset, need to set flag in_gpu_reset to zero.
> 
> Signed-off-by: Emily Deng <Emily.Deng at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
> b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
> index 4933486..078f70f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
> +++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
> @@ -260,8 +260,10 @@ static void xgpu_ai_mailbox_flr_work(struct 
> work_struct *work)
>  	} while (timeout > 1);
> 
>  flr_done:
> -	if (locked)
> +	if (locked) {
> +		adev->in_gpu_reset = 0;
>  		mutex_unlock(&adev->lock_reset);
> +	}
> 
>  	/* Trigger recovery for world switch failure if no TDR */
>  	if (amdgpu_lockup_timeout == 0)
> --
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list