Repository navigation
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Thanks. Applying the PMGR policy whatever the firmware is the right direction: the policy describes the SoC's power manager, not a firmware release. One change. With this PR the policy is supplied on every firmware. A power state that it fails to mark should then also fail closed on every firmware, not only on the Airs and 26.6.2. Could you key the guard on the handoff being built instead, e.g. Rows: your J773g boots on the 27.2 stub cover that machine. Still needed:
|
f80b351 to
25b5b73
Compare
|
Thanks, the amended commit keys the fail-closed guard on The rows from before are still open: one other T8132 Mac (J604, J623, J624, J713 or J715) on non-26.6.2 firmware without the bring-up parameters (up 10 minutes or more, the |
|
This no longer merges into integration/aurora: 50d1488 dropped the machine check from the early return in |
…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 <hey@djdev.me>
With the platform handoff built, reject a T8132 power state that it did not mark on every firmware. This matches the handoff now applying the ownership policy whenever the T8132 PMGR block is present. Extend the host harness to exercise the missing-status path and confirm it fails before any MMIO. Signed-off-by: Sean Dolbec <sdolbec1@gmail.com>
Include the policy applicability helper, pass the legacy-tree argument, and update the expected J713 power-state count. This restores the focused PMGR mapping regression after the production policy gained machine-specific entries and separate legacy behavior. Signed-off-by: Sean Dolbec <sdolbec1@gmail.com>
25b5b73 to
63bb242
Compare
|
Rebased on Both affected ARM64 objects compiled with |
|
Could a lab owner claim either remaining row for |
Current series
The current head
63bb2424acombines #2588’s PMGR-node selection with #2317’s fail-closed guard on integration base5746ef8a5. PMP/GFX memory compatibility nodes stay on the existing firmware-qualified path. The updated mapping harness passed 98,574 checks and the inherited-PMGR harness passed all five cases. Both changed ARM64 objects built withW=1without warnings. The 26.6.2 and alternate T8132 newer-firmware rows remain open.Earlier revisions and their hardware evidence
A J773g on the macOS 27.2 stub (26B123) resets two to four seconds into every boot: the platform handoff that applies the M4 PMGR ownership policy ran only on the Airs or on OS firmware 26.6.2, so elsewhere Linux registered and switched power states the firmware owns.
Change.
pmgr-pwrstate.c: the fail-closed guard is keyed on the handoff being built (IS_ENABLED(CONFIG_APPLE_T8132_PLATFORM_HANDOFF)) instead of the firmware test, as asked in review. With the handoff built, a T8132 power state it did not mark fails withmissing M4 power-domain policyon any firmware. With it not built, states are registered as the tree describes them.t8132.hcomment and the Kconfig help say this.Consequence of the guard, stated plainly. If the handoff cannot resolve a live
apple,t8132-pmgrnode in its embedded policy tree it drops the whole changeset, and then every T8132 power state that has no status of its own in the tree fails closed, on every firmware; a state the tree marks itself (all of them on the complete J713 tree) is registered or left out as the tree says. Before, that was the outcome on the Airs and 26.6.2 only; off 26.6.2 the states were registered unmarked. A machine that booted that way off 26.6.2 would now not register those domains. This is the behaviour the review asked for. A kernel built without the handoff used to fail closed on the Airs' loader tree and on 26.6.2; it now registers those states.What "no board or version is compared" covers. Selection only. Inside the handoff
apple_t8132_air()still chooses the legacy J713 loader tree's rule against the other trees', and the policy tree'sapple,policy-machine = "apple,j713"entries keep nine J713-only states from other boards. Both are data about board wiring, unchanged.Blast radius. Every T8132 Mac off 26.6.2 now gets the policy. Only the J773g has been run there.
Rows
J773g (Mac16,10, 16 GB, AQC113), macOS 27.2 stub (26B123), one boot each unless noted:
supplied 0 platform nodes, 137 PMGR policy properties,keeps 1 of 2 power domains, no reset; plain line:clk: Disabling unused clocks,PM: genpd: Disabling unused power domains, SSH still answering at 120.8 ssupplied 0 platform nodes, 137 PMGR policy properties,keeps 1 of 2 power domains; 0missing M4 power-domain policylines; no reset;clk: Disabling unused clocks,PM: genpd: Disabling unused power domains; 64 MiB direct NVMe write at about 625 s; no WARNING/BUG/Oops, no NVMe errorWithout the change every kernel resets on that stub.
Rows we cannot provide.
Host: apple-dcp suite 88/88 on this head (base 88/88). Builds with W=1 on the touched objects. checkpatch
--strict: clean. Not run:dt_binding_check(no binding changes), KUnit.Assisted-by: LLM (OpenAI:GPT-6.2-Astra)