Skip to content

accel/ane: run H14 programs on the ABI 3 node (HWX container + LOAD-time DMA bound) - #3917

Merged
RyanTheTide merged 7 commits into
mainfrom
ane/h14-abi3-programs
Dec 2, 2026
Merged

RyanTheTide merged 7 commits into
mainfrom
ane/h14-abi3-programs

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What

Let H14 (M2) programs run on the ABI 3 node the M2 27.2 path registers (stacked on #3916, the T8112 27.2 platform PR):

  • HWX validator: accept the H14 container as a fourth hwx_target (Mach-O subtype 5, 0x890 descriptor with its BAR slot table; slot 1 = __TEXT/__const bound to the kernel resource, slot 3 = scratch).
  • LOAD-time DMA bound for the H14 register image (ane_h14_task_stream_dma_validate()): sources 1/2, destination and kernel DMA, sized from base, strides, counts and interleave, overflow-checked against the bound slot; a task that enables a DMA must write all its words; unknown bits/formats and stray relocations are refused. H15/H16/H17 keep their bound unchanged. Field provenance: our mil-hwx-compiler (t8140: describe observed behaviour directly (comments only) #47, H14Fields.h, H14ConvGeneric.inc) and its decoded H14 corpus (1,503 programs).
  • A refused LOAD or CREATE now logs the firmware's reply and log records.
  • EXECUTE advertises each H14 buffer at the size the program's generic section declares (as H17 does), not the HWX section size, and zeroes an input's tail up to that size; the 27.2 (and 13.5) firmware refuses a record shorter than the declared span, which is what stopped MobileNet (input 0x49800 vs 0x4c000).

Tested: J473 (M2 mini, T8112, macOS 27.2 stub) at 815380f5: pass — /dev/accel/accel0 (H14, ABI 3), add/mul/relu 200x exact (0 ulp, host p50 105.4–106.8 us), MobileNetV1 224 (28-task linked ring) 200/200 bit-exact vs the J413 13.5 reference (50176/50176, 0 ulp, host p50 1322.1 us incl. readback), idle park + 14 ms cold re-wake exact, 2x 15 s RTC s2idle with MobileNetV1 replayed (0 restarts, output sha256 2220a838d0af961e identical across both sleeps), 0 DART faults; hosted CI (apple-build, host-tests, pr-text, KUnit ane-boot ane-pm) green at 815380f5.
Tested: J413 (M2 Air, T8112, macOS 27.2 stub) at 815380f5: pass — /dev/accel/accel0 (H14, ABI 3), add/mul/relu 200x exact (0 ulp, host p50 94.1–106.8 us), MobileNetV1 224 (28-task linked ring) 200/200 bit-exact vs the J413 13.5 reference (50176/50176, 0 ulp, host p50 1328.1 us incl. readback), idle park + 15.5 ms cold re-wake exact, 2x 15 s RTC s2idle with MobileNetV1 replayed (0 restarts, output sha256 2220a838d0af961e bit-identical to J473 across all runs and both sleeps), 0 DART faults.
Tested: J473 (M2 mini, T8112, macOS 27.2 stub) at 66174575: pass — add/mul/relu 200x exact, MobileNetV1 224 (28-task linked ring) 200/200 bit-exact vs the J413 13.5 reference (50176/50176, 0 ulp, host p50 1324 us incl. readback), idle re-wake, 2x 15 s s2idle with MobileNet replayed, 0 DART faults; KUnit boot.kunitconfig 332/332 at 66174575.
Tested: J413 (M2 Air, T8112, macOS 27.2 stub) at 533f2e30: pass — add/mul/relu 200x each exact, output digest identical to the J473's.
Tested: J473 (M2 mini, T8112, macOS 27.2 stub) at 533f2e30 (ANE code identical to this head e185c8f4): pass — add/mul/relu from mil-hwx-compiler#47 LOAD through the H14 bound and run 200x each exact; MobileNetV1 28-task ring passes the bound at LOAD; KUnit boot.kunitconfig 331/331 at e185c8f4.
Risk: two-way door (plain revert). Only H14 programs (M2 ANE on the 27.2 path); the H15/H16/H17 bound and validator are unchanged.

Not yet

  • The bound assumes an unwritten image-DMA config/base does not carry over from an earlier task of the stream (H14 reset semantics); confirm before trusting multi-task programs from untrusted users.
KUnit coverage

The bound accepts our compiler's add, mul, relu, the 2-layer chain and the 28-task MobileNetV1 ring (streams only for the 8.6 MB ring) and refuses each mutated variant (base past the buffer, stride overflow, unbound slot, unknown enable bit); add and chain also LOAD and EXECUTE on the fake firmware; the H16 bound refuses the H14 image.

The M2 engines run H14 programs (Mach-O CPU subtype 5), whose HWX the
shared validator refused by subtype. H14 objects share the container
form and differ in what the object itself says it is. Express that as a
fourth entry of the hwx_target table:

- slot_table: a 0x890-byte program descriptor whose BAR slot table names
  every region. Slot s takes its base from the qword at +0x10 * (s + 1),
  as on H16: slot 0 the text, slot 1 __TEXT/__const, slot 2 empty, slot
  3 the __DATA scratch (0 without one), and from slot 4 the first input,
  the output, then the other inputs, in segment order. Every qword of
  the table is pinned, the +0x858 and +0x880 compiler hints are bounded
  by the surface allocations like the H16 work hint, the trailer is one
  record naming BAR 3 then "main", and the word at +0xc is 0x222 (not
  length / 4 - 6 as in the H15 0x890 form). Every relocated record must
  name a slot that binds a region, never the text or an empty slot.
- register_valid: the H14 register image (blocks below 0x4000) instead
  of the H16 one; the stream opens with 0 and its tasks have eight
  header words.
- no_kernel_segment: constants live in __TEXT/__const; a __KERN_0
  segment is refused.
- zero_scratch_text_flags: __TEXT flags are 0 beside a __DATA scratch.

H15, H16 and H17 take the H16 register image as before
(ane_hx_task_stream_validate_hdr() now wraps ane_hx_task_stream_check()
with it), and their entries keep every other field, so their validation
is unchanged.

ane_h16_hwx_slot_base() returns a slot's base for every target. The
operation-section check uses it, and in a slot-table program without
__KERN_0 binds the kernel resource (1007) to the __TEXT/__const slot,
which LOAD slot 1 carries. The 0x890 forms send no custom BAR record;
what the H14 descriptor's tuple means to the firmware is not known, so
the firmware keeps its default DSID.

The DMA bound at LOAD models the H16 register image only. Until it
models the H14 one, ane_h16_operation_validate() refuses an H14 program
with -EOPNOTSUPP once its bindings check out, before anything is mapped
or sent: H14 programs validate but do not run yet.

h16-sections.py builds the LOAD sections for H14 objects too; for both
fixtures it reproduces the sections below byte for byte.

KUnit: the H14 add program and a two-layer H14 linked convolution (our
mil-hwx-compiler, --target H14 --format hwx) and their sections validate,
take the slot table's bases and bind their slots (1007 on slot 1, the
scratch on slot 3); LOAD on an H14 session stops with -EOPNOTSUPP and
maps nothing. They are refused on an H16 session, with a wrong slot
binding, with a BAR record that names an unbound slot or the text, with
a wrong slot table entry or trailer BAR, with a stream that opens with
1, with a register outside the H14 image, and as an H16 or H15 object.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
A refused LOAD or CREATE logged only the error the reply check returned,
so a refusal on new firmware or a new engine (H14 bring-up) did not say
why. Log what the firmware sent back: the reply header (status in its
top 16 bits) and ID words, the first reply qword that differs from the
request and its offset, then the firmware's own log. A command that got
no reply at all logs zeros.

KUnit: a LOAD the fake firmware refuses logs its reply header and the
untouched request ID.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
H14 programs (M2, Mach-O subtype 5) pass the HWX validator, but the
LOAD-time DMA bound only modelled the H16 register image, so
ane_h16_operation_validate() refused every H14 program with -EOPNOTSUPP.
Model the H14 image in ane_h14_task_stream_dma_validate() and use it for
H14 programs. H15, H16 and H17 keep ane_hx_task_stream_dma_validate()
unchanged.

The fields are the ones our mil-hwx-compiler writes for H14
(plugins/H14/H14Fields.h, H14ConvGeneric.inc), cross-checked against its
decoded H14 corpus (research/oracles/h14, h14-mobile):

- source 1: config 0x1100, extension 0x1108, base 0x1110, row and plane
  strides 0x1118/0x111c, format 0x1150; source 2 the same at 0x1104,
  0x110c, 0x1128, 0x1130/0x1134 and 0x1154. Both sources read the input
  surface: H:W at 0x0000, channels at 0x000c.
- destination: config 0x1500, base 0x1508, strides 0x1510/0x1514, format
  0x1520, the output's H:W at 0x0014 and channels at 0x0010; 0x1524 holds
  only the compiler's 0xdead padding.
- kernel: config 0x1900, base 0x1908, 16 lane configs from 0x1918, the
  offsets of lanes 1-15 from 0x195c (lane 0 reads at the base) and 16 lane
  sizes from 0x1998, which include any clip descriptor.

A tile transfer covers W * 2 * k + (H - 1) * row + (ceil(C / k) - 1) *
plane bytes from its base, with interleave k (format bits 24-27) of 1 or 8:
the compiler's interleave-8 scratch spill has rows of W * 2 * 8 bytes. A
kernel transfer covers the furthest lane, offset + size, which is the sum
the compiler's own linked-program check bounds. As on H16, the end rounded
up to 64 bytes must lie inside the buffer the operation section binds to
the base's BAR slot, with overflow checks.

Each task is checked on its own words, over zero reset values. What the
model does not know is refused:

- every DMA word other than those above (depth and group strides, the
  second kernel stream from 0x19d8, lane 0's offset word) and every
  common word the compiler does not write must be zero;
- configuration, extension, format, kernel and lane-config bits outside
  the fields the compiler names are refused, and the format must be fp16
  NCHW;
- relocated records may only write a base's [lo, hi] pair, and a base
  only relocated.

The coefficient lane sizes are stateful on H14: a task that left them
out ran with the previous task's sizes. So a task that writes any word
of a DMA stream writes all of it: a config that enables it, its base,
format, extension and surface (none zero), the row and plane strides
unless one row or plane makes them irrelevant, and for the kernel all 16
lane configs, offsets and nonzero sizes, with base and descriptor modes
set. Its extent then never depends on what an earlier task left behind.
A stream a task does not write is off, as on H16.

KUnit: the H14 add program and the two-layer linked convolution now load
and run on the fake firmware (EXECUTE names a = 5, b = 6, y = 4; only y
is device-writable). An add program whose output base is one 64-byte
line in is refused at LOAD before anything is mapped.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Add h14-fixture.py, which writes KUnit fixture headers for H14 programs:
the whole HWX and the four LOAD sections in the sparse-run form (it
reproduces ane_h14_add_fixture.h byte for byte), or only the task streams
and the size each BAR slot binds. The MobileNetV1 ring is an 8.6 MB HWX,
so it and mul and relu are kept as streams in ane_h14_streams_fixture.h;
the add and chain fixtures cover the container and LOAD path.

KUnit:
- our compiler's mul, relu and 28-task MobileNetV1 224 ring (fused ReLU6,
  --schedule linked-ring) pass the structural gate over the H14 image and
  the DMA bound with their own buffer sizes; the H16 bound refuses the H14
  image. The ring's output and last kernel read end exactly at their
  buffers' ends: one 64-byte line less is refused, as is the ring without
  its scratch binding.
- refused: a base past its buffer, a base with its high word set, a plane
  stride or channel count that overruns, the largest plane stride, a base
  on a slot nothing binds, a relocation on a word that is not a base, a
  base written without relocation.
- refused: unknown config, extension, format, kernel and lane bits, an
  interleave other than 1 or 8 (8 is accepted), padding other than 0xdead,
  and non-zero depth/group strides, lane 0 offset, second kernel stream
  and unnamed common words.
- refused: a zero or oversized lane size, a kernel stream without lane 1's
  offset or without its base, a second row without a row stride, a zero
  width.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide requested review from a team as code owners December 2, 2026 10:23
@github-actions github-actions Bot added area:media Area from CODEOWNERS (bot) blast:m2 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Merge readiness at 815380f5: not ready yet

Check Detail
CI at head ok 11 checks passed
Review ok approved by DjDeveloperr
Requested changes no review verdict FINISH at 815380f5
Hardware row at head ok in the PR body at 815380f5
Conflicts ok none
PR text ok Risk: two-way · (plain revert). Only H14 programs (M2 ANE on the 27.2 path); the H15/H16/H17 bound and validator are unchanged.

Areas: area:media

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

satchlj
satchlj previously approved these changes Dec 2, 2026

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE

Blockers: none at this PR's own diff (code clean, stacked CI green, zero conflicts against #3916, and J413 + J473 hardware rows + 331/331 KUnit pass reported; merge after #3916 lands and is retargeted to main so full apple-build/KUnit CI runs against main).

Checked:

  • drivers/accel/ane/ane_h16_hwx.{c,h}: adds ANE_HWX_SUBTYPE_H14 (subtype 5) as a fourth hwx_target with exact 0x890 descriptor validation (hwx_program_slot_table() pins every slot-table entry and checks zeroed padding via memcmp) and hwx_slot_table_records() ensures relocated records never target slot 0 or an unbound slot; ane_h16_hwx_slot_base() bounds-checks slot < ANE_HWX_BAR_SLOTS.
  • drivers/accel/ane/ane_h16_program.c: binds H14 __TEXT/__const via ANE_H16_RESOURCE_KERNEL on slot_table programs and dispatches subtype H14 to ane_h14_task_stream_dma_validate() without touching H15/H16/H17 paths; h16_log_reply() safely handles NULL replies and logs refusal diagnostics.
  • drivers/accel/ane/ane_h16_tasks.h: ane_h14_register_valid() and ane_h14_task_stream_dma_validate() strictly bound tile (src1/src2/dst) and 16-lane kernel DMA transfers with overflow-checked u64 arithmetic (check_mul_overflow / check_add_overflow), reject non-relocated writes to the 8-byte-aligned base pairs ((addr & ~4)), enforce zero on unmodelled DMA/common registers (including lane-0 offset 0x1958), and require active streams to be written whole per task. The multi-task H14 reset-semantics caveat is clearly noted in ## Not yet.
  • ane_h16_program_test.c, ane_h16_tasks_test.c, tools/testing/selftests/drivers/ane/{h14-fixture.py,h16-sections.py}: strong positive and negative KUnit coverage over add, mul, relu, 2-layer chain, and 28-task MobileNetV1 streams.
Evidence
  • Head audited: e185c8f4788d (stacked on #3916 b56c77331d8f, mergeable=true, 0 conflicts).
  • CI at head: stacked checks passed (pr-text, readiness).
  • Hardware and test evidence in PR body: J413 and J473 (27.2 stub) PASS at 533f2e30 (identical ANE code: add/mul/relu 200x exact, MobileNetV1 passes LOAD bound) and KUnit boot.kunitconfig 331/331 PASS at e185c8f4.

The 27.2 H14 firmware checks every EXECUTE buffer record against the
size the program's generic section declared for that buffer at LOAD,
as H17 does, and asserts in its program manager when the record is
smaller. MobileNetV1's input declares 0x4c000 bytes (its allocation)
over a 0x49800-byte tensor span, and its first EXECUTE was refused
before task 0. The add, mul and relu programs declare exactly their
span and were not affected.

Send the validated declared size for H14 too. It was checked against
the owned mapping at LOAD, and the encoder checks offset and size
against the mapping again. Userspace still copies only the span, so
zero an input's tail from the span to the declared size before the
request's write-back (ane_h16_session_pad_inputs()). H16 keeps the HWX
section size and pads nothing; the scratch stays the last buffer.

KUnit: an input whose declared size is its allocation is sent at that
size with its tail zeroed, a declared size past the mapping is refused
at LOAD, and H16 is unchanged.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new H14 declared-size change at 661745755003 needs to cover every EXECUTE entry point.

drivers/accel/ane/ane_h16_accel.c:730 pads the input tail for copy-based EXECUTE. ane_h16_exec_in_place() at line 919 and ane_h16_exec_sync_run() at line 1273 sync and submit without padding. Both reach the same encoder, which now includes the full declared size for H14. In-place inputs can be mapped writable through the final page, so LOAD-time initialization alone cannot preserve zero padding before each request.

Please apply the padding in the common pre-device sync path under the existing lock and add a regression that exercises that path without calling the padding helper directly. Keep the H16 control unchanged.

Base automatically changed from ane/t8112-272-preload-backend to main December 2, 2026 11:28
@DjDeveloperr
DjDeveloperr dismissed satchlj’s stale review December 2, 2026 11:28

The base branch was changed.

@github-actions github-actions Bot added changes-requested A reviewer requested changes (bot) ci-failing A check failed at the PR head (bot) labels Dec 2, 2026
Since H14 EXECUTE records carry an input's declared size, the firmware
reads past the span a copy fills, up to that size. Only the copying
EXECUTE zeroed that tail. The in-place and fenced paths sync and submit
without it, and an in-place input can be written through its last page,
so zeroing once at LOAD cannot keep the tail clear.

Zero the tail in ane_h16_session_sync() before the device sync, which
all three paths (copy, in place, fenced) call under the session lock
right before the request, and drop the separate call from the copy
path. H16 still sends the section size and leaves the bytes alone.

KUnit: the in-place and fenced entry points, with the input tail dirtied
before each request, hand the engine a zeroed tail on H14 and the
untouched bytes on H16, seen when the request is submitted. The program
test now pads through ane_h16_session_sync().

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) and removed ci-failing A check failed at the PR head (bot) labels Dec 2, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rechecked the input-padding blocker at 815380f. Copy, in-place and fenced EXECUTE now all clear the H14 input tail through the common pre-device sync under the session lock. The new KUnit case dirties the tail before each in-place and fenced call and checks both H14 zeroing and H16 byte preservation at the submission boundary.

Apple build, host tests and PR text passed at this head. The Arm64 ANE KUnit run is in progress. The posted M2 hardware runs predate the padding move, so the updated head still needs a 27.2 hardware run.

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge at 815380f562d7ef4bcdc399cf4e0b600186992252
Blockers:

  1. CI at 815380f562d7: KUnit ane-boot ane-pm is still IN_PROGRESS (apple-build, host-tests, pr-text, and KUnit plan are SUCCESS).
  2. Missing exact-head M2 hardware row at 815380f562d7 (the latest J473 row is at 66174575, before 815380f562d7 moved H14 input-tail padding into ane_h16_session_sync()).
    Checked: no Apple material, no chip/board gates beyond the H14 firmware protocol, no AI attribution, full interdiff 0a87c0a5fc..815380f562 audited (all EXECUTE entry points covered, H16 control unchanged, overflow-checked bounds), CI partially in flight, exact-head row pending.
Evidence
  • Audited commits 6617457550 and 815380f562 on top of previously audited e185c8f478:
    • drivers/accel/ane/ane_h16_program.c: moves H14 input-tail zeroing into static h16_pad_inputs() called from ane_h16_session_sync(s, p, true) before cache write-back under the session lock, covering copy (ane_h16_exec_ioctl), in-place (ane_h16_exec_in_place), and fenced (ane_h16_exec_sync_run) EXECUTE paths. Checks chip_family == 14, permissions == 1, declared > b->size, b->offset <= surface->size, and declared <= surface->size - b->offset before zeroing. h16_wire_declared() sends p->declared[i] for H14 and H17 while leaving H16 on hwx.surfaces[i].section.size.
    • drivers/accel/ane/ane_h16_accel.c: drops the redundant standalone padding call in ane_h16_exec_ioctl().
    • drivers/accel/ane/ane_h16_accel_test.c & ane_h16_program_test.c: ane_h16_exec_pad_tail_test exercises both ane_h16_exec_in_place() and ane_h16_exec_sync_run() on H14 and H16 (verifying zeroed 128-byte tail on H14, untouched span, and untouched H16 bytes); program_h14_declared_span_test verifies LOAD refusal past owned mapping (-ENOEXEC), sync tail zeroing, EXECUTE wire declared size on H14, and H16 control unchanged.
  • Ready to approve once KUnit ane-boot ane-pm finishes green and an exact-head M2 row at 815380f562d7 is posted.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 2, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Exact-head M2 hardware row at 815380f562d7ef4bcdc399cf4e0b600186992252 (addressing the remaining blocker from @satchlj):

  • Machine: J473 (M2 mini, T8112, macOS 27.2 stub), 7.3.0-aurora-fleet94 + drivers/accel/ane modules built from exact head 815380f5 (W=1 0 warnings), Stage 2 aura b18 + merged aura#651 M2 preload handoff (aura-try one-shot 48f64c5a), t8112-j473-fw27.dtb (merged #3916 ANE properties).
  • Result: PASS (rc=0)
    • /dev/accel/accel0 (H14, ABI 3), preload identity H14 T8112 27.2 26B123 J473 accepted.
    • add (200x): 512/512 exact, max 0 ulp, host p50 105.4 us.
    • mul (200x): 477/512 exact, max 0 ulp, host p50 106.5 us.
    • relu (200x): 512/512 exact, max 0 ulp, host p50 106.8 us.
    • Idle park (4 s) + runtime re-wake: 14 ms cold boot from preload, add 20/20 exact (512/512, 0 ulp).
    • MobileNetV1 224 (28-task linked ring, 200x): 50176/50176 exact, max 0 ulp bit-exact vs the J413 13.5 reference, host p50 1322.1 us (incl. readback), output sha256 2220a838d0af961e.
    • 2x 15 s RTC s2idle with MobileNetV1 loaded: ANE genpd off 15.87 s / 15.79 s, resume ok, 1 programs replayed, 0 restarts on both cycles, output sha256 2220a838d0af961e bit-identical before and after both sleeps.
    • 0 DART faults, 0 kernel warnings; restored cleanly to saved 7.3.0-aurora-fleet94 (m1n1/boot.bin unchanged 0b7c947b, Enforcing, 0 failed units).
  • CI at 815380f5: all hosted checks green (apple-build, host-tests, pr-text, KUnit plan, KUnit ane-boot ane-pm, readiness).

@satchlj both blockers on 815380f5 are now cleared — ready to flip to APPROVE.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Dec 2, 2026
@RyanTheTide
RyanTheTide requested a review from satchlj December 2, 2026 14:44
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Second exact-head M2 hardware row at 815380f562d7ef4bcdc399cf4e0b600186992252 on J413 (M2 Air):

  • Machine: J413 (M2 Air, T8112, macOS 27.2 stub), 7.3.0-aurora-fleet94 + drivers/accel/ane modules built from exact head 815380f5 (W=1 0 warnings), Stage 2 aura b18 + merged aura#651 M2 preload handoff (aura-try one-shot 6b9065d0, 2 J413 DTBs carrying merged #3916 ANE properties).
  • Result: PASS (rc=0)
    • /dev/accel/accel0 (H14, ABI 3), preload identity accepted (same TEXT 43f9f552... and normalized DATA as J473).
    • add (200x): 512/512 exact, max 0 ulp, host p50 106.1 us, sha256 5574906c49e7b098.
    • mul (200x): 477/512 exact, max 0 ulp, host p50 106.8 us, sha256 89b8370e158f29b4.
    • relu (200x): 512/512 exact, max 0 ulp, host p50 94.1 us, sha256 078e4d4cad927f42.
    • Idle park (4 s) + runtime re-wake: 15.5 ms cold boot from preload, add 20/20 exact (512/512, 0 ulp).
    • MobileNetV1 224 (28-task linked ring, 200x): 50176/50176 exact, max 0 ulp bit-exact vs the J413 13.5 reference, host p50 1328.1 us (incl. readback), output sha256 2220a838d0af961e (bit-identical to J473).
    • 2x 15 s RTC s2idle with MobileNetV1 loaded: ANE genpd off 15.56 s / 15.31 s, resume ok, 1 programs replayed, 0 restarts on both cycles, output sha256 2220a838d0af961e bit-identical before and after both sleeps.
    • 0 DART faults, 0 kernel warnings; restored cleanly to saved 7.3.0-aurora-fleet94 (m1n1/boot.bin unchanged a8851020, Enforcing).

Both J473 (M2 mini) and J413 (M2 Air) now have exact-head 815380f5 PASS rows alongside green CI (10/10) and @DjDeveloperr approval. Re-requested @satchlj to flip FINISH -> APPROVE.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging at 815380f562d7 (B2 merge train, 12-01 merge bar). Approval at this head: DjDeveloperr. Row: J473 (M2 mini, comment 7348368530) + J413 (M2 Air, comment 7349057339) exact-head PASS rows at 815380f (M2-ANE-272). CI: hosted CI 16/16 green (apple-build, host-tests, pr-text, KUnit ane-boot ane-pm) + local L23 candidate BUILD pass. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit d3de772 into main Dec 2, 2026
14 of 16 checks passed
@RyanTheTide
RyanTheTide deleted the ane/h14-abi3-programs branch December 2, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:media Area from CODEOWNERS (bot) blast:m2 Macs affected, from Merge risk (bot) changes-requested A reviewer requested changes (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants