Repository navigation
media: apple: ave: admit the T6050 macOS 27.2 encoder firmware build - #3447
Conversation
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
left a comment
There was a problem hiding this comment.
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.acleanly (ARCH=arm64). - Host tests
tools/asahi/ave-pm-tests.pyandtools/asahi/ave-probe-pm-tests.py: PASS.
|
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
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. |
|
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.
Combined with the J616s/Neo regression rows above (byte-identical to stock), this has the hardware rows for review. |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
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: |
Problem
On every T6050 board booted from a macOS 27.2 stub the encoder does not bind:
(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
ave0segment-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 inave_t6050_builds, to the known-CRC list, and toave_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
drivers/media/platform/apple/ave(qemu): 49/49 pass.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.