Repository navigation
[1/14] soc: apple: rtkit, mailbox, SART, AIC: polled stops for a firmware sleep's last steps - #1772
Closed
DjDeveloperr wants to merge 1 commit into
Closed
DjDeveloperr wants to merge 1 commit into
DjDeveloperr wants to merge 1 commit into
Conversation
…eep's last steps On T6050 (M5 Pro) the sleep stops several coprocessors in its last steps, with interrupts off and one CPU running, after the point where their drivers' own .suspend could still refuse. This adds what those stops need: - RTKit: a polled idle (AP IDLE and the firmware's IDLE_DONE, read from the mailbox with no interrupt), the mailbox's receive-enable bit for a client's own idle, a saved-context lane for the SMC (one AP message across the commit with its acknowledgement tracked), the firmware 27 display stop's two state acknowledgements, and early endpoints that start before RX admission. - Mailbox: send and receive without waiting, for those polled stops. - SART: T6050's (v4) entries replayed after a sleep, and checked against the saved ones before ANS restarts. - AIC: the sleep's mask-all and its event acknowledge, exported for the M5 path that masks every interrupt in its last steps. No change for other SoCs: each piece is used only by the T6050 sleep path. Measured on the M5 Pro (J714s): with these stops in place the SoC's sleep engine gets past its coprocessor waits (runs s49-s51); with the full series a real sleep of about 28 s on the RTC alarm returns with every coprocessor back (s171, s179). Signed-off-by: Diljit Singh <[email protected]>
DjDeveloperr
force-pushed
the
m5/sleep-t6050/01-rtkit
branch
from
November 13, 2026 07:07
d52260e to
792dc30
Compare
Contributor
Author
|
superseded; reworking privately |
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.
On T6050 (M5 Pro) the sleep stops several coprocessors in its last steps, with
interrupts off and one CPU running, after the point where their drivers' own
.suspend could still refuse. This adds what those stops need:
mailbox with no interrupt), the mailbox's receive-enable bit for a client's
own idle, a saved-context lane for the SMC (one AP message across the commit
with its acknowledgement tracked), the firmware 27 display stop's two state
acknowledgements, and early endpoints that start before RX admission.
saved ones before ANS restarts.
path that masks every interrupt in its last steps.
No change for other SoCs: each piece is used only by the T6050 sleep path.
Measured on the M5 Pro (J714s): with these stops in place the SoC's sleep
engine gets past its coprocessor waits (runs s49-s51); with the full series a
real sleep of about 28 s on the RTC alarm returns with every coprocessor back
(s171, s179).
Part 1 of 14 of the M5 Pro (T6050, J714s) deep-sleep series. Each PR carries the ones before it; review only its top commit.
Status: draft. Validation of the whole series on the M5 Pro with the stock J714s DT and the stock kernel config, radios included, is in progress; results will be added to the last PR.
🤖 Generated with Claude Code