How to enable amd_pstate for AMD Zen 2+ and Linux Kernel 5.17 or 5.18 only
- Edit
/etc/mkinitcpio.conf
to add
MODULES=(amd_pstate)
-
sudo mkinitcpio -P linux
-
Edit
/etc/default/grub
to add it inGRUB_CMDLINE_LINUX_DEFAULT
:
amd_pstate.shared_mem=1
-
sudo update-grub
-
reboot.
-
Enable CPPC in BIOS setting.
It works for me in Linux Kernel 5.18:
❯ sudo cpupower frequency-info
analyzing CPU 0:
driver: amd-pstate
❯ modinfo amd_pstate
filename: /lib/modules/5.18.1-1-MANJARO/kernel/drivers/cpufreq/amd_pstate.ko.xz
license: GPL
description: AMD Processor P-state Frequency Driver
author: Huang Rui <ray.huang@amd.com>
srcversion: 39739A8C79AAB14F2C15670
depends:
retpoline: Y
intree: Y
name: amd_pstate
vermagic: 5.18.1-1-MANJARO SMP preempt mod_unload