Repository navigation
media: apple: jpeg: enable the M4 Pro JPEG engines on the J616s - #1047
Merged
Merged
Conversation
The M4 Pro/Max JPEG engines identify as 0x101008 rather than the Neo's 0x110000, but they use the same register layout and encode programming: 64-bit address pairs, HWREV at 0x1c4 and the same job sequence. Accept the T6041 revision under the existing stepping mask so probe no longer refuses it, and cover the new admission in the KUnit identity test. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
Enable both JPEG engines, their DARTs and the JPG power domain on the 16-inch M4 Pro MacBook Pro now that the driver admits the T6041 revision. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
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.
Summary
The M4 Pro/Max JPEG engines identify differently from the Neo's (ADT hw-type 0x101008, masked HWREV 0x100008 vs 0x110000), but they use the same register layout and encode programming as T8140: 64-bit address pairs, HWREV at 0x1c4, same job sequence. The driver refused them ("engine layout not supported") because the T6041 variant had no admitted revision.
media: apple: jpeg: admit the T6041 engines: admit masked HWREV 0x100008 under the existing stepping mask; KUnit identity cases added.arm64: dts: apple: t6040-j616s: enable the JPEG engines: enableps_jpg,jpeg0/jpeg1and their DARTs on the J616s.Hardware test (J616s, 11-07 03:56-04:03)
One-shot Stage 2 trial (live Stage 2 with only these status lines flipped, never committed), fleet17 kernel plus this driver change as a module:
JPEG encoder, HWREV 0x100008.Known issue (driver-wide, not J616s-specific)
With GStreamer's
v4l2jpegenc, heights that are not a multiple of 16 (e.g. 1080) hang/crash the pipeline: the driver padssizeimageto whole macroblock rows (1088). 1280x720 fails caps negotiation. The same code runs on the Neo; tracked separately.🤖 Generated with Claude Code