Repository navigation
arm64: dts: apple: t8132: describe the video decoder and enable it on M4 boards - #1488
Conversation
The T8132 decoder node gave only the whole ADT block under the "apple,avd" placeholder form, which the AVD driver cannot bind: it needs the CM3 code, SRAM, mailbox and control windows by name and a reset. Describe them, following the T6041 (M4 Pro) layout of the same decoder, and bind through "apple,t8132-avd". Use the decoder DMA stream only (legacy transport, as no "piodma" window is described); give the DART the decoder power domain; name the node after its first window; drop the clock, which the driver does not use and the binding does not allow for this form. The nodes stay disabled. Tested on a MacBook Air M4 (J713) by applying the same properties at runtime as an overlay (the effective tree matches this one property for property, apart from the dropped clock): FFmpeg VA-API H.264, HEVC (with the T8132 v5 header quirk), VP9 and AV1 decode byte-exact against software; Chrome <video> and WebCodecs on hardware. Assisted-by: LLM Signed-off-by: Akhil <[email protected]>
Enable the AVD decoder, its DART and the avd_sys power domain on the MacBook Air M4, 13-inch (J713) and 15-inch (J715). Both use the same SoC blocks; t8132-j713-pmgr.dtsi, shared by the two, had disabled the decoder's power domain. HEVC also needs "media: apple: avd: Use the v5 HEVC header on T8132"; without it HEVC jobs time out. Tested on J713 with the equivalent runtime overlay (see the previous commit). J715 is untested. Assisted-by: LLM Signed-off-by: Akhil <[email protected]>
Enable the AVD decoder and its DART on the Mac mini (M4, J773g). The avd_sys power domain is already enabled on this board. Untested on J773g: the decoder and its resources are SoC blocks, the same as on the MacBook Air M4 (J713) where this configuration was tested. HEVC needs "media: apple: avd: Use the v5 HEVC header on T8132". Assisted-by: LLM Signed-off-by: Akhil <[email protected]>
Enable the AVD decoder and its DART on the MacBook Pro (14-inch, M4, J604). The avd_sys power domain is already enabled on this board. Untested on J604: the decoder and its resources are SoC blocks, the same as on the MacBook Air M4 (J713) where this configuration was tested. HEVC needs "media: apple: avd: Use the v5 HEVC header on T8132". Assisted-by: LLM Signed-off-by: Akhil <[email protected]>
Enable the AVD decoder and its DART on the iMac (24-inch, M4, J623 and J624). The avd_sys power domain is already enabled on these boards. Untested on J623/J624: the decoder and its resources are SoC blocks, the same as on the MacBook Air M4 (J713) where this configuration was tested. HEVC needs "media: apple: avd: Use the v5 HEVC header on T8132". Assisted-by: LLM Signed-off-by: Akhil <[email protected]>
DjDeveloperr
left a comment
There was a problem hiding this comment.
Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf.
Source review: the named legacy AVD windows, reset, DART power-domain/single DMA stream and removal of the unused clock are consistent with the T8132 driver contract. HEVC needs1487 first. I approved the pending DT/host workflow runs so actual schema/test results can be evaluated. The posted evidence is currently J713 with a property-equivalent runtime overlay, not a boot of this bundled DT; other board enables were added speculatively, although the separate J604 reports support that board's decoder. Please keep actual J713 DT-bundle/loader qualification and untested J623/J624/J773g/J715 coverage explicit. No blanket all-M4 'Working' conclusion follows from merging this source change alone.
DjDeveloperr
left a comment
There was a problem hiding this comment.
Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf.
No blocking source finding remains in the unchanged six-file DT change. The named code/SRAM/mailbox/control windows, legacy single decoder DMA stream, reset, DART power domain and removal of the unused clock match the reviewed T8132 AVD driver/binding contract. Current host and DT checks now pass, including actual schema validation.
The J713 runtime-overlay report validates bit-exact H.264/HEVC(with1487)/VP9/AV1 decode and browser usage with property-equivalent resources; it is not a boot of the final bundled DT. The other board enables reuse the shared SoC description but are not all physically qualified. Keep J715/J773g/J623/J624 coverage, exact J713 bundle/loader boot and the independently reported J604 results at their stated scope; no blanket all-M4 Working claim follows.
Merge #1487 first: without its v5 HEVC-header quirk, the enabled decoder’s HEVC jobs time out. #1487’s required host check is still red from the earlier setup outage. That dependency must get an actual valid check result before this PR merges. No new decoder, loader/default, hardware or image operation was performed by this review.
990e00b
into
aurora-silicon:integration/aurora
The T8132 AVD node only gave the whole ADT block under the
apple,avdplaceholder form, which the AVD driver cannot bind. The driver needs the CM3 code, SRAM, mailbox and control windows by name, plus a reset.This series:
t8132: describe the video decoder windows: describes the windows, following the T6041 (M4 Pro) node for the same decoder, and binds throughapple,t8132-avd.piodmawindow).video-decoder@3a1080000).clocksentry, which the driver doesn't use and this binding form doesn't allow.Only J713 is tested. The other boards use the same SoC blocks, so I enabled them to save a round trip. Drop any of those commits if you'd rather wait for a tester.
HEVC depends on #1487 (the T8132 v5 HEVC header quirk). Without it, HEVC jobs time out.
Testing (MacBook Air M4, J713):
clocks.<video>and WebCodecs on the hardware decoder.Not done:
Refs #1386.
AI disclosure: developed with AI assistance (Claude). Reviewed and tested on J713 by me. The commits carry
Assisted-by: LLM.🤖 Generated with Claude Code