Repository navigation
Conversation
|
Review at 65f869d. Thanks. I read through the probe path, and this looks safe. The loader-integrity check (ave-fw.c:301-306, TEXT against
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist review at 65f869d421a43d4fcdabaf1d78105211a10f4473 (host-tests: green).
The probe path itself is safe and fail-closed: aurora,ave-text-crc32 integrity checking (ave-fw.c:301-306) still covers all raw TEXT bytes, boards whose raw CRC already matches take the early return at ave-fw.c:194, and any mismatch after zeroing 0x4224 still fails with -ENODEV.
Blockers
- §1 / §2 Variant-wide offset applied to an unverified build (
drivers/media/platform/apple/ave/ave-drv.c:185-210):
.text_boot_word = 0x4224is set variant-wide onave_t6050, which admits both26A428(TEXT 0x154000, 27.0) and26C5035(TEXT 0x158000, 27.3 beta 1). Becausetext_boot_wordis a firmware-image offset and26C5035has a0x4000-larger TEXT that was not checked here, either scopetext_boot_wordtostruct ave_fw_build(set on26A428only) or verify26C5035and explicitly document what was verified. - §5 Missing T6050 non-Ultra hardware row & undocumented
#2278dependency:- Hardware testing covers J775D (M5 Ultra) on 27.0 (
26A428) with out-of-tree#2278DT enablement only. Add a regression row on an M5 Pro/Max T6050 laptop (e.g. J716s/J714s) verifying probe + encode on the raw-CRC path at this head (and26C5035if.text_boot_wordremains variant-wide). - Mention the
#2278DT dependency for J775D in the commit message (and resolve the open PR-body question on whether this merges standalone or into#2278).
- Hardware testing covers J775D (M5 Ultra) on 27.0 (
Non-blocking notes
- Commit subject: ~120 chars; shorten to <=75 chars (e.g.
media: apple: ave: t6050: retry TEXT CRC with per-boot word zeroed).
Checklist summary
- §1 No model gating: Uses existing
ave_variant.text_boot_wordmechanism (fail-closed), but26C5035scoping and M5 Pro/Max hardware coverage remain open. - §2 Production-ready: Default cmdline, clean KUnit coverage (
ave_t6041_text_boot_word); resolve26C5035offset scoping above. - §3 Safety: Pass (loader integrity CRC remains raw and full-segment; build matching fails closed).
- §4 Clean-room & attribution: Pass (human author/committer + human
Signed-off-by:only, zero AI trailers in commit,Assisted-by:in PR body). - §5 Evidence: Strong J775D row (probe + 300-frame H.264/HEVC encode + PSNR + 0 decode errors + 0 new kernel errors + KUnit + 461/461 host tests), blocked on M5 Pro/Max laptop row (and
26C5035check if left variant-wide). - §6 Naming: Pass.
Assisted-by: LLM (Gemini 4 Neon)
65f869d to
ce7ea15
Compare
|
Thanks, Ryan and dj. Pushed as one commit, ce7ea15. Ryan's points first, then dj's.
dj's points:
Assisted-by: LLM (Claude:Opus 5.5) |
|
Re-checked at ce7ea15. All three points are done: The table refactor touches the other chips' probe, so the probe rows you ask for are needed. We'll take the M4 Pro (J616s, T6041 table, 25G83) and the M4 Air (J713, T8132): a one-shot boot of this head on each, with the Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist re-review at ce7ea15fb0dc846d4403f19593e7f51588181f89 (host-tests: green).
Resolved since Wave 52E (65f869d421)
- §1 / §2 Per-build
text_boot_wordscoping: Moved cleanly fromstruct ave_variantintostruct ave_fw_build. Onave_t6050, only26A428sets0x4224, leaving26C5035on exact CRC matching; KUnit (ave_t6041_text_boot_word, 21/21 pass) pins per-build expectations including26C5035 == 0. #2278dependency & subject: Documented in the commit message; commit subject tightened to 73 chars.
Remaining Blockers
- §1 / §5 Missing hardware test rows for all affected variants:
- M5 Pro/Max laptop (T6050 non-Ultra) on the 27.0 stub: still owed to verify the raw-CRC probe and H.264 encode path at
ce7ea15fb0dc. - M4 Pro/Max (
ave_t6041) and M4 (ave_t8132): Moving both variants ontobuilds[]tables (and removingfw_data_size_alt/ variant-widetext_crc) changes their probe path, so probe (firmware build ...) + encode rows on M4 Pro/Max and M4 at this head are also owed (as noted in "Still to run" and RyanTheTide's follow-up).
- M5 Pro/Max laptop (T6050 non-Ultra) on the 27.0 stub: still owed to verify the raw-CRC probe and H.264 encode path at
Non-blocking notes
ave_fw_find_build(..., 0)matches the first(text_size, data_size)entry beforeave_fw_text_id()runs; this is unambiguous for all current tables (ave_t6041/ave_t6050have distinct sizes per entry andave_t8132has one entry), though a future same-size multi-build table where only a later build setstext_boot_wordwould need care.ave_t6050still carries redundant.fw_text_size,.fw_data_size, and.text_crcfields that are ignored when.build_count > 0(unlikeave_t6041/ave_t8132, which dropped them).- The GitHub PR title still has the old ~120-char wording even though the commit subject was shortened.
Checklist summary
- §1 No model gating: Pass in code (per-build offset, fail-closed); blocked on M5 Pro/Max, M4 Pro/Max, and M4 hardware coverage.
- §2 Production-ready: Pass (default cmdline, clean KUnit 21/21).
- §3 Safety: Pass (raw loader-integrity CRC check unchanged; build matching fails closed).
- §4 Clean-room & attribution: Pass (human author/committer + human
Signed-off-by:only, zero AI trailers in commit,Assisted-by:in PR body). - §5 Evidence: Solid J775D A/B row (probe + 300-frame H.264/HEVC byte-identical encodes + 0 WARN/BUG/Oops/DART faults + 0 new failed units); blocked on the missing M5 Pro/Max, M4 Pro/Max, and M4 rows.
- §6 Naming: Pass.
Assisted-by: LLM (Gemini 4 Neon)
ce7ea15 to
29af2ca
Compare
|
Thanks, dj and Ryan. Pushed 29af2ca: Assisted-by: LLM (Claude:Opus 5.5) |
|
Review at 29af2ca. The only change since ce7ea15 is that Our points from 65f869d are all still resolved (word per build, 26A428 only; #2278 named; short subject). dj's leftover note about redundant fields is fixed for T6050. Verdict: APPROVE on code. Rows still owed: the J616s (T6041) and J713 (T8132) probe line plus one H.264 encode are on us. They are queued on a kernel that stacks ce7ea15, and since this push changes no T6041/T8132 code those rows also count for 29af2ca. The M5 Pro/Max laptop row (raw-CRC path) still needs an owner. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist re-review at 29af2ca734b1b9a4b1b1c7e2486d398eab2bef27 (host-tests: green).
Code is clean (0 code blockers). Keeping CHANGES_REQUESTED strictly as the §5 hardware-evidence merge gate for the remaining untested variants.
Resolved since ce7ea15fb0dc
- Dropped the redundant
.fw_text_size,.fw_data_size, and.text_crcfields fromave_t6050(verified inave-fw.c:259-329thatbuild_count > 0exclusively usesbuilds[]and never reads those fields). - Shortened the PR title to match the 73-character commit subject.
- Exact-head J775D hardware row (
usave4,integration/aurora13e494a072a3+#2278+29af2ca734b1):firmware build 26A428 (TEXT 0x154000 CRC 87279429, DATA 0x134000), byte-identical 300-frame H.264/HEVC Main encodes, 0 WARN/BUG/Oops, 0 new failed units, KUnitapple-ave-abi21/21.
Remaining Blocker (§5 Hardware Evidence Only)
- §1 / §5 Owed hardware rows on the other affected variants:
- M4 Pro/Max (
ave_t6041) and M4 (ave_t8132): both variants were refactored ontobuilds[]tables (removingfw_data_size_altand variant-widetext_crc), so a probe (firmware build ...) + encode row on each is still owed before merge (noted as queued by RyanTheTide). - M5 Pro/Max laptop (
ave_t6050non-Ultra) on the 27.0 stub: probe line + one H.264 encode confirming no regression on the raw-CRC path.
- M4 Pro/Max (
Checklist summary
- §1 No model gating: Pass in code (per-build
text_boot_word,26C5035kept on exact CRC matching); blocked on multi-Mac hardware coverage above. - §2 Production-ready: Pass (default cmdline,
host-testsgreen, KUnit 21/21). - §3 Safety: Pass (raw full-TEXT loader-integrity CRC check at
ave-fw.c:299-305unchanged; build matching fails closed). - §4 Clean-room & attribution: Pass (human author/committer + human
Signed-off-by:only, zero AI trailers in commit;Assisted-by:in PR body). - §5 Evidence: Strong exact-head J775D A/B row; blocked only on the owed M4 Pro/Max, M4, and M5 Pro/Max laptop rows.
- §6 Naming: Pass.
Assisted-by: LLM (Gemini 4 Neon)
…word On the Mac Studio (J775D) the encoder's TEXT CRC differs on every boot, so probe refuses it as "unsupported firmware". The firmware is the 26A428 build the T6050 variant already admits: with the build's per-boot word zeroed, the probe's TEXT CRC matches the admitted 26A428 CRC on every J775D boot tested. The T6041, T8132 and T8112 26B123 variants already handle the same word, with a text_boot_word on the variant: a TEXT CRC that is not a known build is retried with that word zeroed. The word belongs to a firmware build, though, not to a chip. On T6050 a variant-wide offset would also apply to the 26C5035 build, whose TEXT is 0x4000 larger and which has not been checked for such a word. So move text_boot_word into struct ave_fw_build and set it on the builds that have it: 26A428 on T6050, and the builds T6041, T8132 and T8112 26B123 already retried. 26C5035 keeps exact matching. Those variants now list their builds (sizes, CRC and word) instead of variant-wide sizes, which also replaces T6041's second DATA size, fw_data_size_alt, with its second build. A known CRC is still taken as it is. The KUnit cases that pin the offsets check them per build, including that 26C5035 has none. On the J775D this takes effect together with aurora-silicon#2278, which enables that board's encoder node; without it the encoder is not probed there. Tested on a J775D (Mac Studio, M5 Ultra). Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
29af2ca to
b8b4948
Compare
|
Rebased onto Conflict resolution against the intervening AVE commits (
KUnit (AVE suites built in, run in a VM at No change to the T6050, T6041 or T8132 logic. Still owed before merge: hardware rows on M4 Pro/Max ( Assisted-by: LLM (Gemini:Neon) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist re-review at verified live head b8b4948c6035a3b75cc59fcbf6a77ecf27f5aba3 (MERGEABLE / CLEAN, CI 1/1 green: Host tests / host-tests).
Code is clean (0 code blockers). Keeping REQUEST_CHANGES strictly as the §1 / §5 hardware-evidence merge gate for the refactored/affected variants.
Rebase Audit (29af2ca734b1 → b8b4948c6035)
- Clean rebase onto
integration/aurora1b1304ff2a67:ave_t8112_26b123is cleanly migrated onto a 1-entrybuilds[]table ({ "26B123", 0x11c000, 0x128000, AVE_FW_TEXT_CRC_T8112_26B123, 0x4224 }) withave_t8112_26b123_buildupdated to checkbuilds[0], consistent withave_t6041,ave_t8132, andave_t6050.ave_fw_probe()(ave-fw.c:286-361) andave_fw_sizes_match()remain fail-closed: loader-integrity CRC (aurora,ave-text-crc32) covers all raw TEXT bytes,ave_fw_text_id()retries only whenbuild->text_boot_wordis non-zero, and26C5035stays on exact CRC matching.- VM KUnit at
b8b4948c6035passes all 5 AVE suites (47/47 cases, 0 fail).
Checklist Summary
- §1 No model gating: Pass in code (per-build
text_boot_word, fail-closed); blocked on multi-Mac hardware coverage below. - §2 Production-ready, no hacks: Pass (default cmdline,
host-testsgreen, KUnit 47/47). - §3 Safety: Pass (raw loader-integrity CRC unchanged; build matching fails closed).
- §4 Clean-room & attribution: Pass — single commit
b8b4948c6035carries human author/committer (Jeff Queisser <funkzy@users.noreply.github.com>) and humanSigned-off-by:only, zero AI trailers in commit; PR body disclosure present. - §5 Evidence: Blocked — see below.
- §6 Naming: Pass.
Remaining Blocker (§1 / §5 Hardware Evidence Only)
- Owed hardware rows for the refactored/affected variants (acknowledged in
00:33Zcomment):- M4 Pro/Max (
ave_t6041), M4 (ave_t8132), and M2 on 27.2 stub (ave_t8112_26b123, newly moved ontobuilds[]in this rebase): probe (firmware build ...) + encode regression row on each. - M5 Pro/Max laptop (
ave_t6050non-Ultra, 27.0 stub): probe + encode row confirming no regression on the raw-CRC path. - Exact-head J775D confirmation at
b8b4948c6035(priorusave4row was at pre-rebase29af2ca734b1).
- M4 Pro/Max (
Assisted-by: LLM (Gemini 4 Neon)
Problem
On the Mac Studio (J775D), with #2278's device tree, the video encoder is refused at probe:
apple-ave 2283100000.video-encoder: error -ENODEV: unsupported firmware (text CRC 68d5bd6c). The TEXT CRC is different on every boot. The firmware is the 26A428 build that the T6050 variant already admits. Two boots' TEXT differ only within one word, and with that word zeroed the TEXT CRC is87279429(AVE_FW_TEXT_CRC_T6050_26A428) on every boot checked: eight, two of them on an earlier test kit.Why this shape
The T6041 and T8132 variants already handle this word: a TEXT CRC that is not a known build is retried with the word zeroed (Roberto Dantas's T6041 mechanism, extended to T8132 by RyanTheTide in 351ec42). The offset sat on each variant, though, and the word belongs to a firmware build, not a chip. On T6050 a variant-wide offset would also reach the 26C5035 build, whose TEXT is larger and which has not been checked for such a word. So the offset moves into
struct ave_fw_build, the per-build entry the driver already uses to tell builds apart by segment sizes and CRC. On T6050 only 26A428 sets it, so 26C5035 keeps exact matching. T6041 and T8132 now list their builds (sizes, CRC and word) instead of variant-wide sizes, so no variant copy is left, and T6041's second DATA size becomes its second build. A known CRC is still taken as it is, and the loader-integrity check still covers every TEXT byte, the word included.Change
ave.h:text_boot_wordmoves fromstruct ave_varianttostruct ave_fw_build, andfw_data_size_altgoes away.ave-fw.c: the retry takes the word from the build matched by segment sizes.ave-drv.c: build tables for T6041 (two builds) and T8132 (one); 26A428 on T6050 sets the word.ave-abi-test.c: the KUnit case checks the word per build, including that 26C5035 has none. On the J775D this takes effect together with #2278, which enables the encoder node there.Testing
J775D (M5 Ultra Mac Studio), default 27.0 stub (26A428 encoder firmware), Aura main 4a6a093d (the published default image), default command line, read-only boots.
Own row, kit
usave4(window upsm14@20261122-1809): integration/aurora 13e494a, plus #2278 at 93af6fd (which enables the encoder node on the J775D), plus this commit at its head. Probe:firmware build 26A428 (TEXT 0x154000 CRC 87279429, DATA 0x134000). The H.264 and HEVC encodes below gave the same bytes as the previous head's outputs below (300 frames each, Main profile). 0 WARN/BUG/Oops lines; failed unitsiwdandsystemd-networkd-persistent-storage, as on every boot of this root.Extra evidence on base integration/aurora 6748d83 plus #2278, at the previous head ce7ea15 (the same code but with three ignored size and CRC fields still on the T6050 variant):
usave3(window upsm11@20261122-1527): with the previous head;usave3b(window upsm10@20261122-1511): without this commit.usave3b(without)usave3(with, previous head)unsupported firmware (text CRC c8f468ad)firmware build 26A428 (TEXT 0x154000 CRC 87279429, DATA 0x134000)The encodes used
v4l2-ctl(v4l-utils 1.32) as a stateful mem2mem client with the driver's default controls (30 fps, 3 B-frames, GOP 30, VBR at 4 Mbit/s). The input was 300 frames of ffmpeg'stestsrc2, md5-checked on both machines. KUnit (the AVE suites built in, run in a VM):apple-ave-abi21 of 21. ALARM has no SELinux, so there is no AVC count.Extra evidence, not this PR's own row: the previous head (the offset on the T6050 variant), kit
usave2on base integration/aurora f5fae3c plus #2278 (windows upsmave5@20261122-1115 and upsmave6@20261122-1128). It gave the same probe line and the same encode outputs, decoded on another machine with ffmpeg 8.1.2 with 0 decode errors. Upstream's host tests there: 461 of 461, 0 differ.Still to run
h264_v4l2m2mandhevc_v4l2m2m. On two boots of an earlier kit with the same driver change (base integration/aurora bb9f8ec), the second with-bf 3, they asked for no B-frames. The 26A428 layout qualifies only 30 fps with 3 B-frames, so the driver refused the session ("26A428 layout: only 30 fps with 3 B-frames is qualified (asked 30/1 fps, no B-frames)", then -EOPNOTSUPP at STREAMON), as on any T6050 board today. Other sessions are a follow-up in the driver; the open media: apple: ave: 26A428: 60 fps and no-B sessions, B-picture flags #2218 proposes 60 fps and no-B sessions for this layout.Assisted-by: LLM (Claude:Opus 5.5)