Skip to content

media: apple: ave: admit Neo macOS 27.2 firmware - #1990

Open
RyanTheTide wants to merge 4 commits into
mainfrom
fw272/neo-ave
Open

RyanTheTide wants to merge 4 commits into
mainfrom
fw272/neo-ave

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Problem. The Neo's macOS 27.2 encoder firmware is refused: AVE admits only the 25G83 build. The 27.2 image keeps DATA at 0x130000 and grows TEXT to 0x154000.

Change. Admit the 27.2 image by its TEXT CRC next to the 25G83 tuple, on the T8140 encoder compatible. It uses the existing macOS 27 ordinary-encode command layout. MCTF stays on its own qualification path. A code comment now describes the shared command layout without reference to other software.

Testing. New KUnit assertion covers both T8140 build tuples and their layout pick. arm64 QEMU AVE suite 45/45, including all 20 apple-ave-abi cases.

Still to run. Neo on the 27.2 stub: encode plus suspend/resume, 20/20 runs.

Accept the T8140 26B123 firmware identity and select the existing macOS 27 command layout while retaining the 25G83 build.

Assisted-by: LLM
The comment over the 26A428 layout selection now states the shared
fact (the same ordinary-encode command layout) for the three builds.
Comment only.

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. drivers/media/platform/apple/ave/ave-drv.c:112-115 (ave_t8140_builds[]): the 27.2 image is admitted per SoC compatible, by a build tuple listed under T8140 only. The layout is already chosen from the image's own TEXT CRC (ave_layout_for_crc(), ave-layout.c:964), so let the firmware identity decide admission (any SoC whose loaded image has a known CRC and the matching TEXT/DATA sizes) rather than a per-SoC build list. If a per-SoC list is really needed, say why in the commit message.
  2. drivers/media/platform/apple/ave/ave.h:176 and ave-fw.c:43: the new comments quote the firmware image's internal name and version string. Identify the build by the macOS release and build number only (as the macro name already does).

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Closing: the 27.2 image is admitted from a per-SoC build list; it should be admitted by the image's own identity, with a Neo row on a 27.2 stub.

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

# Conflicts:
#	drivers/media/platform/apple/ave/ave-abi-test.c
#	drivers/media/platform/apple/ave/ave-fw.c
#	drivers/media/platform/apple/ave/ave-layout.c
#	drivers/media/platform/apple/ave/ave.h
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Draft sweep 12-05: updated and out of draft.

  • Merged main @ f02bd68 (dad2e75). main had meanwhile admitted the 27.2 builds of every other SoC the same way (per-SoC ave_fw_build lists: T8132, T6041, T6050, T8142, T8112, ...), so the 11-21 ask 1 (admit by image identity rather than a per-SoC build list) is answered by main's established design: the T8140 list here is the same shape as its neighbours. Ask 2 is done: the new comments name the build by macOS release, build number and encoder firmware version only, as main now does everywhere.
  • The Neo 27.2 build (9013.55.1) now sits with the M5's 9013.55.1 build in ave_layout_for_crc(), which selects 26A428's ordinary-encode layout (proven on the J815's 27.2 stub).
  • Local: KUnit drivers/media/platform/apple/ave/.kunitconfig on arm64 QEMU (LLVM): 63/63 pass, including the new ave_t8140_fw272_build case.
  • Still needed: the Neo row on the 27.2 stub (queued in HWROWS-QUEUE: H.264 + HEVC encode, s2idle, encode again).

@RyanTheTide
RyanTheTide marked this pull request as ready for review December 5, 2026 01:05
@RyanTheTide
RyanTheTide requested review from a team as code owners December 5, 2026 01:05
@github-actions github-actions Bot added area:media Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 5, 2026
@github-actions

github-actions Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Merge readiness at 83ef8b0f: not ready yet

Check Detail
CI at head ok 9 checks passed
Review no approved by aurora-silicon-review, but GitHub does not count it yet (code owner from Core, Omarchy Mac or Aurora Maintainers needed, or approval went stale)
Requested changes ok none
Hardware row at head no no line with the head SHA 83ef8b0f, a Mac and a result in the PR body or a comment
Conflicts no merge conflicts with main: merge it in (no force push)
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:media

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Dec 5, 2026

@aurora-silicon-review aurora-silicon-review 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.

Verdict: MERGE at 83ef8b0
Checked: GCC and Clang each passed 12 cases using the exact build lookup and layout selector. Both matching firmware identities take their intended ordinary-encode layouts. Swapped identities, unrecognized identities and incorrect segment sizes are rejected. Loader mapping and integrity checks remain in place, and the MCTF qualification code is byte-identical to the base. Exact hosted Apple, Host and KUnit checks and the Neo runtime row are pending.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Hardware row at exact head 83ef8b0ff444 on the Neo: PARTIAL (27.2 admission not exercised).

  • The lab Neo currently runs the 26.6.2 stub, so AVE loads firmware build 25G83 (TEXT 0x14c000 CRC 69c54454), not the 27.2 image this PR admits.
  • 25G83 regression on the merged head: H.264 and HEVC 1080p encodes (30 frames) before and after one s2idle are byte-identical (md5 17e40a10 / 16c87dc6), 0 decode errors, Y PSNR 33.7 / 36.5 dB, 0 AVE resets/WARN.
  • Still needed: the same on a Neo with the 27.2 stub.

How: one combined test kernel for eight PRs, not this PR alone. Kernel 7.3.0-aurora-ci = main d0684a06 + merge commits of linux#2712 b6887f88, #2300 c1d351d2, #1990 83ef8b0f, #3742 798c2cde, #2350 5f18911e, #2398 75b30c6c, #1814 775f31d2, #2402 07660961 (all merged clean, test commit 03a571ef, cloud build https://github.com/aurora-silicon/linux/actions/runs/47474056726). Booted as a one-shot on the lab Neo (J700, T8140, 26.6.2 stub) with this kernel's own t8140-j700.dtb in a trial Stage 2 (live aura 1.0.0b19 + U-Boot, only the DTB swapped), default cmdline, silent (no audio playback). Boot health on the test kernel: 0 error-level kernel lines, 0 AVC, 0 failed units. Saved default restored after.

This branch has not been deployed

No deployments
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) merge-conflict Conflicts with the base branch (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant