Skip to content

media: qualify J813 AVD and ISP support on aurora-wip - #1026

Merged
Acelogic merged 7 commits into
aurora-wipfrom
j813-media-qualified-20261106
Nov 6, 2026
Merged

Acelogic merged 7 commits into
aurora-wipfrom
j813-media-qualified-20261106

Conversation

@Acelogic

@Acelogic Acelogic commented Nov 6, 2026

Copy link
Copy Markdown
Member

Bring the J813 AVD decoder and ISP camera changes from #999 onto aurora-wip, with the missing AVD_QUIRK_H264_MV_128 declaration 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 (tree 3088a9aa40f166aea2fc5b539b0037b73edca0f6):

  • Case-sensitive Linux build with source manifests verified before and after building; all 185 local CI jobs passed with retained per-job logs and archives.
  • Physical J813 RAM boot from public Aura 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.
  • GPU baseline: 12,288 exact pixel comparisons; complete smoke artifact passed 18 checks; zero kernel taint.
  • Public avd-fw main firmware SHA-256 048ebed7ff8c5b07c095c47e975479a9dbf1f8d392cc6b83c0230f7606bf5828: H.264, HEVC and VP9 decoded 30 frames each, all 90 byte-identical to software references; decoder guard remained healthy.
  • ISP: 30 complete and distinct 1280×720 NV12 frames (41,472,000 bytes); zero kernel taint. The optional IMX958 tuning file is absent, so this qualifies capture, not tuned image quality.

Retained artifact SHA-256: SMP/GPU 798de3ebb254614938ee5e447829fe618b162d4bb1dc3c45939081ab4c3d4438; media logs/results 434363b33abf8e63c70bf0d35627c088d8db08a3d35c389d85befbf3e56a1036. 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.

sithglan and others added 7 commits November 6, 2026 11:23
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]>
@Acelogic
Acelogic merged commit b5a0fdd into aurora-wip Nov 6, 2026
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
@RyanTheTide
RyanTheTide deleted the j813-media-qualified-20261106 branch November 7, 2026 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants