[PATCH] drm/amdgpu: Do not enable/disable bif ras irq from guest

Zhou1, Tao Tao.Zhou1 at amd.com
Sun Feb 18 07:56:57 UTC 2024


[AMD Official Use Only - General]

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

> -----Original Message-----
> From: Zhang, Hawking <Hawking.Zhang at amd.com>
> Sent: Sunday, February 18, 2024 3:31 PM
> To: amd-gfx at lists.freedesktop.org; Zhou1, Tao <Tao.Zhou1 at amd.com>; Yang,
> Stanley <Stanley.Yang at amd.com>; Chai, Thomas <YiPeng.Chai at amd.com>
> Cc: Zhang, Hawking <Hawking.Zhang at amd.com>
> Subject: [PATCH] drm/amdgpu: Do not enable/disable bif ras irq from guest
>
> Only do this from host side.
>
> Signed-off-by: Hawking Zhang <Hawking.Zhang at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/soc15.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c
> b/drivers/gpu/drm/amd/amdgpu/soc15.c
> index 15033efec2ba..2c8702560090 100644
> --- a/drivers/gpu/drm/amd/amdgpu/soc15.c
> +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
> @@ -1278,7 +1278,8 @@ static int soc15_common_hw_fini(void *handle)
>       if (amdgpu_sriov_vf(adev))
>               xgpu_ai_mailbox_put_irq(adev);
>
> -     if (adev->nbio.ras_if &&
> +     if ((!amdgpu_sriov_vf(adev)) &&
> +         adev->nbio.ras_if &&
>           amdgpu_ras_is_supported(adev, adev->nbio.ras_if->block)) {
>               if (adev->nbio.ras &&
>                   adev->nbio.ras->init_ras_controller_interrupt)
> --
> 2.17.1



More information about the amd-gfx mailing list