Repository navigation
soc: apple: sleep-t8122: cover ANE, ISP, and fpwm1 domains at sleep entry - #3971
Conversation
…ntry t8122_ps_all[] omitted the four ANE subdomain power states present in t8122-pmgr.dtsi (ps_ane_mpm 0xc000, ps_ane_cpu 0xc008, ps_ane_td 0xc010, ps_ane_base 0xc018), and t8122_stray[] did not include the ISP sensor and set domains (0x180..0x198, 0x4000..0x4060), ANE domains (0xc000..0xc018, 0x438), or fpwm1 (0x220) that can remain powered at deep-sleep entry on J615. Add the four ANE power states to t8122_ps_all[] and list the ISP, ANE, and fpwm1 domains in child-before-parent order in t8122_stray[] so apple_sleep_lower_stray() turns them off before commit and restores them in reverse order on refusal or wake. Domains already off are untouched, and dry runs perform no power writes. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
satchlj
left a comment
There was a problem hiding this comment.
Reviewed ae94c46cb333 against arch/arm64/boot/dts/apple/t8122-pmgr.dtsi and drivers/soc/apple/sleep-t8122.h:
- All four ANE subdomain power states (
0xc000..0xc018) matcht8122-pmgr.dtsiand keept8122_ps_all[]strictly ascending with no duplicates. - Every added
t8122_stray[]entry (ispsens0..3,isp_set12..0,isp_fe,ane_base/td/cpu/mpm/sys,fpwm1) matches its DTSIregandlabel, appears int8122_ps_all[], has no overlap witht8122_ps_macos_on[]/macos_off[]/wake_order[], and preserves child-before-parent lowering order (ane_basebeforeane_td/ane_cpubeforeane_sys, ISP children beforeisp_sys). - Total
t8122_stray[]count is 44 (withinBITS_PER_LONG). - DCO,
## Risk, KUnit 16/16, and exact-head J615 27.2 default-cmdline + 3/3s2idle+ deep dry-run row all look clean.
LGTM.
|
Local CI receipt for head Tree:
The J615 row in the body is at the exact head and passes (default boot, |
Problem
t8122_ps_all[]indrivers/soc/apple/sleep-t8122.homitted the four ANE subdomain power states defined int8122-pmgr.dtsi(ps_ane_mpm0xc000,ps_ane_cpu0xc008,ps_ane_td0xc010,ps_ane_base0xc018), andt8122_stray[]did not cover the ISP sensor/set domains (0x180..0x198,0x4000..0x4060), ANE domains (0xc000..0xc018,0x438), orfpwm1(0x220) that can remain powered at deep-sleep entry on J615.Change
0xc000,0xc008,0xc010, and0xc018tot8122_ps_all[].ispsens0..3,isp_set12..0,isp_fe(before existingisp_sys),ane_base,ane_td,ane_cpu,ane_mpm,ane_sys, andfpwm1tot8122_stray[]in child-before-parent order (44 entries total, withinBITS_PER_LONG).Domains already powered off at sleep entry are untouched, and dry runs continue to perform no power writes.
Testing
0 errors, 0 warningsonae94c46cb333.apple-sleep-soc-data): 16/16 PASSED inqemu-system-aarch64(includingapple_sleep_test_wordsandapple_sleep_test_books).ae94c46cb333+ J615 (Apple MacBook Air 15" M3, T8122, macOS 27.2 firmware) + default cmdline (7.3.0-m3uportl2, one-shot non-default BLS entry, Stage 2 unchanged, silent) + PASS:/sys/power/mem_sleep = [s2idle],apple_pmpstarted (c6ccb960),aurora-g16bound (Apple M3 (G15G C0)), Wi-Fi OK, eDP connected,Enforcing, 0 Oops/WARN/fault, 0 AVC.s2idle: 3/3 PASS (rtcwake -d rtc0 -m freeze -s 15,suspend_stats/success=3, fail=0).apple_sleep.deep=1in non-default trial entry only, GPU +31ac00000.dcpunbound):dry run: every check passed; refusing before the first stop and the commit.aurora-edge-933f8226(boot_success=1,Enforcing, 0 failed).Risk
Low. Scoped strictly to T8122 (
sleep-t8122.h). Follows the same pattern as #3834; domains already off at entry are untouched and default behavior on J615 remainss2idle.Still to run
WAKE_SLP_DDR) and T8122 27.2 PMP/GPU/DCP sleep follow-ups land.