mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
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: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b4af964e75
commit
861324983d
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user