[PATCH] drm/amdgpu: use mode-2 reset for RAS poison consumption

Yang, Stanley Stanley.Yang at amd.com
Fri Oct 27 07:06:33 UTC 2023


[AMD Official Use Only - General]

Reviewed-by: Stanley.Yang <Stanley.Yang at amd.com>

Regards,
Stanley
> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Tao
> Zhou
> Sent: Friday, October 27, 2023 12:04 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Zhou1, Tao <Tao.Zhou1 at amd.com>
> Subject: [PATCH] drm/amdgpu: use mode-2 reset for RAS poison
> consumption
>
> Switch from mode-1 reset to mode-2 for poison consumption.
>
> Signed-off-by: Tao Zhou <tao.zhou1 at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
> index f74347cc087a..d65e21914d8c 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
> @@ -166,8 +166,12 @@ static int amdgpu_umc_do_page_retirement(struct
> amdgpu_device *adev,
>                       }
>               }
>
> -             if (reset)
> +             if (reset) {
> +                     /* use mode-2 reset for poison consumption */
> +                     if (!entry)
> +                             con->gpu_reset_flags |=
> AMDGPU_RAS_GPU_RESET_MODE2_RESET;
>                       amdgpu_ras_reset_gpu(adev);
> +             }
>       }
>
>       kfree(err_data->err_addr);
> --
> 2.35.1



More information about the amd-gfx mailing list