summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-10-01 08:35:14 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-10-01 08:35:14 +0000
commit4d15dcf058bd99f13bd075425f94bd77f3f6a933 (patch)
tree210df89c73efd22c9eb913d6ff63d1661e227b36 /sys/dev/pci
parentf1264559edf9b73f75bfa530d33eadd72e625703 (diff)
Revert "drm/amd/powerplay: Enable/Disable NBPSTATE on On/OFF of UVD"
From Shirish S a935d78e54ccc026ae9c4f900002f35e7ecb8ed5 in linux 4.19.y/4.19.76 00fedbe629bfc0a51c07b6e665265ce31d8b6f3c in mainline linux
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/amd/powerplay/hwmgr/smu8_hwmgr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/amd/powerplay/hwmgr/smu8_hwmgr.c b/sys/dev/pci/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
index ef208375194..8c2b2fafdfc 100644
--- a/sys/dev/pci/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
+++ b/sys/dev/pci/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
@@ -1222,17 +1222,14 @@ static int smu8_dpm_force_dpm_level(struct pp_hwmgr *hwmgr,
static int smu8_dpm_powerdown_uvd(struct pp_hwmgr *hwmgr)
{
- if (PP_CAP(PHM_PlatformCaps_UVDPowerGating)) {
- smu8_nbdpm_pstate_enable_disable(hwmgr, true, true);
+ if (PP_CAP(PHM_PlatformCaps_UVDPowerGating))
return smum_send_msg_to_smc(hwmgr, PPSMC_MSG_UVDPowerOFF);
- }
return 0;
}
static int smu8_dpm_powerup_uvd(struct pp_hwmgr *hwmgr)
{
if (PP_CAP(PHM_PlatformCaps_UVDPowerGating)) {
- smu8_nbdpm_pstate_enable_disable(hwmgr, false, true);
return smum_send_msg_to_smc_with_parameter(
hwmgr,
PPSMC_MSG_UVDPowerON,