Skip to content

media: apple: avd: bring up J700/T8140 decoding - #154

Merged
Acelogic merged 3 commits into
aurora-wipfrom
codex/neo-avd-bringup
Oct 2, 2026
Merged

Acelogic merged 3 commits into
aurora-wipfrom
codex/neo-avd-bringup

Conversation

@Acelogic

@Acelogic Acelogic commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Enable the MacBook Neo (J700/T8140) AVD decoder: add its power/DART/device-tree wiring, sparse VP mapping, HEVC v5 header handling, and aligned HEVC/AV1 auxiliary storage. Keep earlier chips' queue behavior unchanged.

Builds on merged #45 and preserves that series' original commits in the base history. The revised Neo series contains three commits: eight files, 104 insertions and 19 deletions. Its decoder code is unchanged; Kconfig now documents the Aurora firmware source and installation path.

Credit for the decoder foundation and the fixes carried from #45:

  • sofus: upstream Asahi AVD work, including AV1/VP9, buffer handling and the dedicated submission step.
  • Aaron (aquarat): cacheable MMAP buffers, job-table allocation and H.264 reference/slice-state fixes.
  • iconidentify: completion/watchdog race fixes, codec and request/buffer lifetime fixes, integration of the public series, and its M1 qualification.

The Neo contribution builds on their work. All 29 original #45 commits, their authorship and existing Asahi contributor notices are preserved.

Retested on 2026-10-02 with Aurora firmware on a physical J700, using the matching AVD module and added DT nodes on the working Neo radio kernel:

  • 1,740 byte-identical frames across 34 hardware decode runs, compared with software decoding. H.264 at 360p/1080p; HEVC, VP9 and AV1 at 360p in 8/10-bit; normal download and vaGetImage.
  • H.264/HEVC/VP9 720p clips: repeated full decoding and seeks to 1s/3s. No timeout, wedge or decoder/kernel fault.
  • KDE, Wi-Fi HTTPS and powered Bluetooth remained healthy afterward.
  • LLVM 21 W=1 build and DT compilation passed. The pre-existing VP9 stack-size warning remains. Other SoCs, suspend/resume and concurrent playback are not qualified by this run.

Uses Aurora AVD firmware at 9cbde5c7d993844bf086318974958b11076600a0 and libva-v4l2_request at 5b5046cbda6892f4a63df0015857a80bd42c17cf. Build and install avd-fw-v5-t0.bin as /lib/firmware/apple/avd-fw-v5-t0.bin; tested firmware SHA-256: d9f9e699dd63df51a3f3a44eee5141657d0a55d91d87039158e5edfe511ed63e. Firmware and test binaries are supplied separately. DJ's Aurora firmware changes and the inherited MIT license/contributor notices are preserved.

Neo-specific credits: DJ (DjDeveloperr) authored the existing J700 bring-up; Ryan Murray integrated it; Ace adapted and qualified this contribution. The driver and DT commits retain DJ as author and Ryan/Ace as co-authors.

The requested history revision is integrated in 0f29f464d17b, including revised driver commit f8386c18acb7. GitHub retains the original merged-PR snapshot; these links identify the revised series on aurora-wip.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Acelogic and others added 3 commits October 2, 2026 00:24
Add the compatible used by the J700 AVD node. The existing four-register
layout and two interrupts cover this generation.
T8140 has sparse codec-specific VP blocks rather than the sequential layout
used by earlier variants. Its HEVC stream uses DMA configuration words and
an extended scratch-address table. Apply the J700 queue pacing and polling
behavior to this variant while preserving earlier chips' behavior.

Align the AV1 auxiliary storage and HEVC MV tail to keep their addresses
outside the compressed frame data and aligned to the hardware granularity.

Adapt DJ's existing J700 bring-up, integrated by Ryan, onto the public
decoder series in PR #45. Preserve the original driver notices and authors.
The legacy FIFO-mask experiment is not part of this port.

Tested on J700/T8140 with open Asahi v5-t0 firmware: H.264, HEVC, VP9 and
AV1 hardware downloads matched 1740 software-decoded frames in 34 runs,
including 8/10-bit cases, vaGetImage, repeated opens and H.264/HEVC/VP9 seek.

Co-authored-by: Ryan Murray <[email protected]>
Co-authored-by: Ace <[email protected]>
Wire the J700 decoder register ranges, interrupts, shared AVD power/reset
domain and three DART streams using the existing Neo bring-up by DJ and
Ryan. The open v5-t0 firmware boots and /dev/video0 supports verified
hardware decoding on the Neo.

Co-authored-by: Ryan Murray <[email protected]>
Co-authored-by: Ace <[email protected]>
@Acelogic
Acelogic force-pushed the codex/neo-avd-bringup branch from 61db9f7 to d96e581 Compare October 2, 2026 04:24
@Acelogic
Acelogic merged this pull request into aurora-wip Oct 2, 2026
@Acelogic
Acelogic deleted the codex/neo-avd-bringup branch October 2, 2026 04:25
Acelogic added a commit that referenced this pull request Oct 2, 2026
Use Aurora firmware 9cbde5c7d993844bf086318974958b11076600a0.
The unchanged decoder code passed 1740 exact-frame comparisons across
34 guarded physical Neo runs with this firmware. Record its build source
and installation path, preserving the original contributor credits.

This user-requested history revision replaces the previous #154 merge.
The original merge remains available in the GitHub PR record.
Acelogic added a commit that referenced this pull request Oct 2, 2026
PR #153 was merged into the PCIe working branch after #151 had already
landed, leaving its Wi-Fi and Bluetooth files out of aurora-wip. Merge the
completed radio series into the development branch alongside the Neo AVD
integration from #154.

Keep the radio branch's complete contributor history. All radio files are
identical to that branch, and the AVD driver and board wiring are unchanged.
The two sides have no overlapping file edits against the public merge base.

Validation: exact tree comparisons and git diff --check pass. The existing
qualified Neo stack still passes Wi-Fi HTTPS with Bluetooth powered and KDE
running; its Aurora-firmware AVD campaign passed 34 runs / 1740 exact frames.
This integration does not claim a fresh build or boot of the merged kernel.
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