drm/amdgpu: enable VCN3.0 PG and CG for dimgrey_cavefish
authorJames Zhu <James.Zhu@amd.com>
Wed, 5 Aug 2020 21:54:21 +0000 (17:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 12 Oct 2020 18:01:41 +0000 (14:01 -0400)
Enable VCN3.0 PG and CG for dimgrey_cavefish

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index 94ccacd..45177ed 100644 (file)
@@ -904,8 +904,9 @@ static int nv_common_early_init(void *handle)
                adev->external_rev_id = adev->rev_id + 0x01;
                break;
        case CHIP_DIMGREY_CAVEFISH:
-               adev->cg_flags = 0;
-               adev->pg_flags = AMD_PG_SUPPORT_VCN_DPG;
+               adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG;
+               adev->pg_flags = AMD_PG_SUPPORT_VCN |
+                       AMD_PG_SUPPORT_VCN_DPG;
                adev->external_rev_id = adev->rev_id + 0x3c;
                break;
        default: