Repository navigation
arm64: dts: apple: t8132: enable ADT-present peripherals and tunnel PIODMA - #3517
Conversation
…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>
There was a problem hiding this comment.
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_piodmaandapciec1_piodmamove cleanly insideusb4-pcie-tunnel-0/1with intactreg,interrupts, andiommus = <&usb4_{0,1}_pcie_dart 254>properties so they only populate on tunnel bring-up. - Confirmed
&dart_ave2/delete-property/ power-domainsremoval int8132-j713-j715.dtsimatchesps_venc_sysbeing enabled there while&dart_apr0retains 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/-82across 8 files (MERGEABLEagainstmain). - Local
dt-checks,CHECK_DTBS=y(0 new warnings),apple-dart-pd-check.py(0 new issues),apple-sibling-drift.py(0 new issues), andt8132-usb4-policy-tests.pyPASS reported by author; awaiting CI completion and J713 hardware boot row.
There was a problem hiding this comment.
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).
|
Follow-up from the J413 row on #3515. That head newly enabled three DART nodes that are secondary 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):
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 |
|
Checked all six nodes above in |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
J713 (M4 Air) row at
Lab evidence: |
There was a problem hiding this comment.
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-spmi1is backed by the J604 ADT. No UNSAFE node is enabled. - The six newly enabled DARTs are secondary
regwindows 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.
|
@aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers — ready for maintainer review/merge on CI green. Exact head |
There was a problem hiding this comment.
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.
|
Thank you for catching the wording inaccuracy in the J713 receipt. You are right: the six secondary-window nodes ( 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 Please confirm whether this receipt correction clears the disposition at |
There was a problem hiding this comment.
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.
|
Merged as
Revert: |
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) insideusb4-pcie-tunnel-0/1so 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-j60488->63,t8132-j623101->78,t8132-j624102->79,t8132-j713133->106,t8132-j715142->115,t8132-j773g123->103).Tested:
dt-checkssuite againstmain(844781f1b56b) usingdtschema 2026.9across all 6t8132-*.dtbfiles:scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checksCHECK_DTBS=y: base 13 warnings, head 13 warnings, 0 new warningsscripts/dtc/apple-dart-pd-check.py: 0 new issuesscripts/dtc/apple-sibling-drift.py: 0 new issuestools/asahi/t8132-usb4-policy-tests.py: PASS (t8132-j713.dtbandt8132-j715.dtb10 USB4 PMGR providers available)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_piodmasit insideusb4-pcie-tunnel-0/1and only populate when ACIO brings up a PCIe tunnel;aop_spmi0(all T8132) andaop_spmi1(J604) bindapple-spmiasnub_spmi1already does. Hardware-absent, loader-gated, PMGR-policy,peripheral_clocks, unqualified (apr/ane/aveon boards lacking their PMGR/firmware setup), andapcie0_piodma(#3345) nodes remain disabled.Not yet:
apcie0_piodmastays disabled untilapple-piodmasupports >36-bit DMA addresses on the 40-bit PCIe DART window (dmaengine: apple-piodma: internal engines on T8122/T8132 stall under ASPM L1.2 and need more than 36 address bits #3345).peripheral_clocks, PMGR power-state policy, and unqualified board-specific ProRes/ANE/AVE nodes remain disabled.Revert:
git revert <merge-commit>cleanly restores the prior disabled states andapciec0/1_piodmaplacement.Per-file summary
arch/arm64/boot/dts/apple/t8132-usb4.dtsi: addapciec0_piodma: dma@404068000insideusb4_0_pcie_tunnelandapciec1_piodma: dma@40c068000insideusb4_1_pcie_tunnel(enabled, populated on demand by ACIO).arch/arm64/boot/dts/apple/t8132-peripherals.dtsi: remove movedapciec0/1_piodma; enabledart_scaler1,dart_ave2,dart_ave3,dart_aop_companion1/2,dart_ane_companion3,atc0/1_dpin0/1,dwi,pwm,aes,aon_ptd, anddcp0/dcpext0/dcpext1_expert.arch/arm64/boot/dts/apple/t8132-error-handlers.dtsi: enablesoc_errorsandsoc_events.arch/arm64/boot/dts/apple/t8132-peripheral-buses.dtsi: enableaop_spmi0.arch/arm64/boot/dts/apple/t8132-isp.dtsi: enabledart_isp_companion3,dart_isp_companion4, anddart_isp_companion5(already gated to camera-equipped laptops and iMacs, withps_isp_sysenabled).arch/arm64/boot/dts/apple/t8132-laptop.dtsi: enabledart_mtp_companion1alongsidemtp_dart.arch/arm64/boot/dts/apple/t8132-j713-j715.dtsi: drop stale/delete-property/ power-domainsondart_ave2(ps_venc_sysis enabled) and enabledart_disp0/dispext0/dispext1_companion1.arch/arm64/boot/dts/apple/t8132-j604.dts: enableaop_spmi1(present in J604 ADT, absent in J713/J773).