Repository navigation
Conversation
On conventional Apple PCIe hosts whose links are reinitialized after deep sleep (apple_pcie_s2r_reinit()), leaving PCI-PM/ASPM L1.1/L1.2 substates enabled while endpoints enter D3hot lets the link drop into L1.2 (CLKREQ# deasserted) ahead of the sleep commit, causing a WDT2 reset during deep sleep on T8103. Clear L1SS per physical link in apple_pcie_prepare() for non-s2idle sleeps (after clearing ASPM across all downstream functions and the root port in PCIe spec order, with checked config accesses and full unwind on failure) and restore the saved L1SS configuration in apple_pcie_complete() after wake. s2idle is left untouched. Signed-off-by: Erik Bourget <[email protected]>
Enable supports-clkreq on port00 so PCIe Clock PM and L1.1/L1.2 substates activate by default on the BCM4378 Wi-Fi/BT link. Measured on J313 (M1 MacBook Air, T8103): saves 167 mW Screen-ON (118 mW Clock PM + 49 mW L1SS) and 292-330 mW combined with Wi-Fi power save at DPMS-OFF, while deep sleep resumes cleanly with L1SS restored. Signed-off-by: Erik Bourget <[email protected]>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
Provide stubs for the PCIe L1SS teardown helpers referenced by apple_pcie_prepare() so the s2idle host test fixture compiles cleanly. Signed-off-by: Erik Bourget <[email protected]>
Use kzalloc_obj(*saved) for the L1SS sleep state allocation and declare ret once at the top of apple_pcie_prepare() instead of mixing a mid-block declaration before apple_radio_prepare(). Signed-off-by: Erik Bourget <[email protected]>
Save each link's original PCI_EXP_LNKCTL (root port and all downstream functions) in struct apple_pcie_hib_l1ss before clearing ASPM so a one-shot failure on the ASPM restore write does not leave rollback rereading the cleared Link Control register and dropping ASPM. Merge the saved ASPM bits only when unwinding a failed prepare() via apple_pcie_hib_restore_l1ss(pcie, true); normal completion in apple_pcie_complete() restores L1SS while preserving whatever ASPM configuration the PCI core selected during resume. Remove the L1SS prepare/restore stubs in tools/asahi/pciec-policy-tests.py, wire the production L1SS teardown and restore helpers into the s2idle/sleep test fixture, and test normal completion ASPM preservation as well as one-shot ASPM restore write failures on both the parent port and a downstream function along with negative controls. Signed-off-by: Erik Bourget <[email protected]>
There was a problem hiding this comment.
Verdict at 5c89fbd: finish, then merge. Nothing here crashes or loses data. Three items before it lands:
Blockers:
supports-clkreqnow sits int8103.dtsi, so it turns CLKREQ on for port00 on every T8103 board (J274, J293, J313, J456/J457). Only the J313 has been booted. The J313 ADT backs it:pci-bridge0hasfunction-clkreq = GPIO(0x96)next tofunction-perst = GPIO(0x98), which is the existingreset-gpiospin 152. Please show the samefunction-clkreqonpci-bridge0in one more T8103 board's ADT (a mini or MBP dump), or a regression row on one of them. Otherwise, move the property to the J313 .dts for now. Better still, have the loader set it fromfunction-clkreq, so no per-board line is needed.- apple-build failed on an infra error: apt-get update got a 403 from packages.microsoft.com, so the PR is not at fault. I re-ran that one job; it needs to come back green at this head.
Question (please answer on the PR, not a blocker by itself): the ASPM core already has pci_disable_link_state() / pci_enable_link_state_locked() for turning L1.1/L1.2 off for a window. The 330 hand-written lines of L1SS/LNKCTL writes bypass link->aspm_disable/aspm_enabled, so sysfs link/l1_2_aspm and the core's own restore (pci_restore_aspm_l1ss_state() at resume_noirq) can see a different state than the hardware between prepare and complete. If the core API failed here (locking from .prepare, the reinit re-probe), please say why in the commit message.
Checked:
- The walk does nothing when neither end has L1SS enabled, so hosts that never enable L1SS (no
supports-clkreq) keep today's path. It only runs forapple_pcie_s2r_reinit()hosts on a non-s2idle target. - Rollback order: clear downstream before upstream, ASPM off around the CTL1/CTL2 edits, L1.2 enable bits last. The original LNKCTL is kept across a partial-failure rollback (5c89fbd), and refcounts are balanced on every exit.
pciec-policy-tests.pyadditions cover the new helpers.
Regression row offer
The prepare/complete change runs on every reinit host (T600x, T602x, T8112 too). We can add a no-regression deep-sleep + s2idle row on our M1 Pro (T6000) or J473 (T8112) at this head if that helps. Say which.
Move supports-clkreq on port00 from shared t8103.dtsi into t8103-j313.dts until other T8103 boards (J274, J293, J456, J457) have matching ADT function-clkreq evidence or hardware verification. Signed-off-by: Erik Bourget <[email protected]>
Serialize sleep L1SS teardown and restore with the PCI core ASPM lock and defer PCI-PM L1.1/L1.2 enables until both ends of the link are in PCI_D0. Why pci_disable_link_state() / pci_enable_link_state_locked() are not used directly for temporary sleep suppression: in drivers/pci/pcie/aspm.c, __pci_disable_link_state() sets bits in link->aspm_disable persistently, while __pci_enable_link_state() neither clears link->aspm_disable nor preserves link->aspm_default (it overwrites link->aspm_default = pci_calc_aspm_enable_mask(state), clobbering DT, policy, and sysfs settings). In addition, pci_walk_bus() already holds pci_bus_sem for read, and unmanaged links (pcie_aspm=off, absent link_state, or CONFIG_PCIEASPM=n) still need checked hardware teardown and restore. Look up and validate pdev->link_state under aspm_lock in pcie_aspm_l1ss_sleep_begin_locked(), and snapshot L1SS CTL1/CTL2 and LNKCTL inside the same aspm_lock-protected callback. For eligible core-managed links, keep L1SS sleep suppression armed across the sleep window even when L1SS starts disabled in hardware. On sleep end, pcie_aspm_l1ss_sleep_end() clears temporary sleep suppression, restores timing parameters first, and lets pcie_config_aspm_link() enable policy-permitted L1SS while deferring PCI-PM L1.1/L1.2 until both parent and child are in PCI_D0. Retry deferred enables once a device reaches PCI_D0. For pci_set_full_power_state() this is pci_pm_notify_state_change(), which updates ASPM and calls the new host bridge pm_state_change() hook. For pci_pm_runtime_resume() and pci_restore_standard_config() it is pci_pm_notify_resume(): runtime resume can be reached from pci_walk_bus() in PCIe error recovery with pci_bus_sem held for read, and taking it again there deadlocks behind a queued writer. The ASPM update is queued as a work item that pins the pci_dev and revalidates pdev->link_state under aspm_lock, so a link freed in the meantime is skipped and no cancellation is needed on removal. The host bridge hook takes no PCI core lock and runs inline. In pcie_aspm_pm_state_change(), read pdev->link_state only under aspm_lock (after pci_bus_sem, preserving the lock order), so removal of the downstream function cannot free the link before link->root is dereferenced. For unmanaged links (including CONFIG_PCIEASPM=n), sync saved L1SS state across the sleep window with pci_save_aspm_l1ss_state(), now exported for modular pcie-apple. The restore decides whether to defer PCI-PM L1.1/L1.2, writes the masked configuration and publishes the pending record under one hib_l1ss_lock hold, which the D0 notification also takes, so an endpoint reaching D0 in between is not missed. Pending records are merged across consecutive sleeps and cleaned up on device removal or host teardown. Lock order is pci_bus_sem, aspm_lock, hib_l1ss_lock. Extend tools/asahi/pciec-policy-tests.py with the production ASPM L1SS and PCI runtime-resume helpers to test core-managed and unmanaged D3hot defer, real pci_pm_runtime_resume() D0 re-enable with pci_bus_sem held, link removal racing the notification, a D0 transition racing the unmanaged restore, multi-sleep pending retention, device removal cleanup, initially-disabled link suppression, policy/aspm_disable preservation, and negative controls. Signed-off-by: Erik Bourget <[email protected]>
|
Updated the branch with
Completed local checks at
Live hardware at
CI ( Regression row offer: |
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict at 83e82f7: split, then merge the driver part.
Thanks: the J313-only supports-clkreq (9d86c65) resolves item 1, and your explanation of why pci_disable_link_state() / pci_enable_link_state_locked() do not fit (persistent aspm_disable, aspm_default overwritten, pci_bus_sem already held by pci_walk_bus(), unmanaged links) answers my question. With that reason in the commit message, the driver-local save/restore from 5c89fbd is fine.
Blocker: 83e82f7 now changes PCI core for every Mac: aspm.c (+142), pci.c (+44), the runtime-resume path in pci-driver.c, and a new host-bridge pm_state_change() hook in include/linux/pci.h. That is a separate change with a much wider reach than "L1SS around deep sleep on T8103". It needs its own review by someone who knows the ASPM core, plus rows on several generations. Please split it:
- This PR: 5c89fbd's driver-local L1SS handling, the rationale above in its commit message, and 9d86c65 (J313
supports-clkreq). The J313 rows you already have cover it, so it can merge on CI. - New PR: the core ASPM, D0 recheck and host-bridge hook work, with its own Tested/Risk. We can add M1 Pro (T6000) and J473 (T8112) no-regression rows there.
If the driver part really cannot be correct without the core changes, please say which failure 5c89fbd has (a log or a host-test case), and we will review them together.
|
Split #3221 cleanly into two PRs per review feedback, without rewriting #3221's branch history:
Closing #3221 as superseded by the two split PRs (#3494 and #3495). |
What: Disable PCIe L1.1/L1.2 substates per link around deep sleep on reinit hosts (
apple_pcie_s2r_reinit()) via ASPM-core-serialized sleep hooks (pcie_aspm_l1ss_sleep_begin_locked()/pcie_aspm_l1ss_sleep_end()), retry deferred PCI-PM L1.1/L1.2 enables once both ends reachPCI_D0(including viapci_pm_runtime_resume(), without takingpci_bus_semagain, and for unmanaged /CONFIG_PCIEASPM=nlinks), and enablesupports-clkreqon J313 (T8103)port00, saving 167 mW Screen-ON (and 292–330 mW with Wi-Fi power save at DPMS-OFF) while keeping deep S2R clean.Tested: Live hardware and local checks at head
83e82f78ee02(stacked on9d86c6538395, which movessupports-clkreq;fromt8103.dtsitot8103-j313.dts; default kernel command line):s2r_reinit=true, primary target): Root port00:00.0+01:00.0(Wi-Fi) +01:00.1(BT) have L1.1/L1.2 enabled inL1SubCtl1(ASPM and PCI-PM),T_PwrOn=6us,ClockPM+on both endpoints, and all 6 sysfs link attributes (clkpm,l1_aspm,l1_1_aspm,l1_2_aspm,l1_1_pcipm,l1_2_pcipm) =1. Passed 5×s2idle+ 5×deepS2R (including a 4-sleep chaindeep -> s2idle -> deep -> deep):lspci -vvvL1SubCtl1/2,LnkCtl, andClockPMrestored identically to boot after every wake, link stayed 5GT/s x1, AER clean,0Oops/BUG/WARN/SError.s2r_reinit=false, unaffected-Mac check for shared PCI core change): Clean boot on default command line (ASPM L1 +ClockPM++ L1.1/L1.2 active; CalDigit TS5 authorized;0Oops/BUG/WARN/SError). Runtime-PM churn across 5×power/controltoggle cycles on 3 idle dock bridges (0001:02:01.0,0001:02:02.0,0001:02:03.0) recorded 15pci_pm_runtime_resume, 15pci_pm_runtime_suspend, and 30pcie_aspm_pm_state_change_deferredkprobe hits with0dmesg errors. Passed 3×s2idle(rtcwake -d /dev/rtc1 -m freeze -s 5): 3/3 successes, Wi-Fi + Ethernet + CalDigit TS5 +eDP-1intact,0new PCI/ASPM/AER/lockdep/Oops/BUG/WARN/SError lines.Clock PM off: the host does not handle CLKREQ#;lspci -vvvASPM/ClockPM/L1SS state matched baseline before and after 2×pm_test=devicescycles (mem+freeze), Wi-Fi recovered cleanly,0PCIe/ASPM/AER/Oops/WARN lines.83e82f78ee02:pciec-policy-tests.py39/39 PASS (4 positive + 35 negative controls exercising extracted production C helpers frompcie-apple.c,aspm.c,pci.c, andpci-driver.cincludingpci_pm_runtime_resume()withpci_bus_semheld, link removal racing the ASPM notification, and a D0 transition racing the unmanaged restore),radio-{pm,sleep-fence,sleep-power,sleep-snapshot}-tests.py4/4 scripts pass (5/5 PASS lines),binding-lifetime-tests.py3/3 pass,checkpatch.pl --strict --git 5c89fbdf4ddc..83e82f78ee020 errors/0 warnings/0 checks (full PR rangeorigin/main..83e82f78ee02: 0 errors, 2 warnings in first commitd5f09ab9bc6d, both superseded in-tree by67a81e9c2593),ARCH=arm64 LLVM=1fullvmlinux+modulesbuild throughmodpostwithCONFIG_PCIE_APPLE=mfor bothCONFIG_PCIEASPM=yandCONFIG_PCIEASPM=n(pcie-apple.ko, 0 undefined symbols, 0 warnings),W=1 CHECK_DTBS=ybuild withCONFIG_PCIEASPM=y(drivers/pci/pcie/aspm.o,drivers/pci/pci-driver.o,drivers/pci/pci.o,drivers/pci/controller/pcie-apple.o, andapple/{t8103-j313,t8103-j274,t8103-j293,t8103-j456,t8103-j457,t6050-j716c}.dtb; no warnings from thesupports-clkreq/port00change, only pre-existing dtc and schema warnings int8103.dtsi, the T8103 board files, andt6050-*.dtsi), andCONFIG_PCIEASPM=nW=1build ofaspm.o,pci-driver.o,pci.o, andpcie-apple.o(0 warnings). Earlier-head power A/B and docked candidate runs (5c89fbdf4ddcand pre-hardening J313 baseline) are preserved under Evidence.Risk: two-way door · all Macs (PCI core runtime-resume / D0 ASPM recheck); Apple
s2r_reinithosts for the sleep hooksNot yet: Live D3hot->D0
pci_pm_runtime_resume()on a J313s2r_reinitendpoint (J313's only two endpoints are Wi-Fi/BT carrying SSH with runtime PM off; thepci_pm_runtime_resume()->pcie_aspm_pm_state_change_deferred()path was exercised live on J713 dock bridges via kprobes and in host race tests),PROVE_LOCKINGlockdep boot, unattended real sleep on J716c (exercised viapm_test=devices; unattended RTC wake is blocked becauseapple,t6050-pmu-rtchas nointerruptsint6050-j716c-sleep.dtsi/rtc-apple-pmu.c), and other T8103/T600x Macs not in this lab (supports-clkreqis scoped tot8103-j313.dtsuntil ADTfunction-clkreqevidence or board verification is available for J274, J293, J456, and J457).Details
port00caused a WDT2 reset duringdeepS2R (wake sources 00000000 00400000) when endpoints entered D3hot and dropped into PCI-PM L1.2 (CLKREQ# deasserted) ahead of the sleep commit.apple_pcie_prepare(), forapple_pcie_s2r_reinit()hosts entering non-s2idlesleep, walk each downstream/root port link once and callpcie_aspm_l1ss_sleep_begin_locked(), which takesaspm_lockbefore looking up and validatingpdev->link_state. Insideapple_pcie_hib_disable_l1ss_link()(underaspm_lock), snapshotPCI_L1SS_CTL1/CTL2andPCI_EXP_LNKCTLacross the root port and all downstream functions, clear ASPM across all downstream functions and the root port, clearPCI_L1SS_CTL1downstream-before-upstream, and restore ASPM. On eligible core-managed links where L1SS starts disabled in hardware, keeplink->aspm_sleep_disablearmed across the sleep window so concurrent ASPM updates cannot enable L1SS before sleep. Check every config read/write and passrollback = truetoapple_pcie_hib_restore_l1ss()on prepare failure unwind (plusapple_radio_complete()) soapple_pcie_hib_merge_aspm()restores the saved ASPM bits if a one-shot ASPM restore write failed.pci_disable_link_state()/pci_enable_link_state_locked()are not used directly (also documented in commit83e82f78ee02): indrivers/pci/pcie/aspm.c,__pci_disable_link_state()sets bits inlink->aspm_disablepersistently (pcie_config_aspm_link()masks against~link->aspm_disable), while__pci_enable_link_state()neither clearslink->aspm_disablenor preserveslink->aspm_default(it overwriteslink->aspm_default = pci_calc_aspm_enable_mask(state)). Alsopci_walk_bus()holdsdown_read(&pci_bus_sem), and unmanaged links (pcie_aspm=off, absentlink_state, orCONFIG_PCIEASPM=n) still need checked hardware teardown and restore.pcie_aspm_l1ss_sleep_begin_locked()andpcie_aspm_l1ss_sleep_end()(usinglink->aspm_sleep_disableinstruct pcie_link_state) serialize L1SS teardown and restore withpci_bus_semandaspm_lock, clearlink->aspm_enabledL1SS bits and syncpci_save_aspm_l1ss_state()across.prepare()/.complete()sopci_restore_aspm_l1ss_state()atresume_noirq(andpcie_aspm_pm_state_change()duringapple_pcie_resume()) keep L1SS suppressed until.complete().apple_pcie_complete(),apple_pcie_hib_restore_l1ss()restoresPCI_L1SS_CTL2andPCI_L1SS_CTL1timing parameters first, then clearslink->aspm_sleep_disableand callspcie_config_aspm_link()so the PCI core enables policy-permitted L1SS while deferring PCI-PM L1.1/L1.2 whenever either end of the link is not inPCI_D0(e.g. a runtime-suspended endpoint inD3hot) until both ends reachPCI_D0.pci_set_full_power_state()callspci_pm_notify_state_change()wheneverdev->current_state == PCI_D0, invokingpcie_aspm_pm_state_change()on bothdev->bus->selfanddev, plusbridge->pm_state_change(), so deferred PCI-PM L1.1/L1.2 enables are retried once both ends reachPCI_D0.pci_pm_runtime_resume()andpci_restore_standard_config()callpci_pm_notify_resume()instead, because runtime resume can run insidepci_walk_bus()in PCIe error recovery withpci_bus_semheld for read andpcie_aspm_pm_state_change()would take it again (deadlock behind a queued writer): the ASPM update is queued as a work item that pins thepci_devand revalidatespdev->link_stateunderaspm_lock(a link freed meanwhile is skipped, so no cancellation is needed on removal), while the host-bridge hook, which takes no PCI core lock, runs inline.pcie_aspm_pm_state_change()readspdev->link_stateonly underaspm_lock(acquired afterpci_bus_sem), so removal of the downstream function cannot free the link beforelink->rootis dereferenced.!core_managed, includingCONFIG_PCIEASPM=nandpcie_aspm=off),apple_pcieupdatespci_save_aspm_l1ss_state()(exported withEXPORT_SYMBOL_GPLsoCONFIG_PCIE_APPLE=mlinks) across the sleep window sopci_restore_state()never replays stale PCI-PM enables, masks PCI-PM L1.1/L1.2 while either end is not inPCI_D0, retains pending restore records inhib_l1ss_pending(merging deferred PCI-PM bits across consecutive sleeps) untilapple_pcie_pm_state_change()applies them once both ends reachPCI_D0, and frees records onBUS_NOTIFY_DEL_DEVICEandapple_pcie_remove()/apple_pcie_cleanup(). The D0 decision, the masked write and the pending-record publish happen under onehib_l1ss_lockhold that the D0 notification also takes, so an endpoint reachingPCI_D0in between is not missed. Lock order:pci_bus_sem,aspm_lock,hib_l1ss_lock.supports-clkreq;to&port00inarch/arm64/boot/dts/apple/t8103-j313.dts(commit9d86c6538395scoped it out oft8103.dtsiso J274/J293/J456/J457 remain untouched until verified).t6050J716c (apple,t6050-pcie),tunneled,managed_sids,piodma_supplier, androot_bus_onlyare all unset/false, soapple_pcie_s2r_reinit()istrueand deep sleep exercises the sharedapple_pcie_prepare()path (whereast8132J713 usesapple,managed-sids, soapple_pcie_s2r_reinit()isfalsethere).tools/asahi/pciec-policy-tests.py, extract productiondrivers/pci/pcie/aspm.c,drivers/pci/pci.c(pci_pm_notify_state_change()), anddrivers/pci/pci-driver.c(pci_pm_default_resume_early(),pci_pm_runtime_resume()) helpers alongsidepcie-apple.c, and test normal completion ASPM preservation, one-shot ASPM restore write failures on both parent and downstream function, core-managed and unmanaged D3hot endpoint defer + realpci_pm_runtime_resume()D0 transition re-enable, multi-sleep pending retention, runtime resume withpci_bus_semheld, link removal racing the ASPM notification, a D0 transition racing the unmanaged restore, device-removal cleanup, initially-disabled core-managed link suppression,aspm_disablepreservation, and negative controls.Evidence
Live hardware at head
83e82f78ee02(default command line)s2r_reinit=true, primary target):00:00.0+01:00.0(Wi-Fi) +01:00.1(BT): L1.1/L1.2 enabled inL1SubCtl1(ASPM and PCI-PM),T_PwrOn=6us,ClockPM+on both endpoints; all 6 sysfs link attributes (clkpm,l1_aspm,l1_1_aspm,l1_2_aspm,l1_1_pcipm,l1_2_pcipm) =1.s2idle+ 5×deepS2R (including 4-sleep chaindeep -> s2idle -> deep -> deep):lspci -vvvL1SubCtl1/2,LnkCtl, andClockPMrestored identically to boot after every wake, link stayed 5GT/s x1, AER clean,0Oops/BUG/WARN/SError.s2r_reinit=false, unaffected-Mac check for shared PCI core change):ClockPM++ L1.1/L1.2 active, CalDigit TS5 authorized,0Oops/BUG/WARN/SError.power/controltoggle cycles on 3 idle dock bridges (0001:02:01.0,0001:02:02.0,0001:02:03.0); kprobes recorded 15pci_pm_runtime_resume, 15pci_pm_runtime_suspend, and 30pcie_aspm_pm_state_change_deferredhits with0dmesg errors.s2idle(rtcwake -d /dev/rtc1 -m freeze -s 5): 3/3 successes, Wi-Fi + Ethernet + CalDigit TS5 +eDP-1intact,0new PCI/ASPM/AER/lockdep/Oops/BUG/WARN/SError lines.Clock PM off: the host does not handle CLKREQ#;lspci -vvvASPM/ClockPM/L1SS state matched baseline before and after 2×pm_test=devicescycles (mem+freeze), Wi-Fi recovered cleanly,0PCIe/ASPM/AER/Oops/WARN lines.Build, style, and host tests at head
83e82f78ee02./scripts/checkpatch.pl --strict --git 5c89fbdf4ddc..83e82f78ee02: 0 errors, 0 warnings, 0 checks (17+1601lines checked)../scripts/checkpatch.pl --strict --git origin/main..83e82f78ee02: 0 errors, 2 warnings in first commitd5f09ab9bc6d(kzallocvskzalloc_objand mid-blockint ret), both superseded in-tree by67a81e9c2593; 0 errors, 0 warnings, 0 checks across all subsequent commits.python3 tools/asahi/pciec-policy-tests.py: 39/39 pass with ASAN/UBSAN (4 positive + 35 negative controls).python3 tools/asahi/radio-{pm,sleep-fence,sleep-power,sleep-snapshot}-tests.py: 4/4 scripts pass (5/5 PASS lines).python3 tools/asahi/binding-lifetime-tests.py: 3/3 pass.ARCH=arm64 LLVM=1fullvmlinux+modulesbuild withCONFIG_PCIE_APPLE=mthroughmodpostforCONFIG_PCIEASPM=yand forCONFIG_PCIEASPM=n:drivers/pci/controller/pcie-apple.ko, 0 undefined symbols, 0 warnings.ARCH=arm64 LLVM=1 W=1 CHECK_DTBS=ybuild withCONFIG_PCIEASPM=yofdrivers/pci/pcie/aspm.o,drivers/pci/pci-driver.o,drivers/pci/pci.o,drivers/pci/controller/pcie-apple.o, andapple/{t8103-j313,t8103-j274,t8103-j293,t8103-j456,t8103-j457,t6050-j716c}.dtb: no warnings from thesupports-clkreq/port00change, only pre-existing dtc and schema warnings int8103.dtsi, the T8103 board files, andt6050-*.dtsi.ARCH=arm64 LLVM=1 W=1build withCONFIG_PCIEASPM=nofdrivers/pci/pcie/aspm.o,drivers/pci/pci-driver.o,drivers/pci/pci.o, anddrivers/pci/controller/pcie-apple.o: 0 warnings.Earlier-head and baseline hardware evidence
t8103, default command line):eDP-1 @ 118/420,kbd=0,wifi_ps=off):4.130 W -> 3.963 W(-167 mW:-118 mWClockPM +-49 mWL1SS).wlan0 power_save=on: -292 to -330 mW combined savings.defaultPASS,powersave(ClockPM only) PASS,powersupersave(L1.1/L1.2) FAIL (WDT2 reset),powersupersave+ L1SS clear/restore PASS.lspci -vv -s 0000:01:00.0:ClockPM+,L1SubCtl1: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+.5c89fbdf4ddc, prior to9d86c6538395and83e82f78ee02) hardware evidence on J313 (M1 Air) in fleet candidate5509a254a6bd(mainfcb124279183plus unchanged heads038ab73f52a6(arm64: dts: apple: t8103: wire USB4 DP-IN AIC interrupts #3220),5c89fbdf4ddc(PCI: apple: disable L1SS around deep sleep and enable CLKREQ on T8103 #3221),2b1bab104938(pmdomain: apple-pmc: resolve display interfaces via consumer-switched power-domains #3297),4b09f0691c2d(drm/apple: toggle display pipe PMC interfaces across S2R domain transitions #3300),d3cf4ca61518(arm64: dts: apple: t6050: allow idle ps_isp_sys domain to power off #3329),b8530d17c96b(soc: apple: pmgr-misc: tiered active fabric/DCS scaling and duty-cycle GPU tracking #3332),262e263dae4c(arm64: dts: apple: mark T8103 and T600x CPU OPP tables opp-shared #3333) and77114190bfb4(soc: apple: sep: report a refused identity unlock, and stop aurora-sep-load on it #3274), merged without conflicts); default command line, J313 device tree built from the candidate on default Stage 2 (1.0.0b17-gf5ddfff2) as a one-shotaura-try, kernel installed next to the default and removed afterwards, Mac docked (Thunderbolt 5 dock with Ethernet and a3840x2160@120external display ondcpext). After boot and after every sleep:wlan0(0% loss) and Bluetooth discovered 62-104 devices in 10 s after each, over the fresh-boot run and its repeat (6 sleeps); in one full run (sleeps 4 and 5 of that boot) Wi-Fi did not reassociate within 30 s after two deep sleeps (iwdconnect-failed, status 16on every BSS; Ethernet and Bluetooth were fine) and did not reproduce. Sleeps: 2 deep sleeps (rtcwake -d rtc1 -m mem -s 30, outputs DPMS-off first) and ans2idleresumed on a fresh boot in 3 separate runs and in a repeat on one of those boots. One full run of the sequence hung ins2idleinstead (PM: suspend entry (s2idle), no resume, hardware watchdog reset the Mac about 80 s later and it came back on the default boot); later runs did not reproduce it, and kernels built from arm64: dts: apple: t6050: allow idle ps_isp_sys domain to power off #3329 alone, soc: apple: pmgr-misc: tiered active fabric/DCS scaling and duty-cycle GPU tracking #3332 alone, and the other six PRs alone each passed the same docked sequence, so it is not attributed to a PR. With the default Stage 2's device tree the kernel instead refuseds2idle(-EBUSY: a DP tunnel to the external display cannot be kept).System:
0failed units after every sequence,0AppArmor denials (SELinux N/A on Arch ARM),0Oops/BUG/WARNING/SError. The kernelerrlines are the 5 that a control boot prints with this dock (apple-dcp ... failed to extract init propsx2,DCPDP2XService admission failed, andof_irq_parse_pcifor the dock's bridge and Ethernet), the deep-sleep resume lines (brcmfmac/hci_bcm4377Unable to change power state from D3hot to D0,PS fpwm1: Failed to reach power state, moreDCPDP2XService admission failed), and at one bootbrcmfmac ... ring 4: r_ptr 0 outside depth 0, which kernels without PCI: apple: disable L1SS around deep sleep and enable CLKREQ on T8103 #3221 also print after deep sleeps.5c89fbdf4ddc, prior to83e82f78ee02) hardware evidence on J716c (t6050) in candidate3e4078f656d5(mainfcb124279183plus unchanged5c89fbdf4ddcand sibling PRs, default command line): booted cleanly to Hyprland (wlan0associated, 5 GHz,0%gateway loss,hci0powered,0new failed units,0LSM denials); after manual wake from a 4h52ms2idle,wlan0reassociated with0%loss and Bluetooth scanned cleanly;rtcwake -m no -s 5confirmedapple,t6050-pmu-rtcalarm IRQ never fires (alrm_pending: no), leaving J716cdeepS2R wake under**Not yet:**.