Skip to content

media: apple: prores: T6050 (M5 Pro/Max) built-in initialization rows - #2055

Merged
DjDeveloperr merged 1 commit into
integration/aurorafrom
m5-parity6/t6050-prores-rows
Nov 16, 2026
Merged

DjDeveloperr merged 1 commit into
integration/aurorafrom
m5-parity6/t6050-prores-rows

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

On the M5 Pro (J714s) the ProRes engine has been off by default: apr0 has no built-in initialization rows, and it binds only with a per-machine apple/prores-t6050-init.bin. No distribution installs that file, so on the default boot the driver loads, logs that it has no rows, and leaves the device unbound.

This adds T6050's built-in rows, the same way #1260's T6041 rows were added (eaf23e5): the values macOS 27.0 writes before its first ProRes job on a J714s, from an MMIO trace of all four apr0 windows.

Change

  • 82 SCODEC-system (aux), 12 SCODEC control (ctrl), 80 engine (core) and 62 AXI-to-fabric wrapper rows, in the order the driver applies them (aux, ctrl, core, wrapper). Each row writes the whole register.
  • The counts are the APRI v1 T6050 layout's. The system and engine rows sit at T6041's offsets (2 and 21 values differ); the wrapper rows sit at different offsets.
  • The optional init file still replaces the built-in rows. Kconfig help and t6041-apri.rst now say that T6050 has built-in rows.

Validation

  • Offline: an APRI container rebuilt from the new arrays is byte-identical to the init file that media: apple: prores: T6050 (M5 Pro/Max) ProRes engine, enabled on the J714s (on #1260) #1586 was validated with (pr1c, 11-12: Proxy, LT, 422 and HQ at 1080p plus 422 at 720p, each byte-identical across 10 jobs).
  • Compile: an arm64 cross build of this commit on the M5 default's source (intg8 + this PR + the CLPC PR) links with no new warnings in the driver.
  • J714s (M5 Pro), 11-16, lab boot 7.3.0-m5-par6: the M5 default's source (intg8) plus this PR and soc: apple: clpc: J714s: tell the SMC about High Power mode (performance profile lifts the fan ceiling) #2056, built natively on the M5, one test boot, no init file on the root:
    • the default kernel leaves apr0 unbound ("no apple/prores-t6050-init.bin and no built-in rows, engine not used"); with this PR it binds at boot ("ProRes encoder, id 0x40018") as /dev/video12;
    • five encodes (Proxy, LT, 422 and HQ at 1920x1080, 422 at 1280x720; 10 jobs each) are byte-identical across the 10 jobs and byte-identical to the 11-12 run that used this Mac's init file;
    • 0 DART faults, no oops; the test boot was the lab set only, and the default came back byte for byte.

🤖 Generated with Claude Code

T6050 had no built-in rows, so the M5 Pro/Max encoder bound only when a
per-machine apple/prores-t6050-init.bin was present. No distribution
installs that file, so on a J714s the engine stayed off: the driver
loaded, logged that it had no rows and left the device unbound.

Add the rows macOS 27.0 writes before its first ProRes job on a J714s,
recorded with an MMIO trace of all four apr0 windows: 82 SCODEC-system
(aux) rows, 12 SCODEC control (ctrl) rows, 80 engine (core) rows and 62
AXI-to-fabric wrapper rows, in the order the driver applies them. The
counts match the APRI v1 T6050 layout. Each row writes the whole
register, as T6041's do. The system and engine rows sit at T6041's
offsets (2 and 21 values differ); the wrapper rows do not.

The optional init file still replaces the built-in rows.

Signed-off-by: Diljit Singh <[email protected]>
@DjDeveloperr
DjDeveloperr marked this pull request as ready for review November 16, 2026 09:31
@DjDeveloperr
DjDeveloperr merged commit 28d0a67 into integration/aurora Nov 16, 2026
7 checks passed
@RyanTheTide
RyanTheTide deleted the m5-parity6/t6050-prores-rows branch November 17, 2026 23:53
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