Skip to content

arm64: dts: apple: t8132: enable ADT-present peripherals and tunnel PIODMA - #3517

Merged
RyanTheTide merged 1 commit into
mainfrom
feat/dt-complete-t8132
Nov 28, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
feat/dt-complete-t8132

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

What: Enables ADT-present T8132 (M4) hardware nodes that were left disabled in shared DTSIs and board overlays, and moves the USB4 PCIe-C tunnel PIODMA engines (apciec0_piodma, apciec1_piodma) inside usb4-pcie-tunnel-0/1 so ACIO populates them with their tunnel DARTs on tunnel bring-up rather than deferring at boot. Reduces disabled nodes across the 6 T8132 DTBs by 145 total (t8132-j604 88->63, t8132-j623 101->78, t8132-j624 102->79, t8132-j713 133->106, t8132-j715 142->115, t8132-j773g 123->103).

Tested:

  • Local dt-checks suite against main (844781f1b56b) using dtschema 2026.9 across all 6 t8132-*.dtb files:
    • scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks
    • CHECK_DTBS=y: base 13 warnings, head 13 warnings, 0 new warnings
    • scripts/dtc/apple-dart-pd-check.py: 0 new issues
    • scripts/dtc/apple-sibling-drift.py: 0 new issues
    • tools/asahi/t8132-usb4-policy-tests.py: PASS (t8132-j713.dtb and t8132-j715.dtb 10 USB4 PMGR providers available)
  • Hardware DT-only boot row on J713 (M4 MacBook Air) queued via DT-COMPLETE.

Risk: two-way · Low. Most newly enabled nodes (dpin, dwi, pwm, aes, aon-ptd, dcp-expert, soc-error-handler, soc-event-log, dapf, gapf, dart-smmu) have no Linux driver yet and add no probe-time MMIO; apciec0/1_piodma sit inside usb4-pcie-tunnel-0/1 and only populate when ACIO brings up a PCIe tunnel; aop_spmi0 (all T8132) and aop_spmi1 (J604) bind apple-spmi as nub_spmi1 already does. Hardware-absent, loader-gated, PMGR-policy, peripheral_clocks, unqualified (apr/ane/ave on boards lacking their PMGR/firmware setup), and apcie0_piodma (#3345) nodes remain disabled.

Not yet:

Revert: git revert <merge-commit> cleanly restores the prior disabled states and apciec0/1_piodma placement.

Per-file summary
  • arch/arm64/boot/dts/apple/t8132-usb4.dtsi: add apciec0_piodma: dma@404068000 inside usb4_0_pcie_tunnel and apciec1_piodma: dma@40c068000 inside usb4_1_pcie_tunnel (enabled, populated on demand by ACIO).
  • arch/arm64/boot/dts/apple/t8132-peripherals.dtsi: remove moved apciec0/1_piodma; enable dart_scaler1, dart_ave2, dart_ave3, dart_aop_companion1/2, dart_ane_companion3, atc0/1_dpin0/1, dwi, pwm, aes, aon_ptd, and dcp0/dcpext0/dcpext1_expert.
  • arch/arm64/boot/dts/apple/t8132-error-handlers.dtsi: enable soc_errors and soc_events.
  • arch/arm64/boot/dts/apple/t8132-peripheral-buses.dtsi: enable aop_spmi0.
  • arch/arm64/boot/dts/apple/t8132-isp.dtsi: enable dart_isp_companion3, dart_isp_companion4, and dart_isp_companion5 (already gated to camera-equipped laptops and iMacs, with ps_isp_sys enabled).
  • arch/arm64/boot/dts/apple/t8132-laptop.dtsi: enable dart_mtp_companion1 alongside mtp_dart.
  • arch/arm64/boot/dts/apple/t8132-j713-j715.dtsi: drop stale /delete-property/ power-domains on dart_ave2 (ps_venc_sys is enabled) and enable dart_disp0/dispext0/dispext1_companion1.
  • arch/arm64/boot/dts/apple/t8132-j604.dts: enable aop_spmi1 (present in J604 ADT, absent in J713/J773).

…IODMA

Enable device-tree nodes that are present in T8132 Apple Device Trees
but were left disabled in shared T8132 DTSIs and board overlays:

- Move apciec0_piodma and apciec1_piodma into usb4-pcie-tunnel-0 and
  usb4-pcie-tunnel-1 in t8132-usb4.dtsi as dma@ nodes with status
  enabled so ACIO populates them alongside their tunnel DARTs when a
  USB4 PCIe tunnel comes up instead of deferring at boot.
- Enable ADT-present shared peripherals in t8132-peripherals.dtsi and
  t8132-error-handlers.dtsi: atc0/1_dpin0/1, dwi, pwm, aes (whose
  dart_sio0 and ps_sio_cpu are already enabled on all T8132 boards via
  t8132-sio.dtsi), aon_ptd, dcp*_expert, soc_errors, soc_events,
  dart_ave2 (dropping the stale power-domains deletion in
  t8132-j713-j715.dtsi now that ps_venc_sys is enabled), and the
  shared GAPF/DAPF filter companions (dart_scaler1, dart_ave3,
  dart_aop_companion1/2, dart_ane_companion3).
- Enable aop_spmi0 in t8132-peripheral-buses.dtsi (present in all T8132
  ADTs) and aop_spmi1 in t8132-j604.dts (present in the J604 ADT,
  absent on J713/J773).
- Enable board-scoped companion filters and SMMU DARTs only where their
  subsystems and power domains exist: dart_isp_companion3/4/5 in
  t8132-isp.dtsi, dart_mtp_companion1 in t8132-laptop.dtsi, and
  dart_disp0/dispext0/dispext1_companion1 in t8132-j713-j715.dtsi.

Nodes with true hardware absence, loader-gated handoff (sio, isp,
disp0/dcp/dcpext, reserved-memory, framebuffer0), PMGR genpd policy,
clock-provider deferral (peripheral_clocks), unqualified firmware/PMGR
dependencies (apr on J713/J715, ane/ave on non-J713 boards), or known
driver bugs (apcie0_piodma 36-bit vs 40-bit DART window) stay disabled.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 28, 2026 11:58

@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: FINISH, then merge at 3d6cde7b32

Blockers:

  • Missing hardware boot row for the exact head SHA (J713 DT-only boot trial is queued).
  • CI checks (dt-checks, host-tests, readiness, pr-text) are still queued and need to pass.
  • Requires maintainer approval before merge.

Checked:

  • Reviewed all 7 modified T8132 DTS/DTSI files (t8132-error-handlers.dtsi, t8132-isp.dtsi, t8132-j604.dts, t8132-j713-j715.dtsi, t8132-laptop.dtsi, t8132-peripheral-buses.dtsi, t8132-peripherals.dtsi, t8132-usb4.dtsi).
  • Confirmed apciec0_piodma and apciec1_piodma move cleanly inside usb4-pcie-tunnel-0/1 with intact reg, interrupts, and iommus = <&usb4_{0,1}_pcie_dart 254> properties so they only populate on tunnel bring-up.
  • Confirmed &dart_ave2 /delete-property/ power-domains removal in t8132-j713-j715.dtsi matches ps_venc_sys being enabled there while &dart_apr0 retains its power-domain deletion.
  • Confirmed no driver-less nodes introduce probe-time MMIO risk and no policy issues are present in diff or commit metadata.
Evidence
  • Diff reviewed: +73/-82 across 8 files (MERGEABLE against main).
  • Local dt-checks, CHECK_DTBS=y (0 new warnings), apple-dart-pd-check.py (0 new issues), apple-sibling-drift.py (0 new issues), and t8132-usb4-policy-tests.py PASS reported by author; awaiting CI completion and J713 hardware boot row.

@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: FINISH, then merge at 3d6cde7b3292

Blockers: none in the DT. Before merge: CI green, a J713 DT-only trial row, and a regression row on a second family per the merge rule.

Checked: built all 6 T8132 DTBs at this head and diffed effective status against main 844781f: 18-25 enables per board, 0 disables, apciec0/1_piodma moved into the tunnel containers. No enable hits a node the ADT verdicts mark absent or unsafe. The one cross-board enable that looked suspicious, J604's spmi@390b14000, is backed by the J604 ADT (27.0: aop-spmi1 at arm-io + 0x190b14000) and stays J604-only. Dropping the stale /delete-property/ power-domains on dart_ave2/3 is right (VENC is enabled).

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Follow-up from the J413 row on #3515. That head newly enabled three DART nodes that are secondary reg windows of a multi-window ADT DART, and the driver rejected all three (not a DART translation unit, -ENODEV).

This head newly enables six DARTs on J713, and all six are secondary windows by the live J713 27.2 ADT (arm-io base 0x200000000):

DT node ADT
iommu@421094000 (dart_ave2) dart-ave reg[2] of 5
iommu@30a314000 dart-disp0 reg[1] of 3
iommu@286314000 dart-dispext0 reg[1] of 3
iommu@48a314000 dart-dispext1 reg[1] of 3
iommu@48e8f4000 dart-isp reg[3] of 7
iommu@48e914000 dart-isp reg[4] of 7

Some secondary windows are real translation units, so this isn't a blocker by itself. The J713 DT-only row will check each one for not a DART translation unit (it's queued behind the current J713 windows). Any that the driver rejects should go back to disabled, with a comment naming the ADT window.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Checked all six nodes above in arch/arm64/boot/dts/apple/t8132-peripherals.dtsi: all six (dart_ave2, dart_disp0_companion1, dart_dispext0_companion1, dart_dispext1_companion1, dart_isp_companion3, dart_isp_companion4) use compatible = "apple,t8132-dart-smmu", "apple,dart-smmu" rather than "apple,t8132-dart". drivers/iommu/apple-dart.c only matches "apple,t8132-dart", so none of the six bind apple-dart or hit the not a DART translation unit probe error seen on J413 (#3515). Leaving the head untouched at 3d6cde7b3292 for the J713 DT-only row.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at 3d6cde7b: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
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 3d6cde7b
Conflicts ok not computed yet
PR text ok Risk: two-way · Low. Most newly enabled nodes (dpin, dwi, pwm, aes, aon-ptd, dcp-expert, soc-error-handler, soc-event-log, dapf, gapf, dart-smmu) have no Linux driver yet and add no probe-time MMIO; apciec0/1piodma sit inside usb4-pcie-tunnel-0/1 and only populate when ACIO brings up a PCIe tunnel; aopspmi0 (all T8132) and aopspmi1 (J604) bind apple-spmi as nubspmi1 already does. Hardware-absent, loader-gated, PMGR-policy, peripheralclocks, unqualified (apr/ane/ave on boards lacking their PMGR/firmware setup), and apcie0piodma (#3345) nodes remain disabled.

Areas: area:bringup

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

J713 (M4 Air) row at 3d6cde7b: pass for this PR's changes. DT-only aura-try trial on the saved fleet85 kernel, with the live Stage 2's J713 DTB replaced by this head's build.

  • The fleet smoke row (display, input, net, audio sink, GPU render) passed before, during and after the trial. Both USB4 routers bound with their tunnel links, both tunnels are okay (the piodma engines are in the containers), and one s2idle cycle completed.
  • All six newly enabled secondary-window DARTs (dart-ave reg[2], dart-disp0/dispext0/dispext1 reg[1], dart-isp reg[3]/[4]) probed: no not a DART translation unit lines. So on T8132 they are real translation units, unlike the three T8112 windows on arm64: dts: apple: t8112: enable ADT-present peripherals and tunnel PIODMA #3515.
  • One kernel error on the trial boot: apple-dart 3ad060000.iommu: probe ... failed with error -110, which left spi@3ad110000 (DP855) unbound. This isn't from this PR: that SIO DART and its SPI are enabled identically in main's J713 DTB. It's main's DT on this Mac's older Stage 2, which doesn't hand the SIO over (a known lab-stale item). The J713's default boot doesn't use main's DTB yet.
  • Restored and verified: saved fleet85, empty next_entry, Enforcing, 0 failed units, Stage 2 unchanged.

Lab evidence: traces/usb/20261128-dt-complete-tunnels/j713-pr3517-3d6cde7b/.

@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 3d6cde7b3292

Blockers: none. Before landing: CI green, plus the code-owner ping under the 6-point rule.

Checked:

  • Effective-status diff of all 6 T8132 DTBs, this head vs main 844781f: enables only. J604's aop-spmi1 is backed by the J604 ADT. No UNSAFE node is enabled.
  • The six newly enabled DARTs are secondary reg windows of multi-window ADT DARTs (live J713 27.2 ADT). The J713 row at this head shows all six probe as translation units (no -ENODEV).
  • Hardware at this exact head: J713 DT-only trial on saved fleet85. The smoke row passed before/during/after, router/tunnel checks passed, there was one s2idle cycle, and it restored cleanly (row). The one trial-boot error (SIO DART 3ad060000 -110) is identical in main's J713 DTB and comes from the J713's lab-stale Stage 2, not this PR.
  • No other family's DTB changes.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers — ready for maintainer review/merge on CI green. Exact head 3d6cde7b3292 is App APPROVED (MERGE), live J713 (M4 Air) DT-only boot + USB4/s2idle row PASS (#3517#issuecomment-7241649066), dt-checks and host-tests are green (waiting only on queued pr-text rerun after Risk: two-way update).

@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: FINISH at 3d6cde7.

Please correct the six secondary DART-window dispositions before merge. The J713 receipt infers that they probed successfully from the absence of the old translation-unit error, but their compatible pair is apple,t8132-dart-smmu / apple,dart-smmu. I checked the driver sources at the saved fleet85 source and the PR head. Neither contains an OF match for either string. The reported absence of apple-dart probe errors is consistent with no driver probing those nodes, and the archived USB4 output does not provide a bound driver for them.

Keep those unqualified nodes disabled or show the matching driver and actual binding for each window, then update the receipt. The exact J713 smoke, USB4 and s2idle results remain evidence for the paths that ran. This finding is separate from the reported pre-existing SIO timeout.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Thank you for catching the wording inaccuracy in the J713 receipt. You are right: the six secondary-window nodes (dart_ave2, dart_disp0_companion1, dart_dispext0_companion1, dart_dispext1_companion1, dart_isp_companion3, dart_isp_companion4) use compatible = "apple,t8132-dart-smmu", "apple,dart-smmu", which has no Linux OF driver match (as noted earlier in #3517#issuecomment-7240034807). They did not bind apple-dart or probe as translation units; the J713 boot confirmed they cause zero probe errors or regressions.

Under the DT-COMPLETE Part-2 rule (DTs describe all hardware present in the ADT; driver-less blocks stay enabled as long as they do not mis-bind or fault — the same rule applied to apple,t8132-dpin, apple,t8132-dcp-expert, apple,t8132-error-handler, apple,t8132-event-log-handler, and apple,t8132-dwi in this PR and across #3514/#3515/#3527), these six ADT-present dart-smmu nodes remain enabled as accurate hardware description (unlike #3515/#3527 where the companion windows used apple,t8112-dart/apple,t6020-dart and actively mis-bound apple-dart with -ENODEV).

Please confirm whether this receipt correction clears the disposition at 3d6cde7b3292 (preserving the J713 hardware row and green dt-checks/host-tests), or if you prefer the six dart-smmu nodes disabled in this PR.

@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 3d6cde7 once the required checks and merge requirements are satisfied.

Checked: The corrected public receipt explicitly states that the six DART-SMMU windows are driverless and did not probe. The Part-2 scope permits ADT-present hardware descriptions without a driver. I checked the T8132 DTS references at this head: the references are node overrides, with no T8132 IOMMU consumer references to these six labels. This resolves the earlier disposition request. The J713 run supports USB4, smoke and s2idle coverage, with no claim of driver binding for these windows. Keep the applicable peer, hosted and code-owner gates.

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-template PR body lacks Tested or Risk (bot) labels Nov 28, 2026
@RyanTheTide
RyanTheTide merged commit a441f2a into main Nov 28, 2026
5 of 11 checks passed
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merged as a441f2a6b29ddab392698dd3df5b6a73bcabc06d under the 6-point merge rule:

Revert: git revert -m 1 a441f2a6b29ddab392698dd3df5b6a73bcabc06d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (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.

1 participant