make GPU voltage offset configurable

This commit is contained in:
Josh Lay 2022-06-08 19:27:06 -05:00
parent 77e268ed24
commit 562843c069
Signed by: jlay
GPG key ID: B265E45CACAD108A
2 changed files with 5 additions and 2 deletions

View file

@ -11,6 +11,7 @@
gpu_clock_min: "2200" # minimum GPU clock (in 3D) - defaults 500Mhz gpu_clock_min: "2200" # minimum GPU clock (in 3D) - defaults 500Mhz
gpu_clock_max: "2575" # maximum GPU clock (also 3D) - range allows up to 3000Mhz. default 2529 gpu_clock_max: "2575" # maximum GPU clock (also 3D) - range allows up to 3000Mhz. default 2529
gpumem_clock_max: "1075" # maximum GPU memory clock - default 1000Mhz, range allows 1075Mhz gpumem_clock_max: "1075" # maximum GPU memory clock - default 1000Mhz, range allows 1075Mhz
gpu_mv_offset: "+100" # optional, applies offset to GPU voltage, eg: +100 = boost 100mV or 0.1V. for the 'custom' GPU profile.
# note: (all clocks based on my non-reference 6900XT) # note: (all clocks based on my non-reference 6900XT)
# consult '/sys/class/drm/{{ card }}/device/pp_od_clk_voltage' # consult '/sys/class/drm/{{ card }}/device/pp_od_clk_voltage'
card: card0 # default to card0 card: card0 # default to card0

View file

@ -23,8 +23,10 @@ echo 's 1 {{ gpu_clock_max }}' | tee /sys/class/drm/{{ card }}/device/pp_od_clk_
# set the maximum GPU *memory* clock # set the maximum GPU *memory* clock
echo 'm 1 {{ gpumem_clock_max }}' | tee /sys/class/drm/{{ card }}/device/pp_od_clk_voltage echo 'm 1 {{ gpumem_clock_max }}' | tee /sys/class/drm/{{ card }}/device/pp_od_clk_voltage
# boost offset voltage 100mV / 0.1V {% if gpu_mv_offset is defined %}
echo 'vo +100' | tee /sys/class/drm/{{ card }}/device/pp_od_clk_voltage # offset GPU voltage {{ gpu_mv_offset }}mV
echo 'vo {{ gpu_mv_offset }}' | tee /sys/class/drm/{{ card }}/device/pp_od_clk_voltage
{% endif %}
# commit the changes # commit the changes
echo 'c' | tee /sys/class/drm/{{ card }}/device/pp_od_clk_voltage echo 'c' | tee /sys/class/drm/{{ card }}/device/pp_od_clk_voltage