drm/amdgpu: enable VCN cg and JPEG cg/pg
authorSonny Jiang <sonny.jiang@amd.com>
Thu, 21 Jul 2022 17:27:12 +0000 (13:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Jul 2022 20:28:54 +0000 (16:28 -0400)
Not enable VCN pg because encode issue

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

index 68e78983f956acdac731233c20de2f5a0ca72485..52816de5e17bf77af187c259d592476fa7e98cd6 100644 (file)
@@ -585,8 +585,11 @@ static int soc21_common_early_init(void *handle)
                adev->external_rev_id = adev->rev_id + 0x10;
                break;
        case IP_VERSION(11, 0, 1):
-               adev->cg_flags = 0;
-               adev->pg_flags = 0;
+               adev->cg_flags =
+                       AMD_CG_SUPPORT_VCN_MGCG |
+                       AMD_CG_SUPPORT_JPEG_MGCG;
+               adev->pg_flags =
+                       AMD_PG_SUPPORT_JPEG;
                adev->external_rev_id = adev->rev_id + 0x1;
                break;
        default: