You are not logged in.
I have a amd ryzen 6800u, which scales from 0.4 to 4.77 Ghz. the base freq is 2.7 Ghz.
Boosting is supported with the amd_pstate driver
The amd_pstate driver worked (and survived reboots) until after a reboot, i realised that it had changed the scaling driver to acpi_cpufreq, which doesn't seem able to boost the CPU (more below) and sets the BIOS limit from 0.4 to 1.6 Ghz.
I have tried blacklisting it and explicitly load the amd_pstate via mkinitcpio unsuccesfully.
lsmod does not show either of the drivers.
cpupower frequency-info:
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: Cannot determine or is not supported.
hardware limits: 1.60 GHz - 4.77 GHz
available frequency steps: 2.70 GHz, 1.80 GHz, 1.60 GHz
available cpufreq governors: conservative ondemand userspace powersave performance schedutil
current policy: frequency should be within 1.60 GHz and 2.70 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 1.60 GHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: no
lsmod:
Module Size Used by
ccm 20480 6
snd_seq_dummy 16384 0
snd_hrtimer 16384 1
snd_seq 86016 7 snd_seq_dummy
snd_seq_device 16384 1 snd_seq
msr 16384 0
nls_ascii 16384 2
joydev 28672 0
snd_soc_acp6x_mach 24576 4
snd_soc_dmic 16384 1
snd_acp6x_pdm_dma 16384 1
snd_sof_amd_rembrandt 16384 0
snd_sof_amd_renoir 16384 0
snd_sof_amd_acp 49152 2 snd_sof_amd_rembrandt,snd_sof_amd_renoir
snd_sof_pci 24576 2 snd_sof_amd_rembrandt,snd_sof_amd_renoir
snd_hda_codec_realtek 167936 1
snd_sof 253952 2 snd_sof_amd_acp,snd_sof_pci
mt7921e 24576 0
hid_sensor_accel_3d 20480 0
snd_hda_codec_generic 98304 1 snd_hda_codec_realtek
intel_rapl_msr 20480 0
mt7921_common 90112 1 mt7921e
hid_sensor_trigger 20480 2 hid_sensor_accel_3d
snd_sof_utils 20480 1 snd_sof
intel_rapl_common 32768 1 intel_rapl_msr
ledtrig_audio 16384 1 snd_hda_codec_generic
snd_hda_codec_hdmi 73728 1
mt76_connac_lib 73728 2 mt7921e,mt7921_common
industrialio_triggered_buffer 16384 1 hid_sensor_trigger
snd_hda_intel 45056 9
snd_soc_core 319488 4 snd_soc_acp6x_mach,snd_sof,snd_acp6x_pdm_dma,snd_soc_dmic
kfifo_buf 16384 1 industrialio_triggered_buffer
mt76 86016 3 mt7921e,mt7921_common,mt76_connac_lib
snd_intel_dspcfg 36864 2 snd_hda_intel,snd_sof
hid_sensor_iio_common 24576 2 hid_sensor_trigger,hid_sensor_accel_3d
snd_compress 28672 1 snd_soc_core
industrialio 106496 4 industrialio_triggered_buffer,hid_sensor_trigger,kfifo_buf,hid_sensor_accel_3d
snd_intel_sdw_acpi 20480 1 snd_intel_dspcfg
ac97_bus 16384 1 snd_soc_core
hid_sensor_custom 28672 0
mac80211 806912 3 mt76,mt7921_common,mt76_connac_lib
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_hda_codec 167936 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_pci_ps 20480 0
snd_rpl_pci_acp6x 20480 0
uvcvideo 122880 8
snd_hda_core 102400 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_acp_pci 16384 0
btusb 65536 0
snd_pci_acp6x 20480 0
btrtl 28672 1 btusb
videobuf2_vmalloc 20480 1 uvcvideo
snd_hwdep 16384 1 snd_hda_codec
snd_pci_acp5x 20480 0
videobuf2_memops 20480 1 videobuf2_vmalloc
snd_pcm 151552 13 snd_sof_amd_acp,snd_hda_codec_hdmi,snd_pci_acp6x,snd_hda_intel,snd_hda_codec,snd_sof,snd_acp6x_pdm_dma,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pci_ps,snd_pcm_dmaengine
btbcm 24576 1 btusb
snd_rn_pci_acp3x 20480 0
hid_multitouch 32768 0
videobuf2_v4l2 36864 1 uvcvideo
cfg80211 487424 4 mt76,mac80211,mt7921_common,mt76_connac_lib
btintel 45056 1 btusb
hid_sensor_hub 28672 4 hid_sensor_trigger,hid_sensor_iio_common,hid_sensor_accel_3d,hid_sensor_custom
snd_timer 40960 3 snd_seq,snd_hrtimer,snd_pcm
snd_acp_config 16384 4 snd_rn_pci_acp3x,snd_sof_amd_rembrandt,snd_acp_pci,snd_sof_amd_renoir
videobuf2_common 61440 4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
ideapad_laptop 32768 0
sp5100_tco 20480 0
wacom 131072 0
btmtk 16384 1 btusb
snd_soc_acpi 16384 2 snd_sof_amd_acp,snd_acp_config
edac_mce_amd 36864 0
ucsi_acpi 16384 0
kvm_amd 143360 0
bluetooth 937984 6 btrtl,btmtk,btintel,btbcm,btusb
kvm 716800 1 kvm_amd
videodev 262144 7 videobuf2_v4l2,uvcvideo,videobuf2_common
irqbypass 16384 1 kvm
crct10dif_pclmul 16384 1
ecdh_generic 16384 1 bluetooth
crc32_pclmul 16384 0
mc 77824 8 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
polyval_clmulni 16384 0
polyval_generic 16384 1 polyval_clmulni
ecc 40960 1 ecdh_generic
usbhid 65536 1 wacom
hid_generic 16384 0
ghash_clmulni_intel 16384 0
sha512_ssse3 49152 0
aesni_intel 393216 4
crypto_simd 16384 1 aesni_intel
cryptd 24576 2 crypto_simd,ghash_clmulni_intel
rapl 16384 0
pcspkr 16384 0
wmi_bmof 16384 0
efi_pstore 16384 0
typec_ucsi 36864 1 ucsi_acpi
sparse_keymap 16384 1 ideapad_laptop
thunderbolt 360448 0
i2c_piix4 28672 0
k10temp 16384 0
snd 114688 41 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
ccp 110592 1 kvm_amd
libarc4 16384 1 mac80211
snd_pci_acp3x 20480 0
soundcore 16384 1 snd
platform_profile 16384 1 ideapad_laptop
typec 90112 1 typec_ucsi
i2c_hid_acpi 16384 0
i2c_hid 32768 1 i2c_hid_acpi
hid 155648 6 i2c_hid,wacom,usbhid,hid_multitouch,hid_sensor_hub,hid_generic
amd_pmc 28672 0
acpi_tad 20480 0
input_leds 16384 0
mac_hid 16384 0
sch_fq_codel 20480 1
crypto_user 20480 0
dmi_sysfs 20480 0
ip_tables 32768 0
x_tables 57344 1 ip_tables
autofs4 49152 2
nvme 49152 4
sdhci_pci 73728 0
serio_raw 20480 0
nvme_core 151552 6 nvme
xhci_pci 20480 0
cqhci 36864 1 sdhci_pci
xhci_pci_renesas 20480 1 xhci_pci
sdhci 81920 1 sdhci_pci
nvme_common 24576 1 nvme_core
amdgpu 9302016 34
drm_ttm_helper 16384 1 amdgpu
ttm 86016 2 amdgpu,drm_ttm_helper
video 61440 2 amdgpu,ideapad_laptop
wmi 36864 3 video,wmi_bmof,ideapad_laptop
iommu_v2 20480 1 amdgpu
gpu_sched 36864 1 amdgpu
i2c_algo_bit 16384 1 amdgpu
drm_buddy 20480 1 amdgpu
drm_display_helper 176128 1 amdgpu
drm_kms_helper 204800 4 drm_display_helper,amdgpu
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 581632 23 gpu_sched,drm_kms_helper,drm_display_helper,drm_buddy,amdgpu,drm_ttm_helper,ttm
cec 77824 1 drm_display_helper
rc_core 65536 1 cec
modinfo amd_pstate:
name: amd_pstate
filename: (builtin)
license: GPL
file: drivers/cpufreq/amd_pstate
description: AMD Processor P-state Frequency Driver
author: Huang Rui <ray.huang@amd.com>
rmmod acpi-cpufreq:
rmmod: ERROR: Module acpi_cpufreq is builtin.
Last edited by jl2 (2022-12-27 09:38:36)
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline
Add initcall_blacklist=acpi_cpufreq to your kernel parameters
Offline
Didn't help, still running on acpi-cpufreq
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline
it shouldn't, but maybe the initcall does not convert hyphens and underscores did you try initcall_blacklist=acpi-cpufreq instead as well?
Offline
Yes, i also did that, but no change in the result.
Should I try it on a different kernel(I'm running linux-xanmod)?
Also, why is neither the amd_pstate nor the acpi_cpufreq driver shown in Lsmod?
Last edited by jl2 (2022-12-17 07:35:25)
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline
Built-ins are directly built into the kernel and not loadable anymore thus won't show in lsmod. Acpi-cpufreq shouldn't be a built-in on a standard kernel, so yes test a standard kernel
Last edited by V1del (2022-12-18 13:02:20)
Offline
if you did not yet find the solution: With Kernel 6.1 the behaviour changed. You now need to set
amd-pstate=passive
as boot parameter to be able to load it
Last edited by BS86 (2022-12-20 17:17:56)
Offline
Here is another with same topic:
https://bbs.archlinux.org/viewtopic.php?id=275036&p=2
Offline
i sucessfully blacklisted acpi_cpufreq, amd_pstate is loaded but will not take over the cpu frequency scaling.
cpupower:
analyzing CPU 0:
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: no
rmmod acpi_cpufreq:
rmmod: ERROR: Module acpi_cpufreq is not currently loaded
rmmod amd_pstate:
rmmod: ERROR: Module amd_pstate is builtin.
also, will a module, which is built in to the initramfs be shown with lsmod?
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline
If it's a loadable module yes it will show even if included in the initramfs, not sure about the remaining issue, sorry
Offline
i sucessfully blacklisted acpi_cpufreq, amd_pstate is loaded but will not take over the cpu frequency scaling.
You don't need to blacklist anything.
Read my post above, there was a change with 6.1:
if you did not yet find the solution: With Kernel 6.1 the behaviour changed. You now need to set
amd-pstate=passive
as boot parameter to be able to load it
Last edited by BS86 (2022-12-23 11:29:03)
Offline
The kernel parameter did the trick, thanks.
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline