Repository navigation
pmdomain: apple: pmp-report: start each entry from its request bit - #614
RyanTheTide wants to merge 1 commit into
Conversation
Every report entry registered its genpd as off, whatever the request word held. A PMGR power state that is already on cannot be added below a domain genpd thinks is off, so a chain the bootloader left powered failed to probe. On the MacBook Pro M4 Pro (J616s) DISPEXT1_SYS sits below the DISPEXT1 entry (request bit 18), and every boot logged power-controller@490: failed to add to parent domain: -22 (report -> power-controller) after which DISPEXT1_FE deferred forever and USB-C DisplayPort had no controller. Read the request bit when the entry probes and register the domain in that state. On a report that defers requests until its PMP runs, a bit found set is also kept in memory, so the hand-over writes it back instead of dropping it. Always-on entries are requested from probe on; mark them GENPD_FLAG_ALWAYS_ON so that genpd, which now sees them on, never turns them off as unused. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
J616s boot test, one-shot 7.3.0-aurora-fleet9h (fleet9 695d974 + this PR + #591 + the gamma debug commit, src e2ce1e6e). This does not fix the J616s yet. The request word is 0x23c00 on this boot, the same as on fleet9 and fleet10, so bit 18 (0x40000, DISPEXT1) is not set and the new probe path still registers that entry as off. Full dmesg: 🤖 Generated with Claude Code |
|
Superseded by #628, closing this. On the J616s the request bit for DISPEXT1 is never set at probe. The T6041 PMP starts with no requests, so the entry's register can't show whether the device is in use. The -22 actually comes from DISPEXT1_SYS having two parents. With two, the platform bus powers neither before probe, while DISPEXT0_SYS (one parent) gets its PMP entry powered by the bus. #628 powers both parents of a domain that is on at probe, and gives dcpext1 its DISPEXT1_FE power domain. Booted on the J616s: no power-controller@490 lines, and the PMP now gets requests 0x63c00. 🤖 Generated with Claude Code |
…-parents pmdomain: apple: power both parents of DISPEXT1_SYS on the J616s (replaces #614)
Each PMP report entry registered its genpd domain as off, whatever the request word held. genpd refuses to add a power state that is already on below a parent it thinks is off, so on the J616s DISPEXT1_SYS (left on, below the DISPEXT1 entry, request bit 18) failed every boot:
This registers each entry in the state of its request bit. On a report that defers requests until its PMP runs (T6041), a bit found set is kept in memory too, so the hand-over writes it back. Always-on entries get GENPD_FLAG_ALWAYS_ON, since genpd now sees them on and must not drop them as unused.
A KUnit case covers the new state lookup (bit from the request word, then from memory after an entry changes it).
Testing
.kunitconfig.apple-pmp-start, arm64 QEMU, LLVM=1): 27 of 27 passed, including the new pmp_report_requested_test.power-controller@490lines, power-controller@498 binds, and USB-C DisplayPort on the external display lights up.Draft until the J616s boot passes.
🤖 Generated with Claude Code