🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #211

[Bug 299979] 15.1-RELEASE: boot hangs in USB early takeover on firmware-disabled xHCI (AMD Strix Point, ThinkPad P16s Gen 4); fi...

#211
From: bugzilla-noreply
Date: Fri, 23 Oct 2026 23:13
117 lines
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
Technical Details
Message-ID: <bug-299979-227@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 299979] 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
Date: Fri, 23 Oct 2026 23:13:56 +0000
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-bugs@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-299979-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="64975"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1792797236;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=lMqSU52r+GykBHbheOAJGihrU5+m5hFg3zOXyQmPSI4=;
	b=rQ2UYOnS/GMRACtgaIfI3qJNlC8udU3m94O+g4ZGxdiMIHB6eubHID76jhed6PtxBbr109
	sQHS12FfpzEtKHOUgde59lZYJtMuDSuMRStUbnrDSssQ/knfcSBiXvzjrMNmV/5R4Xqdfy
	GPxfMUH2TNuA0+zfUFNOlKyyIf+HdbLMWQU5IVzES7v60hvcWJiIwKEjMVGw34O0UTVxhI
	U5c1plL1ncJVeWCYvNLbv6UgKPi7aXIVx6u5ZFocP7wVvcrGoy3PLJ60Mg60vAdk2dl+0+
	wHHJWyy021i9mmrLP2Yyl2ht+wy4Z+f9fflmsPAa7/E8tqmFR3I00hHdKizvyQ==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes