aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/cik_sdma.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-03-29 18:28:50 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-03-29 23:53:37 -0400
commitd766e6a393383c60a55bdcc72586f21a1ff12509 (patch)
tree2850bdf21e89a7bd48c8d08cd7ff6463ad955214 /drivers/gpu/drm/amd/amdgpu/cik_sdma.c
parent832be4041d4999e008839d12d1efe118da27bd99 (diff)
drm/amdgpu: switch ih handling to two levels (v3)
Newer asics have a two levels of irq ids now: client id - the IP src id - the interrupt src within the IP v2: integrated Christian's comments. v3: fix rebase fail in SI and CIK Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik_sdma.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/cik_sdma.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c
index 131f69b3f70e..3eee569701d7 100644
--- a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c
+++ b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c
@@ -923,17 +923,20 @@ static int cik_sdma_sw_init(void *handle)
923 } 923 }
924 924
925 /* SDMA trap event */ 925 /* SDMA trap event */
926 r = amdgpu_irq_add_id(adev, 224, &adev->sdma.trap_irq); 926 r = amdgpu_irq_add_id(adev, AMDGPU_IH_CLIENTID_LEGACY, 224,
927 &adev->sdma.trap_irq);
927 if (r) 928 if (r)
928 return r; 929 return r;
929 930
930 /* SDMA Privileged inst */ 931 /* SDMA Privileged inst */
931 r = amdgpu_irq_add_id(adev, 241, &adev->sdma.illegal_inst_irq); 932 r = amdgpu_irq_add_id(adev, AMDGPU_IH_CLIENTID_LEGACY, 241,
933 &adev->sdma.illegal_inst_irq);
932 if (r) 934 if (r)
933 return r; 935 return r;
934 936
935 /* SDMA Privileged inst */ 937 /* SDMA Privileged inst */
936 r = amdgpu_irq_add_id(adev, 247, &adev->sdma.illegal_inst_irq); 938 r = amdgpu_irq_add_id(adev, AMDGPU_IH_CLIENTID_LEGACY, 247,
939 &adev->sdma.illegal_inst_irq);
937 if (r) 940 if (r)
938 return r; 941 return r;
939 942