Repository navigation
accel/ane: support M3 Pro (T6030) H15 27.2 ANE on shared H16 backend - #4342
Conversation
Move the memory-region and memory-region-names prohibitions out of the shared T6030/T6031 block into the unqualified T6031-only block so the bootloader can pass preloaded firmware-text and firmware-data reserved-memory regions on T6030. Signed-off-by: DjDeveloperr <hey@djdev.me>
Qualify the M3 Pro (T6030) H15 Neural Engine on macOS 27.2 (26B123) using the shared AP-direct H16 backend, matching T8122: - Add pwgate_domain to struct ane_fw_platform (default 0, preserving T8112 behavior) so T6030 attaches its aux-0 + 0x2b6c PWGATE notifier to ANE_CPU (power-domain index 1 under ANE_SYS). - Populate ane_t6030_platform with the six ADT register windows (engine, pmgr, aux-0, aux-1, aux-2, aux-4), ANE_SYS at PMGR +0x498, DART rev 2.0 MMIO table, five DAPF records at DART0 +0x4000, and cold sleep recovery. - Pin the J516s 27.2 (26B123) preload (TEXT 0xc8000, DATA 0x2a4000, patchbay cells GKTS/ECAP/ARcM/ABOI/ZSOI shifted 0x260 bytes earlier than T8122) and add ane_t6030_platform_test to ane-fw-platform KUnit. Signed-off-by: DjDeveloperr <hey@djdev.me>
Mark the T6030 ANE node dma-coherent, update its default preloaded DATA IOVA to 0x100000c8000 for the 27.2 (26B123) 800 KiB TEXT layout, and enable the ANE and its three DARTs on J516s (16-inch M3 Pro). Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: FINISH, then merge at 7f4b40e035aaf5cadf5a729b320eaf33d619cf83
Blockers
drivers/accel/ane/ane_fw_platform.c:793— T6030 can pass preflight without cold-boot ownership. The companion Aura test covers an EL1 handoff that leaves ANE enabled with reservations and IOVAs while omitting/chosen/apple,ane-cold-boot. T6030 selects the AP-direct platform unconditionally, so a matching preload can reach power acquisition before the shared backend checks whether the CPU is stopped. Require explicit ownership for T6030 before registration or power acquisition. Linux preflight · Aura EL1 test- The shared PWGATE notifier still needs a same-block regression row. T8112 is the existing user of this notifier path. Its static platform data keeps domain index 0.
Checked — All three commits integrate cleanly with main at 5bce6852512b. The DTB enables only J516s ANE and its three DARTs. The ASC mailbox remains disabled. J514s stays disabled and T6031-family platforms stay unqualified. Deploy Stage 2 from aurora-silicon/aura#673 with the new DTB so Linux receives the reserved-memory handoff.
Evidence
The ANE and Apple DTS source trees match the recorded Git IDs. The final receipt matches retained DTB 9b1d5939a9aa, module b8c6d54652bc (Build ID b9448e0d0bf1), and Aura 3fbffab9cb42. The trial used that replacement ANE module and Stage 2 DTB with the existing 7.3.0-j516s-hvmain+ Image and support modules.
The final J516s row logged three rev-0200 DARTs, the accepted 26B123 profile, 5/5 DAPF readback, firmware READY with zero restarts, and ABI 3 GET_CAPS. All five ANE domains parked before deep sleep. The kernel logged deep entry and exit, suspend success advanced from 0 to 1, and GET_CAPS still worked with all five domains off. The row covers initialization and sleep while parked. Post-wake engine restart, replay and HWX execution remain outside that receipt.
Apple build, DT checks, host tests and ANE KUnit were in progress at review time.
Follow-up at 502dd3fecc3ac6f945bea38f5eba3acff6350c5d: the ownership blocker is resolved. The guard runs before power acquisition and is enabled only for T6030. The same ANE module refused the no-handoff control and passed the positive J516s preload, runtime-idle and deep-wake sequence. The current DTB includes and boots both the landed Stockholm NFC node and the ANE nodes. Aura #673 has merged. The shared T8112 PWGATE comparison is still open under request 4e8ea5a1.
T6030 selects ane_t6030_platform unconditionally rather than through ane_fw_preload_handoff(). Under an EL1 handoff that leaves preload reservations and IOVAs present while omitting /chosen/apple,ane-cold-boot, ane_fw_platform_preflight() could pass and reach power acquisition before cold-boot ownership is established. Add a require_cold_boot flag to struct ane_fw_platform, enable it on ane_t6030_platform, and refuse preflight with -ENODEV before driver registration or ANE power acquisition whenever ane_fw_raw_boot() is false. Update ane_t6030_platform_test() to assert the flag and -ENODEV refusal. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Hardware validation update for exact PR head Source & Artifact Provenance
Slot A — No-Handoff Negative Control (J516s, T6030, 14-inch MacBook Pro M3 Pro)
Slot B — Paired Cold-Boot Positive Control + Deep Sleep (J516s, T6030)
|
Resolve the tail conflict in arch/arm64/boot/dts/apple/t6030-j516s.dts by preserving both the landed Stockholm NFC (&aop_spmi1) node and the T6030 ANE (&ane_dart0..2, &ane) enablement. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Hardware validation update for merged PR head Exact-Merge Provenance
Exact-Merge Positive Control + Deep Sleep (J516s, T6030, 16-inch MacBook Pro M3 Pro)
|
There was a problem hiding this comment.
Verdict: REQUEST_CHANGES at 502dd3f
Failure: The new T6030 binding accepts a preload handoff with only one memory-region phandle, or with two phandles and no memory-region-names. I ran dt-validate on the compiled J516s DTB with each of those handoffs and with the complete handoff as a control. The new schema accepts all three. The driver rejects both incomplete forms in ane_fw_preload_check(), which requires two regions, two names, and two IOVAs. Please require that matched pair and its names/IOVAs when a T6030 handoff supplies preload reservations. The static board DT can still omit reservations for the bootloader to add.
Checked: Built three base and head DTBs. J516s enables the ANE and its three DARTs, J514s remains disabled, and the J516c DTB is byte-identical. The compiled J516s resources match the driver geometry and the CPU-domain index. The bootloader handoff from Aura #673 is merged, and the driver checks cold-boot ownership before resource and preload handling.
The T6030 driver requires two firmware reservations with matching names and device addresses. Require the full pair when a handoff provides reservations or their names. Keep the static IOVAs valid without reservations so the bootloader can supply the per-boot addresses. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
The T6030 binding now requires two phandles, the ordered TEXT and DATA names, and both firmware IOVAs whenever a handoff supplies reservations or their names. The static board can still supply its default IOVAs while leaving the reservations for the bootloader.
|
There was a problem hiding this comment.
Verdict: MERGE at c395a77
Checked: The new commit changes only the binding. The binding passes dt-doc-validate. On the matching compiled J516s DTB, the static board and the complete preload handoff passed. The previous one-region and unnamed-region failures now produce schema errors. Missing or short IOVAs, short or reversed names, and a names-only handoff were also rejected. The ordered named pair and its IOVAs now match the driver's preload check. This re-review exercised the schema offline.
RyanTheTide
left a comment
There was a problem hiding this comment.
ORCH5 merge sweep: passes the six-point gate (CI green at c395a77, independent review approval by aurora-silicon-review[bot], no taint, no Stage 1/LocalPolicy change).
… t6030.json (#650) * tools,data: in-tree gate for T6030 (M3 Pro H15) + upstream #4342 facts in t6030.json aurora-silicon/linux#4342 (merged 4fcda801) qualifies the M3 Pro H15 ANE on the shared H16 AP-direct backend. Audit of the merge against this repo found two gaps: - tools/m3_intree_ane_run.py gated the in-tree path on T8122 (apple,t8122-ane) only. The gate is now a per-SoC table: T8122 keeps its four dapf-ranges and required memory-regions; T6030 (soc/ane@308000000, apple,t6030-ane, ane-type 0xc0) gets five dapf-ranges, the two firmware iovas, the preload gates and the cold-boot check; memory-regions stay optional per the relaxed binding. T6031 (0xe0) stays refused -- upstream ships only a soc field for it. --soc forces a row for testing. Self-test covers every refusal on both rows. - data/ane-soc/t6030.json gains S8-S13: the four driver sources, the peripherals and board dtsi, and the binding yaml at the merge commit, each with file sha256, plus an intree block recording the platform row, J516s preload profile (patchbay offsets, digest, shared T8122 build), DTS node facts, the binding relaxation and the probe gates. validate_ane_soc.py accepts the new aurora-src kind. The upstream PR touches no UAPI header: the ioctl ABI is unchanged, and the repo's libane/soc table (ane_t6030_soc, ane_type 0xc0) already matches. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test: update test_m3_intree_ane_run for the per-SoC SOCS table The m3_intree_ane_run refactor moved ANE_NODE, ANE_TYPE_T8122 and DART_STREAMS into SOCS rows; the CI-only test file still referenced them and expected apple,t6030-ane to be unserved. Drive fixtures from the SOCS table, add a t6030 pass row plus preload-gate refusals, and refuse t6031 explicitly. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * tools: verify the node compatible even when --soc forces a row Codex review found --soc skipped the compatible check entirely, so a node at the row's address with a different compatible passed the DT gate. find_soc now requires the forced row's node to exist and carry the row's compatible. Self-test and CI test cover the forced-row mismatch and absent-node cases. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
What
Bring up the Apple M3 Pro (T6030) H15 Neural Engine on macOS 27.2 (26B123) using the shared AP-direct H16 backend, matching T8122 (
#3082). Companion Stage 2 preload handoff: aurora-silicon/aura#673.Refs #4330.
1432c173a154): Move thememory-region: falseandmemory-region-names: falseprohibitions out of the shared T6030/T6031 block into the unqualified T6031-only block so the bootloader can supply preloadedfirmware-textandfirmware-datareserved-memory regions on T6030.6485cd266381):u8 pwgate_domaintostruct ane_fw_platform(default0, preserving T8112 behavior) so T6030 attaches itsaux-0 + 0x2b6cPWGATE notifier toANE_CPU(power-domain index1underANE_SYS).ane_t6030_platformwith the six ADT register windows (engine,pmgr,aux-0,aux-1,aux-2,aux-4),ANE_SYSat PMGR+0x498, DART rev0x0200(ane_h15_mmio_t8122), five DAPF records atDART0 + 0x4000,27.2 26B123(TEXT 0xc8000,DATA 0x2a4000), and cold-sleep recovery.27.2 26B123cross-boot preload pin (ane_h15_patchbay_26b123_t6030, cellsGKTS/ECAP/ARcM/ABOI/ZSOIshifted0x260bytes earlier than T8122, SHA-256d50a4ec8...) andane_t6030_platform_testinane-fw-platformKUnit.7f4b40e035aa): Markt6030-peripherals.dtsi&anedma-coherent, update its defaultapple,firmware-iovasDATA base to0x100000c8000for the 27.2 800 KiB TEXT layout, and enable&ane_dart0,&ane_dart1,&ane_dart2, and&aneont6030-j516s.dts(keeping&ane_mboxdisabled).Tested
J516s hardware at
502dd3fecc3ac6f945bea38f5eba3acff6350c5d, using Aura spi: apple-qspi: admit verified NVRAM writes on the J700 (asahi-bless works) #673 (landed2cf23900914a): the rebuilt DTB with both NFC and ANE enabled booted. ANE reached firmware READY, exposed ABI 3 GET_CAPS and idled with all five power domains off. One deep suspend/wake completed and the post-wake GET_CAPS matched. Zero faults and stock restored. Verified the integration treee986fcec61b0against the tested tree. Exact merged-DTB receiptCurrent head
c395a7767cc36d3210789df283fcbb8088a522edchanges only the binding. The tested ANE driver tree73de9bedf323and Apple DTS tree348434b880b6are byte-identical to502dd3fecc3a, so the J516s runtime result applies.dt-doc-validatepassed, and the complete and static DTBs passed the schema while incomplete reservations, names or IOVAs were rejected. Hosted Apple build, DT, Host and ANE boot/PM KUnit passed. Schema verificationCold-boot ownership control at
52cd60626f29: the no-handoff boot refused T6030 on both automatic probe and explicit module load before the driver acquired power. The current head preserves the identical ANE driver tree73de9bedf323and tested module. Paired positive and negative controlJ516s (16-inch M3 Pro, T6030, H15, macOS 27.2 26B123) at exact PR head
7f4b40e035aaf5cadf5a729b320eaf33d619cf83(drivers/accel/anetree901a6c94e9d08d168399b1023843da0cb956eba1,arch/arm64/boot/dts/appletree589afc021611e0950a18f0aad86bb4e68620207d), paired withaura#673(ba511f1d1e4d,aura.binsha2563fbffab9cb42c522683a0db692f6d5de2a9933809b1a7db3f56f2a89cf01da09), testedane_t6021.kosha256b8c6d54652bc12570707dbfcf76ddeeb7094ee59b7525ece8e42068667881ba9(ELF Build IDb9448e0d0bf1df82b2dcfa5f20979f1bbd8f205e) andt6030-j516s.dtbsha2569b1d5939a9aaaf41d25ec0a6f6f027af8e95dadb79bce5cc8adf0779c0a7590f: PASS./chosen/apple,ane-cold-boot,ane-firmware-text@1000090c000800 KiB nomap,ane-firmware-data@1000157c0002704 KiB nomap,apple,firmware-iovas = <0x10000000000 0x100000c8000>).309800000,309810000,309820000) probed at version0200(PARAMS3 = 2a2a0200);H16 preload identity H15 T6030 27.2 26B123 J516s accepted; 5/5 DAPF records written and read back; firmware reachedREADY(0x08042006) with 0 restarts (5SHAREDMALLOCallocations, startup acks4/0/3/22all0,CONFIG_GET tick 0x16e3600), zero DART faults, zero warnings./dev/accel/accel0registered ([drm] H15 accel node ready (ABI 3, programs switch within one firmware boot));DRM_IOCTL_ANE_GET_CAPSreturnedflags=0 size=32 abi=3 chip_family=15 section_size=16 bind_size=0 exec_io_size=16.H16 ANE: powered down/idle: parked until the next request,runtime_status=suspended, all 5 domains (ane_sys,ane_cpu,ane_mpm,ane_td,ane_base) atoff-0.mem_sleep=deep,rtcwake -m mem -s 15,rc=0,suspend_stats/success0 -> 1): clean wake with/dev/accel/accel0intact (GET_CAPSabi=3 chip_family=15) and all 5 ANE domains cleanly atoff-0.Static & build checks at
7f4b40e035aa: ARM64LLVM=1 W=1build ofdrivers/accel/ane0 warnings;scripts/checkpatch.pl --strict --git 5bce6852512b..HEAD0 errors, 0 warnings, 0 checks across all 3 commits.Risk
Risk: two-way · plain revert removes T6030 ANE qualification and returns
ane_t6030_platformto preflight refusal. On all existing SoCs (pwgate_domainzero-initialized to0), PWGATE notifier behavior is unchanged; T6031/T6034/T6032 remain unqualified and/soc/ane@308000000remains disabled int6030-peripherals.dtsifor boards without a verified preload pin.Not yet
mil-hwx-compiler).