Repository navigation
media: apple: prores: load T6041 APRI init tables - #1260
Merged
Merged
Conversation
T6041 needs a per-machine APRI initialization container. Document the fixed firmware name while retaining the firmware-free contract for the existing T6000 and T8140 paths. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
Request the per-Mac APRI v1 container before mapping T6041 resources. Validate its complete shape and every row, copy the three fixed blocks, and apply them in SCODEC-system, core, wrapper order after MODE-off. Missing or malformed firmware fails probe before any hardware access. Keep the compiled-in T6000 and T8140 paths unchanged. Cover the parser with a complete synthetic container and mutations for the header, block shape, bounds, alignment, uniqueness, masks, values, truncation, and trailing data. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
Contributor
|
@RyanTheTide, #1586 (T6050 ProRes on the MacBook Pro M5 Pro, J714s) is stacked on this PR and carries its two commits unchanged (same patch-ids as cdfcdba and 3464d5c). It ran the APRI loader on T6050 hardware, with the init table loaded as firmware:
Would you take #1260 out of draft and merge it, or are you OK with it landing through #1586? #1586 stays parked until one of those happens. |
Select the power-up rows per variant before mapping the hardware: the built-in SCODEC-system, core and wrapper tables are the default, and a variant with a firmware name may take a per-machine APRI file that replaces all three. A file that is present but malformed still fails the probe and never falls back. A variant with no core rows from either source refuses to probe. T8140 and T6000 keep their built-in tables and apply them in the same order as before. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
T6041 has no built-in initialization rows yet, so without apple/prores-t6041-init.bin its probe fails with -ENOENT before any register is mapped. Say so in the Kconfig help and in t6041-apri.rst instead of implying that built-in rows are used. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
A T6041 without apple/prores-t6041-init.bin has no rows to program, because T6041 has no built-in rows yet. Its probe used to fail through dev_err_probe(-ENOENT), which puts an error line in the boot log of every such machine for a file that is optional. Log one info line instead and return -ENODEV, which the driver core does not report. A variant without a firmware name and without rows is still a driver bug and keeps the error. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
RyanTheTide
marked this pull request as ready for review
November 12, 2026 04:55
RyanTheTide
added a commit
that referenced
this pull request
Nov 12, 2026
media: apple: prores: T6050 (M5 Pro/Max) ProRes engine, enabled on the J714s (on #1260)
This was referenced Nov 12, 2026
Closed
This was referenced Nov 20, 2026
Closed
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 driver now picks its power-up rows per variant before it maps any register. Built-in SCODEC-system, core and wrapper tables are the default. A variant with a firmware name also accepts a per-machine APRI file,
apple/prores-t6041-init.bin, which replaces all three tables.status = "disabled"; this PR changes no DTS.Testing
journalctl -b -p 3empty, and the module unloads cleanly.