Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: fix JPEG instance checking when ctx init

Use proper structure.

Fixes: 0388aee766376ed ("drm/amdgpu: use the JPEG structure for general driver support")
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>

authored by

Leo Liu and committed by
Alex Deucher
3504bd45 21a174f5

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
··· 170 170 break; 171 171 case AMDGPU_HW_IP_VCN_JPEG: 172 172 for (j = 0; j < adev->jpeg.num_jpeg_inst; ++j) { 173 - if (adev->vcn.harvest_config & (1 << j)) 173 + if (adev->jpeg.harvest_config & (1 << j)) 174 174 continue; 175 175 rings[num_rings++] = &adev->jpeg.inst[j].ring_dec; 176 176 }