Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
168 changes: 112 additions & 56 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
# Changelog

## Unreleased

- Added: `omarchy-ane-smoke` runs the shipped H14 add program (`fixtures/h14-anec/add`) 20 times through `omarchy-ane-run` (`tools/ane-run`, one process per call) and prints one JSON line for the community collector: `name` `add-fixture`, `chip`, 20 `sha256`, `golden_sha256`, `errors`, `min_ms`, `median_ms`. Exit 0: 20 calls bit-exact against the exact fp16 sum (ties away from zero) of fixed inputs. Exit 1: a call failed, was not exact, or ran past 60 s. Exit 2: no smoke on this Mac (no fixture for the chip, driver not bound, firmware or a package file missing). The M1 family gets exit 2: no H13 add program has run through `ane-run` on a device. `omarchy-ane-check --smoke` runs it after the checks. See receipts/2026-10-02-omarchy-ane-smoke/.
- Changed: the promotion rule's smoke golden is the add fixture's, so T8112 rows can pass; the Parakeet encoder hash stays a developer check. Added the regression rule: a chip that is on by default goes back to opt-in when its latest row shows `omarchy-ane-check` not ready or a fault line, until a clean row lands (`tools/promotion_check.py` prints `REVERT`).
- Changed: the ANE is on by default on T8103, T6001 and T6021. The T6021 overlay is enabled (no `ane-t6021` key), the modprobe gate `install ane_t6021 /bin/false` is gone, and the new pacman hook `90-omarchy-ane-firmware.hook` runs `omarchy-ane-firmware-fetch --hook` on T6021 (a failed fetch is a note: the ANE stays off until a fetch succeeds and the Mac reboots). The untested T6000, T6002, T6020 and T6022 keep their opt-in keys, and the T6021 U-Boot input keeps `uboot-serial-stdin-t6021`; see receipts/2026-10-01-t6021-default-on/.
- Changed: `ane_t6021` refuses `fw_alias_reserved=1` at probe, before any power access, unless no-map `/reserved-memory` nodes cover both iBoot firmware windows (0x10000848000+0xc4000, 0x10001400000+0x438000); the lab m1n1 adds them, the packaged m1n1 1.6.1 does not.
- Changed: `fw_alias_reserved` defaults to 0: `ane_t6021` runs the T6021 firmware from its own memory with iBoot's runtime patches replayed, so the ANE runs with the packaged m1n1 1.6.1. The reserved mode (`fw_alias_reserved=1`, lab m1n1 only) stays behind the reserved-memory guard; see receipts/2026-10-01-t602x-independent/ ("Boot B").
- Added: `omarchy-ane-firmware-fetch --check` (reads only the installed file) and `--hook`; `omarchy-ane-check` checks the firmware on T6020, T6021 and T6022 with it.
- Removed: `omarchy-ane-m2-enable` and `packaging/modprobe/ane_t6021.conf`: the ANE is on by default on T8103, T6001 and T6021.
- Removed: the `af_bridge_macos` experiment parameter (#33); the 26 macOS AXI2AF bridge values did not change encoder time (254.274 vs 254.276 ms); see receipts/2026-10-01-t6021-af-bridge-run/.
- Added: `ane/t6021/probes/ane_dart_probe.c` reads the ANE DART tunable and PERF words (read only by default) and applies the bulk-DART tunables by group in the macOS order. Linux leaves the bulk DARTs at reset values; 0x220/0x224 and the SID words do not change the speed, and 0x20c breaks translation on a live DART; see receipts/2026-10-01-t6021-dart-tunables/.
- Added: T8112 (M2) ANE support in `ane_t6021`, UNTESTED: `apple,t8112-ane` runs the 13.5 `h14_ane_fw_bia_j4xx` image from driver memory with iBoot's patches replayed. `packaging/dt/t8112-ane.dts` (opt-in key `ane-t8112`) has the ANE, its three DARTs, its seven ANE power states (macOS 13.5 and 27.0 ADTs, 13.5 ANE kext), the mailbox (send-empty AIC 1000, a lab choice) and the eFuse window. The chip revision is read from the eFuse words that iBoot reads, and the ASC tunables are iBoot's ANE table (23 records); both come from the macOS 26.6.2 iBoot, which is not encrypted. See receipts/2026-10-01-t8112-ane/ and receipts/2026-10-01-t8112-optin/.
- Fixed: T6020 ran with the T6021 chip revision (0x11) and ASC tunables. It now uses revision 0x01 (community rows) and its own iBoot tunables, which differ from T6021 in 13 of 24 values. T6022 keeps the T6021 values; its iBoot has the same table. See receipts/2026-10-01-t8112-optin/.
- Tested, not merged: skipping the ten P-1 engine writes that macOS never makes (`p1_groups=0x1f`, branch `agent/m2-p1-groups`). The firmware boots and every output stays bit-exact; the encoder time does not change (254.147 vs 254.349 and 254.121 ms). The DART 0x300-0x310 words are ADT tunables whose values bound the IOMapper range; see receipts/2026-10-01-t6021-p1-groups/.
- Added: `tools/t8112-kit`, a read-only kit for one T8112 owner. `collect-macos.sh` saves the macOS ANE device-tree data (the entry IOVA). `collect-m1n1.py` reads the iBoot-patched firmware preload over the m1n1 proxy (chip revision, ASC tunables, entry IOVA) and reads engine registers only when every ANE power state is on. `ingest.py` checks a result against the driver's per-SoC data; a replay on the 17 T6021 captures matches the T6021 data. The T8112 firmware gives its pmgr page itself (0x23b70c000); see receipts/2026-10-01-t8112-kit/.
- Added: `omarchy-ane-firmware-fetch` installs the T8112 image `h14_ane_fw_bia_j4xx` (13.5 pin `af587dfa…`).
- Added: README "Promotion rule" and `tools/promotion_check.py`: an untested SoC goes on by default after 3 passing community rows (3 machines, 2 owners, 2 boards, 2 kernel releases, no failing row; each row: `omarchy-ane-check` ready, 20 bit-exact smoke calls, no ANE/DART/mailbox fault, 30 min uptime). Each ANE and DART address and interrupt and each power-domain path that the community rows carry agrees with the T6000, T6002, T6020 and T6022 overlays (no row carries the mailbox or the firmware placement). The rows show T6020 chip revision 0x01, not 0x11; see receipts/2026-10-01-community-rows/.

## 0.4.0 (2026-10-01)

The T6021 (M2 Max) driver stays opt-in. This release adds whole-model runs on
the M2, a first disk boot, ANE overlays for every SoC with cited values, and
the version string for `ane_t6021`.
The ANE is on by default on M1 (T8103), M1 Max (T6001) and M2 Max (T6021).
On T6021 the driver starts the ANE firmware from its own memory and replays
iBoot's runtime patches, so it needs no reserved-memory node from m1n1. This
is verified with the packaged m1n1 1.6.1 on one M2 Max laptop. The U-Boot
serial-stdin overlay stays an opt-in. This release also runs whole
models on the M2, adds ANE overlays with cited values for every M1 and M2 SoC
(the untested ones behind opt-in keys), and gives `ane_t6021` the package
version.

### Added

Expand All @@ -42,12 +29,44 @@ the version string for `ane_t6021`.
- `packaging/dt/t6021-uboot-serial-stdin.dts`: an opt-in overlay
(`uboot-serial-stdin-t6021`) that lets one M2 Max boot from the internal disk
(#16).
- ANE overlays for every SoC with cited values. T6000 (M1 Pro) and the T6002
(M1 Ultra) die 0 get the T6001 nodes, behind the opt-in keys `ane-t6000` and
`ane-t6002`; `ane.ko` binds them with the `apple,t6000-ane` data. T6020 (M2
Pro) and the T6022 (M2 Ultra) die 0 get the T6021 nodes, but the package
does not install them: no driver binds them. The macOS 13.5 ADTs give the
same values on these SoCs. T8112 and M3 and later get no overlay (#28).
- ANE overlays for every M1 and M2 SoC with cited values. T6000 (M1 Pro) and
the T6002 (M1 Ultra) die 0 get the T6001 nodes, behind the opt-in keys
`ane-t6000` and `ane-t6002`; `ane.ko` binds them with the `apple,t6000-ane`
data. T6020 (M2 Pro) and the T6022 (M2 Ultra) die 0 get the T6021 nodes,
behind `ane-t6020` and `ane-t6022`. The macOS 13.5 ADTs give the same values
on these SoCs (#28). M3 and later get no overlay.
- `ane_t6021` binds `apple,t6020-ane` and `apple,t6022-ane` (`32b916c`) and
`apple,t8112-ane` (`e91d350`, #47) as UNTESTED opt-ins. T8112 (M2) runs the
13.5 `h14_ane_fw_bia_j4xx` image. `packaging/dt/t8112-ane.dts` (key
`ane-t8112`) has the ANE, its three DARTs, its seven power states, the
mailbox and the eFuse window; the chip revision and the ASC tunables come
from the macOS 26.6.2 iBoot (#39, #47).
- `omarchy-ane-firmware-fetch` installs the T8112 image (pin `af587dfa…`), and
has `--check` (reads only the installed file) and `--hook`.
`omarchy-ane-check` checks the firmware on the M2 family with it (#43, #44).
- The pacman hook `90-omarchy-ane-firmware.hook` fetches the firmware at
install and upgrade on T6021. Without network it prints a note, and the ANE
stays off until a fetch succeeds and the Mac reboots (#44).
- `tools/t8112-kit`: a read-only kit that collects the T8112 iBoot ANE values
under macOS and over the m1n1 proxy. A replay on 17 T6021 captures matches
the T6021 data (#43).
- README "Promotion" and `tools/promotion_check.py`: an untested SoC goes on
by default after 3 passing community rows from 3 machines, 2 owners,
2 boards and 2 kernel releases, with no failing row. A row's smoke golden is
the add fixture's, so T8112 rows can pass; the Parakeet encoder hash stays a
developer check. The regression rule: a chip that
is on by default goes back to opt-in when its latest row shows
`omarchy-ane-check` not ready or a fault line, until a clean row lands
(`promotion_check.py` prints `REVERT`). The community rows agree with every
ANE and DART address, interrupt and power-domain path of the T6000, T6002,
T6020 and T6022 overlays that they carry (#45, #48, #50).
- `omarchy-ane-smoke` runs the shipped H14 add program
(`fixtures/h14-anec/add`) 20 times through `omarchy-ane-run`, one process
per call, and prints one JSON line for the community collector. Exit 0: 20
calls bit-exact against the exact fp16 sum of fixed inputs. Exit 1: a call
failed, was not exact, or ran past 60 s. Exit 2: no smoke on this Mac. The
M1 family gets exit 2, because no H13 add program has run through `ane-run`
on a device. `omarchy-ane-check --smoke` runs it after the checks (#50).
- `omarchy-ane-check` prints `UNTESTED SoC: SOC` on every SoC other than T8103,
T6001 and T6021, and fails on a SoC that no driver supports (#28).
- `tools/test_ane_overlays.py` applies every overlay to every linux-asahi
Expand All @@ -63,9 +82,14 @@ the version string for `ane_t6021`.
- `ane/h13/ane_t8103_fw.c` stages 1-3 and the H13 `sCSneCmdProgramLoad`
packer `tools/h13_progload.py`, for a Linux-side firmware start on the M1
(T8103).
- `ane/t6021/probes/ane_afbridge_probe.c`, a read-only probe of the 26 ANE0
AXI2AF bridge registers that macOS programs. It is built but has not run
(#25).
- `ane/t6021/probes/ane_afbridge_probe.c` reads the 26 ANE0 AXI2AF bridge
registers that macOS programs. Under Linux 0 of the 26 hold the macOS
values (`17e3bdc`; #25, #33).
- `ane/t6021/probes/ane_dart_probe.c` reads the ANE DART tunable and PERF
words and can apply the bulk-DART tunables by group in the macOS order
(`3ec8a28`, `61637ff`; #36, #37).
- A prepared apple-dart kernel patch that writes the bulk-DART tunables at
DART reset, and its boot record (#38, #41, #42, #46).
- Candidate U-Boot `mtpkbd` patches in
`receipts/2026-10-01-t6021-disk-boot/uboot-mtp/patches/`, not applied
(#19).
Expand All @@ -74,6 +98,14 @@ the version string for `ane_t6021`.

### Changed

- The ANE is on by default on T6021: its overlay is enabled (no `ane-t6021`
key), and the modprobe gate `install ane_t6021 /bin/false` is gone. The
untested SoCs keep their opt-in keys (#44).
- `ane_t6021` runs the T6021 firmware from its own memory with iBoot's runtime
patches replayed (`fw_alias_reserved=0`, the default). The reserved mode
(`fw_alias_reserved=1`) needs the lab m1n1, and `ane_t6021` refuses it at
probe, before any power access, unless no-map `/reserved-memory` nodes cover
both iBoot firmware windows (`32b916c`, #44, #49).
- `ane_t6021` takes `ANE_VERSION` like `ane`. `dkms.conf` passes the package
version, so `modinfo ane_t6021` and `/sys/module/ane_t6021/version` show it.
Before, a DKMS build showed `unknown` or the commit of an enclosing repository.
Expand All @@ -87,17 +119,22 @@ the version string for `ane_t6021`.
`/usr/lib/omarchy-platform/dtb-overlays`. A package upgrade moves the
files. A hand install in the old directory (`packaging/build-dtbo /`) must
move: while `.dtbo` files are in the old directory, `omarchy-ane-dt apply`
refuses and keeps the current copies, and the README gives the three move
commands. `OVERLAY_DIR` in `omarchy-ane-dt` is the one place that names the
directory. `update-m1n1-dtbs` and the two `90-omarchy-ane-dt` hooks stay:
Arch Linux ARM installs have no omarchy-mac-boot (#28).
refuses, keeps the current copies, and names the steps. `OVERLAY_DIR` in
`omarchy-ane-dt` is the one place that names the directory.
`update-m1n1-dtbs` and the two `90-omarchy-ane-dt` hooks stay: Arch Linux
ARM installs have no omarchy-mac-boot (#28).
- The T600x and T602x overlays share their nodes through `t600x-ane.dtsi` and
`t602x-ane.dtsi`. The T8103, T6001 and T6021 `.dtbo` files do not change
(#28).
- `omarchy-ane-dt` names the libfdt trap when fdtoverlay renumbers a phandle
(#28).
- The README chip table gives each SoC its ANE firmware, support state,
overlay gate, and the data that is missing (#28).
- Removed: `omarchy-ane-m2-enable` and `packaging/modprobe/ane_t6021.conf`
(#44).
- Removed: the `af_bridge_macos` experiment parameter. The 26 macOS AXI2AF
bridge values did not change the encoder time (254.274 vs 254.276 ms) (#33,
#34).

### Fixed

Expand All @@ -118,41 +155,60 @@ the version string for `ane_t6021`.
disabled. Now the overlay applies over the disabled nodes and enables them.
The T6021 overlay sets `status = "okay"` on its three DARTs, so a merged
DART does not stay disabled. `validate` refuses a new or changed node that
names a disabled provider. `omarchy-ane-dt status` and
`omarchy-ane-m2-enable` ignore disabled ANE nodes. See
`receipts/2026-10-01-ane-dt-disabled-nodes` (#23).
names a disabled provider, and `omarchy-ane-dt status` ignores disabled ANE
nodes. See `receipts/2026-10-01-ane-dt-disabled-nodes` (#23).
- Removed the CoreSight PC-sampling path of the research module
`ane_t8103_fw`, after it caused a hard reset of the M1.
- T6020 uses chip revision 0x01 and its own iBoot ASC tunables. Before, it ran
with the T6021 revision (0x11) and tunables, which differ in 13 of 24 values.
T6022 keeps the T6021 values (`e91d350`; #45, #47).

### Known limits

- Disk boot is proven on one M2 Max laptop only, with the opt-in U-Boot
serial-stdin overlay. That boot used a lab m1n1 stage 2 that adds the two
`ane-firmware` reserved-memory nodes. The packaged m1n1 1.6.1 does not add
them, so a disk boot with the packaged m1n1 and `ane_t6021` is not proven.
- The whole encoder takes 254 ms per CALL on the M2 under Linux and about
139 ms on the M1 (T8103). On the same M2 under macOS, the same MIL compiled
by macOS takes 89 ms with the same output bits (#29). The cause of the gap is
not known.
- Each on-by-default chip is tested on one machine: one M1 (T8103), one
M1 Max (T6001) and one M2 Max (T6021).
- T6021 disk boot: verified with the packaged m1n1 1.6.1 on one M2 Max laptop
(with the opt-in U-Boot stdin overlay for that laptop's phantom keyboard
input). The own-memory default needs no reserved-memory node.
- On Omarchy, the overlays apply only through an omarchy-mac-boot with device
tree overlay support (omacom/omarchy-mac#677, not merged). With an older
omarchy-mac-boot, `omarchy-ane-dt` refuses, and the ANE node must come from
the kernel.
- T6000, T6002, T6020, T6022 and T8112 are untested opt-ins. Each applies only
with its own key, and `omarchy-ane-check` prints `UNTESTED SoC: SOC` on it.
On T6020, T6022 and T8112, run `omarchy-ane-firmware-fetch` by hand. Their
overlays were checked against the linux-asahi 7.1.13 board device trees, not
on hardware.
- Speed: the whole Parakeet encoder takes 254 ms per CALL on the M2 under
Linux and about 139 ms on the M1 (T8103). On the same M2 under macOS, the
same MIL takes 89 ms with the same output bits (#29). The cause is under
investigation. Rejected causes, each with a receipt commit: the compiled
program (the M2's native program also takes 253 ms under Linux; `3b6fcf4`,
#32), the AXI2AF bridge tunables (`17e3bdc`, #33), the bulk-DART tunables
0x220, 0x224 and the SID words (`ec6ab5a`, #37), and the ten Linux-only P-1
writes (`ee469e2`, #40). Writing DART 0x20c on a live DART breaks
translation (`ec6ab5a`); a write at DART reset is still open (`a332e6a`,
`d5a0e74`).
- Qwen: all 38 programs conform, but STAGED-QWEN-REF passes 3 of 10 prompts
against the M1 reference. The M2's own macOS compile and runtime give the
same tokens as Linux on 10 of 10 prompts, with a logit difference of 0, so
the 3 of 10 comes from H14 against H13 numerics, not from the driver (#29).
- Only T8103, T6001 and T6021 have run the ANE. The T6000 (M1 Pro) and T6002
(M1 Ultra) overlays are untested: each applies only with its own opt-in key
(`ane-t6000`, `ane-t6002`), and `omarchy-ane-check` prints
`UNTESTED SoC: SOC` on them. The T6020 and T6022 overlays are not installed.
The new overlays were checked against the linux-asahi 7.1.13 board device
trees, not on hardware.
- `trace_td` is off by default. Use it for measurement only.
- The T8103 firmware start is research. The package does not contain it.
- Hardware gates of this release: T6021 passed the device gate with the
release-built `ane_t6021` after a disk boot of one M2 Max, with the #23
overlay (#30). T6001: both modules compile, and a smoke test passed on the
loaded older `ane` module; the 0.4.0 module was not loaded. T8103: pending.
- The disabled-node kernel case that #23 fixes has not been booted.
- After the firmware starts, `ane_t6021` cannot unload. Only a reboot removes
it. The driver stays opt-in through `omarchy-ane-m2-enable`.
it.
- Hardware gates of this release: T8103 passed on 2298beb (package build,
install, load, bind, `omarchy-ane-check`, ABI probe; the encoder smoke did
not run), and `ane.ko` did not change after 2298beb. T6001 passed on
be6b352: `ane.ko` is byte-identical to the earlier builds, the smoke tests
pass, and `ane_t6021` cannot autoload on T6001. T6021 passed two disk boots
on 73da8f8 with the lab m1n1, in the reserved mode and in the own-memory
mode (#49): the device gate passed, Qwen program 20 matched the M1 golden
(rel L2 0.00117), and the whole encoder was bit-exact at a 254.5 ms median.
A third disk boot ran b6ef8f1 with the packaged m1n1 1.6.1 and the default

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WARNING: This Boot P claim has no receipt in the tree

The third disk boot (b6ef8f1, packaged m1n1 1.6.1, default own-memory mode, 16 gates, encoder bit-exact, outputs byte-identical) is asserted here and repeated at line 8 and line 170, but nothing under receipts/ records it. The only T6021 disk-boot receipt in the tree (receipts/2026-10-01-t6021-release-boot/README.md:13) is explicitly the lab m1n1 v1.6.1-pdtrace stage 2, and receipts/2026-10-01-t6021-default-on/README.md:168 still reads "With the packaged m1n1 the guard must refuse. No such boot has run." b6ef8f1 itself is the merge of #49 and carries no device output.

AGENTS.md requires every delivered item to leave a receipt (command output, file path, or commit), and a packaged-m1n1 boot is the load-bearing evidence for both "T6021 is on by default" and "no reserved-memory node is needed". Either add the boot receipt (boot ID, module SHA, m1n1 version, gate table, encoder SHA) and update the two stale receipt lines, or keep the packaged-m1n1 claim out of 0.4.0.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

own-memory mode: 16 gates passed, and the whole encoder was bit-exact at a
254.3 ms median, with outputs byte-identical to the own-memory lab boot.

## 0.3.0 (2026-09-30)

Expand Down
Loading