diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-07-04 03:30:43 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-07-04 03:30:43 +0000 |
commit | 493926bbf249c076d2a31557587dffff192c4d97 (patch) | |
tree | f20e869742c79ade0f220958c5e8c00c0b968359 /sys/dev | |
parent | d23a9d4562e80e28937d5e53a724066ffbb9ff53 (diff) |
drm/amdgpu: Enable SDMA power gating for PCO
From Kenneth Feng
a4494fda32adb4e8d7441f680219b6e99ffbf6e7 in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/soc15.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/soc15.c b/sys/dev/pci/drm/amd/amdgpu/soc15.c index 6af4e1475dd..b8a26dd7eee 100644 --- a/sys/dev/pci/drm/amd/amdgpu/soc15.c +++ b/sys/dev/pci/drm/amd/amdgpu/soc15.c @@ -739,6 +739,8 @@ static int soc15_common_early_init(void *handle) AMD_CG_SUPPORT_SDMA_MGCG | 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 | |