Repository navigation
media: apple: jpeg: enable decode on the T8122 and T8112 engines - #4409
Conversation
The T8122 JPEG engine (M3, and the M3 Pro/Max engines that share its match data) uses the same wide-address register layout and decode block offset as T6041 and T8140, where the decoder was checked on hardware. Turn the decoder node on for it as well. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
The T8112 JPEG engine (M2) uses the same wide-address register layout and decode block offset as T6041, T8122 and T8140. Turn the decoder node on for it as well. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
J413 (M2, Environment: MacBook Air 13" M2 ( Results
Not covered: T8122 (J615) and J473 hardware rows; live KUnit execution on the running kernel ( |
|
J473 (Mac mini M2, T8112) reproduced hardware decode on both engines with the candidate module built from
|
|
J613 (MacBook Air 13" M3, Environment: MacBook Air 13" M3 ( Results
Not covered: GStreamer |
|
If you want to include M1 Pro/Max/Ultra ( |
|
Hardware row at 4302e8a: J615 (MacBook Air 15" M3, T8122, JPEG Setup. I built Results
Scores: https://github.com/aurora-silicon/hardware-validation/blob/main/evidence/j615/20261205-pr4374-exact-head-rows.log (section row-jpeg). Full trace: traces/codec/20261205-j615-jpeg-decode on the lab store. |
There was a problem hiding this comment.
Verdict: MERGE at 4302e8a
Checked: The driver delta against the stacked base is exactly two decode-enable flags. Independent GCC and Clang replays of the exact variant and eligibility code passed 120 cases on each revision, including unchanged older variants and out-of-range modes. The exact J413 and J613 module rows each cover both engines, 21 baseline images, 12 conversions, dynamic resolution, stop/start, error recovery and encoder parity. The additional J473 row records a baseline JPEG sampling compatibility gap.
Code approval only. This draft is still stacked on #4160, which has an open requested-changes review. The hosted child rollup currently has readiness and PR-text only. The module swaps do not cover full boot and regression at this head.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: MERGE once the affected checks pass on this head.
The forward merge retains both changed file blobs from 4302e8a8f839. The two decoder flags are scoped to the T8112 and T8122 wide-address variants. The KUnit change keeps the T6000 and T6050 rejection controls. The J413 and J473 T8112 rows and J613 and J615 T8122 rows on 4302e8a8f839 carry to this merge.
|
J516s (MacBook Pro 16" M3 Pro, Environment: MacBook Pro 16" M3 Pro ( Results
Not covered: GStreamer |
Problem: #4160 adds the hardware JPEG decoder but turns it on only for the T6041 and T8140 engines, where it was run. The M2 (T8112) and M3 (T8122, also used by the M3 Pro/Max nodes) engines stay encode-only, so
v4l2jpegdecis still missing on those Macs (#4101).Change: set
.decode = trueon the T8122 and T8112 variants. Both use the same wide-address register layout (aj_wide64) and decode block offset (0x16c) as T6041 and T8140, so the decode job is the same one #4160 already checks. KUnit now expects decode on both. One commit per engine, so either can be dropped if its row fails.Stacked on #4160 (base
media-parity/jpeg-decode); retarget to main once that merges.Tested: KUnit apple-jpeg 18/18 on arm64 qemu at 4302e8a; checkpatch --strict clean. No hardware row yet: J615 (T8122) and J413/J473 (T8112) module-swap rows on the default 7.3.0-1675a62307d2 kernel are queued with the same 20-file scoring as #4160 (pass = max diff 1 per plane vs ffmpeg).
Risk: two-way door. Adds a decoder video node on T8112/T8122/T6030-2 systems, which shifts /dev/videoN numbering after the JPEG nodes. Encode is unchanged. J615, J413, J473.
Refs #4101