Skip to content

pmdomain: apple: pmgr-pwrstate: power gate a domain left clock gated - #3668

Merged
DjDeveloperr merged 3 commits into
mainfrom
satchlj/pmgr-gate-clockgated
Dec 1, 2026
Merged

DjDeveloperr merged 3 commits into
mainfrom
satchlj/pmgr-gate-clockgated

Conversation

@satchlj

@satchlj satchlj commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

What: genpd registers a power domain that is not on as off and never powers it off, so a domain the boot loader left clock gated (still powered) with no consumer stays powered, through system sleep too. Note such domains at probe and power gate them at sync_state, once fw_devlink confirms every DT consumer has probed, only if genpd still holds the domain off, no subdomain is on, and hardware still reads it settled clock gated.

Tested: Exact head ffe20ff768258445e1734f84354f7d40d89393c3:

  • J413 (M2 MacBook Air, T8112): PASS on default command line, one-shot test boot with read-only root — boots with 0 failed units, keyboard and trackpad present, GPU renders before and after s2idle (10 s RTC wake, rc 0), Wi-Fi associates, 80 genpd domains off afterwards.
  • J773g (M4 Mac mini, T8132): PASS on two boots (reported in comments below, resolving the earlier probe-time failure at 2d286282) — both lab and stock default graphical boots reached the network with 0 failed units, display connected, GPU smoke CRC b022fbaf match, 0 GPU faults/WARNs; power-controller@250 ran sync_state cleanly once the GPU probed, and power-controller@308 stayed pending due to unbound 421094000.iommu (leaving its domains untouched).
  • Host tests: tools/testing/selftests/drivers/apple/pmgr-inherited.py and PMGR power state KUnit PASS, covering probe-only noting, single sync_state gating, and leaving raised/subdomain-active/moved/mid-transition domains untouched.

Risk: two-way door · all Macs (shared pmgr-pwrstate driver). Gating now waits until sync_state (after every DT consumer has probed) and skips any domain raised by a consumer, with an active subdomain, or not still settled clock gated; only a firmware-used domain with no DT consumer link and still settled clock gated would be gated.

Not yet: additional SoC families beyond T8112 and T8132 (M1 Pro, M3 Air, M4 Pro, Neo).

Details

apple_pmgr_ps_is_active() treats only an actually-on domain (or one auto-managed toward on) as active, so genpd starts any other as off. genpd never calls power_off for a domain it already holds off. A domain the boot loader left at clock gated (target 4) with no consumer raising it is therefore never gated: on J413 that is ten domains (four MCA clusters without a stream, aft0, fpwm2, spi5, uart8, isp_set4 and soc_spmi0) that otherwise stay powered through deep sleep.

Power gating at probe ran before consumers attached and broke boot on J773g (2d286282). Instead, probe records boot_clkgated for domains that are not active, not always-on, and settled clock gated (target 4, actual 4, not busy). In apple_pmgr_ps_sync_state(), after calling of_genpd_sync_state(), the driver checks under genpd.slock that genpd.status == GENPD_STATE_OFF, sd_count == 0, and hardware still reads settled clock gated before calling apple_pmgr_ps_set(PWRGATE). A domain whose consumer never probes never reaches sync_state and stays as the boot loader left it.

Evidence

Earlier J413 (M2 Air, firmware 27.2) deep-sleep drain check with GPU and desktop live, battery energy_now (steps of about 11.4 mWh):

Kernel Domains genpd-off but not gated Sleep drain (1202 s)
sleep series, without this patch 10 (target 4) 0.51 W before lowering audio domains by hand
sleep series + this patch 0 under 0.034 W

@satchlj
satchlj requested review from a team as code owners November 30, 2026 00:34

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: HOLD at cef3aeb8a42a.

The new probe-time predicate accepts every nonzero target when active is false. For example, an ordinary domain with actual state clock-gated, target active, and auto-PM disabled is classified inactive by apple_pmgr_ps_is_active(). The new branch can then replace that pending power-up with a power-gate request. It can also take the branch while the register reports a transition.

Please limit probe-time gating to the settled clock-gated state shown in the J413 receipt. Add a control that leaves an active target or a busy transition untouched. Keep the J413 evidence and verify the corrected change on current main and a second generation before landing.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probe can power gate any inactive non-ALWAYS_ON domain with a non-gated target. That does not establish that firmware or a consumer outside the Linux genpd graph no longer needs it. Skip firmware-owned and retained domains and require an explicit hardware or firmware ownership contract before gating an otherwise unclaimed boot-left domain. Keep peer-SoC boot and wake coverage.

@satchlj
satchlj force-pushed the satchlj/pmgr-gate-clockgated branch from cef3aeb to 104fc07 Compare November 30, 2026 00:40
@satchlj

satchlj commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

Review fix: gate only a domain settled at clock gated (target and actual both clock gated, BUSY clear). A domain whose target is already on but whose actual state still reads clock gated, or one mid-transition, is left alone. The J413 domains from the earlier row all read 0x244 (target 4, actual 4, not busy), so they are still gated.

Old head cef3aeb8a42a, new head 104fc07b9887. The exact-head row is being built.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The settled target/actual and BUSY checks avoid interrupting an active transition. A settled clock-gated state still does not establish firmware ownership. The new guard can still power-gate a firmware-owned or retained domain. Please require an explicit ownership contract or opt-in for probe-time gating.

@github-actions github-actions Bot added area:power Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 30, 2026
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Merge readiness at ffe20ff7: not ready yet

Check Detail
CI at head ok 7 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok comment at ffe20ff7
Conflicts ok not computed yet
PR text ok Risk: two-way · all Macs (shared pmgr-pwrstate driver). Gating now waits until syncstate (after every DT consumer has probed) and skips any domain raised by a consumer, with an active subdomain, or not still settled clock gated; only a firmware-used domain with no DT consumer link and still settled clock gated would be gated.

Areas: area:power

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@satchlj

satchlj commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

104fc07b9887 on J413 (M2 Air), PASS: exact head on main, the default kernel config, default command line plus the trial marker and watchdog.open_timeout=120. T8112 sleep is off on main, so this is a boot row.

  • Every domain genpd holds off reads power gated in hardware (0 left at clock gated); no "cannot power gate" warnings.
  • GPU render check passed at boot and a minute later.
  • Error-level kernel messages: 8, against 13 on the packaged default kernel of the same machine; none from pmgr-pwrstate.
  • Not from this PR: speakersafetyd fails on this boot (snd_ctl_elem_lock returns EPERM). It fails the same way on a trial kernel without this patch, and runs on the packaged default kernel.

The deep-sleep result is in the PR body (this patch on the sleep series).

@satchlj

satchlj commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

host-tests fix: the probe host test (apple/pmgr-inherited) builds the driver probe and lacked a dev_warn() stub. The new head adds it, plus a case checking that only a domain settled at clock gated is gated (target on, already gated, mid-transition and busy are left alone); the case fails against the earlier unbounded condition. Kernel code unchanged from 104fc07b9887.

Old head 104fc07b9887, new head 0b0e7d2af1cd.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: HOLD at 0b0e7d2af1cd

Blockers:

  • Hosted CI at 0b0e7d2af1cd is still queued (host-tests, kunit, pr-text, readiness queued/cancelled; apple-build not yet green at head).
  • Multi-generation hardware verification is still pending (as noted in Not yet and prior review): pmgr-pwrstate.c probes on every Mac family, and only J413 (M2 Air) has been verified so far; boot/wake regression rows on at least one second SoC family (e.g., M1 Pro / M3 / M4 / M5) are needed to confirm no bootloader-left 0x44 domain without a DT consumer regresses when power-gated at probe.
  • The open CHANGES_REQUESTED review from 104fc07b on probe-time ownership semantics for unclaimed boot-left domains still needs to be resolved before merge.

Checked:

  • 0b0e7d2a (tools/testing/selftests/drivers/apple/pmgr-inherited.py): verified dev_warn() stub fixes the host-tests build break, TAP plan updates cleanly (1..5 -> 1..6), and case 5 verifies both gating of settled 0x44 (TARGET=4, ACTUAL=4, !BUSY) and leaving 0x4f (rising), 0x00 (already gated), 0x40/0x04 (mid-transition), and 0x44 | APPLE_PMGR_BUSY untouched.
  • 104fc07b (drivers/pmdomain/apple/pmgr-pwrstate.c): verified ps->firmware_owned, ps->inherited_on, ps->auto_managed, and apple,always-on domains cannot reach if (!active && !(ps->genpd.flags & GENPD_FLAG_ALWAYS_ON)) at probe (firmware_owned and inherited_on set active = true and GENPD_FLAG_ALWAYS_ON; auto_managed exits -EIO/-ENODEV when !active; always_on sets GENPD_FLAG_ALWAYS_ON), and APPLE_PMGR_PS_MIN only bounds hardware auto-PM rather than explicit software TARGET=0.
  • Verified J413 exact-head boot row (104fc07b, kernel code unchanged at 0b0e7d2a: 0 clock-gated genpd-off domains, 0 gate warnings, GPU render PASS) and earlier J413 deep-sleep drain improvement (0.51 W -> < 0.034 W), human Signed-off-by on both commits, MERGEABLE on main, and no Apple material or AI attribution.
Evidence
  • Head: 0b0e7d2af1cddee9cf2a231cf1d5f95c5db6cc0f (base: main, MERGEABLE, +36/-3, 2 files, 2 commits).
  • Non-blocking nits:
    • The Details section of the PR body still describes the pre-104fc07b predicate ("whose target is above power gated") rather than the settled clock-gated check (TARGET == CLKGATE && ACTUAL == CLKGATE && !BUSY).
    • If apple_pmgr_ps_set(&ps->genpd, APPLE_PMGR_PS_PWRGATE, false) fails, TARGET has already been written to 0 (PWRGATE), so the warning text "left as it is" is slightly imprecise (though harmless for an already-inactive domain).

@github-actions github-actions Bot removed ci-failing A check failed at the PR head (bot) needs-hw-row No hardware row at the PR head (bot) labels Nov 30, 2026
genpd registers a domain that is not on as off, and it never powers off
a domain it already holds off. A boot loader can leave a domain clock
gated: not on, so genpd holds it off, but still powered. With no
consumer to raise it, nothing ever gates it, and it stays powered
through system sleep.

On a J413 (M2 Air) ten domains are left that way, among them four MCA
clusters with no stream, and they are most of what is still on when the
system sleeps.

At probe, gate a domain genpd will hold off that has settled clock
gated: target and actual state both clock gated, no transition
pending. A domain still on its way to another state is left alone. Its
consumers raise it as before.

Signed-off-by: Satya Benson <[email protected]>
The pmgr probe host test builds the driver's probe, which now gates a
domain the boot loader left clock gated and warns when it cannot. Stub
dev_warn() so it compiles, and check that only a domain settled at clock
gated (target and actual both clock gated, not busy) is gated: one on its
way on, already power gated, mid-transition or busy is left alone.

Signed-off-by: Satya Benson <[email protected]>
@satchlj
satchlj force-pushed the satchlj/pmgr-gate-clockgated branch from 0b0e7d2 to 2d28628 Compare November 30, 2026 03:00
@satchlj

satchlj commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

Rebased onto current main (45d7f828e08a), which contains #3672 (the apple-dcp host-test fix). Conflict-free; both commits keep their patch-ids.

Old head 0b0e7d2af1cd, new head 2d286282dd51. The J413 rows at 104fc07b9887 and 0b0e7d2af1cd stand for the same code. For the M1 Pro / M3 Air / M4 Air / M4 Pro / Neo boot rows, 2d286282dd51 is the head to quote.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH at 2d286282.

The rebase preserves the settled clock-gated check and its host regression. I verified that domains explicitly marked firmware-owned, inherited-on or always-on skip this branch. The remaining gap is an unmarked domain retained for a firmware or non-genpd user. The probe has no positive release or ownership signal and does not inspect consumer use. Please require a documented handoff or opt-in and cover the case where an otherwise identical clock-gated domain lacks that permission. Keep the J413 result, hosted checks and peer-family validation.

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) and removed ci-failing A check failed at the PR head (bot) labels Nov 30, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge at 2d286282. Re-check of my review at cef3aeb8.

  1. Gate only a settled clock-gated domain: fixed in 104fc07b. Target and actual must both be clock gated with BUSY clear, so a pending power-up or a transition is left alone.
  2. A host control for those cases: added in 0b0e7d2a. The test case fails against the old unbounded condition.
  3. J413 on current main: done at 104fc07b, which has the same patch-id as this head. Every domain genpd holds off reads power gated, and there are no gate failures.
  4. Still missing: a boot row on a second generation. pmgr-pwrstate probes on every Mac. A domain left clock gated with no DT consumer but used by a coprocessor or firmware would now lose power at probe, and only another SoC can show whether one exists. Any one of the M1 Pro, M3 Air, M4 Air, M4 Pro or Neo boot rows you listed closes this. Report whether any domain was gated at probe, and that the devices with firmware owners still work: audio, input, Wi-Fi, display.

@satchlj

satchlj commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

Holding this after the J773g failure: the handoff went out, but the machine never reached the network. Here's an offline analysis to check against the hypervisor log.

What the change does on T8132. At each domain's own probe it power gates the domain if target and actual both read clock gated, nothing is pending, and the domain isn't always-on. apple,always-on, apple,firmware-owned, apple,inherited-on and apple,auto-managed all set always-on, so those are excluded. The probe runs before any consumer has attached and before the domains registered after it exist. So it can't know whether a consumer will adopt state the boot loader left in that domain.

Which T8132 domains can be hit. 124 of the 145 domains in t8132-pmgr.dtsi carry none of those four properties. No unprotected domain is the parent of a protected one, so a running child under a gated parent isn't the cause. The unprotected ones that matter for "boots but never reaches the network" on a Mac mini:

  • PCIe: ps_apcie_gp, ps_apcie_sys_gp, ps_apcie_phy_sw, ps_apcie_st, ps_apcie_sys_st. Ethernet and Wi-Fi sit behind them. T8132's controller isn't an adopt-link one, so it should retrain from cold. But if the boot loader left the PHY or system domain clock gated with tunables or link state in it, gating at probe throws those away.
  • External display: ps_dispext{0,1}_{sys,fe,cpu}. The mini's only display path. A scanning-out DCPEXT wouldn't read clock gated, but one parked by the boot loader could.
  • Also unprotected: ps_sio_cpu and the ATC *_pcie / *_cio_pcie domains.

Which of these actually read target = actual = 4 at handoff is the hardware fact the log will give: the per-domain PS ...: left clock gated by the boot loader, power gating it lines, with dyndbg="file pmgr-pwrstate.c +p".

Proposed narrowing (no chip gate). Move the gate from probe to the provider's sync_state. With fw_devlink, that runs only after every consumer the DT names for the domain has probed. At that point, gate a domain only if:

  • genpd still holds it off,
  • no subdomain is on, and
  • the hardware still reads clock gated.

A consumer that adopts the boot loader's state (PCIe, DCPEXT, NVMe) raises its domain when it attaches, before this runs. A domain whose consumer never probes is left clock gated, as on main today. A domain with no DT consumer at all, the case this PR targets, is gated once probing settles. The fallback stays the current behaviour, and the selection comes from the DT's consumer links, not a SoC list.

I'll rework the commit along these lines, then re-run it on J413, where the probe-time version passed. If the log shows a domain that has a consumer and is still lost, I'll look at that domain specifically.

@satchlj
satchlj marked this pull request as draft November 30, 2026 21:48
…c_state

Power gating a domain the boot loader left clock gated at its own probe
runs before any consumer has attached, and before the domains registered
after it exist. A consumer that takes over state the boot loader left in
its domain then finds it lost. A J773g (T8132) boot with the probe-time
gate never reached the network, while main booted fine.

Note the domain at probe instead, and power gate it from the driver's
sync_state, which fw_devlink calls once every consumer the devicetree
names for it has probed. It is gated only if genpd still holds it off,
no subdomain is on, and the hardware still reads it settled clock gated.
A consumer that took the domain over raised it first. A domain whose
consumer never probes stays as the boot loader left it, as before this
series. The driver now has its own sync_state, so it calls
of_genpd_sync_state() itself.

Signed-off-by: Satya Benson <[email protected]>
@satchlj

satchlj commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

Pushed ffe20ff7, which moves the gate to sync_state as described above. Probe only notes a domain the boot loader left settled clock gated. The driver's sync_state runs after every DT consumer of the domain has probed, and power gates the domain only if genpd still holds it off, no subdomain is on, and it still reads clock gated. The driver now calls of_genpd_sync_state() itself.

Tested: host test tools/testing/selftests/drivers/apple/pmgr-inherited.py, 6/6. Case 5 now checks no write at probe, one write at sync_state, and none when the domain is on, has a subdomain on, or has moved since probe. W=1 build of pmgr-pwrstate.o is clean, and checkpatch --strict is clean.

Not yet tested on hardware: a J413 row at this head is next. Dj's J773g log will show whether any domain the probe-time version gated has a consumer, which is the case this change guards against. Staying draft until both are in.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Nov 30, 2026

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving gating to sync_state addresses the early-probe race for DT consumers. The new checks also preserve a domain raised by a consumer or an active subdomain. The remaining case is a boot-left clock-gated domain used by firmware without a DT consumer link. A genpd-off state and zero active subdomains do not establish that firmware released it. Please document an ownership guarantee that rules that case out or require a positive handoff signal, with a regression test for a domain without it. The current sync_state implementation also needs a current-head boot/wake result and a second SoC family.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please recheck the observed J773g boot failure on the current sync_state implementation and report the J413 run for the claimed gating behavior. The earlier probe-time version failed to reach the network on J773g. A new ownership flag is unnecessary unless the recheck demonstrates that the sync_state change still gates a domain with a live user.

@satchlj

satchlj commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

Row at ffe20ff7 on an M2 MacBook Air (J413, T8112), default command line, one-shot test boot with a read-only root:

  • boots; 0 failed units;
  • keyboard and trackpad present;
  • GPU renders before and after one s2idle cycle (10 s RTC wake, rc 0);
  • Wi-Fi associates;
  • 80 genpd domains off afterwards.

That's the same result as the probe-time version on this machine. The question the rework answers, a domain with a consumer being gated before that consumer attaches, only showed on J773g, so this stays draft until a J773g boot at this head (and ideally Dj's hypervisor log) is in.

@DjDeveloperr

Copy link
Copy Markdown
Contributor

J773g (M4 Mac mini, T8132): 2d286282 FAIL, current head ffe20ff768258445e1734f84354f7d40d89393c3 PASS on two boots.

  • 2d286282 (gate at probe): FAIL. m1n1 handed over to the kernel normally, but the Mac never came up on the network within 150 s and there was no kernel log to collect. The harness force-rebooted it to the saved stock kernel, which came up clean. Main dbfbced7 booted through the same harness on this Mac minutes before and after.

  • ffe20ff7 (gate at sync_state): PASS. Exact head (source tree checked equal to the head's tree), built with the current main J773g config, release 7.3.0-ARCH-m4k3668-ffe20ff7, its own DTB.

    Boot Kernel cmdline GPU module Display GPU smoke CRC b022fbaf Failed units GPU faults / WARN
    1 lab default, GPU module loaded after boot loaded connected, enabled match 0 0
    2 stock default, GPU module at boot, graphical target loaded at boot connected, enabled match 0 0
  • What sync_state did on this Mac:

    • power-controller@250: on boot 2, sync_state ran once the GPU had probed. There's no "pending" line at 18 s, and the GPU's own power request went through (GFX target=0xf … error=0). On boot 1 it was still pending at 18 s, because that harness loads the GPU module later.
    • power-controller@308: sync_state() pending due to 421094000.iommu on both boots. That node is apple,t8132-dart-smmu, which nothing in this tree binds, so domains under @308 are never gated on J773g with this tree.
    • The genpd summary is the same on both boots apart from gfx/gfx-tvm, which are on while the GPU is in use. The kernel log doesn't show which domains were gated at sync_state, so this row doesn't measure the power saving itself.
  • Afterwards: each boot returned to the saved stock kernel and passed the stock checks.

@satchlj
satchlj marked this pull request as ready for review December 1, 2026 06:57
@satchlj

satchlj commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Both current-head rows at ffe20ff768258445e1734f84354f7d40d89393c3 are in and passing (J413 M2 Air and J773g M4 Mac mini two-boot PASS, resolving the earlier probe-time failure at 2d286282), and the PR description is updated to match the sync_state implementation. Moving out of draft for re-review.

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 1, 2026
@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Dec 1, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Boot rows at ffe20ff7: J615 (M3 Air, T8122) PASS, J616s (M4 Pro, T6040) PASS.

Kernel 7.3.0-aurora-fleet92 = main a171afd2 + this head + #3705 6d632d43 + #2673 9c353d74, one-shot boot on the default command line on each Mac, saved Stage 2 and DTB unchanged:

J615 J616s
boot, SELinux enforcing, failed units yes, 0 yes, 0
oops/WARN, AVC, DART faults, GPU faults 0 / 0 / 0 / 0 0 / 0 / 0 / 0
cannot power gate it warnings 0 0
DCPs bound, internal panel 2, eDP lit 3, eDP lit
Wi-Fi + gateway ping yes yes
s2idle (RTC wake) 2/2, Wi-Fi back 2/2

The only errors are the two DWC3 genpd_prepare returns -11 lines at suspend, which the saved kernels log the same way. The J473 (M2 mini) also booted this kernel with 0 cannot power gate warnings, 2/2 s2idle; its display result there is about a Stage 2 pairing, not this change. The M1 Pro and J713 rows follow.

@RyanTheTide

Copy link
Copy Markdown
Contributor

J713 (M4 Air, T8132) at ffe20ff7: PASS. Kernel 7.3.0-aurora-fleet93 = main a171afd2 + this head + #3705 + #2673 + #3689, one-shot boot, saved Stage 2 unchanged: Enforcing, 0 failed units, 0 oops/AVC/DART/GPU faults, 0 cannot power gate warnings, three DCPs bound, internal panel lit, Wi-Fi up, s2idle 2/2 with Wi-Fi back.

M1 Pro (J316s, T6000): FAIL to investigate. The same kernel family (fleet92 = main a171afd2 + this head + #3705 + #2673) booted clean (0 failed, 0 faults, 0 cannot power gate), then the Mac reset at the first s2idle (RTC wake via apple-pmu-rtc), with nothing in the journal. The saved kernel (main 933f8226) suspends and wakes on the same command. Not yet attributed: an A/B with this PR reverted (same tree otherwise) is built and runs when the Mac is back.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed ffe20ff. Probe records the settled state without writing it. The sync_state callback takes the genpd lock and rechecks domain state, active subdomains, and the hardware target, actual state and busy bit before gating. The current J413, J773g, J615 and J616s rows cover boot and wake across the affected families. The PMGR KUnit and host checks passed.

@DjDeveloperr
DjDeveloperr merged commit 1d9a2ac into main Dec 1, 2026
11 of 15 checks passed
@DjDeveloperr
DjDeveloperr deleted the satchlj/pmgr-gate-clockgated branch December 1, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:power Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants