Repository navigation
soc: apple: enable T6030 suspend-to-RAM on J516s - #3818
DjDeveloperr wants to merge 14 commits into
Conversation
|
Qualification head |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Exact-head J516s (T6030, M3 Pro) hardware qualification PASS at
Non-T6030 shared-driver peer hardware rows (tracked on the prerequisite PRs) and independent review remain open before merge. |
|
Refreshed base branch
|
Exact-head J516s 10-minute deep-sleep soak & dark-wake finding at
|
|
Updated stack to
Building and running final exact-head hardware verification on J516s next. |
There was a problem hiding this comment.
Verdict: REQUEST CHANGES at 121af2b
Failure: drivers/soc/apple/sleep-t6030.h still embeds an Apple tuning table in t6030_boot_replay(). The I2C6 replay identifies those literal entries as ADT tunables and writes the hard-coded values directly. Remove the embedded tuning data from the public change. The table values are omitted here.
Checked: The prior board-name PMGR and AMCC gates are gone. The provider uses named DT resources and validates the supplied operation spans. Both changed binding documents pass dt-doc-validate with their dependencies. The exact quiesce check reports all 13 slots mapped uniquely.
Add the Apple T6030 (M3 Pro) deep suspend-to-RAM provider for apple-sleep with full SEP stop, DT-driven entry/wake register sequences (with explicit slc-off and clear64-way opcodes), PTD/CPM/SLC handshakes, GP PCIe PHY/clock park and wake recovery, PMU RTC alarm re-arming and sleep/wake stage byte updates (writing 0xfe to PMU register 0xf801 on wake, matching the 0x50 stage byte written at sleep entry), and KUnit coverage. Signed-off-by: Diljit Singh <hey@djdev.me>
Add the apple,t6030-sleep controller node with its register windows, phandle links, wake sources, SMC policy, and explicit entry/wake register sequences in t6030.dtsi, add the PCIe sleep register windows, and enable deep sleep on J516s. Signed-off-by: Diljit Singh <hey@djdev.me>
121af2b to
ada9382
Compare
There was a problem hiding this comment.
Verdict: REQUEST CHANGES at ada9382
Failure: t6030_boot_replay() in drivers/soc/apple/sleep-t6030.h still programs the embedded I2C6 table that the source identifies as Apple ADT tunables. The watchdog revision leaves this part of the public patch in place. Remove the embedded vendor tuning data from the public change.
Checked: The new watchdog path selects WD1, extends its deadline after wake, and uses the existing suspend-end restore of the saved watchdog settings. Both DT binding documents are byte-identical to the validated revision. The exact quiesce test passes all 13 slots and rejects the existing misindexed-DART control.
|
Update on J516s qualification and head
|
|
Cross-checked Already clean vs.
|
Replace the apple,pmp-mbox phandle with an optional 34th reg and reg-names entry named pmp-mbox so the sleep controller does not depend on a static mbox@350c08000 node when APPLE_USE_PMP is unset. Signed-off-by: Diljit Singh <hey@djdev.me>
Move pmp_mbox back inside #ifdef APPLE_USE_PMP in t6030.dtsi so default (non-APPLE_USE_PMP) T6030 device trees carry no static PMP nodes, matching t6030-pmp-dt-tests. Map the PMP ASC mailbox from the sleep controller pmp-mbox reg entry via t6030_map_node_name() instead of a phandle to pmp_mbox. Signed-off-by: Diljit Singh <hey@djdev.me>
There was a problem hiding this comment.
Verdict: REQUEST CHANGES at 6b79a80
Failure: drivers/soc/apple/sleep-t6030.h still embeds the unchanged Apple ADT I2C6 tuning table. The resume code writes those literals directly to the controller. Remove the embedded Apple-derived data from the public series.
Checked: Both DT binding documents pass dt-doc-validate. The existing PMP DT check passes the default and static PMP profiles on both covered boards. The quiesce mapping check passes all 13 slots and rejects its misindexed-DART negative control.
|
Updated head to 1. Head
|
Drop the hardcoded I2C6 register values from t6030_boot_replay() and map the I2C6 window once at probe. Snapshot the I2C6 power word and registers before powering I2C6 down in t6030_sleep_after_ans(), unstage PS_I2C6 on wake so sleep_ps_rewake_rest() restores its pre-sleep power state, and write the saved register values back once PS_I2C6 is active again. Signed-off-by: Diljit Singh <hey@djdev.me>
There was a problem hiding this comment.
Verdict: REQUEST CHANGES at f9ab6cb
Failure: The I2C6 table is gone from the tip, but the exact ancestry check confirms that the earlier commit containing it is still in this series. The repository’s ordinary merge would carry that commit into main. Please land a clean successor series on a new branch with the old table omitted from its history.
Checked: The revised code passed local checks for active snapshot and restore, one-time replay, an inactive domain at entry or wake, and an absent controller mapping. The 13-slot quiesce check passed. The DT bindings are unchanged from the validated revision.
|
Superseded by #4067 ( |
What: Enable firmware suspend-to-RAM for J516s (16-inch M3 Pro). The T6030 provider sequences the SMC and PMU handshakes and restores CPU, cache, power-domain and GP PCIe state. J514s keeps the provider disabled.
group == 0OFF-targett336_all[]PMGR domains in child-before-parent order at commit and restore them parent-before-child on undo so unbound DT consumers holdingsync_state()(AES,ISP_SYS,SCODEC) do not block firmware sleep entry.Tested:
pr3818-qual-03, heade9ce12c1c2381a20e24ea1ed3ebf19a02ae7f24f,7.3.0-t6030s2r #64,boot=e8c203da-da14-410c-9946-25636a7b8481): PASSrw,s2idle [deep]default, zero bring-up flags), all 5 removed bring-up module parameters absent, SEPprofile=T6030,sleep_only=1,keystore=closed,xart_writes=0.rtcwake -m mem -s 90, force-discharge):resumes 0 -> 1,sleep=90.06s,awake=1.76s,power_now_uw: -3951000 -> -243000(0.243 W post-wake draw),0 ON and 0 AUTO words failed readback,10 coprocessors up and stopped,179 of 224 AP pins changed and all put back,PMP wake 0x4d0 6us / 0x4c8 8us,RTC proof ap_before=00000000 ap_after=80000000 spmi_before=00000000 spmi_after=00000004 other_armed=00000000,MBSE 0x10650,wake source: NUB.SPMI0.SW3,apple-dcp 28ec00000.dcp V27 wake plain-on 0@86,apple_sepenclave back,aurora-g16firmware back in4737 us,hci_bcm4377hardware reset recovery + calibration/PTB reload +BD_ADDR 60:3e:5f:4a:e8:c8restored.rtcwake -m mem -s 60):resumes 1 -> 2,sleep=59.31s,awake=1.75s,0 ON and 0 AUTO words failed readback,10 coprocessors up and stopped,179 of 224 AP pins changed and all put back,PMP wake 0x4d0 6us / 0x4c8 8us,RTC proof ap_before=80000000 ap_after=80000000 spmi_before=00000000 spmi_after=00000004 other_armed=00000000,MBSE 0x10650,wake source: NUB.SPMI0.SW3,apple-dcp 28ec00000.dcp V27 wake plain-on 0@85,apple_sepenclave back,aurora-g16firmware back in4904 us,hci_bcm4377recovered cleanly.note,g16,t12,T16,mesa) byte-identical to stock boot across both cycles; zero suspend/resume priority 0–3 kernel errors.connected/enabled+ backlight bounce (25 -> 61 -> 37); 16 MiB pre-sleep RW NVMe SHA-256OK+ 16 MiB post-wakefsyncwrite OK;aurora-g16health: failed 0 errno 0 degraded 0,render: count 282, livevulkaninfoApple M3 Pro (G15S B1); Wi-Fiwld0connected5220 MHz(-52 dBm,780/866.7 MBit/s); Bluetoothhci0powered (60:3E:5F:4A:E8:C8);AppleJ516Primary+Secondary PCMs +speakerguardd-v2active (running)(supervising, 12 V/I switches).7.3.0(boot=428632eb-f34e-427f-8014-cd7167d9cea1, both ESPs restored to stockefab68fa..., emptygrubenv, 0 failed units).e9ce12c1c2381a20e24ea1ed3ebf19a02ae7f24f: Clang AArch64 (LLVM=1) built full kernelImage, modules, and both T6030 board DTBs (t6030-j516s.dtb,t6030-j514s.dtb); strictcheckpatch.plreported0 errors, 0 warnings, 0 checksone9ce12c1c238; prior static/host checks atf4811a22d68b(dt-doc-validate, T6030 sleep DTB validation, 45/45 focused host tests) all passed.Risk: two-way door · T6030 (J516s) plus small shared hooks in SMC, GPIO, SPMI, Mesa, DART, and PMP. J514s keeps
t6030_sleepdisabled and J516s Mesa node stays disabled; shared-driver peer rows and independent review are required before merge.Stack
The comparison base (
feat/t6030-s2r-prerequisites,77cfce585fda74ecc0cad6e448caf5b33574fd78) aggregates the current M3 Pro prerequisites over Linuxmainfe7d114c7a08(including merged #3829) plus updated #3808 (ef31630de2bd) and #3763 (c8dcfe3b2d15). Retarget tomainonce the prerequisite series lands.Prerequisites: #3768, #3769, #3805, #3806, #3807, #3808, #3809, #3810, #3812, #3813, #3814, #3815, #3763. Companion userspace PR: aurora-silicon/alarm-aurora#512.