diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2024-02-14 05:47:39 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-02-22 16:14:24 +0100 |
commit | 5c0701561933ec9ee65ddd91ac5ba46873787a04 (patch) | |
tree | 9d25079b85a8f431e95c7625e9462a8f9c786737 /drivers/gpu/drm/amd/amdgpu/soc15.c | |
parent | drm/amdgpu: add GFXHUB 11.5.1 support (diff) | |
download | linux-5c0701561933ec9ee65ddd91ac5ba46873787a04.tar.xz linux-5c0701561933ec9ee65ddd91ac5ba46873787a04.zip |
drm/amdgpu: Do not toggle bif ras irq from guest
Only do this from host side.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc15.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index c64c01e2944a..37ad234c7eb9 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) |