[AMD Official Use Only - General]

Reviewed-by: Tao Zhou <[email protected]>

> -----Original Message-----
> From: amd-gfx <[email protected]> On Behalf Of
> Stanley.Yang
> Sent: Friday, July 21, 2023 9:18 PM
> To: [email protected]; Zhang, Hawking <[email protected]>;
> Zhou1, Tao <[email protected]>; Chai, Thomas <[email protected]>; Li,
> Candice <[email protected]>
> Cc: Yang, Stanley <[email protected]>
> 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 <[email protected]>
> ---
>  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

Reply via email to