Repository navigation
arm64: dts: apple: t8103: enable ADT-present peripherals and tunnel PIODMA - #3551
Conversation
…nel PIODMA Enable safe ADT-present peripheral blocks in shared t8103-peripherals.dtsi, t8103.dtsi, t8103-jxxx.dtsi, and per-board control files across all five T8103 boards (J274, J293, J313, J456, J457), reducing disabled nodes from 372 to 155 (-217): - Move apciec0_piodma and apciec1_piodma into &usb4_0_pcie_tunnel and &usb4_1_pcie_tunnel as enabled dma@ nodes so the ACIO router driver populates and tears them down strictly with an active PCIe tunnel. - Enable shared ADT-present peripherals in t8103-peripherals.dtsi: MCC, 19 die temperature sensors, AES, PWM0, AIC timebase, DWI, nub_spmi1, aop_spmi1 + stockholm NFC, JPEG0/JPEG1 and their standalone DARTs, ave_dma (renamed to dma@ for schema compliance), ATC0/ATC1 DP inputs, soc_errors, soc_events, and battery_monitor. - Enable dpaudio0 in shared t8103-jxxx.dtsi and move AOP core enablement into shared t8103.dtsi while keeping aop/aop_mbox/aop_dart/aop_admac disabled on J274 Mac mini (iBoot does not boot AOP firmware on Mac mini). - Enable board-verified control clients in t8103-j*-control.dtsi (J274 ethernet-sideband@32, J293 touchbar-driver@4c and touchbar-calibration@50, J313 i2c2 + retimer@18/@19, J456/J457 hcpm@8). Keep unsafe, loader-gated, unbacked-provider, and open-PR-owned nodes disabled: simetra (unvalidated apple,spmi-nvmem bounds), dockchannel_uart, primary_spmi_monitor (unbacked interrupt-controller referenced by pmic1), peripheral_clocks (unbacked clock provider referenced by scaler0), spi4 (depends on peripheral_clocks and absent on J274), pmp/pmp_dart/pmp_mbox (firmware-owned without T8103 handoff), sio (loader-gated), and ave/ave_dart0/ave_dart1 (owned by open PR #3284). Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
There was a problem hiding this comment.
Verdict: FINISH, then merge at 2db0e1dc
Blockers:
aop_spmi1andnub_spmi1bind the liveapple-spmidriver and write IRQ mask/ack registers on probe (t8103-peripherals.dtsi):- Unlike driverless
apple,spmi-sidebandnodes,aop_spmi1(spmi@24a829300,interrupts = <AIC_IRQ 319>, nopower-domains) andnub_spmi1(spmi@23d0e1300,interrupts = <AIC_IRQ 353>) matchdrivers/spmi/spmi-apple-controller.c(apple_spmi_gen1). Because both nodes carryinterrupts,apple_spmi_probe()->apple_spmi_init_irq()immediately writes0toIRQ_MASK(+0x20..+0x40) and0xfffffffftoIRQ_ACK(+0x60..+0x80) and installs a chained AIC handler. - Enabling
aop_spmi1(andstockholm) globally across all five T8103 boards — including J274 Mac mini where iBoot does not boot AOP andaop*are kept disabled — risks an unpowered-MMIO boot fault on J274 or clobbering live AOP SPMI1 interrupt masks on J293/J313/J456/J457. Botht600x(#3514) andt8112(#3515) keepaop_spmi1disabled. - Enabling
nub_spmi1withinterruptswhile its only child (simetra) stays disabled clears allnub_spmi1interrupt masks for zero enabled consumers (t600xkeepsnub_spmi1disabled, andt8112's enablednub_spmi1omitsinterrupts). - Keep
aop_spmi1(withstockholm) andnub_spmi1status = "disabled"until qualified on live T8103 hardware.
- Unlike driverless
- Wait for the 4 queued CI checks (
dt-checks,host-tests,pr-text,readiness) to finish green. - Obtain a live T8103 boot/regression row (or maintainer sign-off if waived) — in addition to driverless nodes, this PR enables live-driver nodes (
jpeg0_dart/jpeg1_dart,i2c2on J313, anddpaudio0).
Checked:
- USB4 PCIe-C tunnel PIODMA relocation (
apciec0_piodma,apciec1_piodmamoved into&usb4_{0,1}_pcie_tunnelasdma@),ave_dmanode rename (dma@267020000), shareddpaudio0int8103-jxxx.dtsi, shared AOP enablement int8103.dtsiwith J274 Mac mini disabled overrides, and#3284(ave/ave_dart*) /#1114(sio) /simetra/dockchannel_uart/primary_spmi_monitor/peripheral_clocks/pmp*exclusions all look clean. - Verified
jpeg0/jpeg1do not matchdrivers/media/platform/apple/jpeg/apple-jpeg-drv.con T8103 (no"apple,t8103-jpeg"entry),jpeg0_dart/jpeg1_dartreference validps_jpg,aesreferences enabledsio_dart, andi2c2int8103.dtsialready hasclkref,i2c2_pins, andps_i2c2. - Checked for Apple material, tool attribution, and private serials: clean;
MERGEABLEonmain; humanSigned-off-by;Tested:andRisk: two-waypresent.
Evidence
- Head:
2db0e1dc(base: main,mergeable: MERGEABLE,+56/-142across 13 files). - Checked
drivers/spmi/spmi-apple-controller.c(apple_spmi_probe,apple_spmi_init_irq,apple_spmi_gen1) anddrivers/spmi/spmi-apple-irq.h(APPLE_SPMI_GEN1_IRQ_MASK = 0x20,APPLE_SPMI_GEN1_IRQ_ACK = 0x60). - Cross-checked
t600x-die0.dtsi(nub_spmi1andaop_spmi1disabled) andt8112.dtsi(aop_spmi1disabled;nub_spmi1has nointerruptsproperty). - Minor non-blocking note:
t8103.dtsiadds an unused labelaop_las: las(harmless).
Keep aop_spmi1 (with stockholm) and nub_spmi1 disabled until qualified on live T8103 hardware: apple-spmi clears IRQ masks and acks pending interrupts in apple_spmi_init_irq() on probe, and aop_spmi1 lacks power-domains (risking unpowered MMIO on J274 Mac mini where iBoot does not boot AOP). Also drop the unused aop_las label in t8103.dtsi. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
There was a problem hiding this comment.
The updated DTS restores disabled status for both SPMI controllers and their Stockholm child, clearing the probe-time IRQ writes identified in review. Please update the summary and tested commit so the text agrees with this revision, and record current-head schema validation and a live T8103 boot before landing. The current summary still lists the SPMI nodes as enabled and the older validation points to 2db0e1d.
|
Addressed the review findings in fast-forward commit
|
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Pinging @aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers for review notice at |
There was a problem hiding this comment.
Verdict: MERGE at d2935a5 after runtime and hosted validation.
Checked: The corrected DTS keeps both SPMI controllers and the NFC child disabled. Verified the current schema and hosted results. T8103 runtime qualification remains due for the newly enabled live drivers.
|
Merge-train check: I compiled every t8103 (J274/J293/J313/J456/J457) DTB at main and at main merged with this PR, then compared node status. This isn't a no-op tidy. Each board gets 37-43 nodes switched from |
|
Merging at |
…eep entry Linux aurora-silicon#3551 enabled the ADT-present T8103 peripherals. Several of them have no driver yet (aes, jpeg0/1, ave_dma), so the PMGR provider's sync_state() stays pending and ps_aes, ps_jpg and ps_venc_sys stay powered. T8103 had no stray list, so nothing lowered them at sleep entry, and J313 deep sleep stopped waking. Add t8103_stray[] with aes, jpg and the venc chain, children before parents, so apple_sleep_lower_stray() lowers them at the last step and apple_sleep_stray_restore() raises them in reverse on refusal or wake. fpwm0 is already lowered by t8103_cg_commit_off and dwi is always-on. The nodes stay enabled. This is the T8103 counterpart of the T8122 fix in aurora-silicon#3834. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
…idle The auxiliary DMA aperture driver matched only apple,t6000-ave-dma, so the T8103 node that linux aurora-silicon#3551 enabled stayed unbound. Its PMGR sync_state() then stayed pending and held ps_venc_sys on for good, and J313 deep sleep stopped waking. On T6000 the driver binds but has no runtime PM, so genpd counts the device as active and ps_venc_sys never goes off there either. The encoder firmware needs that domain power-cycled between sessions. Match the generic apple,ave-dma compatible that every node carries, and enable runtime PM without ever resuming the device. The apertures only report faults through the interrupt they share with the encoder DARTs, which can only fire while the domain is on, so the encoder and its DARTs alone decide when ps_venc_sys is powered. The DT nodes stay enabled. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
What: Enable safe ADT-present peripheral blocks in shared
t8103-peripherals.dtsi,t8103.dtsi,t8103-jxxx.dtsi, and per-board-control.dtsifiles across all five T8103 boards (J274 Mac mini, J293 MacBook Pro 13", J313 MacBook Air, J456/J457 iMac 24"), and move both USB4 PCIe-C tunnel PIODMA engines (apciec0_piodma,apciec1_piodma) into&usb4_0_pcie_tunnel/&usb4_1_pcie_tunnelasdma@nodes.Tested: Local build and schema validation at
d2935a5961c9b7across all 5 T8103 DTBs (and all 139 Apple DTBs):CHECK_DTBS=y169 -> 169 warnings (0 new),apple-dart-pd-check.py0 -> 0 (0 new),apple-sibling-drift.py24 -> 24 (0 new),checkpatch.pl --strict0 errors / 0 warnings / 0 checks; disabled nodes reduced from 372 to 170 (-202). No T8103 Mac is in the lab; closest lab hardware coverage is the same shared-dtsi + tunnel-PIODMA + Mac-mini-AOP pattern in M1 Pro#3514(merged, live J316s DT-only boot PASS) and M2#3515(live J413 + J473 Mac mini DT-only boots PASS).Risk: two-way · Apple M1 (T8103, 5 boards); DT-only, zero changes to non-T8103 DTBs or kernel code.
Not yet: Live boot + regression row on a T8103 Mac (no T8103 hardware in lab; community/maintainer row needed) and GitHub Actions CI run.
Revert:
git revert <merge-sha>restores every T8103 DTB tomainwith no kernel/userspace/firmware state dependencies.Before you request review
#3284ownsave/ave_dart0/ave_dart1int8103-peripherals.dtsi— left untouched;#1114ownssio— left untouched;#3506enablesmccint8103-j313.dts— zero conflict).#3514and M2#3515live DT-only rows PASS).Details
Shared
.dtsifirst acrosst8103-peripherals.dtsi,t8103.dtsi,t8103-jxxx.dtsi, and board files (t8103-j274.dts,t8103-j293.dts,t8103-j313.dts,t8103-j456.dts,t8103-j457.dts,t8103-j*-control.dtsi):apciec0_piodma(3a2000000) andapciec1_piodma(522000000) from disabled top-levelsocnodes into&usb4_0_pcie_tunneland&usb4_1_pcie_tunnelasdma@nodes withstatus = "okay"so the ACIO router driver populates and tears them down strictly with an active PCIe tunnel.t8103-peripherals.dtsi):mcc, 19 die temperature sensors (mtrtempsensor3..18,tempsensor0..2),aes,pwm0,aic_timebase(read-onlydbgview),dwi,jpeg0/jpeg1+ standalone translation DARTsjpeg0_dart/jpeg1_dart(verified'DART'instances in J313 ADT),ave_dma(renameddma@267020000for schema compliance),atc{0,1}_dpin{0,1},soc_errors,soc_events, andbattery_monitor.dpaudio0and AOP (t8103.dtsi,t8103-jxxx.dtsi): Enableddpaudio0int8103-jxxx.dtsi(matchingdpaudio1and J313 ADTdp-audio0) and movedaop_mbox/aop_dart/aop_admac/aopenablement intot8103.dtsi, while keepingaop/aop_mbox/aop_dart/aop_admacdisabled on J274 Mac mini (matching live J473 M2 Mac mini findings where iBoot does not boot AOP firmware).t8103-j*-control.dtsi): J274ethernet_sideband@32, J293touchbar_control@4c+touchbar_calibration@50, J313i2c2+atcrt0@18/atcrt1@19, J456/J457hcpm@8.nub_spmi1andaop_spmi1(withstockholm, sinceapple-spmiclears IRQ masks inapple_spmi_init_irq()on probe andaop_spmi1lackspower-domainswhile AOP is off on J274),simetra(apple,spmi-nvmemrequires validated bounds),dockchannel_uart(debug UART ownership),primary_spmi_monitor(unbackedinterrupt-controllerreferenced bypmic1),peripheral_clocks(unbacked clock provider referenced by enabledscaler0),spi4(references disabledperipheral_clocks, absent on J274),pmp/pmp_dart/pmp_mbox(firmware-owned without T8103 handoff),sio(loader-gated /#1114),sleep(board-qualified), andave/ave_dart0/ave_dart1(owned by open PR#3284).Evidence
Local validation vs
main(a441f2a6b29dda):make ARCH=arm64 CHECK_DTBS=yacross all 5t8103-*.dtb: 169 -> 169 warnings (0 new)scripts/dtc/apple-dart-pd-check.py --dtb-dir ... --baseline-dtb-dir ... --report: 0 -> 0 (0 new)scripts/dtc/apple-sibling-drift.py --dtb-dir ... --baseline-dtb-dir ... --report: 24 -> 24 (0 new)scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checksDisabled-node counts (
main->feat/dt-complete-t8103, total -202):t8103-j274.dtbt8103-j293.dtbt8103-j313.dtbt8103-j456.dtbt8103-j457.dtb