Skip to content

[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
integration/aurorafrom
m5/sleep-t6050/01-rtkit
Closed

DjDeveloperr wants to merge 1 commit into
integration/aurorafrom
m5/sleep-t6050/01-rtkit

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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).


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

…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
DjDeveloperr force-pushed the m5/sleep-t6050/01-rtkit branch from d52260e to 792dc30 Compare November 13, 2026 07:07
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

superseded; reworking privately

@DjDeveloperr
DjDeveloperr deleted the m5/sleep-t6050/01-rtkit branch November 13, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant