drm/amdgpu: fix JPEG instance checking when ctx init
authorLeo Liu <leo.liu@amd.com>
Mon, 9 Dec 2019 17:58:24 +0000 (12:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Dec 2019 20:22:08 +0000 (15:22 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c

index 8f2eea9..1d2bbf1 100644 (file)
@@ -170,7 +170,7 @@ static int amdgpu_ctx_init(struct amdgpu_device *adev,
                        break;
                case AMDGPU_HW_IP_VCN_JPEG:
                        for (j = 0; j < adev->jpeg.num_jpeg_inst; ++j) {
-                               if (adev->vcn.harvest_config & (1 << j))
+                               if (adev->jpeg.harvest_config & (1 << j))
                                        continue;
                                rings[num_rings++] = &adev->jpeg.inst[j].ring_dec;
                        }