On Thu, May 10, 2018 at 7:59 AM, Rex Zhu <[email protected]> wrote: > the performance drop happened on default TDP more than 256 Watt > > Signed-off-by: Rex Zhu <[email protected]>
Reviewed-by: Alex Deucher <[email protected]> > --- > drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c > b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c > index a264e0c..99b29ff 100644 > --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c > +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c > @@ -1042,12 +1042,10 @@ int smu7_set_power_limit(struct pp_hwmgr *hwmgr, > uint32_t n) > { > struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); > > - n = (n & 0xff) << 8; > - > if (data->power_containment_features & > POWERCONTAINMENT_FEATURE_PkgPwrLimit) > return smum_send_msg_to_smc_with_parameter(hwmgr, > - PPSMC_MSG_PkgPwrSetLimit, n); > + PPSMC_MSG_PkgPwrSetLimit, n<<8); > return 0; > } > > -- > 1.9.1 > > _______________________________________________ > amd-gfx mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/amd-gfx _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
