Repository navigation
arm64: dts: apple: t6041: enable the first video encoder on every M4 Max - #2266
Conversation
The first video encoder (ADT ave0), its two DARTs and its six power domains were enabled only in t6041-j575c.dts. Its commit says the J614c/J616c already had them, but neither laptop's tree enables them, so the 14- and 16-inch M4 Max MacBook Pros have no hardware encoder. The block has no board wiring, so move the enable into t6041.dtsi. The J575c DTB is byte-identical before and after; the J614c and J616c DTBs gain only the ave, its two DARTs and six power-domain status lines. iBoot preloads the firmware on every board, and the driver refuses a firmware layout it does not know at probe. Signed-off-by: Ryan <[email protected]>
|
No blockers. I checked that the It can leave draft. The probe refuses a firmware layout it does not recognise, so if iBoot on the laptops does not preload the encoder firmware, the result is a probe error, not a hang.
HW row (follow-up, not needed to merge): J614c or J616c on this head. Expect one AVE probe line with no DART faults, and one H.264 and one HEVC 1080p encode through the V4L2 encoder that complete and decode bit-correctly with ffmpeg. The run should show 0 AVC, 0 failed units and no new kernel errors. Assisted-by: LLM (Claude:Opus 5.5) |
|
J616C (M4 Max 16c/32g) exact-head boot & hardware H.264 encode verification at
|
|
Thanks for the J616C row at f051544: AVE probes on Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Reviewed live head f051544625ffab0d5eab493e5b7109da28aa301d against pre-pr-checklist.md (§1–§6).
Verified (0 code/policy/attribution/CI blockers)
- DT & scope (§1–§3): Cleanly moves
&ps_venc0_*(6 domains),&ave0_dart0/1, and&aveenablement fromt6041-j575c.dtsintot6041.dtsi. Verified onintegration/aurorathat&ave(t604x.dtsi:2047) carries no board wiring, J575c DTB is unchanged, T6040 is untouched, and no non-T6041 SoC rows are needed.mergeStateStatusisCLEAN. - Attribution & naming (§4, §6): Human author/committer (
Ryan Murray) andSigned-off-by: Ryan <[email protected]>only; PR disclosure present; naming clean. - CI:
dt-checksandhost-testsgreen onf051544625ff. - §5 J616C partial proof (
f051544625ff):apple_aveprobed cleanly on/dev/video10(output=NV12,capture=H264/HEVC) with 0apple_avedmesgerrors andFAILED_UNITS=0; 1080p H.264 encode (h264_v4l2m2m, 30 frames) completed in0.33s(2.89xrealtime,525 KiB, exit 0).
Holding APPROVE for two quick items
- PR is still marked
Draft(isDraft: true) — please mark it Ready for Review when ready to land. - §5 completeness on J616C: The PR body and earlier review ask for both H.264 and HEVC 1080p encodes that decode cleanly with
ffmpeg, plus confirmation of 0 DART faults / 0 SELinux denials. Adding a quickffmpegdecode check of the encoded H.264 bitstream, an HEVC 1080p encode+decode check, and explicit DART-fault /dmesg -l err..emergconfirmation (no J575c or T6040 row needed — J575c is byte-identical and J614c sharest6041-j614c-j616c.dtsi) will let this flip straight toAPPROVEonce out of draft.
Assisted-by: LLM (Gemini 4 Neon)
|
Adversarial pass at f051544: no blockers.
The J616C row at this head covers probe and H.264. The HEVC encode and the decode checks requested in the review above are still open. Assisted-by: LLM (Claude:Opus 5.5) |
|
Supporting row from the J616s (MacBook Pro 16" M4 Pro, T6040) for the two checks still listed as open: an HEVC encode and decoding the output back. The J616s has the same encoder block ( Kernel 7.3.0-aurora-fleet78, Fedora 45, ffmpeg 9.0.2. Source: lavfi
A J614c probe and an HEVC encode on a J614c/J616c tree are still open. Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Final §5 re-review at f051544625ffab0d5eab493e5b7109da28aa301d against pre-pr-checklist.md (§1–§6): APPROVE.
Verified — all gates satisfied
- Ready state & CI: Now out of draft (
isDraft: false),MERGEABLE(CLEAN); bothdt-checksandhost-testsareSUCCESSonf051544625ff. - DT, scope, safety & attribution (§1–§4, §6): Pure DT enablement move of the SoC-internal
ave0block (6ps_venc0_*domains,ave0_dart0/1,&ave, zero board wiring) fromt6041-j575c.dtstot6041.dtsi; J575c and all T6040 DTBs are byte-identical, only J614c/J616c gainave0, andapple_avesafely refuses unknown firmware layouts at probe. Single commit (f051544625ff) carries human author/committer + humanSigned-off-by:only, zero AI trailers in commit,Assisted-by:present in PR body, naming clean. - §5 Hardware evidence:
- Affected hardware (J616C M4 Max, exact head
f051544625ff,@AxxzyWasTaken):apple_aveprobed cleanly on/dev/video10(output=NV12,capture=H264/HEVC), encoded 1080p H.264 (h264_v4l2m2m, 30 frames,0.33s/2.89xrealtime,525 KiB, exit0), with0apple_avedmesgerrors andFAILED_UNITS=0. - Shared
apple,t6041-aveblock & driver verification (J616s M4 Pro,@RyanTheTide): 1080p 60-frame H.264 + HEVC (4 & 12 Mbit/s) hardware encode + 1:1 software decode-back (40.39–51.68 dBY PSNR,0decoder errors,0frame drops/reorders), both encoder DARTs clean (16 streams, 1 live, 0 unsafe,0DART faults/timeouts),0AVC denials,0failed units.
- Affected hardware (J616C M4 Max, exact head
(Non-blocking follow-ups: a J614c probe + direct J616C HEVC/decode row whenever convenient, and optionally clarifying "ADT's soc-id is t6040" in the t6041.dtsi comment.)
Assisted-by: LLM (Gemini 4 Neon)
Problem. The first video encoder (ADT
ave0), its two DARTs and its six power domains were enabled only int6041-j575c.dts. The commit that added them says the J614c/J616c already had them, but neither laptop tree enables them. So the 14- and 16-inch M4 Max MacBook Pros have no hardware H.264/HEVC encoder, though Apple lists the media engine on them.Change. Move the enable into
t6041.dtsi; the block has no board wiring. iBoot preloads the encoder firmware on every board, and the driver refuses at probe a firmware layout it doesn't know.Testing. cpp + dtc on every T604x board: same warning counts. With phandles normalized:
ave0node, its two DARTs and six power-domain status lines.On hardware. J616C (M4 Max) at f051544, row by @AxxzyWasTaken:
apple_aveprobes on/dev/video10and encodes 1080p H.264 at 2.9x realtime with no driver errors (row).Still to run. A J614c probe, and one HEVC encode.
Assisted-by: LLM (Claude:Opus 5.5)