четверг

[Bug 2178461] Re: [SRU] Please backport "PCI: Skip Target Speed quirk on clamped ports with no link" (ff8a969f7dc8) – boot delayed by empty PCIe root ports

Tested 7.0.0-45.45-generic (from ppa:canonical-kernel-team/proposed2) on the affected Lenovo Legion 5 15IRX10 (83LY, BIOS QNCN38WW), Secure Boot enabled, nvidia 595-open. The fix works. 1. journalctl -k -b | grep -c 'retraining failed' 7.0.0-44.44: 3 7.0.0-45.45: 0 2. systemd-analyze 7.0.0-44.44: 5.344s (firmware) + 1.261s (loader) + 3.505s (kernel) + 1.658s (initrd) + 5.385s (userspace) = 17.156s 7.0.0-45.45: 5.620s (firmware) + 1.261s (loader) + 0.556s (kernel) + 1.637s (initrd) + 4.674s (userspace) = 13.750s Kernel phase: 3.5s -> 0.56s. 3. Devices behind root ports with an established link enumerate and run at full link speed/width (LnkSta = LnkCap): 02:00.0 NVMe (Samsung PM9C1a) 16GT/s x4 14:00.0 NVMe (SanDisk Extreme) 16GT/s x4 0e:00.0 Wi-Fi (MediaTek MT7925) 5GT/s x1 08:00.0 Ethernet (RTL8111) 2.5GT/s x1 No regressions seen (NVIDIA, Wi-Fi, Ethernet, both NVMe drives working). Thanks! -- You received this bug notification because you are subscribed to linux in Ubuntu. Matching subscriptions: Bgg, Bmail, Nb https://bugs.launchpad.net/bugs/2178461 Title: [SRU] Please backport "PCI: Skip Target Speed quirk on clamped ports with no link" (ff8a969f7dc8) – boot delayed by empty PCIe root ports Status in linux package in Ubuntu: Fix Committed Status in linux source package in Resolute: Fix Committed Bug description: [Impact] Since upstream commit 72780f796468 ("PCI: Always lift 2.5GT/s restriction in PCIe failed link retraining") the PCIe Target Speed quirk lifts the firmware-imposed 2.5GT/s restriction on every downstream port, even when nothing is connected. On empty ports the retraining that follows can never complete, so every attempt runs into PCIE_LINK_RETRAIN_TIMEOUT_MS. This adds a fixed delay to every boot. On my Lenovo Legion 5 15IRX10 (83LY, BIOS QNCN38WW, Intel Raptor Lake PCH) three empty root ports hit this on every boot with 7.0.0-44-generic: pci 0000:00:1b.0: [8086:7a40] PCIe Root Port #17 pci 0000:00:1b.0: removing 2.5GT/s downstream link speed restriction pci 0000:00:1b.0: retraining failed pci 0000:00:1c.0: [8086:7a38] PCIe Root Port #1 pci 0000:00:1c.0: removing 2.5GT/s downstream link speed restriction pci 0000:00:1c.0: retraining failed pci 0000:00:1d.0: [8086:7a30] PCIe Root Port #9 pci 0000:00:1d.0: removing 2.5GT/s downstream link speed restriction pci 0000:00:1d.0: retraining failed systemd-analyze: Startup finished in 5.404s (firmware) + 1.259s (loader) + 3.529s (kernel) + 1.965s (initrd) + 4.770s (userspace) = 16.931s About 3 s of the 3.5 s kernel phase goes to these failed retrains. The ports cannot be disabled in firmware (they are function 0 of their root port groups; disabling them also removes Wi-Fi, NVMe and Ethernet). [Fix] Upstream commit: ff8a969f7dc8e79ea6113abcfa983e070b2b585a "PCI: Skip Target Speed quirk on clamped ports with no link" Fixes: 72780f796468 Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221801 It is in mainline and was backported to linux-7.3.y stable (2026-11-10). It is not in linux-7.0.y (EOL upstream), so the Ubuntu 26.04 (resolute) 7.0 kernel will not get it through stable updates. The patch is small and only adds an early return in the quirk when the link speed is already clamped at 2.5GT/s and the link is down. [Test Plan] 1. Boot the kernel and run: journalctl -k -b | grep -c 'retraining failed' Expected: 0 (currently 3 on the affected machine). 2. Compare the "kernel" phase in `systemd-analyze` before and after. 3. Check that devices behind root ports with an established link (NVMe, Wi-Fi, Ethernet) still enumerate and run at full link speed (`lspci -vv | grep -E 'LnkSta:'`). I can test a kernel from -proposed or a PPA on this machine. [Where problems could occur] The change only affects ports where the Target Link Speed is clamped at 2.5GT/s and no link is up. A device that brings its link up late (after enumeration) on such a port would keep the 2.5GT/s restriction instead of having it lifted, so it might run at a lower link speed until it is retrained. Ports with an established link and the ASM2824 workaround are unaffected. [Other info] Ubuntu release: 26.04.1 LTS (resolute) Kernel: 7.0.0-44-generic (linux-signed 7.0.0-44.44) --- ProblemType: Bug ApportVersion: 2.34.1-0ubuntu0.1 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: staszek 2609 F.... wireplumber /dev/snd/controlC2: staszek 2609 F.... wireplumber /dev/snd/controlC1: staszek 2609 F.... wireplumber /dev/snd/seq: staszek 2603 F.... pipewire CasperMD5CheckResult: unknown CurrentDesktop: KDE DistroRelease: Ubuntu 26.04 InstallationDate: Installed on 2026-10-28 (33 days ago) InstallationMedia: Kubuntu 26.04.1 LTS "Resolute Raccoon" - Release amd64 (20260826.1) IwDevWlp14s0Link: Not connected. MachineType: LENOVO 83LY Package: linux (not installed) ProcFB: 0 nvidia-drmdrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-7.0.0-44-generic root=UUID=c56195d2-8e29-4c07-8775-be6b808eb783 ro quiet plymouth.enable=0 loglevel=3 module_blacklist=btrfs ProcVersionSignature: Ubuntu 7.0.0-44.44-generic 7.0.14 PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon. Tags: resolute wayland-session Uname: Linux 7.0.0-44-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip kvm libvirt lpadmin plugdev sambashare sudo wireshark _MarkForUpload: True dmi.bios.date: 05/21/2026 dmi.bios.release: 1.38 dmi.bios.vendor: LENOVO dmi.bios.version: QNCN38WW dmi.board.asset.tag: NO Asset Tag dmi.board.name: LNVNB161216 dmi.board.vendor: LENOVO dmi.board.version: NO DPK dmi.chassis.asset.tag: NO Asset Tag dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Legion 5 15IRX10 dmi.ec.firmware.release: 1.36 dmi.modalias: dmi:bvnLENOVO:bvrQNCN38WW:bd05/21/2026:br1.38:efr1.36:svnLENOVO:pn83LY:pvrLegion515IRX10:rvnLENOVO:rnLNVNB161216:rvrNODPK:cvnLENOVO:ct10:cvrLegion515IRX10:skuLENOVO_MT_83LY_BU_idea_FM_Legion515IRX10:pfaLegion515IRX10: dmi.product.family: Legion 5 15IRX10 dmi.product.name: 83LY dmi.product.sku: LENOVO_MT_83LY_BU_idea_FM_Legion 5 15IRX10 dmi.product.version: Legion 5 15IRX10 dmi.sys.vendor: LENOVO modified.conffile..etc.cron.daily.apport: [deleted] To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2178461/+subscriptions

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

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