diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2019-07-25 17:22:01 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-07-30 23:48:35 -0500 |
commit | 861324983d4f7fac6a66ddc021511df7d4193e2b (patch) | |
tree | 2a6c9668d38945fda489af47719184999258137e /drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | |
parent | b4af964e75c4163fe3baf98193495f7921a4b3b7 (diff) | |
download | linux-stable-861324983d4f7fac6a66ddc021511df7d4193e2b.tar.gz linux-stable-861324983d4f7fac6a66ddc021511df7d4193e2b.tar.bz2 linux-stable-861324983d4f7fac6a66ddc021511df7d4193e2b.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 |
1 files 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 31a61430218c..a33bd867287e 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c @@ -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); |