Repository navigation
media: apple: ProRes encoder for the Neo (T8140), with the ProRes UAPI - #835
Merged
Merged
Conversation
Define a complete-frame ProRes compressed format and a six-entry encoder profile menu. Add contiguous little-endian 16-bit P216 and P416 raw formats for semiplanar 4:2:2 and 4:4:4 storage, with core format descriptions. These are RFC allocations. Merge this interface together with its first driver consumer after media review, rather than as a standalone ABI. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Specify complete ProRes frame payloads, encoder-only profile selection, and contiguous 16-bit raw layouts including chroma strides and allocation bounds. Distinguish storage precision from coded precision and alpha. Keep the proposed ABI under RFC review until its first driver consumer validates these contracts and can merge with the definitions. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Describe the APR ProRes engine in the A18 Pro (T8140). It is programmed directly through MMIO and a DMA descriptor ring behind its own DART, has no firmware, and its power domain doubles as its reset. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Add a V4L2 memory-to-memory encoder for the APR engine in the A18 Pro (T8140). It takes 8 or 16 bit semi-planar 4:2:2 (NV16, P216) and 4:4:4 (NV24, P416) frames and produces ProRes 422 Proxy, LT, 422 and HQ, and 4444 and 4444 XQ. Before the first job the driver applies the engine's and its AXI bridge's fixed register settings, installs the descriptor ring and a statistics area, enables completion and error interrupts, and loads the quantisation matrices and DC scale table, which are generated from formulas that KUnit checks against the values the engine is known to run with. Each job descriptor is built from the format and profile. The ring is reprogrammed instead of wrapped, since the wrap protocol is not known. A lost interrupt is caught by a poll and a hung engine is reset through its power domain. Rate control uses one known-good setting for every profile, so profile bit rates do not yet follow Apple's targets. Originally-by: Acelogic <miguelc4600@gmail.com> Link: aurora-silicon/linux-aurora@3e77f27 Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Add the APR engine next to its DART, with both interrupts and its power domain as reset, and enable it on the J700. Build the driver as a module. Originally-by: Acelogic <miguelc4600@gmail.com> Link: aurora-silicon/linux-aurora@3e77f27 Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
prores-enc encodes raw NV16, P216, NV24 or P416 frames through a V4L2 ProRes encoder, writes each frame for FFmpeg to check and reports the encode rate without file I/O. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
notmysegv
pushed a commit
to notmysegv/linux
that referenced
this pull request
Nov 4, 2026
…tion/aurora Bring integration/aurora up to aurora-wip e1524e6, the source of 7.3.0-aurora-fleet14l, promoted on all four machines on 2026-11-02. The range also covers the fleet14i, fleet14j and fleet14k sources (a8fa302, d67eece, ce900d1). It adds aurora-silicon#822, aurora-silicon#823, aurora-silicon#824, aurora-silicon#827, aurora-silicon#829, aurora-silicon#834, aurora-silicon#835, aurora-silicon#836, aurora-silicon#838, aurora-silicon#840 and aurora-silicon#839. No conflicts. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
This was referenced Nov 20, 2026
Closed
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.
ProRes encoder for the MacBook Neo (T8140)
A V4L2 memory-to-memory encoder for the A18 Pro's ProRes engine (APR), with the ProRes UAPI from RFC #738 as its first consumer.
media: v4l2: the two [RFC] media: v4l2: define ProRes frames, profiles and P216/P416 #738 commits (PRES compressed format, encoder profile menu, P216/P416 raw formats and docs).dt-bindingsandarm64: dts: apple: t8140: the engine node next to its DART, both interrupts,ps_proresas power domain and reset. Enabled on the J700.media: apple: the driver. It takes NV16/P216 (4:2:2) and NV24/P416 (4:4:4) and encodes 422 Proxy, LT, 422, HQ, 4444 and 4444 XQ. Before the first job it applies the engine's and its AXI bridge's fixed settings, installs the ring and a statistics area, and loads the quantisation matrices and DC scale table (generated from formulas; KUnit checks them against known register values). Job descriptors are built from format and profile; nothing is replayed.tools/asahi/prores-enc.c: encode tool for checks and benchmarks.Credit: the first Linux encode on this engine was Acelogic's diagnostic (linked as
Originally-byin the commits).Tested on the Neo
Kernel 7.3.0-aurora-fleet14k-codec1 (this series and #834 Main 10 change, on aurora-wip ce900d1), one-shot boot b973bd14 with a one-shot Stage 2 whose only change is this DT node (restored early; committed Stage 2 unchanged).
journalctl -p 3clean of driver lines.Known gaps
🤖 Generated with Claude Code