Repository navigation
soc: apple: sep: read the pnon digest on the two-to-four-page SEPs - #2810
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. Signed-off-by: Ryan Murray <[email protected]>
|
Review at d5f2b34 (non-author, draft). No blocker in the code; not ready until it has run once on each class of machine that newly receives the call, and those rows are not listed in the body yet.
Small points, not blocking:
Assisted-by: LLM (Claude:Opus 5.5) |
RyanTheTide
left a comment
There was a problem hiding this comment.
Review at d5f2b34. The SEP message width now follows the endpoint's advertised page geometry. Keep the small-layout and larger-layout rows distinct. Verify the ordinary J413 path returns the digest and refuses an unexpected reply length while leaving key state intact. The software fixture checks serialization but cannot establish the older SEP's live behavior.
|
Row: M1 Pro (J316s, T6000), negative. Combined one-shot test kernel 7.3.0-aurora-dsw2 (main 2a173ca + this PR's head d5f2b34 + 14 other drafts; no other PR in it touches
So the tag 1 request this PR sends gets no reply on this SEP. The digest isn't read, and the endpoint goes from |
|
Follow-up row: J473 (M2 mini, T8112). |
|
Third row: Neo (J700, A18 Pro), negative like the M1 Pro. Same combined kernel 7.3.0-aurora-dsw2. The A18 Pro is one of the three SEPs this PR targets. Fleet edge kernel: |
Replaces #1761 (same changes, commit trailers fixed, on the current integration/aurora).
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.