Repository navigation
media: apple: jpeg: add the M1 Max/Ultra, M3 and M4 engines - #1617
Merged
Merged
Conversation
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]>
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.
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-typewith the stepping nibble masked. That holds on T8112 (0x0e0008) and T6041 (0x101008 -> 0x100008). So:hw-type0x100008, 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_jpgoff; it is now on.Tests
make dtbs: no new warnings. The J316s, J413, J616s and J700 DTBs are byte-identical.🤖 Generated with Claude Code