From nobody Tue Jun 16 20:32:31 2026 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gfzFT2lsnz6hmbY for ; Tue, 16 Jun 2026 20:32:45 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050:0:465::101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4gfzFT0G7cz3hWs for ; Tue, 16 Jun 2026 20:32:45 +0000 (UTC) (envelope-from lars.engels@0x20.net) Authentication-Results: mx1.freebsd.org; none Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4gfzFD2vvZz9tqr for ; Tue, 16 Jun 2026 22:32:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x20.net; s=MBO0001; t=1781641952; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=10HWx5bRkMbDS2UhkFBV6mhOteFxdJTQRZUlQLRiFAc=; b=ahzZUD8UXNO7mc5x4Era9qWogsvssTsC185GqlQN4C/BJBwkZJsDvPbYd6jtAO/uhdwKjL L4r/aVDhPNs0w1oVI1XN3EzTlSIaOEo7v+eFAeZYX9vLTR9KL6+NSF7CrhnBMVE6b9ARQN iutbwyScnTPBWsP29DeUNyBeiYly90bATf5OOYQCgzc59DpaDfNs10S8jUb+wXGlORA8nt 2yk7wPdxf+BMY0UGoiUy8dFG5Bq/u7CjW5MIMLiJW/xviuGu52faEc5qn5W+GZnlDB5tla 0PFBO6aP+S0K6A1WZ3ngcGhAnre1QN0ieBIZYu4v+8DhnZYKQtDXPtAx92ggPw== Date: Tue, 16 Jun 2026 22:32:31 +0200 From: Lars Engels To: "Enji Cooper (yaneurabeya)" Cc: Chris Torek , freebsd-current , obiwac@freebsd.org Subject: Re: nhi0: Cannot find Upstream Facing Port Message-ID: Mail-Followup-To: Lars Engels , "Enji Cooper (yaneurabeya)" , Chris Torek , freebsd-current , obiwac@freebsd.org References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Editor: NVIM v0.12.2 X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:199118, ipnet:2001:67c:2050::/48, country:DE] X-Rspamd-Queue-Id: 4gfzFT0G7cz3hWs X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated On Mon, Jun 15, 2026 at 08:40:19PM -0700, Enji Cooper (yaneurabeya) wrote: > > > On Jun 14, 2026, at 11:19 PM, Chris Torek wrote: > > > > Noticed that there's some new thunderbolt code. I get this during boot: > > > > pci3: on pcib3 > > nhi0: at device 0.0 on pci3 > > nhi0: Cannot find Upstream Facing Port > > nhi0: tb_router_attach_root() error. The driver should be loaded at boot > > > > If it helps any, here's some "pciconf -lv" output snippets: > > > > pcib2@pci0:1:0:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x > > 1136 subvendor=0x8086 subdevice=0x0000 > > vendor = 'Intel Corporation' > > device = 'Thunderbolt 4 Bridge [Maple Ridge 4C 2020]' > > class = bridge > > subclass = PCI-PCI > > pcib3@pci0:2:0:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x > > 1136 subvendor=0x8086 subdevice=0x0000 > > vendor = 'Intel Corporation' > > device = 'Thunderbolt 4 Bridge [Maple Ridge 4C 2020]' > > class = bridge > > subclass = PCI-PCI > > pcib4@pci0:2:1:0: class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x > > 1136 subvendor=0x8086 subdevice=0x0000 > > vendor = 'Intel Corporation' > > device = 'Thunderbolt 4 Bridge [Maple Ridge 4C 2020]' > > class = bridge > > subclass = PCI-PCI > > > > Can include more if needed. System works fine without whatever it's > > trying to do (of course, since it wasn't even detected before :-) ) > > Hi Chris, > I lit up the code in GENERIC in 886164895f — so that’s my fault :) (any info about the thunderbolt devices would be appreciated!). obiwac@ asked that I back it out, so I’ll take care of that now since it’s on my mind. > Thanks! > -Enji > > PS The thunderbolt(4) device implementation is incomplete: it was based on work done by hselasky@ before he passed away back in 2023. I have a TODO item to look at trying and get it working (enough) to have functional Thunderbolt/USB4 stack for storage purposes, but it’s way down my TODO list. tl;dr: I’m trying to get a partially functional Mac x86 port before Apple nukes Intel support from macOS. I am seeing the same error message on AMD hardware. # pciconf -lv|rg -A4 nhi nhi0@pci0:195:0:5: class=0x0c0340 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1668 subvendor=0xf111 subdevice=0x0006 vendor = 'Advanced Micro Devices, Inc. [AMD]' device = 'Pink Sardine USB4/Thunderbolt NHI controller' class = serial bus subclass = USB nhi1@pci0:195:0:6: class=0x0c0340 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1669 subvendor=0xf111 subdevice=0x0006 vendor = 'Advanced Micro Devices, Inc. [AMD]' device = 'Pink Sardine USB4/Thunderbolt NHI controller' class = serial bus subclass = USB