NOTE: In sysfs, paths like /sys/class/drm/… are just symlinks and may change between reboots.
Adjust the commands accordingly for a reliable result.
echo "s 7 1209 900" > /sys/class/drm/card0/device/pp_od_clk_voltage
echo "m 2 1850 850" > /sys/class/drm/card0/device/pp_od_clk_voltage
WARNING: Double check the entered values, as mistakes might instantly cause fatal hardware damage!
echo "c" > /sys/class/drm/card0/device/pp_od_clk_voltage
watch -n 0.5 cat /sys/kernel/debug/dri/0/amdgpu_pm_info
echo "r" > /sys/class/drm/card0/device/pp_od_clk_voltage
NOTE: It is also possible to forbid the driver to switch to certain P-states, e.g. to workaround problems with deep powersaving P-states like flickering artifacts or stutter.
echo "manual" > /sys/class/drm/card0/device/power_dpm_force_performance_level echo "2" > /sys/class/drm/card0/device/pp_dpm_mclk
echo "5 6 7" > /sys/class/drm/card0/device/pp_dpm_sclk
echo 50000000 > /sys/class/drm/card0/device/hwmon/hwmon0/power1_cap
NOTE: The above procedure may have different behavior or bugs with different GPUs.