Repository navigation
arm64: dts: apple: t8132-j773g: enable ProRes (engine from #1994) - #2650
DjDeveloperr wants to merge 3 commits into
Conversation
The M4 has the ProRes engine (ADT /arm-io/apr, "apr,i0"), but the driver has no T8132 match. macOS's AppleProResHW (27.2) brings it up in activateDevice() as Linux brings up T6041: - MODE off (core +0x8 = 0); - SetScodecPSTunablesByDevID(): SCODEC system rows; - SetProResTunablesByDevID(): core rows; - SetAXI2AFTunablesByDevID(): wrapper rows; - then the descriptor ring. For chip 0x8132 the three setters apply its generated tunable tables: - soc_subsystem0 scodec_sys: 82 rows at 0x2_810c_0000, the aux window; - scodec_prores0: 80 rows at 0x2_8100_0000, the core window. This is the table the kext also gives T6041; - scodec_af_scodecaxi2af: 48 rows at 0x2_8000_0000, the wrapper window. The bases are the ones the kext's fixed-address appliers use. The rows are taken from those tables as read-modify-writes, with the kext's masks. The same reading of the kext's tables for T6041, T6050, T8140 and T8142 matches the rows traced from macOS on those chips: same offsets in the same order, values equal under the masks. Add the variant: T6041's descriptors, statistics and windows, with the T8132 rows built in and no per-machine file. The engine interrupt is DT index 0. macOS registers its second interrupt (index 1) for DMA errors, and only on some chips, so it is not requested. Not yet run on hardware. Signed-off-by: Diljit Singh <hey@djdev.me> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Name the three ProRes windows (core, wrapper, aux) for the driver. Power the engine as on T6041: the SCODEC streaming domain, with SCODEC, its parent, as the reset. The ADT's function-device_reset is ARST(0x32), and PMGR device 50 is SCODEC. On the Mac mini (J773g), enable the SCODEC domains, the ProRes DART and the engine. The T8132 PMGR policy has no SCODEC entries, so a board that leaves these domains without a status gets them disabled. Signed-off-by: Diljit Singh <hey@djdev.me> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Early note on this draft (no full review yet):
Assisted-by: LLM (Claude:Opus 5.5) |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: REQUEST CHANGES at 7121443c
Blockers:
- Hard-rule break: vendor-binary-derived tunable tables and binary provenance. The PR description states
"Every value comes from the macOS 27.2 (26B123) kernelcache; no trace was needed or possible here"and cites vendor binary methods (AppleProResHW::activateDevice(),SetScodecPSTunablesByDevID(), etc.) for the three T8132 register tables (aux,engine,wrapper) indrivers/media/platform/apple/prores/apple-prores-drv.c. Register values extracted directly from a vendor binary cannot be committed to a public repository. - Branch is
CONFLICTINGwithmainand lacks hardware validation. Even aside from provenance, the branch conflicts withmainand has zero T8132 J773g hardware test results.
Checked:
- PR description, commits (
15b50700,7121443c), and2026-11-21early review note.
Evidence
7121443cremains unchanged since the2026-11-21provenance blocker and conflicts withmain.
main has the T8132 ProRes engine and its named windows through #1994, enabled on the J604. Take main's driver and peripherals file, and keep only this branch's J773g enable, now written as the J604's: the engine and its DART. ps_scodec is on by default in main's PMGR file. Signed-off-by: DjDeveloperr <hey@djdev.me>
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at aef03e24
Blockers:
-
Branch history. The diff against main is now only the 13-line J773g block, but a merge commit would also bring this branch's two older commits into main's history.
15b50700and7121443cboth end in an AI co-author trailer.15b50700's message names the macOS driver's class, methods and tables. It also adds T8132 register rows that it describes as read from the kernel image. Main replaced those rows with theapple/prores-t8132-init.binfile through #1994.
Fix: put the block in one new commit on current main, with a message that describes only the DT change. Then either replace this branch with it (the author may force-push their own PR branch to fix commit history), or open it as a new PR and close this one. Do this before the J773g row, so the row runs at the final head.
Checked:
- The block matches the J604's:
dart_apr0andaprgo to okay. Both nodes are already in main's t8132-peripherals.dtsi onps_scodec. - dt-checks pass at head, and the merge tree is main plus only this block. That settles the bot's 11-30 point about the tables for the diff itself, but not for the history above.
Row still needed: J773g, booted with and without apple/prores-t8132-init.bin. apr and dart_apr0 should bind only when the file is there, and one ProRes job should run. The readiness check counts the "still owed" line in the PR body as a row at head. It isn't one.
|
Replaced by #4002: the same 13-line block as one new commit on main, so the older commits here stay out of main's history. Closing this one; the J773g row moves there. |
What
Enables ProRes on the Mac mini M4 (J773g): the engine (
apr) and its DART (dart_apr0), the same two nodes the J604 enables. The T8132 engine, its named windows and the driver landed on main through #1994. After the merge with main (aef03e24), this branch's diff against main is only this 13-line DT block. The driver binds the engine whenapple/prores-t8132-init.binis installed and stays off without it, as on the J604.Tested
t8132-j773g.dtbbuilt from the merge tree with the same dtc warnings as main. The only change isapranddart_apr0going from disabled to okay.aef03e24: ProRes binds with the init table installed, one encode and one decode run, and no new kernel errors.Risk
two-way · J773g only. A DT-only change. Without the init table the driver leaves the engine off.
Not yet
aef03e24.