summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
diff options
context:
space:
mode:
authorJames Zhu <James.Zhu@amd.com>2023-05-24 16:48:40 +0200
committerAlex Deucher <alexander.deucher@amd.com>2023-06-09 17:07:00 +0200
commit28bb7f13e70dcd3a6c736ee1567cf91c47af2600 (patch)
treef6bc7edc219167acc625c50241733732c4a775a3 /drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
parentdrm/amdgpu: complement the 4, 6 and 8 XCC cases (diff)
downloadlinux-28bb7f13e70dcd3a6c736ee1567cf91c47af2600.tar.xz
linux-28bb7f13e70dcd3a6c736ee1567cf91c47af2600.zip
drm/jpeg: add init value for num_jpeg_rings
Need init new num_jpeg_rings to 1 on jpeg. Signed-off-by: James Zhu <James.Zhu@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Richard Liang <rliang1@amd.com> Tested-by: Ying Li <ying.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
index 86383fbf9358..a707d407fbd0 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
@@ -58,6 +58,7 @@ static int jpeg_v4_0_early_init(void *handle)
adev->jpeg.num_jpeg_inst = 1;
+ adev->jpeg.num_jpeg_rings = 1;
jpeg_v4_0_set_dec_ring_funcs(adev);
jpeg_v4_0_set_irq_funcs(adev);