вторник

[Bug 2179394] Re: [Lenovo LOQ 15IRX10 / 83JE] AC unplug triggers pciehp surprise removal & NVRM deadlock on shutdown (D3cold)

** Tags added: kernel-daily-bug -- You received this bug notification because you are subscribed to linux in Ubuntu. Matching subscriptions: Bgg, Bmail, Nb https://bugs.launchpad.net/bugs/2179394 Title: [Lenovo LOQ 15IRX10 / 83JE] AC unplug triggers pciehp surprise removal & NVRM deadlock on shutdown (D3cold) Status in linux package in Ubuntu: New Bug description: On a Lenovo LOQ 15IRX10 (product: 83JE, BIOS: R3CN44WW) running Ubuntu 26.04.1 LTS (kernel 7.0.0-44-generic, nvidia-driver-595-open 595.99.02-0ubuntu0.26.04.1) in hybrid graphics mode (Intel UHD [8086:468b] + NVIDIA RTX 5050 Mobile [0000:01:00.0]), unplugging the AC adapter while the dGPU is in D3cold triggers a kernel surprise- removal deadlock that hangs systemd-shutdown indefinitely. Steps to reproduce: 1. Boot into Ubuntu Wayland in default hybrid mode (NVreg_DynamicPowerManagement=0x02). 2. Have desktop apps/browser running (holding /dev/nvidiactl or /dev/nvidia*). 3. Unplug the AC charger. 4. Attempt to shut down or reboot. Kernel log evidence (journalctl -k): - nvidia 0000:01:00.0: Enabling HDA controller - [drm] [nvidia-drm] [GPU ID 0x00000100] Removing device - [drm] [nvidia-drm] [GPU ID 0x00000100] Unloading driver - NVRM: Attempting to remove device 0000:01:00.0 with non-zero usage count! Root cause & verified workaround: When AC is unplugged while the dGPU is in D3cold, the EC/PCIe root port (0000:00:01.0:pcie004) drops link momentarily and pciehp treats the soldered internal dGPU as physically hot-unplugged. Because user-space still holds open file descriptors on the GPU, nv_pci_remove() deadlocks. Setting d3cold_allowed=0 on 0000:01:00.0 and 0000:00:01.0, unbinding pciehp from 0000:00:01.0:pcie004, and using NVreg_DynamicPowerManagement=0x01 (D3hot) completely prevents the surprise removal and shutdown hang. Additional reproduction / fix documentation: https://github.com/aVan1ty/lenovo-loq-linux-power ProblemType: Bug DistroRelease: Ubuntu 26.04 Package: linux-image-7.0.0-44-generic 7.0.0-44.44 ProcVersionSignature: Ubuntu 7.0.0-44.44-generic 7.0.14 Uname: Linux 7.0.0-44-generic x86_64 ApportVersion: 2.34.1-0ubuntu0.1 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: r4scal 4083 F.... pipewire r4scal 4093 F.... wireplumber /dev/snd/pcmC0D0p: r4scal 4083 F...m pipewire /dev/snd/seq: r4scal 4083 F.... pipewire CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Wed Dec 2 01:39:06 2026 InstallationDate: Installed on 2026-07-04 (150 days ago) InstallationMedia: Ubuntu 26.04 "Resolute Raccoon" - Release amd64 (20260423.1) MachineType: LENOVO 83JE ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-7.0.0-44-generic root=UUID=5e5628d5-b3fa-4e67-a94d-a00eb4547724 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: 01/15/2025 dmi.bios.release: 1.44 dmi.bios.vendor: LENOVO dmi.bios.version: R3CN44WW dmi.board.asset.tag: NO Asset Tag dmi.board.name: LNVNB161216 dmi.board.vendor: LENOVO dmi.board.version: SDK0T76493 WIN dmi.chassis.asset.tag: NO Asset Tag dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: LOQ 15IRX10 dmi.ec.firmware.release: 1.44 dmi.modalias: dmi:bvnLENOVO:bvrR3CN44WW:bd01/15/2025:br1.44:efr1.44:svnLENOVO:pn83JE:pvrLOQ15IRX10:rvnLENOVO:rnLNVNB161216:rvrSDK0T76493WIN:cvnLENOVO:ct10:cvrLOQ15IRX10:skuLENOVO_MT_83JE_BU_idea_FM_LOQ15IRX10:pfaLOQ15IRX10: dmi.product.family: LOQ 15IRX10 dmi.product.name: 83JE dmi.product.sku: LENOVO_MT_83JE_BU_idea_FM_LOQ 15IRX10 dmi.product.version: LOQ 15IRX10 dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2179394/+subscriptions

Комментариев нет:

Отправить комментарий