drm/amdgpu/nv: set vcn pg flag
authorJack Xiao <Jack.Xiao@amd.com>
Thu, 18 Apr 2019 07:55:27 +0000 (15:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:27 +0000 (18:59 -0500)
Enable VCN power gating by default.

Signed-off-by: Jack Xiao <Jack.Xiao@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 97dd2e6687657723342b52008558f0c5f294ac58..ae3a407b16a3a19626e1f527c97f3733a242b3ed 100644 (file)
@@ -505,7 +505,7 @@ 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 = 0;
+               adev->pg_flags = AMD_PG_SUPPORT_VCN;
                adev->external_rev_id = adev->rev_id + 0x1;
                break;
        default: