Skip to content

packaging: ANE overlays for every SoC with cited values; overlays move to /usr/share - #28

Merged
joshuaswarren merged 1 commit into
mainfrom
agent/ane-every-soc
Oct 1, 2026
Merged

joshuaswarren merged 1 commit into
mainfrom
agent/ane-every-soc

Conversation

@joshuaswarren

Copy link
Copy Markdown
Owner

Every Apple SoC now has a row with its ANE firmware, the support state, the overlay gate and the missing data (README "Chip coverage"). Overlays exist only where every value has a source: the macOS 13.5 ADTs, the linux-asahi 7.1.13 device trees, and the overlays that ran on hardware. The per-value sources are in receipts/2026-10-01-ane-every-soc/README.md.

SoC Support Overlay Driver compatible Gate
T8103, T6001 tested unchanged .dtbo ane.ko enabled
T6021 tested unchanged .dtbo ane_t6021 opt-in ane-t6021
T6000 untested-overlay new (T6001 nodes) ane.ko apple,t6000-ane opt-in ane-t6000
T6002 untested-overlay, die 0 new (T6001 nodes) ane.ko apple,t6000-ane opt-in ane-t6002
T6020, T6022 die 0 unsupported new, not installed (T6021 nodes) none: ane_t6021 maps the T6021 iBoot firmware placement state disabled
T8112, M3 and later unsupported none none —
  • Overlays install to /usr/share/omarchy-platform/dtb-overlays (Apply package-owned device tree overlays to m1n1 stage 2 omacom/omarchy-mac#677, confirmed), one constant OVERLAY_DIR. omarchy-ane-dt apply refuses while .dtbo files are in the old /usr/lib directory, so the lab M2's hand install keeps its copies until it moves (README gives the three commands). update-m1n1-dtbs and the hooks stay: Arch Linux ARM installs have no omarchy-mac-boot.
  • omarchy-ane-check prints UNTESTED SoC: SOC off T8103/T6001/T6021.
  • tools/asahi-dtbs builds the 19 selected linux-asahi 7.1.13 board DTBs, byte-identical to the Arch package; tools/test_ane_overlays.py applies every overlay to each (22 applications, skip and disabled-node cases) and fails on an fdtoverlay that loads an older libfdt. New workflow dt-overlays runs them with test_ane_dt.py and test_ane_m2.py.
  • T8103, T6001, T6021 .dtbo bytes and the ane.ko objects are unchanged; ane_t6021 is not touched.

…e to /usr/share

T6000 (M1 Pro) and the T6002 (M1 Ultra) die 0 get the T6001 nodes, opt-in
as ane-t6000 and ane-t6002; ane.ko binds them with the apple,t6000-ane data.
T6020 and the T6022 die 0 get the T6021 nodes but are not installed: no
driver binds them, because ane_t6021 maps the firmware at the T6021 iBoot
placement. The macOS 13.5 ADTs give these SoCs the same ANE, DART and pmgr
values as T6001 and T6021. T8112 and M3 and later get no overlay. The T8103,
T6001 and T6021 .dtbo files and the ane.ko objects do not change.

The overlays install to /usr/share/omarchy-platform/dtb-overlays, the
directory of omacom/omarchy-mac#677, named once as OVERLAY_DIR in
omarchy-ane-dt. apply refuses while .dtbo files are in the old /usr/lib
directory, so a hand install keeps its copies until it moves.

omarchy-ane-check prints "UNTESTED SoC: SOC" on every SoC other than T8103,
T6001 and T6021. tools/asahi-dtbs builds the linux-asahi 7.1.13 board DTBs
byte for byte as the Arch package has them, and tools/test_ane_overlays.py
applies every overlay to each of them; the dt-overlays workflow runs both.
Receipt: receipts/2026-10-01-ane-every-soc.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T15:56:36.183892Z ec7ecbb PR opened
🔒 Security Review ✅ Completed 2026-10-01T15:57:39.805006Z ec7ecbb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@joshuaswarren
joshuaswarren merged commit 9c76249 into main Oct 1, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ec7ecbb2e5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/asahi-dtbs
# Needs git, gcc, flex and bison. About 20 MB on disk, nothing installed.
set -euo pipefail
tag=asahi-7.1.13-3
out=$(realpath -m -- "${1:?usage: asahi-dtbs OUT}")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Pin the Asahi source tree to an exact commit

The overlay-validation workflow clones the mutable tag asahi-7.1.13-3, even though its receipts use this checkout to substantiate safety-critical register and address values. If that remote tag is moved, CI silently validates a different kernel tree while continuing to present the results as the cited 7.1.13 evidence. Pin the full commit hash associated with the recorded DTBs and verify HEAD before building.

AGENTS.md reference: AGENTS.md:L225-L228

Useful? React with 👍 / 👎.

/include/ "t602x-ane.dtsi"

/ {
fragment@10 {

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: Second root child named fragment@10 collides with fragment@10 in the included t602x-ane.dtsi

/include/ "t602x-ane.dtsi" already defines fragment@10 (the /soc fragment) at the same level, so the DTS has two sibling nodes with the same name. dtc reports this only as a duplicate-node-name warning, and both packaging/build-dtbo (dtc -q) and tools/test_ane_overlays.py (dtc -q) suppress warnings, so nothing reports it. Relying on a duplicate name plus a fragment with no target-path/target also ties the compatible override to fdtoverlay's handling of a targetless fragment; an fdtoverlay that treats that as an error takes the whole overlay with it. Give it a name the .dtsi does not use (for example fragment@11) and the same target-path the dtsi fragment has, so the override is explicit and the duplicate warning goes away. packaging/dt/t6022-ane.dts:32 has the identical construct.


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

data, _ = built
result = oadt.Tree(data)
applied += 1
if not wanted:

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: Every ANE assertion is skipped when omarchy,skip-if-compatible is absent

wanted comes from the overlay's omarchy,skip-if-compatible. If that property were dropped or renamed in any -ane overlay, wanted becomes [], the overlay still builds (line 47 would raise if it did not), and lines 54-70 — the one-enabled-ANE-node check, the kernel-wins skip case and the disabled-node re-apply case — never run for that overlay. The run still prints ok. Only t6021-uboot-serial-stdin.dts legitimately has no ANE node, so the fix is to require a non-empty wanted for every source whose name ends in -ane.dts and keep the continue for the U-Boot overlay alone.


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

Comment thread tools/asahi-dtbs

dts=$src/arch/arm64/boot/dts/apple inc=$src/scripts/dtc/include-prefixes
for prefix in $(awk '/^[^#]/ { print $1 }' "$repo/packaging/dt/overlays" | sort -u); do
for f in "$dts/$prefix"-*.dts; do

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

SUGGESTION: Unmatched glob aborts the whole build with a misleading error

There is no nullglob, so if a prefix in packaging/dt/overlays has no board DTB in the kernel tree (for example a future t8112 overlay, which this PR deliberately leaves out), $f stays the literal pattern, gcc -E fails with .../t8112-*.dts: No such file or directory and set -e kills the run before any DTB is built, so CI reports a cpp error instead of "no board device trees for this prefix". Add shopt -s nullglob before the loop and skip a prefix that matches nothing.


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

cmd_fetch(sys.argv[2], sys.argv[3])
elif what == 'firmware':
cmd_firmware(sys.argv[2])
else:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

SUGGESTION: An unknown subcommand silently runs the ADT dump

ipsw_ane.py firmwar DIR (or any typo) falls through to cmd_adt and produces a full, plausible-looking ADT dump with no error, so its output could be pasted into a receipt as if it were the firmware table. sys.argv[1] with no argument is also an uncaught IndexError. Make the final branch reject anything other than adt.


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

@kilo-code-bot

kilo-code-bot Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: 4 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 2
SUGGESTION 2
Issue Details (click to expand)

WARNING

File Line Issue
packaging/dt/t6020-ane.dts 26 Second root child named fragment@10 collides with fragment@10 in the included t602x-ane.dtsi; dtc's duplicate-node-name warning is suppressed by -q in both build-dtbo and the test, and the override depends on a targetless fragment (same construct at packaging/dt/t6022-ane.dts:32)
tools/test_ane_overlays.py 52 All ANE assertions are skipped when omarchy,skip-if-compatible is missing, so an -ane overlay that lost that property passes green with nothing checked

SUGGESTION

File Line Issue
tools/asahi-dtbs 34 No nullglob, so a prefix with no board DTB aborts the whole build with a misleading gcc -E: No such file error
receipts/2026-10-01-ane-every-soc/ipsw_ane.py 108 Unknown subcommand silently falls through to cmd_adt; a typo produces a plausible-looking ADT dump instead of an error
Files Reviewed (36 files)
  • .github/workflows/dt-overlays.yml - 0 issues
  • CHANGELOG.md - 0 issues
  • README.md - 0 issues
  • ane/src/ane_drv.c - 0 issues (comment-only change)
  • packaging/90-omarchy-ane-dt.hook - 0 issues
  • packaging/build-dtbo - 0 issues
  • packaging/dt/overlays - 0 issues
  • packaging/dt/t6000-ane.dts - 0 issues
  • packaging/dt/t6001-ane.dts - 0 issues
  • packaging/dt/t6002-ane.dts - 0 issues
  • packaging/dt/t600x-ane.dtsi - 0 issues
  • packaging/dt/t6020-ane.dts - 1 issue
  • packaging/dt/t6021-ane.dts - 0 issues
  • packaging/dt/t6022-ane.dts - 0 issues
  • packaging/dt/t602x-ane.dtsi - 0 issues
  • packaging/omarchy-ane-check - 0 issues
  • packaging/omarchy-ane-dt - 0 issues
  • packaging/omarchy-ane-m2-enable - 0 issues
  • receipts/2026-10-01-ane-every-soc/README.md - 0 issues
  • receipts/2026-10-01-ane-every-soc/SHA256SUMS - 0 issues
  • receipts/2026-10-01-ane-every-soc/adt-13.5.txt - 0 issues (receipt data)
  • receipts/2026-10-01-ane-every-soc/adt-27.0.txt - 0 issues (receipt data)
  • receipts/2026-10-01-ane-every-soc/ane-objects.txt - 0 issues (receipt data)
  • receipts/2026-10-01-ane-every-soc/dtbo.txt - 0 issues (receipt data)
  • receipts/2026-10-01-ane-every-soc/dtbs.txt - 0 issues (receipt data)
  • receipts/2026-10-01-ane-every-soc/fetch-13.5.txt - 0 issues (receipt data)
  • receipts/2026-10-01-ane-every-soc/fetch-27.0.txt - 0 issues (receipt data)
  • receipts/2026-10-01-ane-every-soc/firmware-13.5.txt - 0 issues (receipt data)
  • receipts/2026-10-01-ane-every-soc/firmware-27.0.txt - 0 issues (receipt data)
  • receipts/2026-10-01-ane-every-soc/ipsw_ane.py - 1 issue
  • receipts/2026-10-01-ane-every-soc/migration.txt - 0 issues (receipt data)
  • receipts/2026-10-01-ane-every-soc/tests.txt - 0 issues (receipt data)
  • tools/asahi-dtbs - 1 issue
  • tools/test_ane_dt.py - 0 issues
  • tools/test_ane_m2.py - 0 issues
  • tools/test_ane_overlays.py - 1 issue

Fix these issues in Kilo Cloud

Note: PR #28 is already merged, so these are advisory for follow-up rather than merge blockers.


Reviewed by free · Input: 0 · Output: 0 · Cached: 0

joshuaswarren added a commit that referenced this pull request Oct 1, 2026
The Unreleased entries of #28 and the #25, #27, #29 tools and #22/#26 receipts go into 0.4.0, with honest known limits. CHANGELOG.md only.
@joshuaswarren
joshuaswarren deleted the agent/ane-every-soc branch October 3, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant