[PATCH 2/2] drm/amdgpu: Check umc ras_if init to disable gmc v12_0 ecc_irq
Candice Li
candice.li at amd.com
Thu Dec 5 04:10:11 UTC 2024
Instead of checking umc ras supported.
Signed-off-by: Candice Li <candice.li at amd.com>
---
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
index 621769255ffac2..37c4644f5ebc36 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
@@ -939,8 +939,7 @@ static int gmc_v12_0_hw_fini(struct amdgpu_ip_block *ip_block)
amdgpu_irq_put(adev, &adev->gmc.vm_fault, 0);
- if (adev->gmc.ecc_irq.funcs &&
- amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC))
+ if (adev->gmc.ecc_irq.funcs && adev->umc.ras_if)
amdgpu_irq_put(adev, &adev->gmc.ecc_irq, 0);
gmc_v12_0_gart_disable(adev);
--
2.25.1
More information about the amd-gfx
mailing list