aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2020-09-22 19:08:31 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-10-05 15:15:28 -0400
commitac0dc4c5a0760c9a9437d5864c277d9d2554a6ec (patch)
treee959783afccb430fd66655e979d55f7a1884328a /drivers/gpu
parentdrm/amdgpu: add gfx power gating for gfx10 (diff)
downloadlinux-dev-ac0dc4c5a0760c9a9437d5864c277d9d2554a6ec.tar.xz
linux-dev-ac0dc4c5a0760c9a9437d5864c277d9d2554a6ec.zip
drm/amdgpu: enable gfx clock gating and power gating for vangogh
This patch is to enable the gfx cg and pg for vangogh. Signed-off-by: Huang Rui <ray.huang@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/nv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c
index 6ca5888dcf2f..2c2213d4908f 100644
--- a/drivers/gpu/drm/amd/amdgpu/nv.c
+++ b/drivers/gpu/drm/amd/amdgpu/nv.c
@@ -884,8 +884,11 @@ static int nv_common_early_init(void *handle)
break;
case CHIP_VANGOGH:
- adev->cg_flags = 0;
- adev->pg_flags = 0;
+ adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG |
+ AMD_CG_SUPPORT_GFX_CGLS |
+ AMD_CG_SUPPORT_GFX_3D_CGCG |
+ AMD_CG_SUPPORT_GFX_3D_CGLS;
+ adev->pg_flags = AMD_PG_SUPPORT_GFX_PG;
adev->external_rev_id = adev->rev_id + 0x01;
break;
default: