Repository navigation
arm64: dts: apple: t6040: complete the ANE DART description from the ADT - #638
Closed
RyanTheTide wants to merge 2 commits into
Closed
RyanTheTide wants to merge 2 commits into
RyanTheTide wants to merge 2 commits into
Conversation
The T6041 ADT gives the ANE two IOMMU parents on its DART: stream 0 for the engine and stream 11 for its MPM. Allow the three DARTs' stream 11 after their stream 0 on the T6041 and keep three entries everywhere else. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
The ADT's dart-ane0 translates from vm-base 0x100_0000_0000 for 0x300_0000_0000 bytes, and iBoot preloads the ANE firmware at DVA 0x100_0000_0000 and 0x100_000c_0000, so the DARTs need that window as on the T8140. The ANE also has a second IOMMU parent, mapper-ane0-mpm on stream 11. Give the three ANE DARTs apple,dma-range and the ANE stream 11 on each. All of these nodes stay disabled until there is an H16 firmware backend, so nothing changes at runtime. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
This was referenced Oct 30, 2026
Contributor
Author
|
Both commits landed unchanged in #669 (merged into aurora-wip), so this one is superseded. |
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.
Two DT facts from the J616s ADT (26.6.2) that the T6040 ANE description lacked:
dart-ane0translates from vm-base 0x100_0000_0000 for 0x300_0000_0000 bytes, and iBoot preloads the ANE firmware at DVA 0x100_0000_0000 (TEXT, 0xc0000) and 0x100_000c_0000 (DATA, 0x2ac000). The three ANE DARTs getapple,dma-range = <0x100 0x0 0x300 0x0>, as the T8140 ANE DARTs already have.mapper-ane0-mpmon stream 11. The ANE node now lists stream 11 of each DART after stream 0, and the binding allows sixiommusentries on the T6041 only (three everywhere else).Everything stays
disabled: there is no H16 firmware backend yet (Daybreak task t-3451 is collecting the protocol). This lands the description so the first H16 driver doesn't also have to fix the DT.Left out on purpose, because the ADT alone doesn't say what they are: the other six ANE reg windows (0x502280000 and 0x5022a0000 look like the T6021
pmgrandsetwindows, but the split differs) and the power domains beyondane_cpu. They come with the driver.Testing
dt_binding_check DT_SCHEMA_FILES=npu/apple,ane.yamlpasses.CHECK_DTBS=y W=1for t6040-j616s, t8140-j700 and t8112-j413: output identical to aurora-wip ebcf9cb (no new warnings).xxd /proc/device-tree/ane@484000000/iommusshows six entries,tr -d '\0' < /proc/device-tree/ane@484000000/statusstill saysdisabled.🤖 Generated with Claude Code