Panic on suspend/resume with Lenovo IdeaPad 330-15IKB 81DE on Fedora (39 and 40)

Summary:
I’m experiencing kernel panics when trying to suspend/resume my Lenovo IdeaPad 330-15IKB 81DE laptop running Fedora 39 and 40 (6.8.6-200.fc39.x86_64 and latest kernel). The issue seems to persist across desktop environments (GNOME and KDE) and clean installs. (NO NVIDIA)

Detailed Steps:

  1. System Specs: Lenovo IdeaPad 330-15IKB 81DE, Intel Core i3-8130U, 12GB RAM
  2. Originally on Fedora 39 with GNOME desktop, suspending caused a kernel panic where nothing worked except holding the power button.
  3. Tried switching from s2idle to deep idle power states, which temporarily resolved the issue, but it would come back intermittently.
  4. Migrated to the KDE desktop environment on Fedora 39 using a script. This resolved the suspend/resume issue for around 2 months.
  5. Around 2 weeks ago, the kernel panic on suspend/resume returned even on the KDE desktop.
  6. Tried a clean install of Fedora 40 Beta, but the same issue persists.
  7. Included the most recent kernel panic log from journalctl -x -b -1 showing the scheduling while atomic error.

journalctl -x -b -1
Apr 19 17:47:40 samom kernel: BUG: scheduling while atomic: kworker 3:1/4008/0x00000000
Apr 19 17:47:40 samom kernel: Modules linked in: uinput rfcomm snd_seq_dummy snd_hrtimer nf_conntrack_netbios_ns nf_conntrack_broadcast nft_fib_>
Apr 19 17:47:40 samom kernel: intel_uncore_frequency_common ac97_bus intel_pmc_core_pltdrv snd_ctl_led ledtrig_audio snd_hda_codec_realtek snd_>
Apr 19 17:47:40 samom kernel: sha1_ssse3 realtek cec i2c_hid_acpi i2c_hid video wmi serio_raw ip6_tables ip_tables fuse i2c_dev
Apr 19 17:47:40 samom kernel: CPU: 3 PID: 4008 Comm: kworker/3:1 Tainted: G W OE 6.8.6-200.fc39.x86_64 #1
Apr 19 17:47:40 samom kernel: Hardware name: LENOVO 81DE/LNVNB161216, BIOS 8TCN61WW 05/19/2021
Apr 19 17:47:40 samom kernel: Workqueue: 0x0 (events)
Apr 19 17:47:40 samom kernel: Call Trace:
Apr 19 17:47:40 samom kernel:
Apr 19 17:47:40 samom kernel: dump_stack_lvl+0x64/0x80
Apr 19 17:47:40 samom kernel: __schedule_bug+0x56/0x70
Apr 19 17:47:40 samom kernel: __schedule+0x10fa/0x1530
Apr 19 17:47:40 samom kernel: ? ret_from_fork_asm+0x1b/0x30
Apr 19 17:47:40 samom kernel: ? dump_stack_lvl+0x69/0x80
Apr 19 17:47:40 samom kernel: schedule+0x32/0xd0
Apr 19 17:47:40 samom kernel: worker_thread+0x19d/0x3a0
Apr 19 17:47:40 samom kernel: ? __pfx_worker_thread+0x10/0x10

I’m at a loss on what to try next. This seems like a hardware/kernel issue, but I’m not sure if it’s specific to my laptop model or a broader kernel regression. Any insights or suggestions would be much appreciated.

I have had many problems on this particular laptop, from microphone issues to this…I am about to conclude that this laptop is not made for having gnu/linux

Use the LHDB to see if other users have linux working on the same model with a search like site:https://linux-hardware.org LENOVO 81DE/LNVNB161216.

You should update vendor firmware so you aren’t wasting time on solved problems. Lenovo participates in the Linux Vendor Firmware Service so you should be able to install updates using Fedora.