Repository navigation
media: apple: ave: admit the T6050 26B123 encoder firmware build - #3395
Conversation
The T6050 26B123 encoder firmware build (TEXT 0x158000, DATA 0x134000, TEXT CRC 0xd33ed3b4) matches the 26C5035 segment sizes and speaks the 26A428 command layout. Add AVE_FW_TEXT_CRC_T6050_26B123 to the T6050 build table, known-CRC list, command-layout matcher, and AVE ABI KUnit expectations so the encoder binds, encodes H.264 and HEVC, and lets venc0-sys runtime-suspend when idle. Signed-off-by: Erik Bourget <[email protected]>
There was a problem hiding this comment.
The two builds with equal segment sizes are disambiguated by the second, CRC-qualified lookup in ave_fw_probe(). Both entries have the same TEXT normalization and command layout. I checked that reservation mapping, the loader's checksum comparison and unknown-build rejection are still enforced, and that the selection does not depend on a board name. The reported KUnit run and J716c H.264/HEVC results support code approval. Keep held until the companion upper-aperture DT mapping is resolved in #3396, with an affected peer and hosted CI before landing.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
Signed-off-by: Erik Bourget <[email protected]>
|
Merged Local verification at
Hardware verification at
Landing gates from the prior approval at |
There was a problem hiding this comment.
Verdict: FINISH at 0ecb9ae6c55b
Blockers: Please confirm public provenance for the new firmware-identification metadata. Keep #3396, an affected peer and hosted CI open.
Checked: The reported J716c target and KUnit results are useful. All five AVE file blobs changed across the merge, so I checked the current diff rather than carrying the old approval forward.
Evidence
Compared the current head, prior review and current PR receipts.
|
Provenance of the identification metadata this PR adds at
The driver change is a table entry: no board, chip or firmware-version gate decides anything. Any T6050 whose loader hands over TEXT/DATA of these sizes with this CRC binds; any other CRC still gets One caveat on the label: a 27.2.1 ( Remaining gates unchanged: #3396 (approved at its head |
|
Companion J714s hardware data point for T6050 firmware
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Approved. The 26B123 entry has the same TEXT and DATA sizes as 26C5035 and 26B8125, and ave_fw_probe() chooses between same-size builds by TEXT CRC, so the other T6050 builds still match their own entries. Only a T6050 running 26B123 reaches the new entry, and the J716c row at this head covers it. CI is green.
There was a problem hiding this comment.
Verdict: MERGE at 0ecb9ae6c55b
Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.
Checked: The reported J716c target and KUnit results are useful. All five AVE file blobs changed across the merge, so I checked the current diff rather than carrying the old approval forward.
Follow-ups (not blocking): confirm public provenance of firmware-ID metadata, #3396, hosted CI (peer not required)
What: Admit the T6050
26B123video encoder firmware build (TEXT 0x158000CRC0xd33ed3b4,DATA 0x134000,26A428command layout) inapple-aveso T6050 systems carrying that firmware build bind/dev/video*, encode H.264/HEVC in hardware, and gatevenc0-systooff-0when idle.Tested: J716c (16-inch M5 Max, T6050) at
0ecb9ae6c55b(paired with#3396in batched trial kernel3545ebecb76f; all 5#3395files blob-identical): all 6 devices bound (apple-dartx3,apple-jpegx2,apple-avefirmware build 26B123,TEXT 0x158000 CRC d33ed3b4), all 8/proc/iomemranges present, 1080p30 H.264/HEVCv4l2m2mencodes pass (venc0-syson->off-06 s after close),0AVE/DART errors, initial boot smoke snapshot clean (1failed system unitaurora-peripherals.service, same as baseline warm reboots; later checks recorded additional messages). Prior J716c encode and runtime-PM row at56f475d3ccb8and local checks at0ecb9ae6c55b(QEMU KUnit50/50,avehost10/10,W=1 KCFLAGS="-Werror",checkpatch --strict) pass in Evidence.Risk: two-way door · T6050 Macs carrying encoder firmware build
26B123(J716c, J714s/c, K114/K116)Revert:
git revert -m 1 <merge-commit>removes the26B123entry fromave_t6050_builds[],ave_known_text_crc[],ave_layout_for_crc(),ave.h, andave-abi-test.c, returning T605026B123systems to-ENODEV; no persistent on-disk or firmware state is written.Not yet: other T6050 boards (
J714s/c,K114/K116) carrying26B123(affected peer hardware not in lab); companion upper-aperture DT mapping in#3396; hosted CI and review on the new head0ecb9ae6c55b(prior review approved at56f475d3ccb8subject to#3396, an affected peer, and hosted CI).Details
26B123shares the0x158000TEXT /0x134000DATA sizes and zerotext_boot_word(0, unlike26A428's0x4224) with26C5035, and uses the sameave_layout_26a428command layout. Adding its build table entry (ave_t6050_builds[]), known-CRC entry (ave_known_text_crc[]), and layout case (ave_layout_for_crc()) alongside26B8125(from#3447) enables hardware encode (ave_fw_find_build()disambiguates equal-size builds by TEXT CRC) and allows runtime PM to returnvenc0-sys,venc0-dma,venc0-pipe4/5, andvenc0-me0/1tooff-0after close.Evidence
0ecb9ae6c55b(merged withorigin/main18058ea228e2, including#344726B8125):git diff --check origin/main..HEAD: clean (0errors)git diff origin/main..HEAD | ./scripts/checkpatch.pl --strict -:0 errors, 0 warnings, 0 checks(93lines checked)make LLVM=1 ARCH=arm64 W=1 KCFLAGS="-Werror" drivers/media/platform/apple/ave/(defconfig+arch/arm64/configs/asahi.config,--disable RUSTfor C-only driver build): clean (0errors,0warnings)apple-ave(./tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --kunitconfig=drivers/media/platform/apple/ave/.kunitconfig):50/50passed (apple-ave-abi24/24includingave_t6041_text_boot_wordcovering26A428,26B123,26C5035, and26B8125)python3 -I tools/asahi/run-host-tests.py --only ave):10/10passed (ave-host,ave-recovery,ave-input,ave-ipc,ave-pm-tests,ave-probe-pm-tests, negative controls)56f475d3ccb8with explicit landing gates: companion upper-aperture DT mapping in#3396, an affected peer, and hosted CI; hosted CI and review remain pending on0ecb9ae6c55b.0ecb9ae6c55b:origin/mainb897ccb4e71cplus 18 open PR heads, commit3545ebecb76f; all 5#3395files are blob-identical there): kernel image SHA-256d56efde4c7232208bd29d5c4e5890319e0050595dd4f4b1c3844df6656a08312, one-shot Stage 2 SHA-256b7d99286395ddd7dadccc6d9593f4bd55391d9e787af97c18b45f58688d9885d(default Stage 221edee972e1ff1718c6f41c32b91ee151afdc58cbb69f16f2f6a4d8d4c722170and default kernel untouched):2281020000.iommu,22830a0000.iommu,2283080000.iommu(apple-dart);2281000000.jpeg,2281060000.jpeg(apple-jpeg);2283100000.video-encoder(apple-avewithfirmware build 26B123 (TEXT 0x158000 CRC d33ed3b4, DATA 0x134000))./proc/iomemranges present:2281000000-2281003fff,2281020000-228102bfff,2281060000-2281063fff,2283050000-2283053fff,2283080000-228308bfff,22830a0000-22830abfff,2283100000-228355bfff,2283800000-2283ffffff.ffmpeg -c:v h264_v4l2m2mandhevc_v4l2m2mencodes (120 frames each,ffprobe1920x1080 30/1, ~3.12x / ~3x realtime, 4.0 MB each),venc0-sysonduring each encode andoff-06 s after (allvenc0-*off-0at idle),0AVE/DART errors.eDP-13456x2234@120 enabled; input Apple MTP keyboard, trackpad and SMC lid devices enumerated (not exercised remotely); networkingwlan0connected, 0% loss over 3 pings; permitted audio sinkAppleJ716+AppleJ716HPAIpresent withspeakerguarddv2 active (no playback outside thelinux#3085row); GPU BorealisApple M5 Max (G17C B1),renderD128,vkcube --c 180 --wsi waylandclean.1failed system unit (aurora-peripherals.service, same as baseline warm reboots;0new failed units),0failed user units,0LSM denials (no SELinux/AppArmor loaded),0Oops/BUG/fault lines; initial boot smoke snapshoterr+40lines against55on the default boot, none that the default boot lacks (apple-dcp ... unable to match service ...,systemd-gpt-auto-generator; later checks in the session recorded additional messages). Redacteddmesgexcerpt:[ 1.250760] sn201202x 1-08: port controller ready;[ 2.677310] apple-ave 2283100000.video-encoder: firmware build 26B123 (TEXT 0x158000 CRC d33ed3b4, DATA 0x134000);[ 5.907044] apple-dcp 392e00000.dcp: RTKit: syslog message: ... fControllerPowerState 0 ...;[ 135.265810] PM: suspend entry (s2idle)/[ 140.691796] PM: suspend exit(pm_test=devices).#3396) at56f475d3ccb8(before merging#344726B8125frommain):apple-ave 2283100000.video-encoder: firmware build 26B123 (TEXT 0x158000 CRC d33ed3b4, DATA 0x134000)ffmpeg -f lavfi -i testsrc2=size=1920x1080:rate=30:duration=1 -pix_fmt nv12 -c:v h264_v4l2m2m -b:v 4M <out.h264>(output path/args omitted in log): exit 0, output540,034 B, speed3.03xffmpeg ... -c:v hevc_v4l2m2m -b:v 4M <out.hevc>: exit 0, output536,910 B, speed2.40xpm_genpd_summaryafter close:venc0-sys,venc0-dma,venc0-pipe4,venc0-pipe5,venc0-me0,venc0-me1alloff-0libx264-> 4,858 mW HW AVE (-3,502 mW; heatpipe 3,752 -> 1,226 mW)