amdgpu: Add GFX MGCG and MGLS for vangogh
authorJinzhou.Su <Jinzhou.Su@amd.com>
Tue, 27 Oct 2020 13:37:49 +0000 (21:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Oct 2020 04:58:50 +0000 (00:58 -0400)
add GFX Medium Grain Light Sleep support for vangogh

add AMD_CG_SUPPORT_GFX_CP_LS and AMD_CG_SUPPORT_GFX_RLC_LS

v2:
  add GFX Medium Grain Clock Gating

Signed-off-by: Jinzhou.Su <Jinzhou.Su@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 c65b446..026e0a8 100644 (file)
@@ -943,7 +943,11 @@ static int nv_common_early_init(void *handle)
 
        case CHIP_VANGOGH:
                adev->apu_flags |= AMD_APU_IS_VANGOGH;
-               adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG |
+               adev->cg_flags = AMD_CG_SUPPORT_GFX_MGCG |
+                       AMD_CG_SUPPORT_GFX_MGLS |
+                       AMD_CG_SUPPORT_GFX_CP_LS |
+                       AMD_CG_SUPPORT_GFX_RLC_LS |
+                       AMD_CG_SUPPORT_GFX_CGCG |
                        AMD_CG_SUPPORT_GFX_CGLS |
                        AMD_CG_SUPPORT_GFX_3D_CGCG |
                        AMD_CG_SUPPORT_GFX_3D_CGLS |