Repository navigation
Conversation
… T6031 Move the memory-region and memory-region-names prohibitions out of the shared T6030/T6031 block into the T6030-only block and allow apple,dapf-ranges, apple,firmware-iovas, and bootloader-supplied TEXT/DATA preload reservations on apple,t6031-ane. Require the matched pair of memory-region phandles, ordered memory-region-names, apple,firmware-iovas, and five apple,dapf-ranges entries whenever a handoff supplies reservations or their names, while keeping static T6031/T6032 board DTBs valid. Signed-off-by: Acelogic <miguelc4600@gmail.com>
Bring up the Apple M3 Max (T6031) H15 Neural Engine on macOS 27.2 (26B123) using the shared AP-direct H16 backend: - Add require_cold_boot to struct ane_fw_platform and enforce /chosen/apple,ane-cold-boot in ane_fw_platform_preflight() before power acquisition. - Allow disjoint DAPF records sharing one 16 KiB page in ane_h16_backend.c (rejecting overlapping byte ranges and deduplicating 16 KiB identity MMIO mappings), since T6031 places ps_ane_sys (+0x520) and ps_ane_mpm..ps_ane_base (+0x5a0..+0x5c3) in the same PMGR page. - Qualify ane_t6031_platform with the six ADT register windows (engine, pmgr, aux-0, aux-1, aux-3, aux-4), the five 0x500-block PMGR power words, DART rev 0x0200 (ane_h15_mmio_t8122), five DAPF records at DART0 + 0x4000, the J516c 27.2 (26B123) preload pin (GKTS/ECAP/ARcM/ABOI/ZSOI), and cold-sleep recovery. - Add ane_t6031_platform_test and T6031 preload profile validation to KUnit. Signed-off-by: Acelogic <miguelc4600@gmail.com>
Mark ane0 dma-coherent in t6031-peripherals.dtsi and add the five live J516c ADT dapf-instance-0 records and default 27.2 firmware IOVAs (TEXT 0x10000000000, DATA 0x100000c8000), leaving the SoC node disabled for unverified boards. Enable ane0_dart0, ane0_dart1, ane0_dart2, and ane0 on t6031-j516c.dts while keeping ane0_mbox disabled. Signed-off-by: Acelogic <miguelc4600@gmail.com>
|
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: MERGE at 9a170f8
Checked: The J516c, J514c and J516s DTBs compiled. The affected binding accepts the static boards and the complete J516c handoff. It rejects one reservation, missing or swapped names, missing IOVAs and missing DAPF ranges. The isolated schema tool's performance-domains diagnostic is present on base too.
Checked: The shared DAPF replay on GCC and Clang accepts five disjoint records in four pages and maps each page once. Overlapping inclusive endpoints and records spanning a page are refused. The cold-boot ownership check precedes the driver's resource and power acquisition. The author supplied J516c cold-boot, no-handoff refusal and s2idle receipts.
Follow-ups: The T6031 hardware path pairs with aurora-silicon/aura#676. If #4342 lands first, keep both T6030 and T6031 handoff conditions when resolving the shared binding and platform table.
|
Hardware regression verification on J775c (Mac Studio M5 Max, T6050, H17 ANE, 27.2 system firmware / 27.0 OS stub, default kernel command line, MTE enabled) at exact head
|
T6031 27.2 (26B123) preloaded ANE firmware has a 0xc8000-byte __TEXT segment, exceeding the 0xc0000 H16 default cap in ane_h16_preload_test.c (PRELOAD_TEST_TEXT_MAX), which caused ane-h16-preload.preload_profiles_test to fail in KUnit CI. Raise PRELOAD_TEST_TEXT_MAX to 0xc8000 so the synthetic fixture buffer covers every registered preload profile while leaving all existing ANE_H16_PRELOAD_TEXT_SIZE assertions unchanged. Signed-off-by: Acelogic <miguelc4600@gmail.com>
|
Pushed
|
|
@Acelogic, I reproduced the one conflict at The resolved board blob is The resolved ANE source subtree is byte-identical to Aura #676 landed as |
What
Bring up the Apple M3 Max (T6031) H15 Neural Engine on macOS 27.2 (
26B123) using the shared AP-direct H16 backend, matching T8122 (#3082) and T6030 (#4342). Companion Stage 2 preload handoff: aurora-silicon/aura#676.Refs #4330.
f774a3d2453b): Move thememory-region: falseandmemory-region-names: falseprohibitions out of the shared T6030/T6031 block into the unqualified T6030-only block, and allowapple,dapf-ranges,apple,firmware-iovas, and bootloader-suppliedfirmware-text/firmware-datareservations onapple,t6031-anewhile requiring the matched pair of phandles, names, IOVAs, and five DAPF ranges whenever a handoff supplies reservations or names (keeping static T6031/T6032 board DTBs valid).54aef60d2851):bool require_cold_boottostruct ane_fw_platformand enforce/chosen/apple,ane-cold-bootinane_fw_platform_preflight()before driver registration or ANE power acquisition.ane_h16_backend.c(rejecting overlapping byte ranges and deduplicating 16 KiB identity MMIO mappings), since T6031 placesps_ane_sys(+0x520) andps_ane_mpm..ps_ane_base(+0x5a0..+0x5c3) in the same PMGR page (0x292280000).ane_t6031_platformwith the six ADT register windows (engine,pmgr,aux-0,aux-1,aux-3,aux-4), the five0x500-block PMGR power words (0x520, 0x5a8, 0x5a0, 0x5b8, 0x5c0), DART rev0x0200(ane_h15_mmio_t8122), five DAPF records atDART0 + 0x4000,27.2 26B123(TEXT 0xc8000,DATA 0x2a4000), and cold-sleep recovery (no PWGATE write required on T6031).27.2 26B123cross-boot preload pin (ane_h15_patchbay_26b123_t6031, cellsGKTS/ECAP/ARcM/ABOI/ZSOIat0x65f0/0x66e3/0x67b8/0x6815/0x6825, SHA-256fd8e477a...),ane_t6031_platform_test, and T6031 preload profile validation in KUnit.9a170f847fc0): Markt6031-peripherals.dtsi&ane0dma-coherent, add the five live J516c ADTdapf-instance-0records and defaultapple,firmware-iovas(0x10000000000,0x100000c8000) while keeping&ane0disabled in the SoC dtsi, and enable&ane0_dart0,&ane0_dart1,&ane0_dart2, and&ane0ont6031-j516c.dts(keeping&ane0_mboxdisabled).Tested
9a170f847fc0c7a8d9690431fae35d4ece845c0f(drivers/accel/anetree2072476917248329279b77d6319e18223b181bea,arch/arm64/boot/dts/appletreecd9446116171c31b339767c8622b1bbd3e258767) tested natively on J516c (16-inch MacBook Pro, M3 Max T6031, H15, macOS 27.226B123stub):ane_t6021.koSHA-25631601cc1a6a5047883f46e06f74152bbf11269643ea6d13d86c7912b1c05bd94(ELF Build IDc4e2da7fe7dfb1e3c16ddac8b6b6c212cea4d310),t6031-j516c.dtbSHA-25645f0886c77aafc348fb2852504e7734278bc6fe6b2cf9e55c6903e88059c7452, pairedaura#676(e36a6fd3)aura.binSHA-2561ade8dde668876b499c0c31e12aab3578411b5933cdc577c026ceb9213f6358e.s2idle+ Live Post-Wake Cold Restart (Stage 2 SHA-2566ee612b6761e3120f31f8277e06f07005e568ebd7e9994bd5116c994688ffd00):/chosen/apple,ane-cold-boot = raw-no-xnu-ane-untouched-v1,ane-firmware-text@10000c34000(800 KiBnomap),ane-firmware-data@100016f0000(2704 KiBnomap),apple,firmware-iovas = <0x10000000000 0x100000c8000>.3c9800000,3c9810000,3c9820000) probed at version0200(PARAMS3 = 2a2a0200).H16 preload identity H15 T6031 27.2 26B123 J516c, mapped 4 deduplicated identity MMIO pages (292280000,292828000,38d468000,40a468000), wrote and read back 5/5 DAPF records, reachedH16 READY 8042006 0(0 restarts, 5SHAREDMALLOCallocations, startup acks4/0/3/22all0,CONFIG_GET tick 16e3600 0), initialized/dev/accel/accel0(ABI 3,chip_family=15), and parked cleanly on idle (runtime_status=suspended, all 5 domainsane_base,ane_td,ane_cpu,ane_mpm,ane_sysatoff-0).DRM_IOCTL_ANE_GET_CAPS:flags=0 size=32 abi=3 chip_family=15 section_size=16 bind_size=0 exec_io_size=16 rsv=0.s2idle(rtcwake -m freeze -s 8,RC=0,suspend_stats/success 0 -> 1): clean wake, post-wakeGET_CAPSidentical, live post-wake runtime-PM cold restart (power/control = on) verified (H16 DAPF records matching 5 5,H16 READY 8042006 0, 5/5SHAREDMALLOC reuse,H16 ANE: booted again from the preload on runtime wake,up for a request in 19 ms, 0 programs replayed, 0 restarts), and clean re-park (power/control = auto->suspended, all 5 domainsoff-0), zero DART/ANE faults.ddbc780ca314a685b50f1daf8243ef4e157fea1e44d187070cb9da6c29ed7bc3):modprobe ane_t6021both refused cleanly before driver registration or power acquisition (platform 3c8000000.ane: ANE: cold-boot ownership evidence missing; refusing preload boot,modprobereturned-ENODEV/No such device).3c8000000.anestayed unbound,/dev/accelwas not created, andane_base,ane_td,ane_cpu,ane_mpmremainedoff-0before and aftermodprobe.make W=1 M=drivers/accel/ane modules(0 warnings in all modified files) andscripts/checkpatch.pl --strict --git origin/main..HEAD(0 errors, 0 warnings, 0 checks across all 3 commits).Risk
Risk: two-way · T6031 (M3 Max) — plain revert removes T6031 ANE qualification and returns
ane_t6031_platformto preflight refusal. Disjoint same-page DAPF deduplication preserves existing behavior on all SoCs with distinct DAPF pages; unverified T6031/T6034/T6032 boards remain disabled int6031-peripherals.dtsiandt6032-peripherals.dtsi.Not yet
mil-hwx-compiler).