[PATCH 2/2] drm/amd/vega10: allow increased power limit

Alex Deucher alexdeucher at gmail.com
Thu Oct 11 03:28:41 UTC 2018


On Thu, Oct 4, 2018 at 3:17 AM Aleksandr Mezin
<mezin.alexander at gmail.com> wrote:
>
> Allow setting the power limit to 150% of the default one, like
> Windows driver does.

Please see this patch:
https://patchwork.freedesktop.org/patch/255970/
This matches what the windows driver does.

Alex

>
> Signed-off-by: Aleksandr Mezin <mezin.alexander at gmail.com>
> ---
>  drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
> index a6432f9a75b4..8218aa9189da 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
> @@ -1342,7 +1342,8 @@ int vega10_enable_power_containment(struct pp_hwmgr *hwmgr)
>
>         hwmgr->default_power_limit = hwmgr->power_limit =
>                         (uint32_t)(tdp_table->usMaximumPowerDeliveryLimit);
> -       hwmgr->max_power_limit = hwmgr->default_power_limit;
> +       hwmgr->max_power_limit = hwmgr->default_power_limit +
> +                       hwmgr->default_power_limit / 2;
>
>         if (PP_CAP(PHM_PlatformCaps_PowerContainment)) {
>                 if (data->smu_features[GNLD_PPT].supported)
> --
> 2.19.0
>
> _______________________________________________
> 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