summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/soc15.c
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2017-12-15 14:34:57 +0800
committerAlex Deucher <alexander.deucher@amd.com>2018-05-15 13:43:42 -0500
commit9ac4b0d95a7a554bb60d97fbee5fbfd1b73df50a (patch)
tree7bea4637c89cbeb0610cbd969973e0258412d92e /drivers/gpu/drm/amd/amdgpu/soc15.c
parent151b5d7fd35876120dc744f93865e4c7dc2c1f36 (diff)
downloadop-kernel-dev-9ac4b0d95a7a554bb60d97fbee5fbfd1b73df50a.zip
op-kernel-dev-9ac4b0d95a7a554bb60d97fbee5fbfd1b73df50a.tar.gz
drm/amdgpu: set CGPG if gfxoff is enabled for raven
Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Christian König <christian.koenig@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, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
index 65e781f..9006576 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -682,6 +682,11 @@ static int soc15_common_early_init(void *handle)
AMD_CG_SUPPORT_SDMA_LS;
adev->pg_flags = AMD_PG_SUPPORT_SDMA;
+ if (adev->powerplay.pp_feature & PP_GFXOFF_MASK)
+ adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG |
+ AMD_PG_SUPPORT_CP |
+ AMD_PG_SUPPORT_RLC_SMU_HS;
+
adev->external_rev_id = 0x1;
break;
default:
OpenPOWER on IntegriCloud