Repository navigation
arm64: dts: apple: t602x: enable ADT-present peripherals and tunnel PIODMA - #3527
Conversation
…IODMA
Describe safe ADT-present T6020/T6021/T6022 peripheral blocks as enabled
in the shared and board peripheral dtsi files across all 8 T602x DTBs
(J414s, J416s, J474s, J414c, J416c, J475c, J180d, J475d), and move the
USB4 PCIe-C PIODMA engines into their tunnel containers so they populate
only when a PCIe tunnel comes up.
Specifically:
- Move m2_apciec{0..7}_piodma into their corresponding
&usb4_{0..3}_pcie_tunnel{,_die1} containers as dma@ nodes with status
okay across T6020, T6021, T6022, J474s, J475c, and J180d.
- Enable event-log, error-handler, DWI, AIC timebase, MCC, AES, SPMI
sideband views, CLVR SPMI buses with read-only Mirabeau PMICs,
nub_spmi1 + peripheral@d (keeping Maverick PMICs disabled), AOP SPMI
buses with their NFC and radio-peripheral children, DisplayPort input
blocks (atc*_dpin*), JPEG/scaler/ProRes engines with their DARTs, and
non-loader-gated AVE/dispext secondary DARTs in shared
t602{0,1,2}-peripherals.dtsi and board peripheral dtsi files.
Unsafe, unverified, and loader-gated blocks stay disabled:
m2_dockchannel_uart (speaker amp interference), maverick-pmic (nvmem
parity errors past 16 B), m2_scdc0/1 (unverified SCDC coprocessors),
internal m2_apcie*_piodma (ASPM L1.2 / DART stream 15 fault), PMP,
AVE/ANE/DCPEXT loader-gated blocks, and board-absent hardware.
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
There was a problem hiding this comment.
Verdict: FINISH, then merge at 54a96291
Blockers:
- Wait for queued CI (
dt-checks,host-tests,pr-text,readiness) to complete green. - Live boot + regression row on a T602x (M2 Pro/Max/Ultra) Mac at
54a96291(or maintainer disposition on lab-absent T602x coverage alongside sibling M1 Pro#3514/ M2#3515). - Maintainer approval required before merge (first-pass review only).
Checked:
- Shared-
.dtsi-first acrosst6020-peripherals.dtsi,t6021-peripherals.dtsi,t6022-peripherals.dtsi, and the 4 board peripheral.dtsifiles (t6020-j474s,t6021-j475c,t6022-j180d,t6022-j475d) covering all 8 T602x DTBs (+158/-375,-597disabled nodes). - All 16 USB4 PCIe-C tunnel PIODMA engines (
m2_apciec{0..7}_piodma) moved cleanly into their&usb4_{0..3}_pcie_tunnel{,_die1}containers asdma@<addr>nodes (matching#3514/#3515/#3517). - Verified against the full diff that unsafe, unverified, and loader-gated blocks (
apple,maverick-pmic,m2_dockchannel_uart,m2_scdc0/m2_scdc1, internalm2_apcie*_piodma,pmp,m2_ave*,m2_ane1*,m2_dcpext*) remain disabled. - Local validation clean:
CHECK_DTBS=y443 -> 443 (0 new),apple-dart-pd-check.py4 -> 4 (0 new),apple-sibling-drift.py145 -> 145 (0 new),checkpatch.pl --strict0/0/0. - No Apple material, no AI attribution, no per-board code gating, no private serials, human
Signed-off-bypresent,Tested:andRisk: two-waypresent.
Evidence
- Head:
54a96291b1cd(base: main,+158/-375across 7t602*peripherals.dtsifiles). - Audited every removed
status = "disabled";hunk in the diff (249 removals) and confirmed allm2_scdc*,m2_ave*,m2_apcie0_piodma, andmaverick-pmicnodes remain untouched/disabled (only appearing as adjacent context lines next to enabledm2_dart_dispext*_1,m2_atc*_dpin*,m2_jpeg*, andm2_scaler*nodes).
The live M2 J413 DT-only trial on #3515 proved that the secondary AVE (+0x20000/+0x44000) and dispext (+0x300000) companion windows are non-translation blocks where apple-dart fails probe with -ENODEV ("not a DART translation unit"). Restore status = "disabled" on the identical companion windows across t6020-peripherals.dtsi (4), t6021-peripherals.dtsi (8), and t6022-peripherals.dtsi (16): m2_dart_dispext{0..7}_1, m2_dart_ave{0..3}_2, and m2_dart_ave{0..3}_3. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Proactively pushed |
There was a problem hiding this comment.
Verdict: FINISH, then merge at 36e5deba
Blockers:
- Hosted CI checks at
36e5deba(dt-checks,host-tests,pr-text / pr-text,readiness / readiness) are stillQUEUED/PENDING; wait for green CI. - No T602x hardware boot row at
36e5deba(confirm maintainer disposition or add a T602x owner row before merge). - Independent maintainer approval at
36e5debais required before merge.
Checked: no Apple material, no AI attribution, human DCO Signed-off-by on both commits, no per-board gating (shared t602{0,1,2}-peripherals.dtsi and shared t602{0,1,2}.dtsi containers used throughout), incremental commit 36e5deba cleanly restores status = "disabled" on all 28 non-translation companion DART windows (t6020-peripherals.dtsi: 4, t6021-peripherals.dtsi: 8, t6022-peripherals.dtsi: 16 covering m2_dart_dispext{0..7}_1, m2_dart_ave{0..3}_2, and m2_dart_ave{0..3}_3) matching the live J413 finding from #3515, PR body has Tested: and Risk: two-way, branch is MERGEABLE against main.
Evidence
- Verified incremental commit
36e5deba2cb114e4849d42b576f2bb017445823drestoresstatus = "disabled"with explanatory comments on:arch/arm64/boot/dts/apple/t6020-peripherals.dtsi(4 nodes:m2_dart_dispext{0,1}_1,m2_dart_ave0_{2,3})arch/arm64/boot/dts/apple/t6021-peripherals.dtsi(8 nodes:m2_dart_dispext{0..3}_1,m2_dart_ave{0,1}_{2,3})arch/arm64/boot/dts/apple/t6022-peripherals.dtsi(16 nodes:m2_dart_dispext{0..7}_1,m2_dart_ave{0..3}_{2,3})
- All base-commit (
54a96291) tunnel PIODMA moves (m2_apciec{0..7}_piodmainto&usb4_{0..3}_pcie_tunnel{,_die1}) and safe ADT-present peripheral enables remain intact; loader-gated and unsafe nodes remain disabled. - Non-blocking nit: the PR body
Tested:summary still cites54a96291b1cd58; updating it to note36e5debakeeps the summary aligned with head.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
@aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers — ready for maintainer review/merge. All hosted CI checks ( |
There was a problem hiding this comment.
Verdict: MERGE at 36e5deb after the applicable hardware evidence and merge requirements are satisfied.
Checked: Exact source verifies all 28 companion DART windows remain disabled and all 16 moved PIODMA nodes are under their matching tunnel. Cross-checked node unit address against reg and port/die numbering against the interrupt and IOMMU parent, including die 1. Hardware descriptions remain shared by SoC with board files used for topology exceptions. Exact hosted DT/schema, host-tests and current PR-text jobs succeeded. Older readiness and text attempts were cancelled.
This is source approval. The related J413 and J316s results cover the comparable code paths. Keep the T602x owner hardware request or obtain explicit maintainer disposition for equivalent coverage under the existing policy. The code-owner notice does not on its own satisfy that requirement.
|
Merge-train check: I compiled every t6020/t6021/t6022 (J414s/J416s/J474s/J414c/J416c/J475c/J180d/J475d) DTB at main and at main merged with this PR, then compared node status. This isn't a no-op tidy. Each board gets 39-86 nodes switched from |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Approve on the DT at 36e5deba2cb1. The PIODMA moves into the tunnel containers match #3514/#3515, and the 28 companion non-translation DART windows stay disabled as the J413 trial showed they must.
One correction for the text: a T6020 Mac is in our lab (J414s, M2 Pro), so the T6020 row can be ours. On t6020-peripherals.dtsi alone this enables MCC, the error handler, the event log, AES, ProRes, JPEG, the scaler, six DP inputs, the AVE0 DARTs, and every CLVR, nub and AOP SPMI bus with its sidebands, including apple,spmi-nvmem on the Mirabeau PMIC. So the J414s row should be an exact-head DT boot with: dmesg showing no new probe errors, DART faults or SError, apple-mcc probing with SLC allocation unchanged from stock, 0 failed units, and one suspend. T6021 and T6022 need PEER-ROWS (J416c/J475c and J180d/J475d).
|
Hardware verification PASS on J414s (MacBook Pro 14" M2 Pro, T6020, 27.2 firmware
|
|
Merge-train check against current Merge tree. DT checks on the merge tree (pc, x86_64,
What the J414s row covers. For each board I listed every node that is disabled or absent on
On T6021, and T6022 die 0 (M2 Max blocks that M2 Pro lacks):
T6022 die 1 (
These run the same driver code J414s ran. But each probe maps registers and powers a domain at an address J414s doesn't have, and a wrong Rows needed (one T6021 board, J414c/J416c/J475c, and one T6022 board, J180d/J475d; exact head
With those two rows this can merge as it is. Nothing in the diff needs to change. |
What: Enable safe ADT-present peripheral blocks in shared
t602{0,1,2}-peripherals.dtsiand board peripheral.dtsifiles across all 8 T602x DTBs (M2 Pro/Max/Ultra: J414s, J416s, J474s, J414c, J416c, J475c, J180d, J475d), and move all 16 USB4 PCIe-C tunnel PIODMA engines (m2_apciec{0..7}_piodma) into their&usb4_{0..3}_pcie_tunnel{,_die1}containers asdma@nodes.Tested: Build & schema validation at
36e5deba2cb114across all 8 T602x DTBs:CHECK_DTBS=y443 -> 443 warnings (0 new),apple-dart-pd-check.py4 -> 4 (0 new),apple-sibling-drift.py145 -> 145 (0 new),checkpatch.pl --strict0 errors / 0 warnings / 0 checks; -529 disabled nodes total. No T602x Mac is in the lab (closest lab hardware coverage is the same shared-dtsi + tunnel-PIODMA pattern in M2#3515and M1 Pro#3514, which passed its live J316s DT-only boot row; the 28 companion non-translation AVE/dispext DART windows identified on live J413#3515are kept disabled here too).Risk: two-way · M2 Pro / M2 Max / M2 Ultra (T6020/T6021/T6022, 8 boards); DT-only, zero changes to non-T602x DTBs or kernel code.
Not yet: Live boot + regression row on a T602x (M2 Pro/Max/Ultra) Mac (no T602x hardware in lab; community/maintainer row needed) and GitHub Actions CI run at
36e5deba2cb114.Revert:
git revert <merge-sha>restores every T602x DTB tomainwith no kernel/userspace/firmware state dependencies.Before you request review
#3095feat/t602x-clpcis open ont602*, disjoint from peripheral enables and tunnel PIODMA).d8c604370581df).#3514live J316s DT-only boot row PASS, M2#3515J413/J473 DT-only rows queued).Details
Shared
.dtsifirst acrosst6020-peripherals.dtsi,t6021-peripherals.dtsi,t6022-peripherals.dtsi, and board peripheral overrides (t6020-j474s-peripherals.dtsi,t6021-j475c-peripherals.dtsi,t6022-j180d-peripherals.dtsi,t6022-j475d-peripherals.dtsi):m2_apciec{0..7}_piodmafrom disabled top-levelsocnodes into their corresponding&usb4_{0..3}_pcie_tunnel{,_die1}containers asdma@<addr>withstatus = "okay"so the ACIO router driver populates and tears them down strictly with an active PCIe tunnel (matching#3514,#3515,#3517). Usingdma@rather thandma-controller@avoids the genericdma-controller.yaml#dma-cellsrequirement while matchingapple,pciec-piodma.yaml.read-onlyMirabeau PMICs (drivers/nvmem/apple-spmi-nvmem.c),nub_spmi1+peripheral@d, AOP SPMI buses with NFC and radio-peripheral children, DisplayPort input (atc*_dpin*), JPEG/scaler/ProRes engines + real DART translation units (m2_dart_apr*,m2_dart_scdc*,m2_dart_jpeg*,m2_dart_scaler*,m2_dart_ave*_0/1).m2_dockchannel_uart(speaker amp interference), allapple,maverick-pmicnodes (nvmem parity errors past 16 B),m2_scdc0/m2_scdc1(unverified SCDC coprocessors), all 28 companion non-translation DART windows (m2_dart_dispext{0..7}_1,m2_dart_ave{0..3}_2,m2_dart_ave{0..3}_3— identical to the T8112 blocks whereapple-dartprobes-ENODEV), internalm2_apcie*_piodma/m2_apcie_ge*_piodma(ASPM L1.2 / DART stream 15 fault), PMP, loader-gatedm2_ave*/m2_ane1*/m2_dcpext*+m2_dart_dispext*_0+m2_dart_dcpext*+m2_dcpext*_mbox, and board-absent peripherals (dpaudio0#ifdef//delete-node/left untouched).Evidence
Local validation at
36e5deba2cb114e4849d42b576f2bb017445823dvsmain(d8c604370581df):make ARCH=arm64 LLVM=1 CHECK_DTBS=yacross all 8t602*.dtb: 443 -> 443 warnings (0 new)scripts/dtc/apple-dart-pd-check.py --dtb-dir <out>/arch/arm64/boot/dts/apple --report: 4 -> 4 (0 new)scripts/dtc/apple-sibling-drift.py --dtb-dir <out>/arch/arm64/boot/dts/apple --report: 145 -> 145 (0 new)scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checksDisabled-node counts (
main->36e5deba2cb114, total -529):t6020-j414s.dtbt6020-j416s.dtbt6020-j474s.dtbt6021-j414c.dtbt6021-j416c.dtbt6021-j475c.dtbt6022-j180d.dtbt6022-j475d.dtb