diff options
author | Christian König <christian.koenig@amd.com> | 2018-09-17 09:29:28 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-26 22:09:22 -0400 |
commit | 1ffdeca64856e0149e7fb341617f47cb038df543 (patch) | |
tree | eab2c608b0234a632de60d4598c33e8702a8d902 /drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | |
parent | 1f8969463bca23327eedadab0fef0d28c9b6f29f (diff) |
drm/amdgpu: move more defines into amdgpu_irq.h
Everything that isn't related to the IH ring.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c index 6ae82cc2e55e..8ef4a5392112 100644 --- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | |||
@@ -393,14 +393,14 @@ static int uvd_v6_0_sw_init(void *handle) | |||
393 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | 393 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
394 | 394 | ||
395 | /* UVD TRAP */ | 395 | /* UVD TRAP */ |
396 | r = amdgpu_irq_add_id(adev, AMDGPU_IH_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_UVD_SYSTEM_MESSAGE, &adev->uvd.inst->irq); | 396 | r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_UVD_SYSTEM_MESSAGE, &adev->uvd.inst->irq); |
397 | if (r) | 397 | if (r) |
398 | return r; | 398 | return r; |
399 | 399 | ||
400 | /* UVD ENC TRAP */ | 400 | /* UVD ENC TRAP */ |
401 | if (uvd_v6_0_enc_support(adev)) { | 401 | if (uvd_v6_0_enc_support(adev)) { |
402 | for (i = 0; i < adev->uvd.num_enc_rings; ++i) { | 402 | for (i = 0; i < adev->uvd.num_enc_rings; ++i) { |
403 | r = amdgpu_irq_add_id(adev, AMDGPU_IH_CLIENTID_LEGACY, i + VISLANDS30_IV_SRCID_UVD_ENC_GEN_PURP, &adev->uvd.inst->irq); | 403 | r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i + VISLANDS30_IV_SRCID_UVD_ENC_GEN_PURP, &adev->uvd.inst->irq); |
404 | if (r) | 404 | if (r) |
405 | return r; | 405 | return r; |
406 | } | 406 | } |