Repository navigation
kboot: hand the T8132 (M4) encoder its preloaded firmware - #152
Merged
RyanTheTide merged 1 commit intoNov 12, 2026
Merged
Conversation
EdupugantiAkhil
marked this pull request as ready for review
November 10, 2026 21:32
EdupugantiAkhil
requested review from
DjDeveloperr and
RyanTheTide
as code owners
November 10, 2026 21:32
RyanTheTide
requested changes
Nov 12, 2026
RyanTheTide
left a comment
Contributor
There was a problem hiding this comment.
Thanks for this. It conflicts with main now, and a plain rebase would change what you tested, so it needs a small follow-up before it can go in.
- Rebase. Since your base, main put
ave_compatibleson one line ("apple,t6000-ave", "apple,t8112-ave", "apple,t8140-ave", "apple,t6041-ave", "apple,t6050-ave",) anddt_set_ave_node()now takes the compatible as an argument. Add"apple,t8132-ave"to that list. - Add T8132 to the remap list. On your base, every encoder's segments went through
dt_reserve_asc_firmware(adt_path, NULL, path, true, 0), so they were handed over at their remap addresses. eedad2f ("keep the remap addresses for the M4-generation AVE firmware") changed that. Only the compatibles inuse_remap(t8140, t6041, t6050) still get the remap addresses. Everything else takes the zero-based 6070 handoff (M1 Pro/M2). If you only add the compatible, the T8132 9003.78.0 firmware gets zero-based DVAs, which is not what you tested. Add!fdt_node_check_compatible(dt, node, "apple,t8132-ave")touse_remap.dt_copy_ave_tunables()and the T8112 vm-base branch already return early for T8132, so nothing else changes. - Re-test the rebased head on the J713. Commit message and PR body should say what the boot ran. The 1.0.0b8 build in the body predates both changes above. The
aurora,ave-*-crc32values and bothmemory-regionentries on the encoder node are enough, plus one encode. If that first-boot fallback shows up again, please attach theaura_stage2.logof that boot.
Signed-off-by and the trailer are fine as they are.
Add "apple,t8132-ave" to the AVE compatibles, so the M4 encoder gets the same firmware handoff as the M2, M4 Pro and A18 Pro: no-map reservations for the preloaded TEXT/DATA segments, its memory-region references and the aurora,ave-text-crc32 / data-crc32 properties. The ADT node is /arm-io/ave, as on the M2 and A18 Pro. Also add it to use_remap: the M4 runs the same 9003.78.0 firmware generation as the M4 Pro and A18 Pro, which runs at its remap addresses, not from DART address zero like the 6070 firmware. Tested on a MacBook Air M4 (J713, OS firmware 26.6.2): this commit on main d356553, as a Stage 2 trial (aura 1.0.0b12-g98d20325) with the 1.0.0b8 Stage 1. The encoder node got both memory-region entries, the TEXT segment (0x148000 bytes) and DATA segment (0x12c000 bytes), both no-map, and aurora,ave-text-crc32 = 9308d2ab. The apple-ave driver probed and FFmpeg hardware-encoded H.264, HEVC and HEVC Main 10. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Akhil <akhile76@gmail.com>
EdupugantiAkhil
force-pushed
the
t8132-ave-handoff
branch
from
November 12, 2026 18:11
5d63434 to
ec093b2
Compare
Contributor
Author
|
Thanks for the review. Pushed ec093b2:
Two things you should know:
aura_stage2.log (trial boot, this head) |
RyanTheTide
approved these changes
Nov 12, 2026
RyanTheTide
left a comment
Contributor
There was a problem hiding this comment.
Both points are in: apple,t8132-ave is in the one-line ave_compatibles list and in use_remap, so the 9003.78.0 segments keep their remap addresses. The J713 trial of this exact head shows both no-map memory-region entries and the same H.264/HEVC/Main 10 PSNR.
Merged
IronsideXXVI
added a commit
to IronsideXXVI/omarchy-j604
that referenced
this pull request
Nov 13, 2026
linux-aurora 7.3.0.aurora1-1.881, 476 patches on aurora-silicon/linux integration/aurora da8e1acf3656. The Stage 2 trial was committed on the 1.881 boot, so the 1.881 device tree runs (0459 and 0476 active). 0461-0465: display fixes from Ryan Murray, twobip and Diljit Singh (vblank sequence in flip events, no HDMI link wait without a sink, DP2HDMI connect, firmware-derived EDID for fast modes) and a test. 0466-0469: CLPC floors tryable at runtime; AxxzyWasTaken's busy-share floor. 0470: other mini-LED backlight properties, off by default. 0471-0472: G16 retires before draining report rings; two commands of a class in flight, off by default. 0473: frame-level rate control on the video encoder. 0474-0476: init_kernel_el bytes checked before a T8132 resume; power-gate bring-up parameter; the J604 takes the CPU cluster power-gate node. aura 1.0.0b13 (1.612): 15 patches; the encoder firmware hand-over is now aura's own (aurora-silicon/aura#152) and the reverted 0017-0018 is gone. asahi-scripts 9.605: the Stage 2 guard timer counts from unlock. chromium 1.608: the V4L2 video encoder on Linux, behind the AcceleratedVideoEncoder feature (off by default).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds
"apple,t8132-ave"toave_compatiblesand touse_remap, so the M4 encoder gets the same firmware handoff as the M4 Pro and A18 Pro:memory-regionreferences;aurora,ave-text-crc32/aurora,ave-data-crc32.The ADT node is
/arm-io/ave.dt_copy_ave_tunables()and the T8112 vm-base branch already return early for T8132.Needed by aurora-silicon/linux#1489 (T8132 apple-ave variant and device tree).
Testing (MacBook Air M4, J713, OS firmware 26.6.2), exactly this PR's head (
maind356553 + this commit, built as aura1.0.0b12-g98d20325, no local changes), booted as a Stage 2 trial with the installed 1.0.0b8 Stage 1:aura_stage2.logof that boot:aura 1.0.0b12-g98d20325, Stage 1aura-try: marker spent, trying m1n1/boot-ctxr.bin.next, andchosen/aurora,trial = m1n1/boot-ctxr.bin.nextin Linux.aurora,ave-text-crc32 = 9308d2ab(AppleAVE2FW 9003.78.0, T8132 build).memory-regionentries on the encoder node:asc-firmware@10000b88000(0x148000 bytes, TEXT) andasc-firmware@10001cd8000(0x12c000 bytes, DATA), bothno-map.The trial did not commit, for a reason outside this change. On current
main, aura leaves the J713 external DCP (dcp@48ae00000,apple,t8132-dcpext)status = "okay"and gates adoption on the ready marker. The kernel on this machine is older (nixos-aurora pin with aura 1.0.0b8) and answers-ENODEV: external DCP not handed over, soaurora-stage2-commitrefuses withDCP is not bound: soc/dcp@48ae00000. That is the auramain/ older kernel combination, not the AVE handoff; the AVE checks above all ran on that trial boot.First-boot fallback: the first trial of this head (same bytes) fell back before Linux, again. The fallback boot overwrites both MTD logs, so I couldn't capture that boot's
aura_stage2.log. The retry of the same bytes booted; itsaura_stage2.logis in my review reply. On this machine every first trial after an install has fallen back so far (three of three, on 1.0.0b8 and on this head), and each retry of the same change booted.AI disclosure: developed with AI assistance (Claude). The commit carries an
Assisted-bytrailer.🤖 Generated with Claude Code