Skip to content

pmdomain: apple: pmp-report: start on under a running PMGR domain - #542

Closed
RyanTheTide wants to merge 1 commit into
integration/aurorafrom
fix/pmp-entry-boot-on
Closed

RyanTheTide wants to merge 1 commit into
integration/aurorafrom
fix/pmp-entry-boot-on

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

On the J616s every boot logs

power-controller@490: failed to add to parent domain: -22 (report -> power-controller)
power-controller@490: probe with driver apple-pmgr-pwrstate failed with error -22
power-controller@498: deferred probe pending: supplier power-controller@490 not ready

iBoot leaves DISPEXT1_SYS on. Its parents are FAB7_SOC and the PMP request entry pmp-dispext1, and a report entry always registered its genpd off. genpd will not add an active domain under an off parent, so DISPEXT1_SYS failed to probe, and DISPEXT1_FE and dcpext1 waited behind it for good.

The entry now reads the state of the PMGR domains that name it as a parent, through the PMGR syscon as the PMP start check already does. If one is running, it raises the request at once and registers on. A running device needs that request anyway. genpd keeps the entry on until its consumers have probed and drops it when the last child powers off, so an unused entry is not left on.

Platforms whose report entries have no active child at probe are unchanged. If one had an active child, it would have hit the same -22.

Testing so far: W=1 build of drivers/pmdomain/apple/pmp-report.o. It still needs a J616s boot to confirm DISPEXT1_SYS probes, and a full build with the host selftests.

🤖 Generated with Claude Code

A PMP report entry always registered its genpd off. When the boot loader
leaves a PMGR power state below the entry on, genpd refuses to add that
active domain under an off parent, and the PMGR domain fails to probe.
On the J616s iBoot leaves DISPEXT1_SYS on, so every boot logged

  power-controller@490: failed to add to parent domain: -22 (report -> power-controller)

and DISPEXT1_FE and dcpext1 deferred for good behind it.

Read the state of the PMGR domains that name the entry as a parent, as
the PMP start check already does through the PMGR syscon. If one is
running, raise the request at once and register the entry on. The
request is what the PMP must hear for a running device anyway. genpd
keeps the entry on until its consumers have probed and drops it when
the last child powers off, so an entry nothing needs is not left on.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Hardware result from tonight's fleet kernel: this change does not fix the J616s probe failure.

7.3.0-aurora-fleet3 is integration/aurora 3aea7d5 with this PR merged in (source 8f36a246). It booted on the J616s as a one-shot and then as the default. Both boots still log the same lines as the aoplid2 baseline:

apple-pmgr-pwrstate 502800000.power-management:power-controller@490: failed to add to parent domain: -22 (report -> power-controller)
apple-pmgr-pwrstate 502800000.power-management:power-controller@490: probe with driver apple-pmgr-pwrstate failed with error -N

Nothing regressed on the J616s, MacBook Neo, M1 Pro or M2. So either the report entry doesn't see DISPEXT1_SYS as active at probe, or the -22 comes from a different parent (FAB7_SOC). The Stage 2 on the J616s is unchanged, so the DT is the Stage 2 I DT.

Leaving this open for rework. Logs are in the fleet-tip report (j616s/fleet3-oneshot.txt and fleet3-default.txt).

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Superseded by #628 (merged into aurora-wip). Starting the report entry on did not fix the -22 (fleet3 and fleet10j both still logged it). The real cause is that DISPEXT1_SYS has two parents, so the bus attaches neither and the PMP entry stays off. #628 fixes that in the DT and pwrstate driver and was validated on the J616s with fleet10k.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant