Skip to content

media: apple: ave: admit the T6050 macOS 27.2 encoder firmware build - #3447

Merged
RyanTheTide merged 1 commit into
mainfrom
ave/t6050-272-build
Nov 28, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
ave/t6050-272-build

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

On every T6050 board booted from a macOS 27.2 stub the encoder does not bind:

apple-ave 2283100000.video-encoder: error -ENODEV: unsupported firmware (text CRC 1e27a926)

(K114s, reported on #2278 on 11-24.) The 27.2 stub preloads an encoder build with the 27.3 beta 1 (26C5035) segment sizes, TEXT 0x158000 and DATA 0x134000 (K114s ADT ave0 segment-ranges), so the driver picks the 26C5035 entry by size and then refuses the CRC.

Change

Add the 27.2 build (26B8125, TEXT CRC 1e27a926) beside 26C5035 in ave_t6050_builds, to the known-CRC list, and to ave_layout_for_crc() with 26A428's command layout, as 26C5035 and the M5's (T8142) 27.2 build already use. Builds with the same sizes are told apart by CRC (ave_fw_find_build(), from #1900). No board or chip gate: any T6050 with this preload binds. The KUnit table test checks the new entry.

Testing

  • arm64 KUnit for drivers/media/platform/apple/ave (qemu): 49/49 pass.
  • K114s (14-inch M5 Pro, 27.2 stub) one-shot boot with arm64: dts: apple: t6050: enable the media engines on every board #2278: pending. Rows: the encoder probes and logs firmware build 26B8125; H.264 and HEVC encode of 120 real 1080p30 frames, twice (determinism), each bitstream decoded on the AVD; and the CRC compared with the 11-24 boot's to show it carries no per-boot word.

Draft until the K114s row is in.

The macOS 27.2 stub on the M5 Pro and Max (T6050) preloads an encoder
firmware build with the 27.3 beta 1 (26C5035) segment sizes, TEXT
0x158000 and DATA 0x134000 (K114s ADT ave0 segment-ranges), but its own
TEXT CRC, 1e27a926. The driver picks the 26C5035 entry by size and
refuses it:

  apple-ave 2283100000.video-encoder: error -ENODEV: unsupported
  firmware (text CRC 1e27a926)

So no T6050 board on a 27.2 stub has hardware encode.

Add the build beside 26C5035. Builds that share segment sizes are told
apart by CRC (ave_fw_find_build()), as on the M5 (T8142), whose 27.2
build also speaks 26A428's command layout.

Signed-off-by: Ryan Murray <[email protected]>

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed df3607c3ac9d and verified on Apple M5 Max (J775c, G17C B1):

  • ave_t6050_fw_27_2 (26B8125) admission entry, CRC check, and KUnit coverage are clean and match existing T6050 AVE firmware table conventions.
  • scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks.
  • Compiled drivers/media/platform/apple/ave/built-in.a cleanly (ARCH=arm64).
  • Host tests tools/asahi/ave-pm-tests.py and tools/asahi/ave-probe-pm-tests.py: PASS.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Regression row (non-T6050 boards), 2026-11-28, fleet89 kernel 7.3.0-aurora-fleet89:

The change only adds a T6050 build entry, so the J616s (T6041) and Neo (A18 Pro) paths should encode exactly as before. Checked by A/B against the stock signed module: stock encode on the saved boot, then a one-shot boot with modprobe.blacklist=apple_ave and insmod of fleet89 + this PR's entries. Input: 120 real 1080p30 NV12 frames (Big Buck Bunny, CC-BY), v4l2h264enc / v4l2h265enc, two runs each.

Mac codec stock md5 #3447 md5 runs
J616s H.264 c72fa6e8… (2107522 B) identical 2/2 same
J616s HEVC 5633a7ec… (2200979 B) identical 2/2 same
Neo H.264 c72fa6e8… (2107522 B) identical 2/2 same
Neo HEVC fdfdd2c1… (2211069 B) identical 2/2 same

No AVE errors in dmesg. Both Macs are back on their saved fleet89 default (one-shot entry removed, Enforcing, 0 failed units). The K114s row (the 26B8125 build binding and encoding) is still queued behind the K114s window table.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

K114s (T6050) row, 2026-11-29. Boot: aura-try one-shot Stage 2 = aura b17 e2a8cf96 + aura#362, DTB = the v4 K114s DTB + #2278 media and #2275 ISP nodes (plus K114S-LADDER's #2281/#3524 nodes on the same boot), kernel 7.3.0-k114sstack3 (main 68253d5 + K114s lab PRs). Health on that boot: 0 SErrors, 0 DART faults, 0 crashes, 0 DCP crashes, 0 failed units, Enforcing. The Mac is back on its saved default.

  • The stock apple-ave refuses the build: unsupported firmware (text CRC 1e27a926).
  • With this PR (insmod after the refusal): firmware build 26B8125 (TEXT 0x158000 CRC 1e27a926, DATA 0x134000), bound.
  • 120 real 1080p30 NV12 frames (Big Buck Bunny, CC-BY), v4l2h264enc / v4l2h265enc, 2 runs each: H.264 2099360 B md5 0a8c6b5b…, HEVC 2200979 B md5 5633a7ec…, both identical across the 2 runs.
  • AVD decodes of both bitstreams match ffmpeg's software decode 120/120 frames.

Combined with the J616s/Neo regression rows above (byte-identical to stock), this has the hardware rows for review.

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 28, 2026 13:25
@RyanTheTide
RyanTheTide requested review from a team as code owners November 28, 2026 13:25
@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-template PR body lacks Tested or Risk (bot) labels Nov 28, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at df3607c3: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review ok approved by satchlj
Requested changes ok none
Hardware row at head no no line with the head SHA df3607c3, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text no 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.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging: the approval (satchlj) is at head df3607c; build, KUnit and host checks pass (21/21). pr-text and readiness passed at this same head before; the re-runs queued by the ready-for-review event are still waiting for a runner. Rows: K114s at head, J616s and Neo regression byte-identical to stock. Revert: git revert -m 1 <merge> takes the T6050 27.2 build back out of the admitted list (the K114s AVE then refuses the firmware again, as before).

@RyanTheTide
RyanTheTide merged commit 92816cb into main Nov 28, 2026
21 of 25 checks passed
@RyanTheTide
RyanTheTide deleted the ave/t6050-272-build branch November 28, 2026 13:57
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) ci-failing A check failed at the PR head (bot) needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants