drm/amdgpu: enable VCN2.0 DPG mode
authorLeo Liu <leo.liu@amd.com>
Wed, 15 May 2019 17:58:20 +0000 (13:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:32 +0000 (18:59 -0500)
It will be the default for VCN2.x family

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/nv.c

index a3692dba64fffeb980ea71ccb111d3faf4993f49..25e9e96f008bec9ad054cd216ffef0e1889ae810 100644 (file)
@@ -505,7 +505,8 @@ static int nv_common_early_init(void *handle)
                        AMD_CG_SUPPORT_VCN_MGCG |
                        AMD_CG_SUPPORT_BIF_MGCG |
                        AMD_CG_SUPPORT_BIF_LS;
-               adev->pg_flags = AMD_PG_SUPPORT_VCN;
+               adev->pg_flags = AMD_PG_SUPPORT_VCN |
+                       AMD_PG_SUPPORT_VCN_DPG;
                adev->external_rev_id = adev->rev_id + 0x1;
                break;
        default: