Repository navigation
soc: apple: sep: read the pnon digest on the two-to-four-page SEPs - #1761
Closed
RyanTheTide wants to merge 1 commit into
Closed
RyanTheTide wants to merge 1 commit into
RyanTheTide wants to merge 1 commit into
Conversation
The pnon endpoint on M1 Pro, M2 and A18 Pro advertises two to four pages each way and expects the older mailbox format for its calls: tag 1, the out-of-line length in bits 16-31 and data zero. Its reply carries the reply length in bits 16-31 and the service result in data. The A18 Pro answered the tag 2 request with tag 2 and data 1, a refusal with no reply bytes, which the driver read as a one-byte reply. The out-of-line request and reply are the same as on M4 Pro: the 32-byte request header with the blessed-digest operation, and an 80-byte reply with the 48-byte digest. Pick the format and the buffer sizes from the discovery layout (four pages each way on the two-to-four-page layout) and never retry in the other format. Any other layout is still left alone. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Contributor
Author
|
Blockers: 2.
HW row: on this head, one boot each on an M1 Pro (J316s), an M2 and a Neo J700, plus the J616s to show M4 Pro is unchanged. Pass criteria: Assisted-by: LLM (Claude:Opus 5.5) |
Contributor
Author
|
Replaced by #2810: the same changes with the commit trailers fixed, on the current integration/aurora. |
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
pnonendpoint on M1 Pro, M2 and A18 Pro advertises 2 to 4 pages each way and expects the older mailbox format for its calls. The client from #1734 only spoke the M4 Pro format, so it left those SEPs alone (absent).data. The reply has the status intypeand the reply length indata. Unchanged.data0. The reply has the reply length in bits 16-31 and the service result indata.hcPBheader with operation 0x0e, and an 80-bytehrPBreply carrying the 48-byte digest.data1, a refusal with no reply bytes. The old decoder read that as a one-byte reply. A tag 2 word can't complete a tag 1 call, and a tag 1 word can't complete a tag 2 call.Tests
sep.kunitconfig: 601 run, 599 pass, 2 skip.apple_sep_pnon10/10. The new cases cover the tag 1 request word, tag 1 success and refusal replies, the A18 Pro's tag 2 answer, cross-format words and the layout-to-format mapping.Assisted-by: LLM (Claude:Opus 5.5)