Repository navigation
media: apple: ave: probe-only T6000 and T8112 match data, disabled DT nodes - #653
Merged
Merged
Conversation
Add the M1 Pro and M2 AVE compatibles to the shared encoder binding. Both use the same three register windows, five power domains and paired DART topology. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Select firmware segment sizes, boot identity, device type, explicit coprocessor offsets and LFS reference sizing from SoC match data. Validate both reserved segments and their loader checksums before binding. The pre-M4 command constants, MCC DSID and firmware builds still need qualification. Refuse encoding and firmware startup with an informational message on these SoCs, even if their TEXT checksum happens to match T8140. Keep the shared wire layouts and the qualified T8140 command path. Exercise exact descriptor sizes and alignment boundaries with an independent KUnit sizing suite. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Describe the codec, mailbox and coprocessor windows, all five AVE IRQs and both SID 0 DARTs from the ADT facts. Use the existing VENC power domains and preserve the 0x8000 pre-M4 mailbox windows. Leave the encoder and both DARTs disabled pending loader handoff and owner qualification. Do not guess the DMA aperture or add an RTKit endpoint. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
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.
T6000 (M1 Pro) and T8112 (M2) now select match data in the shared AVE encoder.
Both use TEXT
0xd0000, DATA0x128000, their own boot/device IDs and halfthe T8140 LFSRef descriptor sizes (
0x85200AVC /0x1fe00HEVC at 1080p).The command sizes, offsets, reply layout and transport remain shared.
The binding accepts both compatibles. Disabled AVE and paired SID 0 DART
nodes describe the actual registers, 0x8000 mailbox windows, five IRQs and
existing VENC power domains. No DMA aperture is guessed.
This is probe-only support. The driver requires two non-overlapping,
reserved/mapped firmware segments of the right sizes and checks both loader
CRCs. Neither pre-M4 SoC has qualified firmware command constants or MCC
DSID, so encoding and firmware startup return
ENOTSUPPwith an info line.Even a T8140 TEXT checksum cannot select the T8140 constants on these SoCs.
No DT node is enabled by this series.
The current aura loader
only hands off AVE firmware on T8140. aura#25
is an unmerged M4 Pro draft and still lacks these compatibles. The separate
handoff note specifies the pre-M4 path selection, exact remaps, reservations,
CRC export and disabling all three nodes on failure; this series changes no
loader code. Positive encoding requires later trace/firmware qualification
and owner cold-boot tests on both boards.
Validation completed on the unchanged source tree:
-j8: 0 warnings, 0 errors. Kernel release7.3.0-aurora-ave-prem4.W=1: 0 warnings, 0 errors.make dt_binding_check DT_SCHEMA_FILES=media/apple,t8140-ave.yaml: clean.CHECK_DTBS=y W=1: the same 405 baseline diagnosticlines, 0 added/removed, after resolving printed phandles by target path.
All 627/507 existing nodes and 3445/2766 properties are unchanged; each
board adds only the intended three disabled nodes and generated phandles.
DART order/SIDs, power domains and disabled status.
with
W=1. Its build logs contain unrelated warnings in untouched basecode; no AVE warnings.
with verified checksums. The task build tree was removed after collection.
stream refusal, future qualified encodes, ffprobe/full decode and rollback.
All implementation inputs were the existing public GPL driver and the
clean facts SPEC. No firmware, captured command blocks or private source is
included. No push or PR creation was performed.
🤖 Generated with Claude Code