[PATCH Review 1/1] drm/amdgpu: Fix ineffective ras_mask settings

Zhou1, Tao Tao.Zhou1 at amd.com
Thu Feb 22 02:44:51 UTC 2024


[AMD Official Use Only - General]

Reviewed-by: Tao Zhou <tao.zhou1 at amd.com>

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of
> Stanley.Yang
> Sent: Wednesday, February 21, 2024 10:27 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Yang, Stanley <Stanley.Yang at amd.com>
> Subject: [PATCH Review 1/1] drm/amdgpu: Fix ineffective ras_mask settings
>
> Check amdgpu_ras_mask to fix ineffective ras_mask setting due to special asic
> without sram ecc enable but with poison supported.
>
> Signed-off-by: Stanley.Yang <Stanley.Yang at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> index d991b3467c47..b85014e7f96b 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> @@ -3629,6 +3629,7 @@ int amdgpu_ras_is_supported(struct amdgpu_device
> *adev,
>            block == AMDGPU_RAS_BLOCK__SDMA ||
>            block == AMDGPU_RAS_BLOCK__VCN ||
>            block == AMDGPU_RAS_BLOCK__JPEG) &&
> +             (amdgpu_ras_mask & (1 << block)) &&
>           amdgpu_ras_is_poison_mode_supported(adev) &&
>           amdgpu_ras_get_ras_block(adev, block, 0))
>               ret = 1;
> --
> 2.25.1



More information about the amd-gfx mailing list