Skip to content

AVE on the M1 Pro and M2: admit the preloaded TEXT, T8112 vm-base handoff - #140

Closed
RyanTheTide wants to merge 3 commits into
ave-m1m2/init-tunablesfrom
ave-m1m2/t8112-vmbase
Closed

RyanTheTide wants to merge 3 commits into
ave-m1m2/init-tunablesfrom
ave-m1m2/t8112-vmbase

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #126. Hands the AVE firmware to Linux the way the M1 Pro and M2 cores fetch it.

  • dapf: admit the preloaded AVE TEXT on the M1 Pro/Max CPU DART. The ADT's DAPF row did not cover the TEXT that iBoot preloads at the code base, so the core could not fetch its reset stub.
  • kboot: on T8112, reserve TEXT and DATA at the AVE DART's vm-base (0x800000000) plus their iova-offset. iBoot points the code base there and the firmware addresses DATA there; with the bare offset the first DATA store faulted on the DART at vm-base + DATA + 0x60358. T6000 keeps DART address 0.
  • tests: the preloaded TEXT DAPF entry.

Tests

  • pytest: dapf tests 4/4, full suite as on main.
  • M1 Pro (aura-try trial, AVE node enabled, Linux driver from media: apple: ave: run the 6070 firmware on the M1 Pro and M2 (boot + lifecycle) linux#1387): hello 9 ms after RUN, Config/Open/Close/Halt for H.264 and HEVC, 0 DART faults. 6 boots.
  • M2 (aura-try trial, same): hello 3 ms after RUN, the same lifecycle, 0 DART faults; with the zero-based handoff the firmware faulted at 0x800130358. 3 boots, each back on the configured Stage 2 afterwards.

🤖 Generated with Claude Code

claude and others added 3 commits November 10, 2026 02:18
iBoot preloads the T6000/T6001 AVE firmware and latches the physical
__TEXT base in the coprocessor's reset vector, so the core fetches its
first instructions physically through the dart-ave0 address filter.
Program dart-ave0's ADT filter like the other coprocessors' and, when no
ADT entry covers the preloaded __TEXT (segment-ranges[0]), add one
read-only entry for it, as iBoot does for ISP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the M2 iBoot sets the encoder's code base to the AVE DART's vm-base
(0x800000000), and the firmware addresses its DATA at vm-base plus the
DATA offset. With the segments reserved at their bare iova-offset, the
first DATA store from the running firmware faulted on the DART at
vm-base + DATA + 0x60358 and the firmware never answered.

Reserve both segments at vm-base + iova-offset on T8112. The T6000 keeps
DART address zero.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Superseded by #161 (merged 2af438d): the DAPF TEXT entry and the T8112 vm-base handoff are in main.

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.

2 participants