Skip to content

media: apple: jpeg: add the M1 Max/Ultra, M3 and M4 engines - #1617

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
mediaown/jpeg
Nov 12, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
mediaown/jpeg

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Adds the M3 family (T8122, T6030, T6031, T6032) and M4 (T8132) JPEG engines to apple-jpeg, and enables the M1 Max and M1 Ultra engines on the existing T6000 data.

On the wide64 engines the HWREV readback equals the hardware description's hw-type with the stepping nibble masked. That holds on T8112 (0x0e0008) and T6041 (0x101008 -> 0x100008). So:

  • M3: HWREV 0x0f0008, wide64 layout. Untested.
  • T8132: hw-type 0x100008, the T6041 identity, so it reuses the T6041 data.

A different readback is still refused at probe. T8103 reports the legacy selector 0x0a0103 there instead of a HWREV, so it gets no entry.

DT: the JPEG nodes and their DARTs are enabled on T6001, T6002, T8122, T6030, T6031, T6032 and T8132. The M4 MacBook Air pmgr kept ps_jpg off; it is now on.

Tests

  • KUnit (arm64): apple-jpeg 13/13. The HWREV table checks the new identities against every other variant.
  • make dtbs: no new warnings. The J316s, J413, J616s and J700 DTBs are byte-identical.
  • M2 (J413) and M1 Pro (J316s), fleet67 kernel, stock module vs this branch's module: both engines encode 30 NV12 1080p frames byte-identically, with 0 decode errors and the same speed (M2 576-600 fps, M1 Pro 306-384 fps). HWREV reads 0xe0008 and 0xd1013. 0 AVC.
  • M1 Max/Ultra, M3 and M4 have no run on their own hardware yet.

🤖 Generated with Claude Code

The JPEG driver matched only the T6000, T8112, T6041 and T8140 engines.
On the wide64 engines the HWREV readback is the hardware description's
hw-type with the stepping nibble masked (read back on T8112 and T6041),
so:

- T8122, T6030, T6031, T6032 (M3 family): 0x0f0008, wide64.
- T8132 (M4): the T6041 identity, so it shares the T6041 data.

A different readback is still refused at probe, so an unexpected
revision leaves the engine unused. T8103 reports the legacy selector
there instead of a HWREV and gets no entry.

Enable the nodes and their DARTs. The M1 Max and M1 Ultra engines use
the T6000 data qualified on the M1 Pro. The M4 MacBook Air kept its JPEG
power domain off; turn it on for the engines.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide merged commit 35b9dd3 into integration/aurora Nov 12, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the mediaown/jpeg branch November 12, 2026 02:12
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