Skip to content

Commit 7fc6311

Browse files
Rex Zhualexdeucher
authored andcommitted
drm/amd/pp: Fix performance drop on Fiji
The performance drop if the default TDP more than 256 Watt Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Junwei Zhang <[email protected]> Signed-off-by: Rex Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 7c2b134 commit 7fc6311

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)