craigcabrey / thinkbook-13x-gen4-enablement

Tracking hardware enablement for Linux on the 2024 ThinkBook 13x Gen4
13 stars 0 forks source link

[Arch/Manjaro] Kernel Panic with 6.10.0-3 #8

Open croci opened 4 months ago

croci commented 4 months ago

First let me say that your work is amazing! My laptop essentially only works thanks to you and you saved me so much time. Thanks a lot!

I'm using Manjaro and so far all your fixes have carried through seamlessly. However, ever since the kernel was updated to 6.10.0-3 the laptop starts randomly having kernel panics (blinking caps lock and complete freeze). Did you experience this as well by any chance? I guess it is only a matter of waiting for the next stable kernel.

If this is new to you, please delete this issue. Thanks a lot again for all your help!

craigcabrey commented 4 months ago

I have not. The -3 on your version implies there were several Manjaro release of that kernel. Have you looked at what patches they are applying? Or perhaps try a vanilla release of 6.10?

I've just installed 6.10.1:

Linux thinkboi 6.10.1-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 26 18:52:14 UTC 2024 x86_64 GNU/Linux

So we'll see how it goes.

hxss commented 3 months ago

Hi guys. Same issue on 6.10.1-arch1-1. I'm still not found source of problem and just test some kernel params

craigcabrey commented 3 months ago

It has been completely stable on Fedora, so there either something that Fedora is patching to fix things, or Arch is applying a patch which breaks things.

It's probably the latter. Please try a vanilla kernel.

rcvd commented 3 months ago

I installed the notebook with the 6.10.2-arch1-1.1 kernel on my ArchLinux system using the ALHP Repository with v3 enhanced package builds (https://somegit.dev/ALHP/ALHP.GO). I can confirm that my laptop has been running for over a week without a kernel panic.

Linux version 6.10.2-arch1-1.1 (linux@archlinux) (gcc (GCC) 14.1.1 20240720, GNU ld (GNU Binutils) 2.42.0) #1 SMP PREEMPT_DYNAMIC Mon, 29 Jul 2024 02:23:11 +0000
hxss commented 3 months ago

small updates:

all kernels runs with i8042.nopnp=1 i915.enable_psr=0 nmi_watchdog=0. Also tested with enabled nmi_watchdog - still panics.

rcvd commented 3 months ago

@hxss: Have you tried the ALHP repository?

hxss commented 3 months ago
hxss commented 3 months ago
rcvd commented 3 months ago

@hxss: I built my own 6.9.10 kernel with the sound fix from 6.10 after getting kernel panics again with the latest releases - and this is running rock-stable. Do you want me to put it somewhere for you to download? You can pin it in /etc/pacman.conf so it won't get updated until you explicitly force it.

hxss commented 3 months ago

@rcvd yeah please create instructions in gist. I'll try your method. As I understand you and @craigcabrey works stable on 6.10?

hxss commented 3 months ago
kmasterycsl commented 3 months ago

Here is my experience

Some issues related:

rcvd commented 3 months ago
croci commented 3 months ago

I wouldn't know where to start, but is there a way to pin the causes down and/or open a bug report? If it works in Fedora (but not with the mainline Linux kernels, correct?) then the solution is already out there.

rcvd commented 3 months ago

6.9.10 PKGBUILD with sound patch for ThinkBook 13x gen4: https://github.com/rcvd/thinkbook-arch

craigcabrey commented 3 months ago

You could try installing a Fedora kernel on your Arch/Manjaro install. Definitely more advanced but not impossible. Everything is rock solid on the Fedora side.

You can look through the patches maintained by the Fedora kernel too.

craigcabrey commented 3 months ago

This is the patch that is applied to the fedora 40 kernel (6.10.3 as of this writing): https://src.fedoraproject.org/rpms/kernel/blob/f40/f/patch-6.10-redhat.patch

rcvd commented 3 months ago

It looks like the latest kernel on Archlinux (Linux version 6.10.4-arch2-1) fixed the kernel panics.

hxss commented 3 months ago

in my case 6.10.4-arch2-1 panics too. Also panics:

@rcvd Following your instructions, I downgraded to 6.9.10 with sound patch and its first 24h of stable work. Thank you.

upd: but now left and right speakers are mixed up and after suspend system uses some strange internal quiet speaker(its sounds near left usb) as right speaker and right speaker as left speaker. I didnt get how to apply fedora patch to clear kernel.

allflame commented 3 months ago

For me blacklisting ipu6 module blacklist intel_ipu6 solves the random panic issue (6.10.5-1-default, from Suse Tumbleweed). Camera still doesn't work with libcamera 0.3.1, so not much of an issue at this stage

hxss commented 1 month ago

I can confirm that without intel_ipu6 latest 6.11.0-5-cachyos kernel works stable. Also 6.9.10 that I used before dont have the module.

croci commented 1 month ago

I am on Fedora 41 and panics also occur. @craigcabrey do you experience the same issue?

croci commented 1 week ago

On Fedora 41 installing the RPM Fusion Intel IPU6 drivers fixes the kernel panics without need for blacklisting the module. Not sure if this is applicable to other distros.