aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/soc15.c
diff options
context:
space:
mode:
authorLe Ma <le.ma@amd.com>2019-08-07 14:52:38 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-08-12 12:47:48 -0500
commit6b76ce62bfcb6a3d03eb695cd739b8db4d089f20 (patch)
treea0a5599088fa4498b6f7ce20e8abc6a1aec00958 /drivers/gpu/drm/amd/amdgpu/soc15.c
parentdrm/amdgpu: add gfx clock gating for Arcturus (diff)
downloadlinux-dev-6b76ce62bfcb6a3d03eb695cd739b8db4d089f20.tar.xz
linux-dev-6b76ce62bfcb6a3d03eb695cd739b8db4d089f20.zip
drm/amdgpu: enable gfx clock gating for Arcturus
Init gfx MGCG/LS and CGCG/LS flag. Signed-off-by: Le Ma <le.ma@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc15.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc15.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
index 5116d0bf9e4a..0379f4290ea1 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -1119,7 +1119,10 @@ static int soc15_common_early_init(void *handle)
break;
case CHIP_ARCTURUS:
adev->asic_funcs = &vega20_asic_funcs;
- adev->cg_flags = 0;
+ adev->cg_flags = AMD_CG_SUPPORT_GFX_MGCG |
+ AMD_CG_SUPPORT_GFX_MGLS |
+ AMD_CG_SUPPORT_GFX_CGCG |
+ AMD_CG_SUPPORT_GFX_CGLS;
adev->pg_flags = 0;
adev->external_rev_id = adev->rev_id + 0x32;
break;