The exact problem is that an IRQ/ACPI workaround is not needed anymore on modern Zen platforms, and it (the workaround) now breaks compatibility. It's already in linux master, and will be released for v6.0
Commit message of the fix:
commit 9946e39fe8d0a5da9eb947d8e40a7ef204ba016e
Author: Chuanhong Guo <[email protected]>
ACPI: resource: skip IRQ override on AMD Zen platforms
IRQ override isn't needed on modern AMD Zen systems.
There's an active low keyboard IRQ on AMD Ryzen 6000 and it will stay
this way on newer platforms. This IRQ override breaks keyboards for
almost all Ryzen 6000 laptops currently on the market.
Skip this IRQ override for all AMD Zen platforms because this IRQ
override is supposed to be a workaround for buggy ACPI DSDT and we can't
have a long list of all future AMD CPUs/Laptops in the kernel code.
If a device with buggy ACPI DSDT shows up, a separated list containing
just them should be created.But it's not CPU, it's Lenovo. Lenovo has terrible firmware team.
You can read more about this in my blog
https://127001.me/post/ten-years-of-thinkpadding/#_the_ugly_...
The reason I'm asking, according to a Lenovo talk from DebConf22 [0], the guy said it takes some time for patches to reach upstream, but with Fedora and Ubuntu they have some connections to shortcut some patches before they reach upstream.
Sad news is, according to my test, the latest kernel Fedora 36 offered, which is kernel-5.18.16-200.fc36.x86_64, does not come with the keyboard (IRQ override) fix.
Another thing is the mce errors, or more specifically, errors similar to:
[ 332.990256] mce: [Hardware Error]: Machine check events logged
[ 332.990267] [Hardware Error]: Corrected error, no action required.
[ 332.990276] [Hardware Error]: CPU:0 (19:44:1) MC15_STATUS[Over|CE|MiscV|AddrV|-|-|SyndV|CECC|-|-|-]: 0xdc204000000c011b
[ 332.990299] [Hardware Error]: Error Addr: 0x00000000efcf8bc0
[ 332.990304] [Hardware Error]: IPID: 0x0000009600050f00, Syndrome: 0x000001ff0a240701
[ 332.990312] [Hardware Error]: Unified Memory Controller Ext. Error Code: 12
[ 332.990316] [Hardware Error]: cache level: L3/GEN, tx: GEN, mem-tx: RD
It was never fixed by both patched and unpatched kernel.Of course, those were just the most annoying two. There are many smaller problems such as: 1) Screen won't turn off after timeout if an external display is plugged in via HDMI, 2) Linux S2 (Suspend-to-RAM) never wakes up, 3) Builtin mic don't work, 4) Fingerprint scanner crashes when you put your finger on.
I guess it takes time for those engineers in Lenovo to address those problems, and Lenovo is not a Linux-friendly company (they are more like a Linux-meh company).
Framework on the other hand, cares about Linux more. Sadly they don't operate in my country :(
I did have plenty of freezes on my old 2500u machine though. Was very disappointed. Thankfully, those days are long gone
Plenty of people have new Ryzen laptops that work just fine.
The machine that I'm currently using comes with a Ryzen 6800H CPU and LPDDR5-6400 RAMs, made by Lenovo. On Linux, the builtin keyboard don't work because of IRQ problems (See [1], a fix is also available at [2]), and it constantly spams out "mce: [Hardware Error]: Machine check events logged" messages.
[1]: https://bbs.archlinux.org/viewtopic.php?id=277260
[2]: https://lore.kernel.org/all/20220712020058.90374-1-gch981213...
If you read the code in [2], the patch basically disables IRQ override for every new Ryzen machines (`boot_cpu_has(X86_FEATURE_ZEN)`). Based on that, I assume every new Ryzen CPU has the same problem(???)
Edit: wait... blaming it on the CPU might be unjust, it's more like a kernel adoption problem.
Luckily, compiling Linux kernel with 16 threads is not really too big of a struggle, you can just apply the patch manually every time the kernel updates :-) :-| :-(