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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 4, 2018 at 3:17 AM Aleksandr Mezin
<mezin.alexander@xxxxxxxxx> 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@xxxxxxxxx>
> ---
>  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@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux