[Testing Update] 2022-07-13 - Kernels, Pipewire, Xorg-Server, XWayland, Gnome

I can confirm

$ zgrep PSTATE /proc/config.gz
CONFIG_X86_INTEL_PSTATE=y
CONFIG_X86_AMD_PSTATE=m

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
acpi-cpufreq

$ sudo modprobe amd_pstate
modprobe: ERROR: could not insert 'amd_pstate': No such device

$ uname -r
5.18.11-1-MANJARO

Is there reason Linux Kernel 5.18.11 disabled it by default?

Your AMD CPU might not support PSTATE. See also here: How To Use The New AMD P-State Driver With Linux 5.17 - Phoronix

1 Like

We have used it before but after 5.18.11 it seems to be gone. Due to requirement changes or an error? Beats me :person_shrugging:

I can confirm it doesn’t work on my side either.

I have the module in mkinitcpio config file MODULES=(amd_pstate), I have boot parameters too in my grub config file amd_pstate.shared_mem=1 it used to work good.

//EDIT: I tried adding boot parameter initcall_blacklist=acpi_cpufreq_init but result is you have no scaling driver at all.

all cpu AMD are supporting CPPC ,
there is a change in 5.18.11
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/arch/x86/kernel/acpi/cppc.c?id=v5.18.11&id2=v5.18.10

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/drivers/acpi/cppc_acpi.c?id=v5.18.11&id2=v5.18.10

this broke for all CPU Zen3 desktop series

Solved:
Sorry, only now have time again.
I had to change two incomplete entries ,in the mkinitcpio.config, to this one.
FILES=“/crypto_keyfile.bin”
HOOKS=“base udev autodetect modconf block keyboard keymap encrypt filesystems”

Then mkinitcpio -P and afterwards a sudo update-grub.
Booting works again. I was able to install all updates.
Thanks to philm, your tip accelerated the troubleshooting enormously.

So you have an encrypted container where your files are but you include the key into the unencrypted boot partition? :crazy_face:

What strange is for me:
I have a AMD ZEN 2 CPU and lscpu | grep cppc does not showing up… it’s set to Auto on my Mainboard.
amd_pstate works anyway :slight_smile:
I know this cpu is Supported but strange that cppc is not there if I grep or lookup my cpu features?…

Maybe kernel config has unset this module?
5.18.10 btw.

It uses the Shared Memory method, then. Same for my 5600X.
CPUs with CPPC (mostly newer mobile Ryzen CPUs) don’t require this.

Hence why it works.

regression is in 5.8.11
https://lore.kernel.org/all/3559249.JlDtxWtqDm@natalenko.name/

2 Likes

maybe we could test it be reverting this patches and see if it work again?

Yes, this is called hard disk encryption.
And that is what manjaro has done with the automatic encryption during installation.

But let’s hear it. I am always open for good suggestions.
So how is it better???

Check how many slots of your encrypted partition are occupied - with cryptsetup luksDump %partition%. It should have 2 slots at least - one for your passphrase, and another one is /crypto_keyfile.bin. In such case you should comment the latter out in /etc/mkinitcpio.conf and regenerate initramfs with sudo mkinitcpio -P.
This is only needed if your /boot is a separate UNencrypted partition.

1 Like