diff options
author | Huang Rui <ray.huang@amd.com> | 2017-12-15 01:34:57 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-05-15 14:43:42 -0400 |
commit | 9ac4b0d95a7a554bb60d97fbee5fbfd1b73df50a (patch) | |
tree | 7bea4637c89cbeb0610cbd969973e0258412d92e /drivers/gpu/drm | |
parent | 151b5d7fd35876120dc744f93865e4c7dc2c1f36 (diff) |
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')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc15.c | 5 |
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 65e781f05c24..90065766fffb 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) | |||
682 | AMD_CG_SUPPORT_SDMA_LS; | 682 | AMD_CG_SUPPORT_SDMA_LS; |
683 | adev->pg_flags = AMD_PG_SUPPORT_SDMA; | 683 | adev->pg_flags = AMD_PG_SUPPORT_SDMA; |
684 | 684 | ||
685 | if (adev->powerplay.pp_feature & PP_GFXOFF_MASK) | ||
686 | adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG | | ||
687 | AMD_PG_SUPPORT_CP | | ||
688 | AMD_PG_SUPPORT_RLC_SMU_HS; | ||
689 | |||
685 | adev->external_rev_id = 0x1; | 690 | adev->external_rev_id = 0x1; |
686 | break; | 691 | break; |
687 | default: | 692 | default: |