Skip to content

Commit 01152c3

Browse files
Mangesh Gadrealexdeucher
authored andcommitted
drm/amdgpu: Avoid jpeg v5.0.1 poison irq call trace on sriov guest
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>
1 parent 89c3503 commit 01152c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static int jpeg_v5_0_1_hw_fini(struct amdgpu_ip_block *ip_block)
315315
ret = jpeg_v5_0_1_set_powergating_state(ip_block, AMD_PG_STATE_GATE);
316316
}
317317

318-
if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__JPEG))
318+
if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__JPEG) && !amdgpu_sriov_vf(adev))
319319
amdgpu_irq_put(adev, &adev->jpeg.inst->ras_poison_irq, 0);
320320

321321
return ret;

0 commit comments

Comments
 (0)