Commit 248b0ec5 authored by Michel Dänzer's avatar Michel Dänzer Committed by Greg Kroah-Hartman

drm/amdgpu: Set adev->vcn.irq.num_types for VCN

commit 89ce6e0afee8eafa679093207dabd717af9d09c5 upstream.

We were setting adev->uvd.irq.num_types instead.

Fixes: 9b257116 ("drm/amdgpu: add vcn enc irq support")
Reviewed-by: 's avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: 's avatarChristian König <christian.koenig@amd.com>
Signed-off-by: 's avatarMichel Dänzer <michel.daenzer@amd.com>
Signed-off-by: 's avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 802328da
......@@ -1175,7 +1175,7 @@ static const struct amdgpu_irq_src_funcs vcn_v1_0_irq_funcs = {
static void vcn_v1_0_set_irq_funcs(struct amdgpu_device *adev)
{
adev->uvd.irq.num_types = adev->vcn.num_enc_rings + 1;
adev->vcn.irq.num_types = adev->vcn.num_enc_rings + 1;
adev->vcn.irq.funcs = &vcn_v1_0_irq_funcs;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment