diff --git a/playbook.yml b/playbook.yml index eb9be11..155d386 100644 --- a/playbook.yml +++ b/playbook.yml @@ -11,6 +11,7 @@ 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 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) # consult '/sys/class/drm/{{ card }}/device/pp_od_clk_voltage' card: card0 # default to card0 diff --git a/templates/amdgpu-clock.sh.j2 b/templates/amdgpu-clock.sh.j2 index 14bac41..3ffc652 100644 --- a/templates/amdgpu-clock.sh.j2 +++ b/templates/amdgpu-clock.sh.j2 @@ -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 echo 'm 1 {{ gpumem_clock_max }}' | tee /sys/class/drm/{{ card }}/device/pp_od_clk_voltage -# boost offset voltage 100mV / 0.1V -echo 'vo +100' | tee /sys/class/drm/{{ card }}/device/pp_od_clk_voltage +{% if gpu_mv_offset is defined %} +# 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 echo 'c' | tee /sys/class/drm/{{ card }}/device/pp_od_clk_voltage