]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: correct irq type used for sdma ecc
authorHawking Zhang <Hawking.Zhang@amd.com>
Thu, 25 Jul 2019 09:22:01 +0000 (17:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 04:48:35 +0000 (23:48 -0500)
we should pass irq type, instead of irq client id,
to irq_get/put interface

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

index 31a61430218cc68bcf70ee7ace10f270f303ee10..a33bd867287ec0c208c6bc5acd3951f281a43c22 100644 (file)
@@ -1705,7 +1705,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;
        }
@@ -1849,7 +1849,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);