From: Jinzhou.Su Date: Tue, 27 Oct 2020 13:37:49 +0000 (+0800) Subject: amdgpu: Add GFX MGCG and MGLS for vangogh X-Git-Tag: baikal/mips/sdk5.9~12066^2~12^2~103 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=66cd37babd8458b7be795f18ed85734d3cefc13c;p=kernel.git amdgpu: Add GFX MGCG and MGLS for vangogh 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 Reviewed-by: Huang Rui Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index c65b4462bf5ec..026e0a8fd526e 100644 --- a/drivers/gpu/drm/amd/amdgpu/nv.c +++ b/drivers/gpu/drm/amd/amdgpu/nv.c @@ -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 |