Repository navigation
soc: apple: pmp: carry T6030 firmware data across deep sleep - #3812
Conversation
Use the T6030 registry and power acknowledgements and idle PMP at commit without polling the ASC CPU. Keep the firmware data segment when the sleep engine reloads its text. Extend the mapped range in the T6030 device tree and both PMP overlays so it covers the data. Signed-off-by: Diljit Singh <hey@djdev.me>
|
J516s |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
J516s (T6030, M3 Pro) hardware qualification PASS for exact head
|
|
J714s (M5 Pro, T6050) second-generation peer-control S2R row at exact unchanged head Candidate:
|
satchlj
left a comment
There was a problem hiding this comment.
Verdict: MERGE at 5ae7d67e54e00346449c8377193febed12768707
Blockers: none
Checked: no Apple material, no inappropriate model gating, default command-line compatibility, t6030.dtsi and PMP overlays SRAM sizing, pmp.rs HW_CFG_T6030 profile, pmp-export.c commit-stop / hold_rx / resume_rx / wake_err paths, rtkit.c cpu_control == NULL handling, CI checks, J516s and J714s exact-head hardware receipts, PR text
Evidence
arch/arm64/boot/dts/apple/t6030.dtsi,drivers/soc/apple/t6030-j516s-pmp.dtso, anddrivers/soc/apple/t6030-pmp.dtso: widen the PMP SRAMregwindow from0x80000to0xc0000consistently (0x3a000 + 0x66000 = 0xa0000 <= 0xc0000).drivers/soc/apple/pmp.rs: addsregister_ack_indexandcommit_cpu_downflags toPmpHwConfig(defaultingtrueon all existing profiles,falseonHW_CFG_T6030) and passesnull_mut()forstop.controlwhen!commit_cpu_down.drivers/soc/apple/pmp-export.c&drivers/soc/apple/rtkit.c: verifiedapple_rtkit_sleep_idle_polled()skipsCPU_STATUSpolling safely whencpu_control == NULL;apple_pmp_commit_stop_fn()readsapple_rtkit_mailbox_status()once when!c->control;apple_rtkit_hold_rx()is properly paired withapple_rtkit_resume_rx()on both refused-sleep branches, cleared beforeapple_pmp_wake()on firmware resume, and bypassed cleanly ifwake_err != 0leaves PMP power words off.- Non-blocking nit:
drivers/soc/apple/pmp-export.c:52mentions an internal capture slug in a comment; fine to trim in a follow-up. - Readiness & hardware rows at exact head
5ae7d67e54:pr-readinessgreen (7 checks passed,MERGEABLE, zero conflicts); J516s (T6030,#issuecomment-7324095094) 2-cycle physical deep sleep with PMP SRAM restore and J714s (T6050,#issuecomment-7339042545) second-generation peer-control physical deep sleep both passed.
|
Local CI at head Hosted apple-build, dt-checks and host-tests never ran at this head, because the base moved to
Adding four asserting stubs to the mocks in 'static inline void apple_rtkit_mailbox_recv_off(struct apple_rtkit *r) { assert(!"no system sleep here"); }\n'
+ 'static inline u32 apple_rtkit_mailbox_status(struct apple_rtkit *r) { assert(!"no system sleep here"); return 0; }\n'
+ 'static inline void apple_rtkit_hold_rx(struct apple_rtkit *r) { assert(!"no system sleep here"); }\n'
+ 'static inline void apple_rtkit_resume_rx(struct apple_rtkit *r) { assert(!"no system sleep here"); }\n')
...
'static inline bool apple_sleep_commit_stops_coprocs(void) { assert(!"no system sleep here"); return false; }\n'
+ 'static inline int apple_sleep_coproc_wake_error(struct device *d) { assert(!"no system sleep here"); return -EIO; }\n')The other three host-test failures in the combined run ( |
pmp-export.c now calls apple_rtkit_mailbox_status(), apple_rtkit_hold_rx(), apple_rtkit_resume_rx() and apple_sleep_coproc_wake_error(). The display26 host test compiles it against mock rtkit.h and sleep.h headers that lack these declarations, so -Werror stops on implicit declarations. Add asserting stubs like the existing ones; the display test never reaches system sleep. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
I pushed |
satchlj
left a comment
There was a problem hiding this comment.
MERGE (re-approved at f6f16ec2f262, subject to hosted CI / the existing hold note on the PMP ACK/cooling item).
- Independently verified the interdiff
5ae7d67e...f6f16ec2(ahead: 1, behind: 0): touches onlytools/asahi/display26-tests.py, adding the four asserting mock stubs (apple_rtkit_mailbox_status,apple_rtkit_hold_rx,apple_rtkit_resume_rx,apple_sleep_coproc_wake_error) so the host test builds and passes against currentmain. - Zero kernel or DTS code changes relative to previously approved
5ae7d67e54e0; the J516s and J714s S2R PASS rows at5ae7d67e54e0and local CI receipt (#issuecomment-7345435740,#issuecomment-7345509328) carry over cleanly.
|
J516s (T6030, M3 Pro) deep-S2R PMP ACK and cooling parity check at exact head
|
|
Local CI receipt Tested PR head
|
What: Add the T6030 PMP firmware profile and keep its
__DATASRAM segment across deep sleep. Map the full SRAM aperture in the static tree and both overlays. Use the RTKit held-receive path from the parent PR for the firmware handoff.Tested: All 24 PMP host runs passed. The AArch64 build compiled the PMP Rust and C objects, J516s DTB, and both overlays. Strict checkpatch and whitespace checks passed.
J516s, integrated kernel
af2647f710fd,direct-t357h-02: PMP recovered its0xbaadf1accontext marker after each firmware restart, and both wake windows added zero priority 0–3 kernel records.J516s at exact head
f6f16ec2f262(boot_id=26dabcc4-5c46-43b3-bde1-45279e688760, 2x 20 s physical deep S2Rresumes 0 -> 1 -> 2): PMP reportrunning: 1, PTD request (0x3503c1180) == ACK (0x3503c11c0) ==0x10080pre-sleep and after both cycles, all 15 active SoC/die/battery/NVMe thermal sensors valid,aurora-g16M4 coolingrampedbackstop=8..0(limit=S1..S8), and post-Cycle-2gpubench-vk render.mdipassed (crc 06f8412a,effective S8,health: failed 0). J714s peer-control S2R row also passed at5ae7d67e(kernel code unchanged atf6f16ec2).Risk: Two-way door. The new profile and SRAM size apply to T6030. The firmware idle and restart helpers are shared.
Not yet: Nothing