diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2017-11-22 09:55:21 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-11-28 17:44:13 -0500 |
commit | 89ce6e0afee8eafa679093207dabd717af9d09c5 (patch) | |
tree | 604c04ba12813c1206e5fc780a39293a8d65acaa /drivers/gpu/drm/amd/amdgpu | |
parent | b693fc1f83bc9aa5e86c87ac7da48870e45bf486 (diff) |
drm/amdgpu: Set adev->vcn.irq.num_types for VCN
We were setting adev->uvd.irq.num_types instead.
Fixes: 9b257116e784 ("drm/amdgpu: add vcn enc irq support")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c index 1eb4d79d6e30..0450ac5ba6b6 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | |||
@@ -1175,7 +1175,7 @@ static const struct amdgpu_irq_src_funcs vcn_v1_0_irq_funcs = { | |||
1175 | 1175 | ||
1176 | static void vcn_v1_0_set_irq_funcs(struct amdgpu_device *adev) | 1176 | static void vcn_v1_0_set_irq_funcs(struct amdgpu_device *adev) |
1177 | { | 1177 | { |
1178 | adev->uvd.irq.num_types = adev->vcn.num_enc_rings + 1; | 1178 | adev->vcn.irq.num_types = adev->vcn.num_enc_rings + 1; |
1179 | adev->vcn.irq.funcs = &vcn_v1_0_irq_funcs; | 1179 | adev->vcn.irq.funcs = &vcn_v1_0_irq_funcs; |
1180 | } | 1180 | } |
1181 | 1181 | ||