Skip to content

arm64: dts: apple: describe the T603x Neural Engine, enabled; accel/ane: T603x clean refusal - #2331

Closed
RyanTheTide wants to merge 10 commits into
mainfrom
m3-media/ane
Closed

RyanTheTide wants to merge 10 commits into
mainfrom
m3-media/ane

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem. No T603x device tree describes the Neural Engine. T6030 (J514s, J516s), T6031/T6034 (J514c, J516c, J514m, J516m) and T6032 (J575d) all have one (two on J575d), but there is no ane node, no ANE DARTs, no ANE mailbox, and on T6030 only ANE_SYS of the five ANE power states exists. The binding has no T603x compatible either.

Change.

  • Binding: add apple,t6030-ane and apple,t6031-ane on the preloaded-firmware contract main already models for T8122 (apple,firmware-preloaded, no mboxes). Require the five apple,dapf-ranges records and allow apple,firmware-iovas (adding 0x100000b0000 for T6030 14.7 __DATA) on apple,t6030-ane; keep both false on apple,t6031-ane until T6031/T6034/T6032 hardware verification. T6034 and T6032 report the same apple,ane-type as T6031 and reuse apple,t6031-ane.
  • DTS: in the SoC peripherals files, next to the other media engines, add the engine, its ASC mailbox and its three DARTs, all status = "okay". On T6030 (t6030-peripherals.dtsi), populate the five live-verified J514s apple,dapf-ranges records and apple,firmware-iovas = <0x10000000000 0x100000b0000>. T6034 gets the nodes through t6031.dtsi; T6032 gets both dies' engines in t6032-peripherals.dtsi. The T6030 PMGR file gets ANE_MPM, ANE_CPU, ANE_TD and ANE_BASE (T6031 already had them), and ANE_SYS/ANE_CPU carry apple,no-auto-pm, matching T8122.
  • Driver: T603x gets match data only as far as a clean refusal — boot_qualified = false for the T603x SoC ids, so accel_ane probes, returns -EOPNOTSUPP, and leaves the device idle. No hang, no partial start, no DT gate.

Tested:

  • 7c34ba8e | 14" MacBook Pro M3 Pro (J514s, T6030) | PASS — booted 7.2.11 in 53 s (omarchy-m-test: 36 pass, 6 fail, 47 skipped, 0 regressions vs known-good baseline); the live T6030 DT shape (apple,no-auto-pm on ANE_SYS/ANE_CPU, five apple,dapf-ranges, apple,firmware-iovas = <0x10000000000 0x100000b0000>) passed full H15 cold-boot bring-up on J514s (RTKit-2419.140.12.release): SCRATCH7 = 0x08042006 READY in 5 ms, 8-channel IPC table published in 2 ms, SCRATCH3 cleared in 0 ms, 8 startup SHAREDMALLOC allocations served, and PRINT_ENABLE (0x04), START (0x00), CONFIG_GET (0x03, tick rate 0x16e3600 = 24 MHz), and RESOURCE_INFO (0x22) all returned ack=0 in 0 ms with 0 DART faults.
  • CI on aurora-silicon/linux: apple-build, host-tests, KUnit ane-boot ane-pm, and dt-checks (dt_binding_check + CHECK_DTBS across all 141 DTBs).

Risk: Low (two-way door; reverts cleanly without userspace or ABI impact). Affects T6030, T6031, T6034, and T6032 Macs only. The in-tree accel_ane driver refuses T603x with -EOPNOTSUPP before touching power domains or hardware registers, so unmodified boots leave the ANE idle.

Per-SoC values (ADT of each board)
T6030 T6031 / T6034 / T6032 die 0 T6032 die 1
ane-type 0xc0 0xe0 0xe0
engine 0x308000000 0x3c8000000 0x23c8000000
pmgr / aux-0 0x350700000 / 0x350724000 0x292280000 (0x10000) / 0x292290000 die-1 copies
aux-1, aux-2/3, aux-4 0x3503c0000, aux-2 0x211000000, 0x3642c8000 0x2903c0000, aux-3 0x404000000, 0x2a02dc000 aux-1 left out
ANE irq 576 983 die 1, 983
mailbox irqs (send-empty..recv-not-empty) 558-561 964-967 die 1, 964-967
DARTs (3x 0x4000, shared irq) 0x309800000, irq 577 0x3c9800000, irq 984 die 1
ANE_BASE parents ANE_TD ANE_TD ANE_TD
firmware-iovas (TEXT, DATA) 0x10000000000, 0x100000b0000 unverified unverified
  • T6030 apple,dapf-ranges (live J514s ADT dart-ane/dapf-instance-0): <0x350700498 0x35070049b>, <0x35070c000 0x35070c01b>, <0x350726c6c 0x350726c6f>, <0x2c9468000 0x2c9468003>, <0x292468000 0x292468003>.
  • The ADT lists two ASC windows first (engine + 0x1400000 size 0x6c000, engine + 0x1050000 size 0x4000). Both lie inside engine, so they aren't repeated.
  • Windows after pmgr are named after the M4 (T8132/T6041) windows at the same place with the same size. aux-1 is the MCC window (the ADT node has function-mcc_dataset). Their role on H15 is not established.
  • On T6032 the second die's ADT points its aux-1 entry at the first die's 0x2903c0000, which the die-1 bus can't address, so that entry is left out of the die-1 node.
  • The DAPF window at DART + 0x4000 already exists as dart_ane*_companion3 on T6030 and T6031.
  • Power: ANE_SYS, then MPM/CPU/TD at PMGR +0xc000/+0xc008/+0xc010 and BASE at +0xc018 (T6030); T6031 uses +0x5a0..+0x5c0. The DARTs hang off ANE_SYS (ADT ANE-SYS-DART).

The M3 generation's Neural Engine (T8122, T6030 and T6031; T6034 and
both dies of T6032 carry the T6031 engine) is an RTKit coprocessor
behind an ASC wrapper, like the SIO of the same wrapper revision: its
ASC mailbox is described as its own node, the engine keeps one
interrupt of its own, and it uses the five ANE power states (system,
CPU, MPM, TD, base) of the T6041/T8132 engines.

Add apple,t8122-ane, apple,t6030-ane and apple,t6031-ane, their
ane-type values (0xb0, 0xc0, 0xe0, as the hardware description gives
them) and the window names they use, named after the M4 windows of the
same location and size. H15 nodes take a mailbox, so move the
"mboxes: false" of the H16/H17 engines into a block of its own.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
No M3 device tree describes the Neural Engine. Add it to the SoC
peripherals files, next to the other media engines: the engine, its
ASC mailbox and its three DARTs on T8122, T6030 and T6031 (and so
T6034), and both engines of T6032. Add the four ANE power states under
ANE_SYS that the T8122 and T6030 PMGR files lack (T6031 already has
them); on T8122 ANE_BASE depends on both ANE_TD and ANE_CPU, on T6030
on ANE_TD only.

Every value comes from the hardware description of each board (all
T8122, T6030, T6031, T6034 and T6032 boards agree per SoC) and our own
capture of a J615 under macOS 27.2. The mailbox sits at the ASC + 0x8000
and its interrupts are ordered as on the SIO, which has the same ASC
wrapper and whose mailbox is already described. On T6032 the second
die's hardware description points one auxiliary window at the first
die's copy, which that die's bus cannot address, so that window is left
out there.

Everything stays disabled: the accel/ane driver has no H15 support yet,
and enabled ANE DART nodes were reported to hang an M3 Pro at boot in
the omarchy-ane H15 bring-up work by Joshua Warren and testers, whose
experimental overlays this follows.

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

Copy link
Copy Markdown
Contributor Author

Early note on this draft (no full review yet):

  1. PR body, "Why there's no driver match data", first paragraph: it names the macOS kernel driver class, its parent service and its endpoint service class. Those are Apple driver/class names and don't belong in public text. Describe it in neutral terms instead (for example "on M3 the ANE is an RTKit coprocessor with one ANE endpoint"); the DT and binding changes don't depend on those names.

Assisted-by: LLM (Claude:Opus 5.5)

@joshuaswarren

joshuaswarren commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Status check at head 5247281ff0 (2026-11-22):

  • CI: dt-checks and host-tests both pass; the branch merges cleanly.
  • Review: no review yet and no reviewer requested.

What blocks the merge:

  1. The PR is still a draft.
  2. The early note above is still open. The PR body ("Why there's no driver match data", first paragraph) still names the macOS driver class, its parent service and its endpoint service. The neutral wording suggested there fixes it, and the DT and binding changes do not depend on it.
  3. No maintainer review of the binding (apple,t8122-ane, apple,t6030-ane, apple,t6031-ane and the H15 node schema) or of the disabled DTS nodes.

Once the body is reworded and the PR is marked ready, a maintainer review of the binding and DTS is requested. Everything stays disabled, so the change carries no runtime risk while the H15 driver gap listed in the body remains open.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Closing for now: the nodes stay disabled with no M3 driver in sight; this comes back together with the H15 driver once the start sequence is known.

@RyanTheTide RyanTheTide reopened this Nov 22, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Reopened and kept as a draft; the comment above lists what it still needs before review. cc @niteria

@joshuaswarren

joshuaswarren commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Hardware validation offer for this PR on M3 Max.

Both M3 Max (t6031) community hosts have been waiting on one thing — the
upstream M3 ANE device-tree nodes (aurora linux#2331: engine, ASC mailbox,
three DARTs, and the missing PMGR power states). We built a packet on
integration/aurora + #2331, plus the experimental ane_h15 module, so the
nodes get validated on real hardware while #2331 sits in maintainer review.

What you get: a tarball with a 7.3.0-ane2331-ARCH kernel, the matching board
DTBs, ane_h15.ko built against that exact kernel, an enable overlay (safe
profile — DARTs and mailbox stay disabled; the ane node loses its
iommus/mboxes), an install script, and a 4-rung first-boot ladder.

What we need: install it, boot it, and run the ladder one rung at a time —
rung 0 is pure DT checks, rung 2 touches no hardware at all, rung 3 powers
the ANE domains and reads five PMGR words. Stop at the first unexpected
line and send every log back in the REPORT.md format. Nothing in this
packet writes to the ANE, enables a DART, or loads firmware — those rungs
aren't in the packet at all.

Time: ~15 minutes plus a reboot. If a boot hangs, the opt-in file is the
escape hatch (remove one line, update-m1n1, reboot) — it's in the ladder.

Packet (prerelease m3max-ane-packet-1 on joshuaswarren/omarchy-ane):
https://github.com/joshuaswarren/omarchy-ane/releases/download/m3max-ane-packet-1/t6031-ane-h15-7.3.0-ane2331-ARCH.tar.gz
sha256: c311974b394a0d7c916900c5292e9117fbea615b9bb2c411939a7c5198823adc

@joshuaswarren

Copy link
Copy Markdown
Contributor

What. An independent reconciliation of the T8122 (M3) ANE node: our own
ADT-pinned draft — the ane/h15/t8122-ane-experimental.dts opt-in overlay we use
for bring-up — checked value for value against
this PR's T8122 column and node layout.

Tested. Desk reconciliation, values only (no hardware run yet):

  • engine 0x310000000 (+0x2000000 window) — agrees with our pinned ADT.
  • DARTs 0x311800000 with 0x10000 steps and shared IRQ 525 — agrees with our
    pinned DART windows 0x311800000 / 0x311810000 / 0x311820000 / 0x311804000.
  • PMGR: ANE_SYS at +0x438 in the t8122 PMGR plus the four added states
    ANE_MPM / ANE_CPU / ANE_TD / ANE_BASE at +0xc000 / +0xc008 / +0xc010 / +0xc018 — agrees with our power-words capture (ANE_SYS, parent of
    ANE_BASE via ANE_TD and ANE_CPU).
  • ane-type 0xb0 for t8122 — agrees with our b0-table reading.
  • The node's new mailbox (ASC + 0x8000, IRQs 506-509) is additive and correct
    from the ADT; our overlay deliberately leaves it out because the h15 bring-up
    module polls the ASC v4 mailbox (wrapper + 0x8000, INFERENCE) with no IRQ —
    a bring-up vehicle difference, not a conflict.

Risk. Two observations, both low:

  1. Our overlay keeps the ANE DARTs out of the ane node on purpose: the
    dart,gen3 DART with manual availability hung the bus when its power chain
    was down (the USB DART story). arm64: dts: apple: describe the T603x Neural Engine, enabled; accel/ane: T603x clean refusal #2331 describes the three DARTs as disabled
    nodes, which is inert until a driver touches them — but the first H15 driver
    path must sequence DART power before the first map, or it will reproduce the
    hang on real M3 hardware.
  2. Our bring-up module needs the DART windows mapped read-only during the early
    stages, so the opt-in overlay keeps flying in parallel until the driver path
    lands. No change requested.

Not yet. No hardware run on our side or in this PR yet: the first m3air run
answers the open facts (coprocessor start sequence, firmware handshake), which
this PR's own body lists as still to run. Our side feeds it: the opt-in overlay
and the stage ladder are staged, and the numbers land in the card when the run
happens.

Questions for the first M3 run:

  1. Does the H15 driver path power the DARTs before the first map?
  2. Does the mailbox interrupt path (506-509) fire, or must the first bring-up
    poll the ASC as our module does?
  3. Does the ANE_BASE dependency order (ANE_TD then ANE_CPU, both before BASE)
    match the silicon's request behavior on J613/J615?

@joshuaswarren joshuaswarren changed the title arm64: dts: apple: t8122/t603x: describe the M3 Neural Engine (disabled; driver gap documented) arm64: dts: apple: t603x: describe the M3 Neural Engine (disabled; driver gap documented) Nov 27, 2026
@joshuaswarren joshuaswarren changed the title arm64: dts: apple: t603x: describe the M3 Neural Engine (disabled; driver gap documented) arm64: dts: apple: t8122/t603x: describe the M3 Neural Engine (disabled; driver gap documented) Nov 27, 2026
@joshuaswarren

Copy link
Copy Markdown
Contributor

Ryan, I force-pushed this branch by mistake at 22:05 UTC today, and the title and body changed with it. I put the branch back to 5247281 at 22:15 UTC and restored the title and body as you left them. Nothing else here was touched. Sorry for the noise.

What I had pushed was a rebase onto main that drops the T8122 parts, since those landed separately in 0c01afd and 0882c53. If that is any use to you, it is on joshuaswarren/linux, branch m3-ane-t603x-rebased. Otherwise ignore it.

@joshuaswarren

Copy link
Copy Markdown
Contributor

Hi Ryan — this set has been open since Nov 22 with no review yet. What is left before it can merge? If a real M3 run would help: we have an M3 Max in hand and can exercise the Neural Engine device-tree path end to end on our side and report back the results here. Happy to provide anything else the review needs.

Bring the branch up to current main, which now carries the T8122 (J615)
H15 bring-up from 3082. The T8122 half of this branch is superseded, so
conflicts resolve toward main and only the T603x description remains.
Enable the T6030, T6031 and T6032 ANE nodes, their DARTs and their
mailboxes, per the DT policy that the tree describes all present
hardware with status okay. The matching driver platform stays
unqualified for T603x, so probe refuses the start before touching
resources, power or MMIO, logs the refusal and leaves the engine idle;
the DT is not the gate.

The iBoot preload happens on T603x the same as on T8122 (observed in the
ADT on J514s), so the nodes carry apple,firmware-preloaded. PMGR gets
apple,no-auto-pm on ps_ane_sys and ps_ane_cpu, the same fix 3082 shipped
for the J615 CPU-stop failure: AUTO_ENABLE must not gate the ANE CPU
behind the cold-started firmware.

drivers/accel/ane: fail cleanly on T603x

Add t6030/t6031 of-match entries pointing at unqualified platforms.
ane_fw_platform_preflight checks boot_qualified first and returns
-EOPNOTSUPP before any resource, power or MMIO access, so the engine
probes, logs the refusal and stays idle.
The merged shared clause still carried t8122 and forbade
apple,firmware-preloaded. T8122 has its own clause from main now, so the
group shrinks to t6030/t6031, firmware-preloaded becomes required like
the other preloaded H15 parts, and the stale t8122 duplicate clause
goes away.
@joshuaswarren joshuaswarren changed the title arm64: dts: apple: t8122/t603x: describe the M3 Neural Engine (disabled; driver gap documented) arm64: dts: apple: describe the T603x Neural Engine, enabled; accel/ane: T603x clean refusal Dec 1, 2026
@joshuaswarren
joshuaswarren marked this pull request as ready for review December 1, 2026 15:04
@joshuaswarren
joshuaswarren requested review from a team as code owners December 1, 2026 15:04
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-01T15:04:11.100708Z
We couldn’t complete this review. Comment @codex review to try again.
54098d5 Draft marked ready
🔒 Security Review ❌ Failed 2026-12-01T15:04:19.096898Z
We couldn’t complete this review. Comment @codex security review to try again.
54098d5 Draft marked ready
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@github-actions github-actions Bot added the door:two-way Revertible or not, from Merge risk (bot) label Dec 1, 2026
@joshuaswarren

Copy link
Copy Markdown
Contributor

Row: 7c34ba8e + J514s (MacBook Pro 14" M3 Pro, T6030) + PASS — first real model program

  • ane_h15 test module (7.2.11-ARCH boot; lab job j1201-192136-ec95) sent H15 fixtures/h15-hwx/add/model.hwx (subtype 6, [1, 1, 128, 128] fp16 y = a + b) end-to-end through the RTKit IPC path this DT shape enables.
  • LOAD_PROGRAM → CREATE_PROCESS → POWER_GATE(0) all ack=0; SHAREDMALLOC served the 2 MiB EXPP region; POWER_GATE(1) → TERMINATE_PROCESS → UNLOAD_PROGRAM all ack=0 on teardown.
  • 128/128 row-rotated fp16 add cases bit-exact: 2,097,152/2,097,152 elements, 0 byte mismatches (per-case mean 978 µs, min 730 µs, max 1403 µs), 0 DART faults on all four DARTs.
  • omarchy-m-test on the same boot: 36 pass / 6 fail / 47 skipped, 0 regressions vs the known-good run.

DjDeveloperr
DjDeveloperr previously approved these changes 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.

Approving at 7c34ba8e. The code is right. The new T6030/T6031 match data carry no build profile, so ane_fw_platform_preflight() refuses at the first check with -EOPNOTSUPP, before any resource, DMA, power or MMIO access, and accel_ane stays unloaded on T603x. The binding, the PMGR additions (ANE_SYS/ANE_CPU with apple,no-auto-pm, as on T8122) and the per-SoC values match the PR body's table.

It still needs rows before merge, because the nodes are enabled, so the DARTs and the ASC mailbox now probe on every T603x Mac:

  1. T6030: the J514s run above booted a 7.2.11 kernel with the out-of-tree ane_h15 module, so it shows the DT shape works, not this kernel. It needs a boot of this head merged with main (kernel and DTB): the DARTs and mailbox bind with no faults, accel_ane logs only the one refusal line, and there are no other new kernel errors. I'm requesting it on our J516s.
  2. T6031/T6034/T6032: these nodes are enabled with no M3 Max run yet, and the binding says T6031 is unverified. An M3 Max boot of the same tree, with the same checks, settles it. You offered one on 12-01; please post it here.

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 2, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor

J516s (M3 Pro, T6030, 27.2 stub) boot row at 7c34ba8ec608 merged with main (2225082e1d18, merge commit b8849a8393a7, kernel 7.3.0-m3-pr2331+ + built t6030-j516s.dtb, default cmdline, boot_id=9fc47bba-1393-434c-a2e7-c52152bc5b2a): PASS.

  • ANE ASC mailbox 309408000.mailbox bound to apple-mailbox.
  • All three ANE DARTs (309800000.iommu, 309810000.iommu, 309820000.iommu) bound to apple-dart with 0 bypass streams and 0 IOMMU/DART faults; 308000000.ane attached to iommu group 17.
  • 308000000.ane logged only the expected refusal:
    platform 308000000.ane: error -EOPNOTSUPP: ANE boot unqualified for SoC 0xc0; requires owner qualification and bootloader firmware preload support
    (leaving the 5 ANE PMGR domains @498, @c000, @c008, @c010, @c018 in sync_state() pending due to 308000000.ane as expected when unbound).
  • 0 other new journalctl -k -b -p err lines vs main (2225082e1d18 baseline), 0 failed systemd units.

@github-actions github-actions Bot added merge-conflict Conflicts with the base branch (bot) and removed ready-to-merge Meets the merge policy: merge it (bot) merge-conflict Conflicts with the base branch (bot) labels Dec 2, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor

One blocker the 12-02 approval missed. Commits 3523d66 ("describe the T603x Neural Engine, enabled") and 54098d5 ("model T603x on the preloaded H15 contract") have no Signed-off-by, and their author name is the placeholder user.email. A merge would put both into main's history as they are, and we can't fix them on this branch without rewriting it.

To fix it, recreate those two commits with the real author name and that author's sign-off, keeping the same trees, on a new branch. Then open it as a replacement PR, or reset this PR's branch to it if Ryan agrees. The branch also conflicts with main again (since 12-02 11:35).

The code review and the J514s and J516s rows stay valid for the same trees.

# Conflicts:
#	Documentation/devicetree/bindings/npu/apple,ane.yaml
#	drivers/accel/ane/ane_fw_platform.c
#	drivers/accel/ane/ane_fw_platform.h

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The merged binding rejects every T6030 and T6031 node. The existing compatible exclusion omits both new compatibles, so it forbids apple,ane-type and apple,firmware-preloaded while the new H15 branch requires both. T6030 also both requires and forbids apple,dapf-ranges. Include the new compatibles in the exclusion and validate the T603x DTBs against the corrected binding.

@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) and removed merge-conflict Conflicts with the base branch (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 agree with Ryan's review. Two things block this merge at 2bda8f1b. The rest of the merge is right.

  1. Binding. The not: contains: list at Documentation/devicetree/bindings/npu/apple,ane.yaml:525-546 needs apple,t6030-ane and apple,t6031-ane. Without them, make ARCH=arm64 LLVM=1 CHECK_DTBS=y over the 7 T603x DTBs (j514s, j516s, j514c, j516c, j514m, j516m, j575d) gives 20 npu/apple,ane.yaml "False schema does not allow" errors. Hosted dt-checks passed at 7c34ba8e. With the two lines added after apple,t8132-ane I get 0 errors, and dt_binding_check DT_SCHEMA_FILES=npu/apple,ane.yaml still passes.
  2. Sign-offs (the 20:00 comment). 3523d666 and 54098d59 still have no Signed-off-by and the author user.email. checkpatch reports "Missing Signed-off-by" on both, and the merge keeps them in history. Recreate them on a new branch with the real author and sign-off, keeping the same trees, and put the binding fix on top. Open that as the replacement PR, or reset this branch to it if Ryan agrees.

Checked and fine at this head:

  • ane_fw_platform.c/.h keep main's ane_t8112_platform and ane_fw_preload_handoff() and the T6030/T6031 stubs, each defined once. The match table keeps both sides.
  • T603x still stops in ane_fw_platform_preflight() with -EOPNOTSUPP before any resource, power or MMIO access. ane_rtclient_platform() returns the SoC's own platform first, so the J516s row still covers the runtime.
  • The apple,firmware-iovas and apple,ane-type unions are right.
  • The other six files match a plain three-way merge. A merge with current main (36de64e3) is clean and leaves this PR's files unchanged.
  • A W=1 clang arm64 compile of ane_fw_platform.o, ane_t6021_rtclient_main.o, ane_fw_cold.o and ane_h16_backend.o gives 0 warnings. The T8112/T8122 DTBs give 0 apple,ane.yaml errors.

Still owed from the 12-02 approval: an M3 Max (T6031/T6034/T6032) boot row.

@maralcbr maralcbr 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.

Requesting changes at 2bda8f1b. The refusal path in ane_rtclient_init() / ane_fw_platform_preflight() is clean and T6031/T6034/T6032 DTBs parse cleanly with dtc, but there are several blocking issues beyond the dt-checks failure (FAILURE at 2bda8f1b):

Blocking

  1. Binding rejects all 7 T603x DTBs (Documentation/devicetree/bindings/npu/apple,ane.yaml:525-546):
    As Ryan and DjDeveloperr noted, apple,t6030-ane and apple,t6031-ane are missing from the not: contains: exclusion list, which forbids apple,ane-type, apple,firmware-preloaded, apple,dapf-ranges, and apple,firmware-iovas in direct contradiction to the new T603x clauses (lines 562-617). dt-checks failed on 2bda8f1b.

  2. Schema regressions and stale T8122 example in Documentation/devicetree/bindings/npu/apple,ane.yaml:

    • lines 548-560: Splitting mboxes: false into its own allOf block dropped apple,t8122-ane, which previously had mboxes: false on main. Please restore apple,t8122-ane to that list.
    • lines 895-918: Adds a leftover apple,t8122-ane example from before T8122 landed separately. It omits apple,firmware-preloaded and apple,dapf-ranges (both required for apple,t8122-ane at lines 471-474) and carries mboxes = <&ane_mbox>;, only escaping dt_binding_check because status = "disabled" causes dt-validate to skip it. Since this PR is T603x-only, please drop it or replace it with a valid T6030 example.
    • lines 584-585: memory-region: false and memory-region-names: false contradict the preloaded-firmware contract on T6030 (t6030-peripherals.dtsi:571-572 sets apple,firmware-preloaded; and apple,firmware-iovas with /* Default layout; the loader supplies per-boot physical reservations. */). Unlike t8122/t6041/t8132, this schema would reject bootloader-injected memory-region reservations.
  3. Wrong .soc values (drivers/accel/ane/ane_fw_platform.c:149-155):
    ane_t6030_platform sets .soc = 0xc0 and ane_t6031_platform sets .soc = 0xe0. Every other platform in ane_fw_platform.c puts the Apple SoC ID in .soc (0x8122, 0x8112, 0x6040, 0x8132, 0x8140, 0x6050, 0x8142) and the firmware generation ID in .ane_type (0xb0, 0x80, etc.). As written, preflight logs ANE boot unqualified for SoC 0xc0 instead of 0x6030/0x6031. Please set .soc = 0x6030, .ane_type = 0xc0 and .soc = 0x6031, .ane_type = 0xe0.

  4. Missing Signed-off-by and placeholder author user.email:
    As DjDeveloperr flagged, 3523d666, 54098d59 (and merge commit 31bbcb95) carry Author: user.email with no Signed-off-by:. Please recreate/rebase cleanly on main with real author metadata and sign-offs.

Question / Hardware Row

  • mboxes contract and ane*_mbox idle power: The PR body says "the preloaded-firmware contract main already models for T8122 (apple,firmware-preloaded, no mboxes)", yet apple,ane.yaml:587-590 requires mboxes and all three DTSIs add ane*_mbox (status = "okay", power-domains = <&ps_ane_cpu>). On main, t8122 has no ane_mbox node (the H15 AP-direct backend accesses engine + 0x1408000 directly). With ane*_mbox enabled and ane refusing probe (-EOPNOTSUPP), apple-mailbox binds and sync_state() remains pending on all 5 ANE domains (as seen in the J516s row) while ps_ane_sys/ps_ane_cpu carry apple,no-auto-pm;. Please clarify whether T603x should drop ane*_mbox to match t8122 (and avoid keeping ps_ane_cpu/ps_ane_sys powered at idle), or align the PR description and verify idle/sleep behavior.
  • M3 Max (T6031/T6034/T6032) boot row: Still owed at head once rebased/fixed, since the T6031/T6032 DARTs and mailboxes are status = "okay".

Non-blocking

  • ane_dart0/1/2 omit apple,dma-range = <0x0 0x0 0x400 0x0>; (used on t8122 and t8132 for firmware identity MMIO pages below preload DVAs); inert while ane refuses probe, worth aligning before enabling the backend.
  • Minor doc/comment cleanup: t6030-peripherals.dtsi:543 still reads ADT-derived only; apple,ane.yaml:185 omits T6030 in the apple,dapf-ranges count description; ane_fw_platform.c:143 comment mentions aux-0 + 0x2b6c while DAPF record 2 is 0x350726c6c (aux-0 + 0x2c6c — double-check if distinct registers or typo).

@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
@joshuaswarren

Copy link
Copy Markdown
Contributor

Thanks for catching the missing sign-off and placeholder author on those two commits. Opened clean replacement PR #4022 rebased onto current main with proper author and Signed-off-by on all 7 commits (preserving the same trees verified by the J514s and J516s boot rows).

@DjDeveloperr

Copy link
Copy Markdown
Contributor

#4022 (same change, recreated with the right author and sign-offs) is the one to keep. This can be closed in its favour once its author agrees; the points raised here that still apply are in the review there.

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) area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) changes-requested A reviewer requested changes (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants