make power multi var generic, attribute of each profile

This commit is contained in:
Josh Lay 2022-11-26 22:43:52 -06:00
parent 4dff0b95ab
commit 40028e5229
Signed by: jlay
GPG key ID: B265E45CACAD108A
3 changed files with 29 additions and 37 deletions

View file

@ -1,17 +1,26 @@
---
# statically defined mapping of the contents in /sys/class/drm/card*/device/pp_power_profile_mode
# more may be added, but do not remove default/custom. new profiles require a script template, see 'templates'
# statically defined mapping of gpu profiles
# nets adjusted tuned profiles based on the contents in /sys/class/drm/card*/device/pp_power_profile_mode
# adds a power multiplier, see comments below for more info
# more reference driver profiles may be added, but do not remove default.
amdgpu_profiles:
default:
pwrmode: 0
pwr_cap_multi: 0.789473684210526 # 255W - default
3D:
pwrmode: 1
pwr_cap_multi: 0.789473684210526 # 255W - default
VR:
pwrmode: 4
pwr_cap_multi: 0.789473684210526 # 255W - default
compute:
pwrmode: 5
pwr_cap_multi: 0.789473684210526 # 255W - default
custom:
pwrmode: 6
pwr_cap_multi: 0.869969040247678 # 281W - slight boost
# the multipliers against power capability to determine power limits for the non-OC (default)/OC (custom) profiles
# pwr_cap_multi is multiplier against *board power capability* to determine power limits on the associated profile
# 0.5 = 50%, 1.0 = 100% (of card power capability, not stock limits)
#
# should not exceed 1.0, must be a float. driver will do some rounding/stepping
@ -20,18 +29,6 @@ amdgpu_profiles:
# adjust cell F14 (board max power) and the 'effective watts' column to update calculations
# microWatt board power capability can be discovered like so: 'cat /sys/class/drm/card*/device/hwmon/hwmon*/power1_cap_max'
# power_max_default_multi: 0.75 # 242.25W, slightly lower than true default
# power for the default profile
power_max_default_multi: 0.789473684210526 # 255W - default
# power_max_default_multi: 0.820433436532508 # 265W
# power_max_default_multi: 0.851393188854489 # 275W
# power_max_default_multi: 0.869969040247678 # 281W
# power for the custom profile
#power_max_custom_multi: 0.789473684210526 # 255W - default
power_max_custom_multi: 0.869969040247678 # 281W
# alt default power limits
# power_max_default_multi: 0.696594427244582 # 225W
# power_max_default_multi: 0.869969040247678 # 281W
#
# minimum/maximum GPU clocks using 'powerplay' below
# these do *not* apply to the resulting 'amdgpu-default' tuned profile