Repository navigation
kboot: hand off the ANE firmware preload on the M4 - #260
Merged
Merged
Conversation
The M4 (T8132) Neural Engine runs firmware that iBoot preloads, like the M4 Pro: /arm-io/ane is pre-loaded with a __TEXT and a __DATA segment. Give an apple,t8132-ane node its two reservations, memory regions and firmware IOVAs as on the other preloaded ANEs. Signed-off-by: Erik Bourget <erik@ebourget.net>
Contributor
|
Tested on a J773g (Mac mini M4, 26.6.2 stub): this commit on top of the J773g aura stack (e553f9d = boot-HDMI + #113 + #310 + #311 + DCP handoff), as an ESP Stage 2.
|
Formatting only: clang-format 20.1.8 (the CI version) packs the five compatibles onto one line. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
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.
Hands off the M4 (T8132) Neural Engine's firmware preload, as for the M4 Pro, M5 Pro and A18 Pro:
/arm-io/aneis pre-loaded with a__TEXTand a__DATAsegment, so anapple,t8132-anenode gets its two no-map reservations,memory-region/memory-region-namesandapple,firmware-iovas.Kernel side: aurora-silicon/linux#1952.
Testing
tests/python/test_ane_preload.pygets a J713 case with the J713's 26.6.2 segment values (TEXT 0x10000ac8000, DATA 0x10001a2c000); 4/4 pass. Full host suite: 737 passed, 25 skipped; the 2test_loadobjs.pyfailures also fail on main.FDT: /soc/ane@500000000: ANE firmware TEXT 0x10000ac8000 DATA 0x10001a2c000 reserved, and the kernel ANE driver accepted the preload and ran programs, including after suspend to RAM.Developed and tested by Claude (Anthropic), working with me on the J713.
🤖 Generated with Claude Code