Public bug reported:

Lenovo Legion Slim 5 16AHP9: ACPI hotplug removes NVIDIA GPU during
battery suspend/resume, causing kernel protection fault

Hardware
- Lenovo Legion Slim 5 16AHP9, product code 83DH
- AMD Phoenix platform
- NVIDIA GeForce RTX 4070 Laptop GPU (`0000:01:00.0`)
- GPU parent PCIe port: `0000:00:01.1` (ACPI `GPP0`)

Software
- Ubuntu 26.04.1 LTS
- Kernel: `7.0.0-43-generic`
- NVIDIA open driver: `595.99.02`
- BIOS: `NRCN27WW` (also reproduced with `NRCN24WW`)
- Suspend mode: `s2idle`
- BIOS graphics mode: Dedicated GPU

Description

Battery-powered suspend/resume repeatedly causes a black screen and
unresponsive keyboard, requiring a forced shutdown. AC-powered
suspend/resume succeeded in an earlier test.

During resume, the ACPI hotplug workqueue attempts to remove the NVIDIA
PCI device while its graphics driver is active. This produces DRM
cleanup warnings, followed by a general protection fault and a recursive
fault.

Reproduction

1. Boot Ubuntu in Dedicated GPU mode.
2. Disconnect AC power.
3. Execute `systemctl suspend`.
4. Attempt to resume.

**Observed results**

The kernel log records:

```text
PM: suspend exit
[nvidia-drm] Removing device
Workqueue: kacpi_hotplug acpi_hotplug_work_fn
acpiphp_disable_and_eject_slot
nv_pci_remove_helper [nvidia]
NVRM: Attempting to remove device 0000:01:00.0 with non-zero usage count!
Oops: general protection fault
RIP: drm_framebuffer_cleanup
Fixing recursive fault but reboot is needed!
```

Workarounds attempted

- Updated Lenovo BIOS from NRCN24WW to NRCN27WW: issue persists.
- Disabled ACPI GPP0 wakeup (`/proc/acpi/wakeup`): issue persists.
- Dedicated GPU mode prevents immediate freezing when disconnecting AC power 
but does not prevent battery suspend/resume failure.
- AC-powered suspend/resume passed one test.

Potentially related upstream work

`[PATCH RESEND v3] pci: Add broken-GPE quirk for some Lenovo Legions
with Nvidia GPUs` (October 21, 2026).

The patch addresses erroneous firmware wakeup events on the NVIDIA GPU's
parent PCIe port. It is not established whether it also addresses this
ACPI hotplug removal failure.

Expected behavior

The system should resume from suspend without unexpectedly removing the
active NVIDIA graphics device or crashing the kernel.

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: linux-image-7.0.0-43-generic 7.0.0-43.43
ProcVersionSignature: Ubuntu 7.0.0-43.43-generic 7.0.14
Uname: Linux 7.0.0-43-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC2:  rehan      5101 F.... wireplumber
 /dev/snd/controlC0:  rehan      5101 F.... wireplumber
 /dev/snd/controlC1:  rehan      5101 F.... wireplumber
 /dev/snd/seq:        rehan      5097 F.... pipewire
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Sat Nov  7 20:49:17 2026
InstallationDate: Installed on 2024-12-15 (692 days ago)
InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 
(20240827.1)
MachineType: LENOVO 83DH
ProcFB: 0 nvidia-drmdrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-7.0.0-43-generic 
root=UUID=8c8760f7-57f2-4bda-8783-35c3a61cb20b ro quiet splash 
crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/13/2025
dmi.bios.release: 1.27
dmi.bios.vendor: LENOVO
dmi.bios.version: NRCN27WW
dmi.board.asset.tag: NO Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0T76463 WIN
dmi.chassis.asset.tag: NO Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Legion Slim 5 16AHP9
dmi.ec.firmware.release: 1.27
dmi.modalias: 
dmi:bvnLENOVO:bvrNRCN27WW:bd04/13/2025:br1.27:efr1.27:svnLENOVO:pn83DH:pvrLegionSlim516AHP9:rvnLENOVO:rnLNVNB161216:rvrSDK0T76463WIN:cvnLENOVO:ct10:cvrLegionSlim516AHP9:skuLENOVO_MT_83DH_BU_idea_FM_LegionSlim516AHP9:pfaLegionSlim516AHP9:
dmi.product.family: Legion Slim 5 16AHP9
dmi.product.name: 83DH
dmi.product.sku: LENOVO_MT_83DH_BU_idea_FM_Legion Slim 5 16AHP9
dmi.product.version: Legion Slim 5 16AHP9
dmi.sys.vendor: LENOVO

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173668

Title:
  Lenovo Legion Slim 5 16AHP9: ACPI hotplug removes NVIDIA GPU during
  battery suspend/resume, causing kernel crash

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2173668/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to