Skip to content

media: apple: ave: probe-only T6000 and T8112 match data, disabled DT nodes - #653

Merged
RyanTheTide merged 3 commits into
aurora-wipfrom
media/ave-t6000-t8112-20261031
Oct 30, 2026
Merged

RyanTheTide merged 3 commits into
aurora-wipfrom
media/ave-t6000-t8112-20261031

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

T6000 (M1 Pro) and T8112 (M2) now select match data in the shared AVE encoder.
Both use TEXT 0xd0000, DATA 0x128000, their own boot/device IDs and half
the T8140 LFSRef descriptor sizes (0x85200 AVC / 0x1fe00 HEVC 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 ENOTSUPP with 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:

  • Image/modules built through buildslot with the fleet11 release config and
    -j8: 0 warnings, 0 errors. Kernel release 7.3.0-aurora-ave-prem4.
  • AVE and its sizing test rebuilt with W=1: 0 warnings, 0 errors.
  • make dt_binding_check DT_SCHEMA_FILES=media/apple,t8140-ave.yaml: clean.
  • Both boards built with CHECK_DTBS=y W=1: the same 405 baseline diagnostic
    lines, 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.
  • Compiled new-node resources match the SPEC: compatibles, MMIO, IRQs,
    DART order/SIDs, power domains and disabled status.
  • AVE sizing KUnit: 8/8 picture cases, 32 exact-size assertions, run in UML
    with W=1. Its build logs contain unrelated warnings in untouched base
    code; no AVE warnings.
  • Strict checkpatch remains clean on all three unchanged patches.
  • Matching Image, AVE module, both DTBs and the 5,858-module set were saved
    with verified checksums. The task build tree was removed after collection.
  • Hardware was not accessed. The owner plan covers disabled DTBs, intended
    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

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>
@RyanTheTide
RyanTheTide merged commit b5d5208 into aurora-wip Oct 30, 2026
1 check passed
@RyanTheTide
RyanTheTide deleted the media/ave-t6000-t8112-20261031 branch October 30, 2026 18:39
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.

1 participant