Skip to content

media: apple: ave: T8142: admit the macOS 27.2 (26B123) encoder firmware - #1900

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
m0d16l14n1:j815/t8142-ave-272
Nov 21, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
m0d16l14n1:j815/t8142-ave-272

Conversation

@m0d16l14n1

@m0d16l14n1 m0d16l14n1 commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Admits the AVE firmware that the macOS 27.2 (26B123) M5 stub preloads: AppleAVE2FW_H17G 9013.55.1. 27.2.1 ships the same image.

  • Same sizes as 27.0: TEXT 0x154000, DATA 0x12c000.
  • TEXT CRC 24eb4625, the zlib CRC32 of the image's __TEXT. The same method gives the measured 8a3784bd for 27.0.

Change

  • Builds of one variant may now share segment sizes. The sizes still gate the probe, and the TEXT CRC picks among the builds that have them.
  • T8142 gets a build table with 26A428 and 26B123.
  • The 27.2 build takes 26A428's command layout, as the T6050 27.3 beta does. The M3 and M4 27.2 builds, which integration/aurora now has, use their own ave_layout_26b123 (larger Process commands). The M5 build encodes with 26A428's sizes.

Rebased onto integration/aurora cc14570. The only conflict was next to the new M3/M4 27.2 CRCs; all entries are kept. The stale "not encoded with yet" comment now says which encodes ran.

Tested on J815 (MacBook Air 15" M5), 27.2 stub, on the previous head (the AVE code it ran is the same). The loader hands TEXT/DATA over at their remap addresses (0x100_0000_0000; aura main already does, aurora-silicon/aura#215).

  • apple-ave: firmware build 26B123 (TEXT 0x154000 CRC 24eb4625, DATA 0x12c000).
  • Three encode runs pass: H.264 Baseline (ffmpeg), H.264 and HEVC with B-frames (v4l2-ctl).

Checks on this head: W=1 adds no warnings in drivers/media/platform/apple/ave/, checkpatch --strict is 0/0/0, and the AVE KUnit suite passes (48/48 with #2218 and #2547 on top).

Still owed (HW row): a J815 run on a kernel built from this head with the default command line: the "firmware build 26B123" line and the same three encodes on the 27.2 stub; then the 27.0 stub, showing "firmware build 26A428" and an encode; 0 AVC, 0 failed units, 0 new kernel errors.

Part of the J815 bring-up: board results are summarised in discussion #135.

Assisted-by: LLM (Claude:Opus 5.5)

@m0d16l14n1

m0d16l14n1 commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

@DjDeveloperr ready for review. Hardware on the macOS 27.2 stub (J815 boot 9a636e2e): AppleAVE2FW 9013.55.1 admitted by its TEXT CRC, and 3 encodes PASS (H.264 + HEVC). Green and mergeable.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Blockers: 1.

The probe change is correct. ave_fw_find_build() with crc == 0 (drivers/media/platform/apple/ave/ave-fw.c:258) still gates on segment sizes alone. Once the TEXT id is known, the second lookup (:309-318) swaps to the matching build and its CRC. An unknown image with the same sizes keeps the first build's want_crc and fails with -ENODEV at :319, so the change fails closed. A loader that hands over any other image is still refused by the loader CRC check at :299-302.

  1. Commit 81092af carries a Co-Authored-By: Claude Opus 5.5 trailer, which is also what the checkpatch warnings are about. Keep only your Signed-off-by in the commit. In the PR body, replace the closing "Generated with Claude Code" line with Assisted-by: LLM (<Vendor>:<Model>) as the last line.

Nit: drivers/media/platform/apple/ave/ave-layout.c:976-978 still says this build has "not encoded with yet", but the PR's three encodes ran on it. Update the comment to say which encodes were verified.

HW row: J815, kernel built from this head, default command line. On the 27.2 stub: the "firmware build 26B123" line plus the three encodes (ffmpeg H.264 Baseline, v4l2-ctl H.264 and HEVC with B-frames). Then once on the 27.0 stub to show the 26A428 path still selects "firmware build 26A428" and encodes, since the lookup changed for it too. Then 0 AVC, 0 failed units, 0 new kernel errors.

Assisted-by: LLM (Claude:Opus 5.5)

The macOS 27.2 (26B123) M5 stub preloads AppleAVE2FW_H17G 9013.55.1
(27.2.1 26B131 ships the same image): TEXT 0x154000 and DATA 0x12c000,
the sizes of the 27.0 build, TEXT CRC 24eb4625 (zlib CRC32 of the
image's __TEXT; the same method gives the measured 8a3784bd for 27.0).

Builds of one variant may now share segment sizes: the sizes still
gate the probe, and the TEXT CRC picks among the builds that have
them. Give T8142 a build table with 26A428 and 26B123, and take
26A428's command layout for the 27.2 build, as the T6050 27.3 beta
does. The M3 and M4 27.2 builds have their own layout (26B123, larger
Process commands); the M5 build encodes with 26A428's sizes.

Tested on J815 with the 27.2 stub (the loader handing TEXT/DATA over at
their remap addresses, 0x100_0000_0000): "firmware build 26B123 (TEXT
0x154000 CRC 24eb4625, DATA 0x12c000)", and three encode runs pass
(H.264 Baseline, H.264 and HEVC with B-frames). Not re-run on 27.0;
the 27.0 build is matched by the same CRC as before.

Signed-off-by: Nick <[email protected]>
@m0d16l14n1

m0d16l14n1 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor Author

@RyanTheTide thanks. Rebased onto cc14570.

  • The commit now has only my sign-off.
  • The PR body's last line is the Assisted-by: LLM (...) form.
  • The ave_layout_for_crc() comment now names the three encodes that ran on this build.

The only conflict was next to the new M3/M4 27.2 CRCs; all entries are kept. The HW row (the 27.2 stub's three encodes plus a 27.0 stub encode on this head) is next on the J815.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Re-review of 1a4cbee: No blockers.

  1. Co-Authored-By trailer and body attribution: resolved. 1a4cbee carries only Signed-off-by: Nick, and the PR body ends with Assisted-by: LLM (Claude:Opus 5.5).
  2. Nit (stale "not encoded with yet" comment): resolved. The comment at drivers/media/platform/apple/ave/ave-layout.c:1000-1007 now names the three encodes that ran on this build.

The rebase onto cc14570 keeps the M3/M4 27.2 entries next to the new one (ave-fw.c:46-47, ave-layout.c:997-998). The probe logic I checked last time is unchanged: the size-only lookup at ave-fw.c:259, the CRC refinement at :312-321, and the -ENODEV at :322-325. This is approvable once the HW row below is posted. The body lists it as still owed, and the commit message says the 27.0 path has not been re-run.

HW row: J815, kernel built from this head, default command line. On the 27.2 stub: the "firmware build 26B123" line and the three encodes (ffmpeg H.264 Baseline, v4l2-ctl H.264 and HEVC with B-frames). On the 27.0 stub: "firmware build 26A428" and one encode. Then 0 AVC, 0 failed units, 0 new kernel errors.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide
RyanTheTide merged commit 53727ad into aurora-silicon:integration/aurora Nov 21, 2026
1 check passed
RyanTheTide added a commit that referenced this pull request Nov 22, 2026
Merge-train batch 1 merged #1900 (T8142 AVE on 27.2), which touched the
same firmware tables. Resolution: keep this branch's neutral firmware
wording in ave-fw.c and ave-drv.c and add the T8142 27.2 CRC entry from
#1900 to the known-CRC list beside the T8132 27.2 one. No code change
beyond the union of both sides.

Signed-off-by: Ryan Murray <[email protected]>
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