Table of Contents

Information

AMDGPU

References

TODO

Query

Power Info

sudo watch --interval '0.5' cat '/sys/kernel/debug/dri/0/amdgpu_pm_info'

Power Sates

cat '/sys/class/drm/card0/device/pp_od_clk_voltage'

Overclock

SCLK

echo 's 7 1386 1155' | sudo tee '/sys/class/drm/card0/device/pp_od_clk_voltage'

MCLK

echo 'm 2 2025 955' | sudo tee '/sys/class/drm/card0/device/pp_od_clk_voltage'

Verify Values

cat '/sys/class/drm/card0/device/pp_od_clk_voltage'

Commit

echo 'c' | sudo tee '/sys/class/drm/card0/device/pp_od_clk_voltage'

Verify Clocks

vblank_mode='0' glxgears
sudo watch --interval '0.5' cat '/sys/kernel/debug/dri/0/amdgpu_pm_info'

Reset Clocks

echo 'r' | sudo tee '/sys/class/drm/card0/device/pp_od_clk_voltage' && echo 'c' | sudo tee '/sys/class/drm/card0/device/pp_od_clk_voltage'

PSTATE Control

Manual Controls

echo 'manual' | sudo tee '/sys/class/drm/card0/device/power_dpm_force_performance_level'
cat '/sys/class/drm/card0/device/power_dpm_force_performance_level'

SCLK

echo '7' | sudo tee '/sys/class/drm/card0/device/pp_dpm_sclk'
echo '5 6 7' | sudo tee '/sys/class/drm/card0/device/pp_dpm_sclk'

MCLK

echo '2' | sudo tee '/sys/class/drm/card0/device/pp_dpm_mclk'
echo '1 2' | sudo tee '/sys/class/drm/card0/device/pp_dpm_mclk'

Power Limit

Query

cat '/sys/class/drm/card0/device/hwmon/hwmon'*'/power1_cap'

Get Max

cat '/sys/class/drm/card0/device/hwmon/hwmon'*'/power1_cap_max'

Set

echo "$(cat '/sys/class/drm/card0/device/hwmon/hwmon'*'/power1_cap_max')" | sudo tee '/sys/class/drm/card0/device/hwmon/hwmon'*'/power1_cap' > '/dev/null'
echo "$(cat '/sys/class/drm/card1/device/hwmon/hwmon'*'/power1_cap_max')" | sudo tee '/sys/class/drm/card1/device/hwmon/hwmon'*'/power1_cap' > '/dev/null'