Repository navigation
media: apple: ave: build 6070 Start and Process images - #1300
Closed
RyanTheTide wants to merge 4 commits into
Closed
RyanTheTide wants to merge 4 commits into
RyanTheTide wants to merge 4 commits into
Conversation
Three things kept the M2 encoder firmware from starting:
- The loader writes the DATA address into one TEXT cell (+0x423c on
T8112) that is zero in the firmware image, so the live TEXT CRC never
matched the image CRC and probe refused the build. Hash TEXT with
that cell as the image has it, and refuse any other value in it.
- VCBAR reads back decoded (the code base with bit 0 set), so the
read == written check always failed with -EIO before RUN. macOS writes
it once and treats the first hello as the confirmation; do the same.
- Clear the SVE idle word in the mailbox before RUN, and restore DATA
from the boot snapshot before the first start as well.
With these the T8112 probes ("6070.11.1 (lifecycle only): TEXT
25bfd039") and reaches RUN; the firmware does not say hello yet, so
the encoder stays disabled in the device tree.
Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
The M2 ADT gives the encoder the same two auxiliary banks as the M1 Pro: a PMGR page that the host maps for the 6070 firmware and hands over at Config, and the PIO window. The driver refuses to start the firmware without the first one. Describe both like t6000-peripherals does and let the binding accept them on T8112. The node stays disabled. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
The M1 Pro loader fills TEXT +0x423c with the DATA address too: the live TEXT CRC is e689935f, and with that cell as zero it is 460c7a7c, the H13S image CRC. Normalise it on T6000 as on T8112. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Signed-off-by: Ryan Murray <[email protected]>
Contributor
Author
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 tests use synthetic addresses and field values derived from the clean rev-2/P1 ledgers. No Apple command images are included.
Verification
Hardware gate
This PR deliberately leaves ave_layout_6070_11_1.encode_ready=false. The AVE-M1M2 lane must prove firmware hello before enabling streaming, then qualify live H.264 and HEVC bitstreams plus drain/error recovery.