[PATCH Review 1/1] drm/amdgpu: Check APU flag to disable RAS
Zhou1, Tao
Tao.Zhou1 at amd.com
Mon Jul 24 03:08:53 UTC 2023
[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: Friday, July 21, 2023 9:18 PM
> To: amd-gfx at lists.freedesktop.org; Zhang, Hawking <Hawking.Zhang at amd.com>;
> Zhou1, Tao <Tao.Zhou1 at amd.com>; Chai, Thomas <YiPeng.Chai at amd.com>; Li,
> Candice <Candice.Li at amd.com>
> Cc: Yang, Stanley <Stanley.Yang at amd.com>
> Subject: [PATCH Review 1/1] drm/amdgpu: Check APU flag to disable RAS
>
> Only disable RAS by default for aqua vanjaram on APU platform.
>
> Signed-off-by: Stanley.Yang <Stanley.Yang at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> index 2221460e23e4..00a3863a6017 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> @@ -2529,7 +2529,8 @@ static void amdgpu_ras_check_supported(struct
> amdgpu_device *adev)
> * Disable ras feature for aqua vanjaram
> * by default on apu platform.
> */
> - if (adev->ip_versions[MP0_HWIP][0] == IP_VERSION(13, 0, 6))
> + if (adev->ip_versions[MP0_HWIP][0] == IP_VERSION(13, 0, 6) &&
> + adev->gmc.is_app_apu)
> adev->ras_enabled = amdgpu_ras_enable != 1 ? 0 :
> adev->ras_hw_enabled & amdgpu_ras_mask;
> else
> --
> 2.25.1
More information about the amd-gfx
mailing list