Repository navigation
soc: apple: t8132-platform-handoff: apply the PMGR policy on every firmware - #2588
DjDeveloperr wants to merge 1 commit into
Conversation
|
The change is small and the early
Assisted-by: LLM (Claude:Opus 5.5) |
|
Blockers: 2.
|
…rmware t8132_platform_handoff() returns early off the qualified firmware path (macOS 26.6.2 for every M4 Mac but the Airs), and with it skips the PMGR ownership policy. On the 27.2 firmware Linux then owns every power domain in the board tree, with auto-PM written to each one at probe, including the domains 26.6.2 keeps firmware-owned (AIC, GPIO, display) or out of Linux's reach. On the M4 Mac mini (J773g) that ends in an SError as soon as the PCIe controller probes, about 1 s after the GPIO providers it waits for appear. Apply the 26.6.2-qualified PMGR ownership policy whenever an apple,t8132-pmgr node is present, under the assumption that it carries over to newer firmware (noting that any domain newly claimed by firmware on 27.2 would otherwise remain owned by Linux). Keep only the PMP/GFX memory compatibility nodes gated on the qualified firmware path. The Airs, which already took this path on any firmware, are unchanged. Signed-off-by: Diljit Singh <[email protected]>
ca92247 to
39478e3
Compare
|
Addressed the host-side blockers (head
Verified on host: Pending HW verification before merge: boot this exact build on the J773g (27.2) and on a 26.6.2 machine confirming the handoff line and domain counts are unchanged. Assisted-by: LLM (Gemini:4 Neon) |
|
All three points are addressed. The commit has a single Signed-off-by. The early return (t8132-platform-handoff.c:331-334) now keys on the Rows still needed on this head: the J773g on 27.2, and a 26.6.2 M4 whose handoff line (node and property counts) is unchanged. On a J713 the handoff line and domain states should match the base kernel. Assisted-by: LLM (Claude:Opus 5.5) |
|
Live J773g ( Assisted-by: LLM (Gemini:4 Neon) |
Diljit Singh’s original aurora-silicon#2588 change selected the PMGR policy by the T8132 PMGR compatible. Implement its PMGR-only case alongside the merged PMP handoff, preserving current memory compatibility behavior on all firmware when the PMP provider exists. Link: aurora-silicon#2588 Signed-off-by: Sean Dolbec <[email protected]>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: REQUEST CHANGES at 39478e3b
Blockers:
- Branch is
CONFLICTINGwithmain. Rebase/merge currentmainsodrivers/soc/apple/t8132-platform-handoff.capplies cleanly (MERGEABLE), full CI runs, and an exact-head J773g (27.2) +26.6.2/Air regression row can be verified.
Checked:
- Diff (
drivers/soc/apple/t8132-platform-handoff.c,+15/-2): keys PMGR policy onapple,t8132-pmgrwhile keeping PMP/GFX compatibility nodes behindapple_t8132_firmware_path(), properly callingof_node_put(pmgr). - Prior J773g (
27.2) 3/3s2idlepass at39478e3b(2026-11-22).
Evidence
- Code logic is clean and well-scoped; rebase onto
mainto clearCONFLICTING(or close if already superseded onmain).
There was a problem hiding this comment.
Verdict: MERGE at 39478e3bdd1f
Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.
Checked: - Diff (drivers/soc/apple/t8132-platform-handoff.c, +15/-2): keys PMGR policy on apple,t8132-pmgr while keeping PMP/GFX compatibility nodes behind apple_t8132_firmware_path(), properly calling of_node_put(pmgr).
- Prior J773g (
27.2) 3/3s2idlepass at39478e3b(2026-11-22).
Follow-ups (not blocking): rebase off CONFLICTING main; J773g 27.2 + 26.6.2/Air regression row
What it fixes
On macOS 27.2 system firmware, Linux on the M4 Mac mini (J773g, T8132) takes an SError and panics about 1 s after the PCIe controller probes. That happens as soon as the GPIO providers it waits for (pinctrl-apple-gpio, gpio-macsmc) appear.
t8132_platform_handoff()returns early off the qualified firmware path (asahi,os-fw-version26.6.2, or an Air). With that return it skipst8132_pmgr_policy(), so on 27.2 Linux owns every PMGR domain in the board tree, auto-PM included (pmgr-pwrstate writesAPPLE_PMGR_AUTO_ENABLEat probe). That covers the domains 26.6.2 keeps firmware-owned (AIC, GPIO, display) or disabled for Linux.This change applies the policy on every T8132 and keeps only the PMP/GFX memory compatibility nodes with the qualified firmware. The Airs already took this path on any firmware, so they are unchanged.
How it was found
One-shot proxy kboots of the installed m4drv8 kernel on the J773g with 27.2 (26B123), with no serial console. A panic left only its reset time (panic=30), so the bisect read that time:
aurora.netstep=10in a test initramfs). The crash moved with the step that releases pcie-apple: gpio-macsmc with port 0 enabled, pinctrl-apple-gpio with port 0 disabled.pd_ignore_unused clk_ignore_unused, GPIO domains firmware-owned in the DT, and keeping the bus 0 scan off the empty port 1.Hardware row: J773g, macOS 27.2 26B123
Tested with this change on the m4drv8 lineage. That kernel also carried an unrelated port-1 scan patch and inert debug markers, and had
CONFIG_MODULE_ALLOW_BTF_MISMATCH=yso the installed modules would load. It ran from a one-shot aura proxy kboot, with the stock J773g DT and every PCIe port enabled:systemctl is-system-running= running, 0 failed units, ssh over Ethernet. Without the change, the same boot reset about 31 s after kboot every time.Not yet tested: this exact integration/aurora build, the J604 and the iMacs off 26.6.2, and 26.6.2 itself (where the code path is unchanged).
Not yet