Repository navigation
media: qualify J813 AVD and ISP support on aurora-wip - #1026
Merged
Merged
Conversation
The M5 (T8142) has a Hibiscus generation AVD with the T8140 register layout but its own firmware tunables and H.264 buffer layout. Signed-off-by: Thomas Glanzmann <[email protected]>
The M5 AVD (macOS CAvdMcpuHibiscus, avd-version 4) uses T8140's VP slot layout and v5 HEVC header with the avd-fw v5 tier 2 tunables. Its H.264 co-located motion vector buffer takes 128 bytes per macroblock instead of 64; with 64 inter frames decode with corrupted motion. Add AVD_QUIRK_H264_MV_128 and the t8142 variant. Tested on the J813 (MacBook Air M5): H.264, HEVC Main/Main10, VP9 and AV1 decode bit-exact against the software decoders through GStreamer v4l2codecs and FFmpeg's V4L2 request hwaccels. Also mark the device runtime-suspended before enabling runtime PM in probe, so a binding after a failed CM3 boot (e.g. missing firmware) starts from a clean state instead of an inherited runtime PM error. Signed-off-by: Thomas Glanzmann <[email protected]>
avd_boot() returned -ETIMEDOUT without a message when the CM3 did not raise FLAG0, which made a wrong firmware image or a missing power domain look like a silent probe failure. Log the flag value. Signed-off-by: Thomas Glanzmann <[email protected]>
The M5's ISP is the A18 Pro's ISP17a at another base address. Signed-off-by: Thomas Glanzmann <[email protected]>
The J813's ISP is the A18 Pro's ISP17a: the T8140 generation with the H17 firmware ABI, its own MMIO windows (the J813 ADT's dart-isp dapf-instance-0 ranges, including a DSID window and two new ranges), the PMP clock and bandwidth scratch registers, the T6031 mailbox interrupt enable and the SCL1 output path (T8142 has no BES scaler). Its IMX958 setfile (isp_2224_01XX.dat, the one macOS's appleh16camerad selects for sensor 0x958) keeps the lens shading row strides where H17 reads the offset's high half, as the T6040's do: setfile_stride_fixup zeroes them on T8142 too. The camera streams at 1280x720 and 1920x1080 (NV12). White balance stays at the setfile's default gains: the H17 firmware's AWB is semantic AWB, which needs the ANE. Signed-off-by: Thomas Glanzmann <[email protected]>
RyanTheTide
added a commit
that referenced
this pull request
Nov 6, 2026
Carries the work merged on aurora-wip since #1018 into the release branch: M5 T8142/J813 bring-up (#995 #996 #997 #998 #1001 #1002 #1003), T8152/J873 bring-up (#984 #1009 #1013 #1022), J813 AVD/ISP (#1026) and the selftest harness updates (#1014). The merge is clean; the 13 integration/aurora commits since #1018 are kept. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bring the J813 AVD decoder and ISP camera changes from #999 onto
aurora-wip, with the missingAVD_QUIRK_H264_MV_128declaration in the existing AVD program harness. The original media commits and authors are retained in the merge history. This excludes #1000's audio changes, whose microphone power-up handshake failed on the test machine.Thomas Glanzmann (@sithglan) authored the J813 media support in #999. Acelogic performed this branch integration, added the harness declaration, and ran the independent qualification described here.
Validation on exact source
13e8c1bb9acb457f31d01f3317070d227679b8b6(tree3088a9aa40f166aea2fc5b539b0037b73edca0f6):a10ea4458b895caca6500828620e7ef1db6545fd, using guarded upload, readback, and a private SMP boot harness. All ten CPUs online; per-core 64 MiB memory fill/readback passed. The harness accounts for Aura's exact SMP reset-vector patch and preserves the remaining image checks.048ebed7ff8c5b07c095c47e975479a9dbf1f8d392cc6b83c0230f7606bf5828: H.264, HEVC and VP9 decoded 30 frames each, all 90 byte-identical to software references; decoder guard remained healthy.Retained artifact SHA-256: SMP/GPU
798de3ebb254614938ee5e447829fe618b162d4bb1dc3c45939081ab4c3d4438; media logs/results434363b33abf8e63c70bf0d35627c088d8db08a3d35c389d85befbf3e56a1036. No camera imagery or firmware payloads are included in this PR. AV1/Main10, other capture modes, suspend/resume and a persistent-root boot are outside this run's coverage.