Skip to content

arm64: dts: apple: t8122: USB4 PCIe-C tunnels on every M3 - #3516

Merged
RyanTheTide merged 3 commits into
mainfrom
feat/t8122-pciec-every-board
Nov 28, 2026
Merged

RyanTheTide merged 3 commits into
mainfrom
feat/t8122-pciec-every-board

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: Describes the USB4 PCIe-C tunnels (apciec0-1 + DARTs) on every M3 (T8122). Every T8122 ADT has them and every T8122 board enables both USB4 routers, but no board described the tunnels, so a Thunderbolt PCIe device never enumerated on an M3. This is the DT half of #1490 / #2812 (Satya's tunnel description, Dj's router-supplies binding). It is split out so it can land on main's driver, which already has the T8122 PCIe-C MSI-slice path. #1490 keeps the J613 handoff and the driver changes. The tunnel dtsi is included from t8122.dtsi, so J613, J615, J504, J433 and J434 all get it.
Tested: J615 (M3 Air 15") DT-only trial on its saved kernel (fleet90-airs2, built from main): both routers bound with their apple,pcie-tunnel links, both tunnels and DARTs okay, fleet smoke row and node check pass before/during/after, clean restore (row on #2812). The J615 DTB of this head is identical (sorted decompile) to the trial's DTB. dtbs_check on all 7 T8122 DTBs: 46 warnings at main, the same 46 here (0 new). dt_binding_check is clean on both bindings. checkpatch --strict: clean apart from the MAINTAINERS note for the new dtsi (the directory is already covered).
Risk: two-way door · T8122 only (J613/J615/J504/J433/J434). Other DTBs are unchanged. The router driver only populates a tunnel when it requests one, so nothing new runs until a PCIe device is plugged in. Revert = revert the two commits.
Not yet: PCIe enumeration with a TB5 enclosure on a J615 port. Our lab's RX 7900 XTX enclosure is moving across the fleet, and that row will say whether main's T8122 router policy brings the tunnel up or whether #1490's MxWrap changes are needed. J613/J504/J433/J434 are untested here (same SoC nodes).

Details

The T8122 PCIe-C controller (apple,t8122-pciec) has the T8103 register
set plus the oe-fabric and intr2axi windows, and owns one 32-vector
slice of the shared MSI window after the internal host's, named by
apple,msi-vector-base. Its USB4 router carries the MxWrap CPU window like
the later SoCs and names the power domains it manages itself in
post-init-providers, which breaks their initialization cycle.

[ryan: split out of #1490 (T8122 parts only)]

Signed-off-by: Satya Benson <[email protected]>
Co-developed-by: Diljit Singh <[email protected]>
Signed-off-by: Diljit Singh <[email protected]>
Signed-off-by: Ryan Murray <[email protected]>
Every T8122 ADT lists two PCIe-C controllers behind the USB4 routers
(apciec0-1) with their DARTs (dart-apciec0-1), and every T8122 board
enables both routers, but none of them described the tunnels, so a
Thunderbolt PCIe device (an eGPU enclosure, a dock's xHCI or NIC) never
enumerated on an M3.

Describe both tunnels in t8122-usb4.dtsi and include it from t8122.dtsi:
each tunnel's DART with the tunables no boot loader fills, the
controller with its oe-fabric and intr2axi windows, its 32-vector slice
of the shared MSI window (apple,msi-vector-base) and the oe-fabric
tunables, and the router's apple,pcie-tunnel link. The router driver
populates a tunnel only when it asks for one. The routers also gain
their PCIe adapter and CPU register windows, and the usb4-N-pcie
aliases through which the boot loader fills the rc, fabric and debug
tunables.

The bindings for the T8122 controller and the routers' power-domain
suppliers come in the previous commit.

[ryan: split the T8122 description out of #1490/#2812 (the J613 handoff
 and driver changes stay there), include it from t8122.dtsi for every
 T8122 board instead of from the J613/J615 board files, move the
 aliases into it]

Signed-off-by: Satya Benson <[email protected]>
Co-developed-by: Diljit Singh <[email protected]>
Signed-off-by: Diljit Singh <[email protected]>
Signed-off-by: Ryan Murray <[email protected]>

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at 499192fc

Blockers: none (wait for the queued CI checks to finish green and confirm second-board T8122 smoke if desired before landing).

Checked:

  • arch/arm64/boot/dts/apple/t8122-usb4.dtsi & t8122.dtsi: cleanly describes T8122 USB4 PCIe-C tunnels (apciec0..1 + DARTs) in the shared SoC .dtsi so all T8122 boards (J613, J615, J504, J433, J434) get tunneled PCIe without board gating, paired with apple,pcie.yaml and apple,t8103-usb4-acio.yaml binding updates.
  • Exact-head J615 (M3 Air 15") DT-only trial boot PASS on saved main-derived kernel (fleet90-airs2: both routers bound with apple,pcie-tunnel links, both tunnels and DARTs okay, fleet smoke PASS).
  • Checked for Apple material, tool attribution, private serials, and board gating: clean; MERGEABLE on main; human Signed-off-by present.
Evidence
  • Head: 499192fc (base: main, mergeable: MERGEABLE, +282/-5 across 4 files).

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at 499192fc. The App approved this head (NEON-PR-REVIEW2). This is T8122 DT and bindings only; J615 exact-head DT trial PASS. It merges 1 h from now under the 6-point rule, once hosted CI is green, unless you object.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Code-owner heads-up for the 6-point rule: @aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers, this is a DT-only PCIe-over-Thunderbolt change (Ryan's order: tunnels on in every Mac's DT). It has an App approval, hardware rows (see above) and local dt-checks with 0 new warnings. We plan to merge once CI is green and at least an hour has passed since this ping, unless someone objects here. Revert = revert the PR's commits.

@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at 9390123c: not ready yet

Check Detail
CI at head running running: dt-checks
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok comment at 9390123c
Conflicts ok none
PR text ok Risk: two-way · T8122 only (J613/J615/J504/J433/J434). Other DTBs are unchanged. The router driver only populates a tunnel when it requests one, so nothing new runs until a PCIe device is plugged in. Revert = revert the two commits.

Areas: area:platform

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merge train: holding at 499192fc. dt-checks fails with two new CHECK_DTBS warnings. The binding change makes apple,msi-vector-base required for apple,t8122-pciec, and the M3 Pro/Max boards t6030-j514s.dtb and t6030-j516s.dtb use that compatible without it (pcie@730000000). Either give those nodes the property (from their ADT) or keep it optional / required only where it's described. Merges once dt-checks is green.

The T6030 (M3 Pro/Max) PCIe-C bridges share the apple,t8122-pciec
compatible but are still described with the whole shared MSI window and
no apple,msi-vector-base, so requiring the property flagged J514s and
J516s. Keep it documented for T8122-compatible bridges without making it
required; the T8122 boards all name their slice.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

dt-checks flagged two new warnings: the T6030 (M3 Pro) J514s/J516s PCIe-C bridges share apple,t8122-pciec but don't name an apple,msi-vector-base. Fixed in 9390123c: the property stays documented but is no longer required, and the T6030 DT and its MSI handling are left as they are. Rechecked locally: CHECK_DTBS on J514s, J516s, J613 and J615 shows no msi-vector-base warnings, and dt_binding_check is clean. DTBs are unchanged (binding-only), so the J615 row still covers this head.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at 9390123c (wait for queued dt-checks, host-tests, pr-text, and readiness to finish green)

Blockers: none

Checked:

  • Audited 9390123c3456 in Documentation/devicetree/bindings/pci/apple,pcie.yaml (+3/-3): removes apple,msi-vector-base from required under apple,t8122-pciec while keeping its schema (minimum: 32, maximum: 224, multipleOf: 32) and documenting that T8122 bridges specify it while T6030 bridges sharing the compatible remain on the whole window.
  • Resolves the 2 CHECK_DTBS warnings seen on t6030-j514s.dtb / t6030-j516s.dtb at 499192fc with zero DTB changes (all T8122 DTBs remain identical to the approved and J615-trialed 499192fc head; local CHECK_DTBS on J514s/J516s/J613/J615 and dt_binding_check clean).
Evidence
  • Risk: two-way door · T8122 only present.
  • Non-binding files (t8122-usb4.dtsi, t8122.dtsi, apple,t8103-usb4-acio.yaml) unchanged since 499192fc.

satchlj added a commit to satchlj/linux that referenced this pull request Nov 28, 2026
Merge aurora-silicon/linux main (f558935) and resolve semantic
conflicts:
- drivers/thunderbolt/apple.c: unify apple_cio_t8122_hw with the
  deep-sleep teardown fields from aurora-silicon#3140 and drop the duplicate match
  entry and duplicate pmgr-pwrstate.h include; pass the awake mode to
  apple_cio_stop() in TYPEC_THUNDERBOLT_SWITCH_SLEEP and
  apple_cio_shutdown(), and handle the switch default.
- drivers/pci/controller/pcie-apple.c: keep apple_t6030_msi_slice_valid()
  for the T8132/T8142/T8152 PCIe-C branch.
- tools/asahi/pciec-policy-tests.py: extend the T8122_SLEEP_FIXTURE
  apple_cio_hw stub and add apple_cio_power_down() to CIO_STOP_FIXTURE.
- Align the T8122 USB4 DT/binding files with aurora-silicon#3516 and drop the stale
  t8122-j613.dts thermal-zone duplication.

Signed-off-by: Satya Benson <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule (Ryan 09:29, permanent), at 9390123c. (1) The review App approved at this head. (2) Full CI is green. (3/4) Rows: J615;T8122-DT-only;binding-fix-no-DTB-change. (5) There's no blocking review. (6) Dj was pinged here 271 min ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit f24c8b9 into main Nov 28, 2026
4 of 5 checks passed
@RyanTheTide
RyanTheTide deleted the feat/t8122-pciec-every-board branch November 28, 2026 17:48
RyanTheTide added a commit that referenced this pull request Nov 28, 2026
arm64: dts: apple: t8122: enable ADT-present peripherals and tunnel PIODMA (on #3516)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants