
Code: Select all
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driverCode: Select all
acpi-cpufreqCode: Select all
initcall_blacklist=acpi_cpufreq_initI'm using p-state since the beginning. The only way to enable it back then was t odisable all others in the kernel config. Besides there's no reason to keep the other drivers enabled.RIA77 wrote:How to activate amd-pstate ? Should I disable other driver ?
Code: Select all
cpupower frequency-info
analyzing CPU 0:
driver: amd-pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 131 us
hardware limits: 400 MHz - 4.46 GHz
available cpufreq governors: conservative ondemand userspace powersave performance schedutil
current policy: frequency should be within 400 MHz and 4.46 GHz.
The governor "schedutil" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 1.66 GHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
Boost States: 0
Total States: 3
Pstate-P0: 3200MHz
Pstate-P1: 1300MHz
Pstate-P2: 1200MHz

Hello krumpf,krumpf wrote:Did you add amd_pstate=passive in your boot parameters ?
I need to do that since kernel 6.0 or driver won't load. (Used to be amd_pstate.shared_mem=1 on previous kernels)

Thanks!krumpf wrote:Did you add amd_pstate=passive in your boot parameters ?
I need to do that since kernel 6.0 or driver won't load. (Used to be amd_pstate.shared_mem=1 on previous kernels)


We need more information thanI turned on amd pstate
andI turned it on
What exact steps have you taken since your initial post?I followed the Ryzen (wiki page)

Code: Select all
cpupower frequency-infoCode: Select all
zgrep PSTATE /proc/config.gzCode: Select all
zgrep PSTATE /proc/config.gz
gzip: /proc/config.gz: No such file or directory
Code: Select all
grep -i pstate /boot/config-$(uname -r)Code: Select all
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driverCode: Select all
kernel 5.xx
GRUB_CMDLINE_LINUX="amd_pstate.shared_mem=1"
kernel 6.xx
GRUB_CMDLINE_LINUX="amd_pstate=passive"Code: Select all
GRUB_CMDLINE_LINUX="amd_pstate=passive"This is the key for zen2, zen3 should work out of the box. Regarding the wiki, you can do it too.RIA77 wrote:Thank you. This is the key for Gentoo and other distros as well
Thank you very much!Code: Select all
GRUB_CMDLINE_LINUX="amd_pstate=passive"
Can someone add Ryzen 5500u in Wiki as supported CPU with information regarding additional settings ?
I created a whole account on the forums, for the first time after using gentoo for over a decade, just to say THANK YOU. Jesus, I've been fighting this for a bit now and this was the answer. I was using the old line and it wasn't doing anything.krumpf wrote:Did you add amd_pstate=passive in your boot parameters ?
I need to do that since kernel 6.0 or driver won't load. (Used to be amd_pstate.shared_mem=1 on previous kernels)
Code: Select all
CONFIG_X86_AMD_PSTATE_DEFAULT_MODE
│ The value set has the following meanings:
│ 1 -> Disabled
│ 2 -> Passive
│ 3 -> Active (EPP)
│ 4 -> Guided
Code: Select all
LANG="C" cpupower frequency-info
analyzing CPU 7:
driver: amd-pstate
CPUs which run at the same hardware frequency: 7
CPUs which need to have their frequency coordinated by software: 7
maximum transition latency: 20.0 us
hardware limits: 550 MHz - 4.95 GHz
available cpufreq governors: conservative ondemand userspace powersave performance schedutil
current policy: frequency should be within 550 MHz and 4.95 GHz.
The governor "conservative" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 1.04 GHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
AMD PSTATE Highest Performance: 166. Maximum Frequency: 4.95 GHz.
AMD PSTATE Nominal Performance: 124. Nominal Frequency: 3.70 GHz.
AMD PSTATE Lowest Non-linear Performance: 58. Lowest Non-linear Frequency: 1.73 GHz.
AMD PSTATE Lowest Performance: 19. Lowest Frequency: 550 MHzAs far as I can tell, those kernel settings have never worked. So the only way to actually change amd_pstate mode is using the kernel command line.krumpf wrote:Since kernel 6.6 I think, there's a new option :
Power management and ACPI options > CPU Frequency scaling > AMD Processor P-State default modeCode: Select all
CONFIG_X86_AMD_PSTATE_DEFAULT_MODE │ The value set has the following meanings: │ 1 -> Disabled │ 2 -> Passive │ 3 -> Active (EPP) │ 4 -> Guided
This confused me to no end - I actually didn't even have a powersave governor compiled into the kernel, and yet it was one of the available ones.logrusx wrote:I now remember playing with it. In active mode it will only use powersave and performance governors and will internally scale frequencies. In passive it'll only use performance governors and in guided it'll take hints from them.