Commit 86132498 authored by Hawking Zhang's avatar Hawking Zhang Committed by Alex Deucher

drm/amdgpu: correct irq type used for sdma ecc

we should pass irq type, instead of irq client id,
to irq_get/put interface
Signed-off-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: default avatarFeifei Xu <Feifei.Xu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b4af964e
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment