Thread View: muc.lists.freebsd.bugs
3 messages
3 total messages
Started by bugzilla-noreply
Fri, 23 Oct 2026 23:13
[Bug 299979] 15.1-RELEASE: boot hangs in USB early takeover on firmware-disabled xHCI (AMD Strix Point, ThinkPad P16s Gen 4); fi...
Author: bugzilla-noreply
Date: Fri, 23 Oct 2026 23:13
Date: Fri, 23 Oct 2026 23:13
117 lines
6636 bytes
6636 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299979
Bug ID: 299979
Summary: 15.1-RELEASE: boot hangs in USB early takeover on
firmware-disabled xHCI (AMD Strix Point, ThinkPad P16s
Gen 4); fixed in CURRENT, please MFC
Product: Base System
Version: 15.1-STABLE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: atiqcx@gmail.com
Created attachment 276371
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=276371&action=edit
dmesg all from linux
Summary
-------
15.1-RELEASE hangs hard during PCI enumeration on the Lenovo ThinkPad
P16s Gen 4 AMD (Strix Point). Booting with hw.pci.usb_early_takeover=0
avoids the hang. A 16.0-CURRENT snapshot boots fine without the tunable,
so this appears to be fixed in main already. Requesting an MFC to
stable/15, and an Errata Notice for 15.1 if it qualifies, since the
release installer can't boot on this hardware without the tunable.
Hardware
--------
Lenovo ThinkPad P16s Gen 4 AMD, 21RYS05M00
CPU: AMD Ryzen AI 9 HX PRO 370 (Strix Point), 32 GB RAM
BIOS: R2XET42W (1.22), 09/07/2026
UEFI boot, Secure Boot disabled
Affected / not affected
-----------------------
FreeBSD-15.1-RELEASE-amd64-memstick.img hangs
FreeBSD-16.0-CURRENT-amd64-[FILL: full snapshot filename] boots, no tunables
Symptom (15.1, boot -v)
-----------------------
The hang happens while enumerating bus 198 (0xc6) behind the bridge at
pci0:0:8:3. The last lines:
found-> vendor=0x1022, dev=0x151a, revid=0x00
domain=0, bus=198, slot=0, func=3
class=0c-03-30, hdrtype=0x00, mfdev=1
cmdreg=0x0000, statreg=0x0010, cachelnsz=0 (dwords)
...
map[10]: type Memory, range 64, base 0xb0a00000, size 20, memory
disabled
pcib8: allocated memory range (0xb0a00000-0xb0afffff) for rid 10 of
pci0:198:0:3
<hard hang: no output, no keyboard, power-button reset only>
c6:00.0 (xHCI 1022:151f, cmdreg=0x0007) enumerates fine. The hang follows
the BAR allocation for c6:00.3 (xHCI 1022:151a), which is where
pci_add_resources() runs xhci_early_takeover(). c6:00.4 is never
enumerated.
Tests on 15.1
-------------
set hint.xhci.1.disabled=1 ; boot -v -> identical hang (expected:
this is before driver attach)
set hw.pci.usb_early_takeover=0 ; boot -v -> boots to the installer;
built-in keyboard works
Firmware hand-off state (from Linux 7.0.11, logs attached)
----------------------------------------------------------
xHCI ID subsystem state at hand-off
c4:00.4 1022:151e 17aa:512e disabled (FreeBSD 15.1 handles it fine)
c6:00.0 1022:151f 17aa:512e enabled, bus master on
c6:00.3 1022:151a 1022:151a disabled <- hang follows this one
c6:00.4 1022:151b 1022:151b disabled
c6:00.3 and c6:00.4 keep AMD's default subsystem IDs, which suggests the
firmware never initializes them (nothing is attached to c6:00.3). Linux's
early USB handoff quirk enables memory decode on them first
("enabling device (0000 -> 0002)" at 0.40 s), then completes the handoff
with no errors. All four controllers then work under xhci_hcd.
Workaround for 15.1 users
-------------------------
At the loader prompt: set hw.pci.usb_early_takeover=0
After install, in /boot/loader.conf: hw.pci.usb_early_takeover="0"
Fixing commit
-------------
[FILL: commit hash/URL if found. Otherwise:]
I haven't pinned down the fixing commit in main. Likely candidates touch
sys/dev/pci/pci.c (xhci_early_takeover / pci_add_resources) between the
stable/15 branch point and the snapshot revision above.
Related reports (likely the same issue)
---------------------------------------
- ThinkPad T14s AMD Gen 6 (Strix Point), same symptom:
https://forums.freebsd.org/threads/thinkpad-t14s-amd-gen6-boot-hangs.98829/
- HP ZBook (Strix Halo), hang at xhci load:
https://lists.freebsd.org/archives/cu/2025-September/008891.html
Attachments: boot -v photos (default, and with hint.xhci.1.disabled=1),
Linux dmesg and lspci -vvnn.
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299979] 15.1-RELEASE: boot hangs in USB early takeover on firmware-disabled xHCI (AMD Strix Point, ThinkPad P16s Gen 4); fi...
Author: bugzilla-noreply
Date: Fri, 23 Oct 2026 23:14
Date: Fri, 23 Oct 2026 23:14
16 lines
2635 bytes
2635 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299979 --- Comment #1 from Atiq Rahman <atiqcx@gmail.com> --- Created attachment 276372 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=276372&action=edit lspci -vnn from linux -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299979] 15.1-RELEASE: boot hangs in USB early takeover on firmware-disabled xHCI (AMD Strix Point, ThinkPad P16s Gen 4); fi...
Author: bugzilla-noreply
Date: Thu, 26 Nov 2026 10:42
Date: Thu, 26 Nov 2026 10:42
22 lines
2948 bytes
2948 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299979
--- Comment #2 from Janeri Filho, Osvaldo <Osvaldo.JaneriFilho@amd.com> ---
A likely candidate is 555ffd9022de ("pci: use uint32_t for eecp"),
reported on AMD xHCI 1022:151e: the first extended capability is at
0x460, and the 8-bit eecp truncates it, so the capability walk reads
the wrong offsets and can loop. It was merged to stable/15 as
ff5d0d7db769 on 2026-05-29, after releng/15.1 branched, so 15.1 does
not have it.
Could you try a 15-STABLE snapshot from after 2026-05-29 without
hw.pci.usb_early_takeover=0? If it boots, that points to an Errata
Notice for 15.1.
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads