[REQUEST] AMD CPU power management support
Hello. Looks like that power-profiles-daemon only supports Intel CPU power management.
Is is possible to implement driver support for AMD CPUs? I'm not a good C programmer to do it myself, but maybe I can help with investigation.
Here are some notes that can be useful for AMD driver implementation:
CPUFreq policy
Intel pstate driver uses /sys/devices/system/cpu/cpufreq/
path to manage CPU frequency.
Linux supports pstate management for AMD CPUs (tested on Ryzen 3600x) and it's available at the same path:
$ ls /sys/devices/system/cpu/cpufreq/
boost policy0 policy1 policy10 policy11 policy2 policy3 policy4 policy5 policy6 policy7 policy8 policy9 schedutil
$ cat /sys/devices/system/cpu/cpufreq/boost
1
$ ls /sys/devices/system/cpu/cpufreq/policy1
affected_cpus cpb cpuinfo_max_freq cpuinfo_transition_latency related_cpus scaling_available_governors scaling_driver scaling_max_freq scaling_setspeed
bios_limit cpuinfo_cur_freq cpuinfo_min_freq freqdomain_cpus scaling_available_frequencies scaling_cur_freq scaling_governor scaling_min_freq stats
PState and Turbo Boost
As far as I know, AMD CPUs don't have similar functionality but can be overclocked manually (except laptops maybe).
It's possible to control cpu power management using CPU governors.
Powersave mode can be achieved with powersave governor.
$ cat /sys/devices/system/cpu/cpufreq/policy1/scaling_available_governors
conservative ondemand userspace powersave performance schedutil
Test environment
I have two environments that can be used for testing:
- PC with Ryzen 3600x
- Lenovo Legion 5 laptop with Ryzen 4800H