mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-25 01:25:25 +00:00
drm/amdgpu: fix VCN2.x number of irq types
The JPEG irq type has been moved to its own structure Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: James Zhu <James.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
89ed5a5211
commit
21a174f5ad
@ -1788,7 +1788,7 @@ static const struct amdgpu_irq_src_funcs vcn_v2_0_irq_funcs = {
|
||||
|
||||
static void vcn_v2_0_set_irq_funcs(struct amdgpu_device *adev)
|
||||
{
|
||||
adev->vcn.inst->irq.num_types = adev->vcn.num_enc_rings + 2;
|
||||
adev->vcn.inst->irq.num_types = adev->vcn.num_enc_rings + 1;
|
||||
adev->vcn.inst->irq.funcs = &vcn_v2_0_irq_funcs;
|
||||
}
|
||||
|
||||
|
||||
@ -1138,7 +1138,7 @@ static void vcn_v2_5_set_irq_funcs(struct amdgpu_device *adev)
|
||||
for (i = 0; i < adev->vcn.num_vcn_inst; ++i) {
|
||||
if (adev->vcn.harvest_config & (1 << i))
|
||||
continue;
|
||||
adev->vcn.inst[i].irq.num_types = adev->vcn.num_enc_rings + 2;
|
||||
adev->vcn.inst[i].irq.num_types = adev->vcn.num_enc_rings + 1;
|
||||
adev->vcn.inst[i].irq.funcs = &vcn_v2_5_irq_funcs;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user