Repository navigation
thunderbolt: apple: do not start the NHI without its DART - #1150
Merged
RyanTheTide merged 1 commit intoNov 9, 2026
Merged
RyanTheTide merged 1 commit into
RyanTheTide merged 1 commit into
Conversation
The NHI and its DART are both children of the ACIO and are created together when the router starts. The DART normally binds first, and the driver core defers the NHI until it has. Once the core has stopped waiting for missing suppliers, though (for example, the DART driver is a module that is not loaded yet when a cable is plugged in), the NHI probes without an IOMMU and would hand the hardware physical ring addresses. Refuse to probe an NHI that has iommus but is not attached to an IOMMU domain. Report it through the boot status as well, so that the ACIO fails this start right away with -EPROBE_DEFER instead of waiting for the 10 s NHI boot timeout; the next connection retries. Signed-off-by: Dmitriy <noc@pimk.in> Assisted-by: LLM
dmitzsaz
force-pushed
the
pr/thunderbolt-apple-nhi
branch
from
November 8, 2026 14:03
ac6fa99 to
f6ba35b
Compare
RyanTheTide
added a commit
that referenced
this pull request
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
apple_nhi_probe()now refuses to start an NHI that hasiommusbut isn't attached to an IOMMU yet. That happens when the DART driver is a module that isn't loaded when a cable is plugged in, after the driver core has stopped waiting for suppliers. The rings then never run untranslated. The NHI reports-EPROBE_DEFERthrough the boot status, so the ACIO start fails right away instead of after the 10 s NHI timeout, and the next connection retries.The earlier first commit here, which compared the T8142 NHI generation as a boolean, is dropped: 8aaab09 rewrote that check as
(t8142 || t6040), which is boolean already.Tested on: J704 (MacBook Pro 14-inch, M5), 2026-11-07, with a Mac mini (Mac16,10) on a Thunderbolt cable:
409f00000.nhibinds tothunderbolt-apple-nhiin its IOMMU group, the XDomain host is found andthunderbolt0comes up with an address. The change has been in my J704 kernel for days, with Thunderbolt networking to the Mac mini. Rebased ontointegration/aurora9cfd38d;thunderbolt/apple.obuilds clean withW=1there.Prepared with Claude Opus 5.5; tested by me on the hardware.