[PATCH] drm/amd/pp: Fix performance drop on Fiji

Alex Deucher alexdeucher at gmail.com
Thu May 10 12:19:52 UTC 2018


On Thu, May 10, 2018 at 7:59 AM, Rex Zhu <Rex.Zhu at amd.com> wrote:
> the performance drop happened on default TDP more than 256 Watt
>
> Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  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
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list