Skip to content

Commit 72777fe

Browse files
committed
Merge branch 'drm-fixes-4.17' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
Single amdgpu regression fix * 'drm-fixes-4.17' of git://people.freedesktop.org/~agd5f/linux: drm/amd/pp: Fix performance drop on Fiji
2 parents 7c2b134 + 7fc6311 commit 72777fe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -852,12 +852,10 @@ int smu7_set_power_limit(struct pp_hwmgr *hwmgr, uint32_t n)
852852
{
853853
struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);
854854

855-
n = (n & 0xff) << 8;
856-
857855
if (data->power_containment_features &
858856
POWERCONTAINMENT_FEATURE_PkgPwrLimit)
859857
return smum_send_msg_to_smc_with_parameter(hwmgr,
860-
PPSMC_MSG_PkgPwrSetLimit, n);
858+
PPSMC_MSG_PkgPwrSetLimit, n<<8);
861859
return 0;
862860
}
863861

0 commit comments

Comments
 (0)