Any reason we don’t pull the current setting for
core freq, voltage, mem freq
the way we pull the power stat from amdgpu_pm_info
?
local power='0'
[[ -e /sys/kernel/debug/dri/$cardno/amdgpu_pm_info ]] &&
power=`cat /sys/kernel/debug/dri/$cardno/amdgpu_pm_info | grep -m1 '(average GPU)' | awk '{printf("%d", $1)}'`
[[ -z power ]] && power='0'
its all there:
2130 MHz (MCLK)
1130 MHz (SCLK)
588 MHz (PSTATE_SCLK)
1000 MHz (PSTATE_MCLK)
812 mV (VDDGFX)
53.239 W (VDDC)
16.0 W (VDDCI)
81.158 W (max GPU)
82.85 W (average GPU)
I’ve ran into a few cases where some of the cards are not at the actual VDDGFX value that amd-oc tried to set. Usually another run of amd-oc fixes it…