drm/amdgpu/jpeg: enable JPEG CG for VCN4_0_4
authorJames Zhu <James.Zhu@amd.com>
Thu, 6 Jan 2022 01:36:08 +0000 (20:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2022 20:52:12 +0000 (16:52 -0400)
Enable JPEG CG for VCN4_0_4.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc21.c

index d91bd70028b52068c843ab37a92a8268da450292..6d6aca7f64d9b6f7c138de6a078b99c2701faddf 100644 (file)
@@ -548,7 +548,8 @@ static int soc21_common_early_init(void *handle)
                adev->external_rev_id = adev->rev_id + 0x1; // TODO: need update
                break;
        case IP_VERSION(11, 0, 2):
-               adev->cg_flags = 0;
+               adev->cg_flags =
+                       AMD_CG_SUPPORT_JPEG_MGCG;
                adev->pg_flags = 0;
                adev->external_rev_id = adev->rev_id + 0x10;
                break;