Can't get AMD pstate to work. It used to be fine.

c10l

Member
Jun 20, 2022
16
3
8
Title. I don't know when it stopped working but I suspect it was due to a kernel upgrade.

I have enabled CPPC on the BIOS. SR/IOV and IOMMU are also enabled and working.

This is am AM4 Ryzen on an ASRock X570M Pro4 mobo with the latest BIOS where they updated AGESA.

Any help would be greatly appreciated!

Code:
# uname -a
Linux pve0 6.17.2-2-pve #1 SMP PREEMPT_DYNAMIC PMX 6.17.2-2 (2025-11-26T12:33Z) x86_64 GNU/Linux

Code:
#  dmesg --level warn | grep amd
[    0.825638] amd_pstate: The CPPC feature is supported but currently disabled by the BIOS.
[    0.825889] amd_pstate: failed to set auto_sel, ret: -95
[    0.825890] amd_pstate: Failed to initialize CPU 0: -95
[    0.825915] amd_pstate: failed to set auto_sel, ret: -95
[    0.825916] amd_pstate: Failed to initialize CPU 1: -95
[    0.825950] amd_pstate: failed to set auto_sel, ret: -95
[    0.825951] amd_pstate: Failed to initialize CPU 2: -95
[    0.825984] amd_pstate: failed to set auto_sel, ret: -95
[    0.825986] amd_pstate: Failed to initialize CPU 3: -95
[    0.826021] amd_pstate: failed to set auto_sel, ret: -95
[    0.826023] amd_pstate: Failed to initialize CPU 4: -95
[    0.826059] amd_pstate: failed to set auto_sel, ret: -95
[    0.826060] amd_pstate: Failed to initialize CPU 5: -95
[    0.826098] amd_pstate: failed to set auto_sel, ret: -95
[    0.826099] amd_pstate: Failed to initialize CPU 6: -95
[    0.826136] amd_pstate: failed to set auto_sel, ret: -95
[    0.826138] amd_pstate: Failed to initialize CPU 7: -95
[    0.826169] amd_pstate: failed to set auto_sel, ret: -95
[    0.826171] amd_pstate: Failed to initialize CPU 8: -95
[    0.826206] amd_pstate: failed to set auto_sel, ret: -95
[    0.826207] amd_pstate: Failed to initialize CPU 9: -95
[    0.826241] amd_pstate: failed to set auto_sel, ret: -95
[    0.826243] amd_pstate: Failed to initialize CPU 10: -95
[    0.826280] amd_pstate: failed to set auto_sel, ret: -95
[    0.826281] amd_pstate: Failed to initialize CPU 11: -95
[    0.826322] amd_pstate: failed to set auto_sel, ret: -95
[    0.826323] amd_pstate: Failed to initialize CPU 12: -95
[    0.826363] amd_pstate: failed to set auto_sel, ret: -95
[    0.826364] amd_pstate: Failed to initialize CPU 13: -95
[    0.826404] amd_pstate: failed to set auto_sel, ret: -95
[    0.826406] amd_pstate: Failed to initialize CPU 14: -95
[    0.826441] amd_pstate: failed to set auto_sel, ret: -95
[    0.826443] amd_pstate: Failed to initialize CPU 15: -95

Code:
#  cpupower frequency-info
analyzing CPU 5:
  no or unknown cpufreq driver is active on this CPU
  CPUs which run at the same hardware frequency: Not Available
  CPUs which need to have their frequency coordinated by software: Not Available
  maximum transition latency:  Cannot determine or is not supported.
Not Available
  available cpufreq governors: Not Available
  Unable to determine current policy
  current CPU frequency: Unable to call hardware
  current CPU frequency:  Unable to call to kernel
  boost state support:
    Supported: yes
    Active: yes
    Boost States: 0
    Total States: 3
    Pstate-P0:  3600MHz
    Pstate-P1:  1700MHz
    Pstate-P2:  1400MHz

Code:
# dmesg | grep 'Kernel command line'
[    0.175642] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.17.2-2-pve root=UUID=9f037bcc-2200-4d4f-9495-72424219d87f ro amd_pstate=guided initcall_blacklist=acpi_cpufreq_init amd_pstate.shared_mem=1 acpi_backlight=vendor amd_iommu=on iommu=pt quiet
 
Did you find a solution to your problem? I have exactly the same issue.

CPPC is Enabled in the BIOS. I tried various BIOS settings but the issue persists. It works with Kernel 6.8.
 
I haven't found a solution unfortunately. I have reverted to using `acpi-cpufreq` with the `powersave` scaling governor, but even this way it uses 10-15 more Watts when idle compared to using `pstate`.
 
It's such a frustrating issue, as it worked with kernel 6.8 and it's enabled in the BIOS.
I think it's due to how ASUS declares the CPPC and the kernel got more strict.

Did you try it with Kernel 6.8?
 
Not yet. I have Home Assistant and the NAS on this server, so I need to find some time when I can reboot without affecting others.

My mobo is ASRock tough - not ASUS.
 
I think ASRock is a sister company of ASUS. But nevertheless there may of course be differences.

By the way the installation of 6.8 was easy - but of course needs a reboot.

I temporarily added the repo for Proxmox 8 to a new file /etc/apt/sources.list.d/pve8-temp.list

Code:
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription

Code:
apt update && apt install proxmox-kernel-6.8

proxmox-boot-tool kernel pin 6.8.12-18-pve

reboot
 
Actually, this is only true if I set amd_pstate=active on the kernel boot parameters. Neither passive nor guided are working.
 
Last edited:
Even when selecting active, I can't set the EPP hint to power, even though it is available:

Code:
root@pve0:~# cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences
default performance balance_performance balance_power power

root@pve0:~# echo "power" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_preference
power
tee: /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu10/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu11/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu12/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu13/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu14/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu15/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu1/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu2/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu3/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu4/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu5/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu6/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu7/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu8/cpufreq/energy_performance_preference: Unknown error 524
tee: /sys/devices/system/cpu/cpu9/cpufreq/energy_performance_preference: Unknown error 524
 
Last edited:
Turns out that's how that's how active works. I'm aiming for low power though, and there doesn't seem to be a way to guarantee it this way.

This computer stays on 24x7 and consumes 20-25 more Watts than it used to, with no significant changes to the workloads.
 
In the end, this was mostly a BIOS issue. I have downgraded to the latest non-Beta version 5.60 for my motherboard (ASRock X570M Pro4), and now even on the latest kernel I can get full p-state, including passive mode.
 
  • Like
Reactions: leesteken