From: Hawking Zhang <[email protected]>

we should pass irq type, instead of irq client id,
to irq_get/put interface

Signed-off-by: Hawking Zhang <[email protected]>
Reviewed-by: Feifei Xu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 
b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
index 560d6038bbb3..36dc5025c461 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
@@ -1702,7 +1702,7 @@ static int sdma_v4_0_late_init(void *handle)
 resume:
        for (i = 0; i < adev->sdma.num_instances; i++) {
                r = amdgpu_irq_get(adev, &adev->sdma.ecc_irq,
-                       sdma_v4_0_seq_to_irq_id(i));
+                                  AMDGPU_SDMA_IRQ_INSTANCE0 + i);
                if (r)
                        goto irq;
        }
@@ -1846,7 +1846,7 @@ static int sdma_v4_0_hw_fini(void *handle)
 
        for (i = 0; i < adev->sdma.num_instances; i++) {
                amdgpu_irq_put(adev, &adev->sdma.ecc_irq,
-                       sdma_v4_0_seq_to_irq_id(i));
+                              AMDGPU_SDMA_IRQ_INSTANCE0 + i);
        }
 
        sdma_v4_0_ctx_switch_enable(adev, false);
-- 
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to