]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amdgpu: Avoid vcn v5.0.1 poison irq call trace on sriov guest
authorMangesh Gadre <Mangesh.Gadre@amd.com>
Mon, 25 Aug 2025 13:22:30 +0000 (21:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Aug 2025 14:09:29 +0000 (10:09 -0400)
Sriov guest side doesn't init ras feature hence the poison irq shouldn't
be put during hw fini

Signed-off-by: Mangesh Gadre <Mangesh.Gadre@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c

index 7cb21e2b4eb0e39188969abc10631b972bb49dde..4b01e35ad7ef5959115448dc061c23d97acde170 100644 (file)
@@ -326,7 +326,7 @@ static int vcn_v5_0_1_hw_fini(struct amdgpu_ip_block *ip_block)
                        vinst->set_pg_state(vinst, AMD_PG_STATE_GATE);
        }
 
-       if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__VCN))
+       if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__VCN) && !amdgpu_sriov_vf(adev))
                amdgpu_irq_put(adev, &adev->vcn.inst->ras_poison_irq, 0);
 
        return 0;