Repository navigation
arm64: dts: apple: t8122: USB4 PCIe-C tunnels on every M3 - #3516
Conversation
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]>
There was a problem hiding this comment.
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.dtsiso all T8122 boards (J613, J615, J504, J433, J434) get tunneled PCIe without board gating, paired withapple,pcie.yamlandapple,t8103-usb4-acio.yamlbinding updates.- Exact-head J615 (M3 Air 15") DT-only trial boot PASS on saved
main-derived kernel (fleet90-airs2: both routers bound withapple,pcie-tunnellinks, both tunnels and DARTsokay, fleet smoke PASS). - Checked for Apple material, tool attribution, private serials, and board gating: clean;
MERGEABLEonmain; humanSigned-off-bypresent.
Evidence
- Head:
499192fc(base: main,mergeable: MERGEABLE,+282/-5across 4 files).
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
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. |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Merge train: holding at |
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]>
|
dt-checks flagged two new warnings: the T6030 (M3 Pro) J514s/J516s PCIe-C bridges share |
There was a problem hiding this comment.
Verdict: MERGE at 9390123c (wait for queued dt-checks, host-tests, pr-text, and readiness to finish green)
Blockers: none
Checked:
- Audited
9390123c3456inDocumentation/devicetree/bindings/pci/apple,pcie.yaml(+3/-3): removesapple,msi-vector-basefromrequiredunderapple,t8122-pciecwhile 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_DTBSwarnings seen ont6030-j514s.dtb/t6030-j516s.dtbat499192fcwith zero DTB changes (all T8122 DTBs remain identical to the approved and J615-trialed499192fchead; localCHECK_DTBSon J514s/J516s/J613/J615 anddt_binding_checkclean).
Evidence
Risk:two-way door · T8122 onlypresent.- Non-binding files (
t8122-usb4.dtsi,t8122.dtsi,apple,t8103-usb4-acio.yaml) unchanged since499192fc.
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]>
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
arm64: dts: apple: t8122: enable ADT-present peripherals and tunnel PIODMA (on #3516)
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 fromt8122.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-tunnellinks, 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
t8122-usb4.dtsi(new, from thunderbolt: apple: enable the J613 USB4 host-to-host path #1490/arm64: dts: apple: t8122-j615: describe the USB4 PCIe-C tunnels (stacked on #1490) #2812): both tunnel containers (nonposted-mmio, the SoC DMA window), each DART with the tunables no loader fills (CIO-PCIe power domain), each controller (apple,t8122-pciec, 8 windows incl.oe-fabric+intr2axi,apple,msi-vector-base32/64 with 32-vectormsi-ranges,apple,tunable-oe-fabric,apple,pciec-kernel-init), the routers'apple,pcie-tunnel+ power domains +post-init-providers, and theusb4-N-pcie*aliases the loader uses to fill rc/fabric/debug tunables.t8122.dtsi: the routers gain theirpcie-adapterandcpuwindows, and the file includest8122-usb4.dtsi.apple,t8122-pciecwith its 8 reg names and the requiredapple,msi-vector-base. The router binding names T8122's MxWrap window andpost-init-providers.[ryan: ...]note in each commit records the split.apple_cio_t8122_hw,apple_cio_stop()arity, removedapple_t6030_msi_slice_valid()). Details are on both PRs.