aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/amdgpu/soc15.c
diff options
context:
space:
mode:
authorKenneth Feng <kenneth.feng@amd.com>2018-08-07 17:05:22 +0800
committerAlex Deucher <alexander.deucher@amd.com>2018-09-14 09:35:33 -0500
commit8c7bf5834a334dad9a1c3a2ddc93e26bdeeadd57 (patch)
treef998df2441d325f26a3ffd6c719814fa27288956 /drivers/gpu/drm/amd/amdgpu/soc15.c
parentdrm/amdgpu: add picasso for amdgpu kms (diff)
downloadwireguard-linux-8c7bf5834a334dad9a1c3a2ddc93e26bdeeadd57.tar.xz
wireguard-linux-8c7bf5834a334dad9a1c3a2ddc93e26bdeeadd57.zip
drm/amdgpu: Add pg support for gfxoff for PCO
Add pg support for gfxoff. Signed-off-by: Kenneth Feng <kenneth.feng@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to '')
-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 d3b73afcb871..2539fa7b9594 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -740,7 +740,10 @@ static int soc15_common_early_init(void *handle)
AMD_CG_SUPPORT_SDMA_MGCG |
AMD_CG_SUPPORT_SDMA_LS;
- adev->pg_flags = 0;
+ 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 = adev->rev_id + 0x41;
break;