drm/amdgpu: enable vcn pg and cg for vcn 3.1.2
authorBoyuan Zhang <boyuan.zhang@amd.com>
Wed, 9 Feb 2022 17:06:51 +0000 (12:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 18 Feb 2022 19:06:59 +0000 (14:06 -0500)
Enable PG and CG for VCN/JPEG

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index 2ec3c6b..74e0550 100644 (file)
@@ -926,8 +926,13 @@ static int nv_common_early_init(void *handle)
                        AMD_CG_SUPPORT_HDP_LS |
                        AMD_CG_SUPPORT_ATHUB_MGCG |
                        AMD_CG_SUPPORT_ATHUB_LS |
-                       AMD_CG_SUPPORT_IH_CG;
-               adev->pg_flags = AMD_PG_SUPPORT_GFX_PG;
+                       AMD_CG_SUPPORT_IH_CG |
+                       AMD_CG_SUPPORT_VCN_MGCG |
+                       AMD_CG_SUPPORT_JPEG_MGCG;
+               adev->pg_flags = AMD_PG_SUPPORT_GFX_PG |
+                       AMD_PG_SUPPORT_VCN |
+                       AMD_PG_SUPPORT_VCN_DPG |
+                       AMD_PG_SUPPORT_JPEG;
                adev->external_rev_id = adev->rev_id + 0x01;
                break;
        case IP_VERSION(10, 3, 7):