[PATCH 2/2] drm/amd/vega10: allow increased power limit
Aleksandr Mezin
mezin.alexander at gmail.com
Wed Oct 3 21:59:51 UTC 2018
Allow setting the power limit to 150% of the default one, like
Windows driver does.
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
More information about the amd-gfx
mailing list