summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-07-04 03:28:42 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-07-04 03:28:42 +0000
commitd23a9d4562e80e28937d5e53a724066ffbb9ff53 (patch)
treee7a5681d4ebd07895f4f622c6351ec059ed50d3e /sys/dev
parenta21fd52bcbe68febbd84333ecef96262f4bdccf5 (diff)
drm/amdgpu: Add pg support for gfxoff for PCO
From Kenneth Feng 8c7bf5834a334dad9a1c3a2ddc93e26bdeeadd57 in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/soc15.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/soc15.c b/sys/dev/pci/drm/amd/amdgpu/soc15.c
index 7563e3377f2..6af4e1475dd 100644
--- a/sys/dev/pci/drm/amd/amdgpu/soc15.c
+++ b/sys/dev/pci/drm/amd/amdgpu/soc15.c
@@ -739,7 +739,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;