Repository navigation
sio: hand the T6041 SIO its boot tables - #120
Merged
Merged
Conversation
The M4 Pro/Max (T6041) SIO firmware reports protocol 10 like T6030's, but takes its boot tables differently: - only the DMA shim records the ADT describes end in the all-ones selector; the empty slots of the six-record table stay all zero; - the response array (key 0x0b) is not the loader's: the OS driver allocates it and publishes it with the segment array, as entry counts; - the tables live in the SIO DART's address space, which on T6041 starts after the firmware segments iBoot preloaded and remapped. Put them on the first 16K page past those segments, from the live ADT, instead of at 0x30000, which is outside that space. The map-range, device-type and tunables tables keep the T6030 layout. dt_setup_sio() already reserves the preloaded segments at their ADT remap addresses and enables the node only when every step succeeded; the T6041 device tree gains the "sio" alias it looks the node up by. Other SoCs are unchanged. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
The M4 Pro reports chip T6040 and runs the same SIO firmware as the M4 Max (T6041); its ADT is arm-io,t6041. The J616s trial showed the T6041 rules not applied there (the earlier layout and 0x30000 went out, which the OS driver correctly refused). Select them for both. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
Contributor
Author
|
E2E on the J616s (M4 Pro; aura reports chip T6040). The trial was this change cherry-picked onto the live J616s head d83ee47 (branch
Other SoCs are unchanged: the new rules and the IOVA base apply only when the chip is T6040 or T6041. CI is green. 🤖 Generated with Claude Code |
RyanTheTide
marked this pull request as ready for review
November 8, 2026 20:59
This was referenced Nov 9, 2026
Merged
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.
The M4 Pro/Max (T6041) SIO carries DisplayPort/HDMI audio. Its firmware reports protocol 10 like T6030's but takes its boot tables differently:
Map ranges, device types and tunables keep the T6030 layout.
dt_setup_sio()is unchanged: it reserves the preloaded segments at their ADT remap addresses and enables the node only after every step has succeeded. The T6041 device tree gains thesioalias it looks the node up by (Linux side: the T6041 apple-sio backend). Other SoCs are unchanged.The firmware stays where iBoot put it. Nothing is loaded or shipped.
Testing: an E2E trial on the J616s (aura-try Stage 2 trial with the Linux test kernel). Results get posted here before this leaves draft.
🤖 Generated with Claude Code