We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c032c3 commit 8b229adCopy full SHA for 8b229ad
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
@@ -1917,9 +1917,11 @@ static int sdma_v4_0_hw_fini(void *handle)
1917
return 0;
1918
}
1919
1920
- for (i = 0; i < adev->sdma.num_instances; i++) {
1921
- amdgpu_irq_put(adev, &adev->sdma.ecc_irq,
1922
- AMDGPU_SDMA_IRQ_INSTANCE0 + i);
+ if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__SDMA)) {
+ for (i = 0; i < adev->sdma.num_instances; i++) {
+ amdgpu_irq_put(adev, &adev->sdma.ecc_irq,
1923
+ AMDGPU_SDMA_IRQ_INSTANCE0 + i);
1924
+ }
1925
1926
1927
sdma_v4_0_ctx_switch_enable(adev, false);
0 commit comments