Skip to content

thermal: apple-pmp: no Air power budget on fan-cooled boards - #1971

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
aeries0x:j604-power-policy
Nov 24, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
aeries0x:j604-power-policy

Conversation

@aeries0x

@aeries0x aeries0x commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

On the J604 (MacBook Pro 14-inch, M4), apple-pmp-thermal applies the fanless Airs' energy budget: a 600 J burst at up to 20 W, then 8 W regulated toward an 85 °C filtered die, with a 4 W floor. The SMC appears to set the fan speed from the heat the SoC makes, so under a sustained all-core load the budget starves the fan: it stops during the load and the CPU stays at 5.1–12 W (7.7 W mean over 60–180 s). #1931 reports the same on another J604.

This PR drops the budget on every board whose device tree describes a fan, and keeps the die guard as it is. A board counts as fan cooled when an available apple,smc-hwmon node (for_each_compatible_node_scoped + of_device_is_available) has an available child with apple,fan-maximum. On the current T8132 DTs that is the J604, the J623 and J624, and the J773g; the J713 and J715 keep the budget.

Tested: J604 (M4 MacBook Pro 14") at d3735de5963f (same tree 52a42414b9f3 as pre-sign 7c7190fa7adf): 180 s load 15.30 W mean, fan 2500 -> 3825 rpm (never 0), die max 109 °C; 30 s idle 0 faults; KUnit 9/9; host-tests 460/501 (0 regressions); 0 failed units, 0 new kernel errors.
Risk: two-way · fan-cooled T8132 Macs (J604, J623, J624, J773g); fanless Airs (J713, J715) keep the budget unchanged — a plain revert restores the previous policy.

Changes on those boards:

  • apple_pmp_power_init_unbudgeted(): the rails are still read and reported (power_status shows budget=0, the hwmon sum channel is labelled "CPU/GPU rail sum"). A rail fault or a telemetry gap still selects full protection and recovers one step per second; sustained power never restricts.
  • apple_pmp_power_dark(): while every die sensor is dark (-ENODATA) during idle and the SMC rails are read cleanly, unbudgeted boards have no temperature-driven energy bucket, so the rail sum and sample timestamp stay current instead of letting a >2 s dark span trigger the gap fault clamp on wake. The GPU still receives full protection (apple_pmp_gpu_publish(..., 8, 0)) while sensors are dark, a genuine >2 s telemetry gap still fails closed, any latched fault stays latched until valid die samples confirm recovery, and fanless Airs are untouched.
  • The die guard is untouched (cooling from 106 °C, target 110 °C, full protection 115 °C, shutdown after three samples at 120 °C). The J604 ADT's temp-sensor has the J713's limits: 110 °C target and 125 °C maximum on Ta000m, Te000m, Te001m and Tp000m-Tp002m.
  • The release loop moves into apple_pmp_power_release(), shared by both paths; the Airs run the same arithmetic as before.
  • KUnit cases cover both the unbudgeted path (apple_pmp_test_unbudgeted) and dark-sensor spans (apple_pmp_test_unbudgeted_dark: 10 s dark span without clamping on wake, genuine >2 s gap still failing closed, latched fault preserved across dark samples, no-op on budgeted Airs).

Coordination with #2533

Open PR #2533 carries a first commit (cf450974db28) that also drops the shared rail budget on fan-cooled T8132 boards and handles dark-sensor spans in drivers/thermal/apple-pmp-thermal.c (without modifying include/linux/soc/apple/pmp-power-policy.h), so the two PRs directly conflict on apple-pmp-thermal.c. Because #1971 is a single self-contained commit for currently shipping 26.6.2 boards while #2533 is a 9-commit series for macOS 27.2 PMP support, one option is to land #1971 first and have #2533 rebase onto it (keeping only any additional 27.2/SMC-read behavior on top); alternatively, if maintainers prefer carrying the fan-cooled policy in #2533, #1971 (including apple_pmp_power_dark()) can be closed in favour of #2533 once that path is ready, and the J604 rows below apply there as well.

Tested

Current revision (tested tree 7c7190fa7adf on main 7092b1dca9fd; signed PR head adds only Signed-off-by)

J604 (Mac16,1, Linux stub on 26.6.2 OS firmware, Arch/Omarchy, AC, power profile performance). Kernel: main 7092b1dca9fd plus this commit (stock DT with #1888 intact, booted with apple_dart.j713_* stripped via merged #2189; Stage 2: aura 1.0.0b13.1 + u-boot aurora11).

  • Boot log confirms DT selection: apple-pmp-thermal: T8132 provisional policy: ... no power budget (fan cooled; rail faults still restrict). power4_label reads CPU/GPU rail sum; power_status reports budget=0, sustainable_mw=0, allowed_mw=0, credit_mj=0.
  • 30 s idle check (1 s samples): 0/30 faults, 0/30 hwmon -EAGAIN errors, p_level=0, e_level=0, gpu_level=0.
  • 180 s ten busy loops (sampled every 2 s):
    • P+E rails (60–180 s): mean 15.30 W, min 14.18 W, max 16.22 W (20.13 W during initial 4.46/2.89 GHz ramp at 20 s).
    • P / E cluster median (60–180 s): 3.47 / 2.17 GHz.
    • Die temp (60–180 s): mean 103.56 °C, max 109.00 °C (held by the die guard).
    • Fan: started at 16.2 s (2492/2500 rpm), ramped steadily to 3825 rpm (3808 target) at 180 s, never dropped to 0 once started (zero_target_after_start=0).
    • Policy: 0/90 faults, 0/90 power telemetry errors, 0/90 non-zero power restriction levels, budget=0 throughout.
  • Regression: 0 failed systemd units, 0 thermal/telemetry errors, 0 new kernel errors (Arch/Omarchy; no SELinux).
  • Host / build checks: checkpatch.pl --strict clean (0 warnings, 0 checks); W=1 LLVM build of apple-pmp-thermal.o and apple-pmp-policy-test.o clean (0 warnings); KUnit (kunit.py run --arch=arm64, QEMU): apple-pmp-policy 9/9 passed; tools/asahi/run-host-tests.py in CI Ubuntu 24.04 container: 460/501 passed on tested tree 7c7190fa7adf == 460/501 on base 7092b1dca9fd (0 regressions).

Earlier A/B comparison on the same J604 (v2 vs stock linux-aurora 7.3.0.aurora1-37 and macOS 27.2)

Load: ten shell busy loops after two minutes idle, AC, performance profile. "P+E" is PP0b + PPbb, without the GPU rail.

ten busy loops stock (-37) v2 (8c9ec708) v3 (7c7190fa7adf tree) macOS 27.2, same Mac
P+E rails, 60-180 s 7.7 W mean, 5.1 W min 16.4 W mean, 15.4 W min 15.3 W mean, 14.2 W min (powermetrics: 23-25 W CPU, a different meter)
P+E rails, 5-15 min - about 17.4 W - -
P / E cluster, median 60-180 s 2.09 / 2.50 GHz 3.47 / 2.17 GHz 3.47 / 2.17 GHz 3.78-3.94 / 2.81 GHz
fan target 2500 rpm at 20-60 s, 0 from 72 s 2560 -> 4400 rpm (5970 at 15 min); never 0 2500 -> 3808 rpm at 180 s; never 0 2500 rpm at ~20 s, 6550 rpm by ~110 s
die (PMP hotspot) mean 80 °C mean 104 °C (max 108.75 °C) mean 103.6 °C (max 109.0 °C) (Tp0* max 110-113 °C)
  • Earlier v2 run also checked busy loops + GPU compute (gpubench compute.heavy, depth 8, 180 s: P+E 12.7 W, GPU 5.2 W, die mean 104 °C, fan 2500 -> 4860 rpm, never 0; TB0T <= 29.5 °C, TCHP <= 47.2 °C).
  • Not tested here (only J604 hardware on hand): J713/J715 (Air path is unchanged), J773g, J623, J624; battery power and the other power profiles; suspend/resume during a load; a real rail fault or >2 s dark span on hardware (covered in KUnit); a blocked fan; lid closed.

@davishann15-commits

Copy link
Copy Markdown

Tested on a second J604: the Mac from #1931, with OS firmware 26.6.2 like yours. With this PR the fan runs for the whole load, and P+E holds about 13.7 W where the stock budget allowed 7.7 W.

Method as yours: ten shell busy loops after 120 s idle, held for 180 s, sampled at about 1 Hz from sysfs and the power_status parameter, with no SMC writes. "P+E" is PP0b + PPbb. The Mac was on AC with power profile balanced (yours was performance). Both rows are one boot each of the same tree: alarm-aurora's pkgrel 38 recipe on integration/aurora 0b03fe4, plus #1543, #1895, #1917, #1918, #1919 and #1922. The second boot adds this PR (1df8dfb, applied cleanly). The speaker enable (#1888) stays in, with speakerguardd v2. Stage 2: aura 1.0.0b13.1 + U-Boot aurora11.

ten busy loops, 180 s stock (same tree, no PR) this PR
P+E rails, 0-60 s 17.1 W mean 17.7 W mean
P+E rails, 60-180 s 7.7 W mean, 5.1 W min 13.7 W mean, 12.9 W min
P / E cluster, median 60-180 s 2.35 / 2.50 GHz 3.30 / 2.17 GHz
fan (F0Ac, actual) 2500 rpm from 21 s while the 600 J credit lasts, then 0 for 106 of the remaining 155 s on at 13 s: 2546 rpm at 60 s, 3007 at 120 s, 3612 at 170 s, never 0 once started
die (PMP hotspot) mean 82 °C at 60-180 s, max 105 °C (in the burst) mean 104.5 °C at 60-180 s, max 108.5 °C
total system power (SMC), 60-180 s 24.3 W 32.3 W
after the load fan stays off 3712 rpm at the stop, about 2500 rpm 30 s and 60 s later
  • Stock: after the credit runs out, allowed_mw sits at 6.2-9.5 W and p_level at 4-6. That matches your stock row exactly (7.7 W mean, 5.1 W min), so both Macs behave the same.
  • This PR: power_status shows budget=0 and the hwmon channel reads "CPU/GPU rail sum". dmesg has no power budget (fan cooled; rail faults still restrict). Levels stayed at 0, and the die guard did the limiting. At idle the fan is off. No thermal-driver, telemetry or GPU errors, and nothing new in the kernel log.
  • For question 2: here too the E cluster runs lower with the PR than on stock (2.17 vs 2.50 GHz) while P runs much higher. So the guard stepping both clusters costs the E cores about 0.3 GHz under this load.
  • Compared with your row, P+E is about 2.7 W lower and the fan rises more slowly (3612 vs 4460 rpm at 170 s). That may be the balanced profile; I didn't run performance.
  • Not tested: loads longer than 180 s, GPU load, battery power, other power profiles, suspend/resume.

This fixes what I reported in #1931 on this Mac. I'll close that issue once this lands.


Disclosure: an LLM (Claude) ran these boots and measurements on my Mac and drafted this. I reviewed it and am responsible for it.

Assisted-by: LLM

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for the clear write-up and the J604 measurements.

In this tree we select behaviour by a hardware property rather than a machine list. The new policy is chosen by of_machine_is_compatible("apple,j604") (drivers/thermal/apple-pmp-thermal.c:692-695, used at :710). The reason it applies is that the machine has a fan, and that is true of other T8132 boards with fans as well.

Could the "unbudgeted" policy be selected from the device tree instead? For example, it could apply when the SMC hwmon node describes a fan (the J604 one-fan description in #1953 adds exactly that), or when a small apple,fan-cooled property is on the PMP thermal node. Then the fanless Airs keep the budget and every fan-cooled board gets the J604 behaviour without being listed.

If it helps, we can run thermal rows on our fan-cooled M1 Pro and M4 Pro to check that the shared policy code is unchanged there.

@RyanTheTide

Copy link
Copy Markdown
Contributor

The two J604 rows here, yours and the one from #1931, show the budget is what stops the fan. With this PR P+E holds 13.7 W where it was 7.7 W, and the fan keeps running.

One request on how the policy is chosen. The reason for dropping the budget is that the machine has a fan the SMC runs on the SoC's heat. That is a property of the hardware, and the device tree already describes it: the fan node under smc_hwmon (fan-F0Ac with apple,fan-minimum/apple,fan-maximum, from hwmon-fan.dtsi). Can apple_pmp_unbudgeted() look for that node instead of of_machine_is_compatible("apple,j604")? For example, any child of the SMC hwmon node with apple,fan-maximum. On the current T8132 DTs:

  • J604 includes hwmon-fan.dtsi, so it is selected (no change from this PR).
  • J623/J624 (iMac) include it too. They would drop the budget as well, which fits the reason. A row on one of them would be good, but the die guard stays in place either way.
  • J773g (Mac mini) has a fan but no fan node yet. It keeps the budget until its DT describes the fan, and adding that node is the fix for it.
  • J713/J715 (Airs) have no fan node and keep the budget.

That keeps the policy tied to what the board has, so it does not grow into a board list as more fan machines run on this driver. The KUnit case does not need to change.

@aeries0x aeries0x changed the title thermal: apple-pmp: no Air power budget on the J604 thermal: apple-pmp: no Air power budget on fan-cooled boards Nov 20, 2026
@aeries0x

Copy link
Copy Markdown
Contributor Author

Updated in 8c9ec70: apple_pmp_unbudgeted() now checks for an available child of apple,smc-hwmon with apple,fan-maximum, and the apple,j604 check is gone.

On the current T8132 DTs that selects the J604, J623 and J624, and also the J773g. You mentioned the J773g has no fan node yet, but t8132-j773g.dts includes hwmon-mini.dtsi, which pulls in hwmon-fan.dtsi (fan-F0Ac with apple,fan-maximum, since 695332a). So the J773g drops the budget too, while the J713 and J715 have no fan node and keep the budget.

Re-tested on the J604 at this head; the PR description has the full table. The boot log shows the DT selection ("no power budget (fan cooled; rail faults still restrict)"). Under ten busy loops, P+E held 16.4 W at 60-180 s (stock: 7.7 W) and 17.4 W at 5-15 min, with the fan reaching 5970 rpm and never stopping. CPU+GPU for 180 s gave P+E 12.7 W and GPU 5.2 W with no errors. KUnit apple-pmp-policy passed 8/8 on arm64 QEMU.

The M1 Pro and M4 Pro won't reach this code, since apple-pmp-thermal only probes on T8132. A J773g, J623 or J624 row would be the useful one.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for 8c9ec70, and for the correction about the J773g: hwmon-mini.dtsi does pull in the fan node, so it drops the budget too, which fits the reason. Selecting by an available fan with apple,fan-maximum is the hardware property we hoped for, and the J604 rows on this head look good. A J773g or iMac row from an owner would be the useful extra check; we have none of those boards.

@RyanTheTide

Copy link
Copy Markdown
Contributor

integration/aurora 110861f still applies the fanless budget on every T8132 board, so this is still needed. 8c9ec70 applies cleanly to 110861f. The fan selection by an available SMC hwmon child with apple,fan-maximum is what was asked for. Open #2533 also carries a first commit that drops the shared rail budget on fan-cooled boards (cf45097), so the two overlap and will conflict. One of them should carry the change, and the other should rebase onto it. A J773g, J623 or J624 row from an owner would still be a useful extra check.

Build check of 110861f plus this change (arm64, LLVM=1, Image, dtbs and every directory it touches, Fedora config plus asahi.config): builds, no warnings in the files it touches.

@aeries0x

Copy link
Copy Markdown
Contributor Author

@DjDeveloperr, about the overlap with #2533 (cf45097): both drop the shared rail budget when an available SMC hwmon child describes a fan. A proposal so only one carries it: this PR lands the selection on its own (one commit, J604 rows on this head, accepted on the code), and #2533 rebases onto it and keeps what goes further as its own commit: the hwmon report timestamp for long dark spans, and no restriction on a missing or slow SMC rail read. I'll test that commit on the J604 once it's up. If you'd rather carry it all in #2533, I'll close this one and post the J604 rows there.

@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.

Formal §1–§6 pre-PR checklist review at 8c9ec708574a24fd9584dd9437de89cd15ec4a77 against integration/aurora (70a00e583b03):

Switching from of_machine_is_compatible("apple,j604") to DT fan discovery is the right direction, KUnit apple-pmp-policy (8/8) and CI host-tests are green, and the two J604 thermal rows show clear improvement while keeping the die guard intact. However, there are hard blockers before this can merge:

  • §4 Clean-room & attribution — BLOCKER (hard): Commit 8c9ec708574a contains a forbidden AI trailer inside the commit message:
    Assisted-by: LLM
    Signed-off-by: Friedrich <[email protected]>
    
    Commits must carry human identity and human Signed-off-by: only (zero Assisted-by: or other AI trailers in commits; keep Assisted-by: at the end of the PR body only).
  • Code defect in apple_pmp_unbudgeted() — BLOCKER: of_find_compatible_node(NULL, NULL, "apple,smc-hwmon") returns the first matching node even if its status is "disabled", and for_each_available_child_of_node_scoped(hwmon, child) only checks the child's own status, not its parent's. If an apple,smc-hwmon node is disabled in DT, this would falsely disable the power budget. Iterate compatible nodes and require of_device_is_available(hwmon) before inspecting children.
  • Dark-sensor interaction & overlap with #2533 — COORDINATION BLOCKER: On current integration/aurora (with 1a925b273afda and 96ea511e2cd79), apple_pmp_power_work() skips apple_pmp_power_sample() while die sensors are dark (-ENODATA). A dark span > 2 s therefore hits gap = dt > 2000000000ULL -> apple_pmp_power_fail() on the next non-dark sample, clamping P/E/GPU to level 8 and recovering 1 step/s (~24 s) even on a fan-cooled board under this patch. Open PR #2533 (cf450974db28) overlaps and directly conflicts on drivers/thermal/apple-pmp-thermal.c while also checking of_device_is_available(hwmon) and handling dark-span hwmon timestamps + non-restricting rail reads on fan-cooled boards. Sequencing between #1971 and #2533 needs to be settled before either lands so only one carries the fan-cooled budget policy.
  • §1 / §5 Evidence (default, high bar): The two J604 rows are thorough, but this head now also enables the unbudgeted path on J773g, J623, and J624 (hwmon-mini.dtsi / hwmon-fan-dual.dtsi -> apple,fan-maximum). Still missing: (1) a regression run line (0 SELinux denials, 0 failed units, 0 new kernel errors), and (2) at least one validation row on another affected T8132 board (J773g/J623/J624) or a fanless Air (J713/J715) no-regression check.
  • §2 / §3 / §6: No cmdline/module-param hacks (§2 PASS), die guard and critical shutdown remain intact (§3 PASS), naming is clean (§6 PASS).

Assisted-by: LLM (Gemini 4 Neon)

@github-actions github-actions Bot added changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
The T8132 PMP thermal driver runs one policy on every M4 Mac on the
firmware path: the die guard (cooling from 106 C, target 110 C, full
protection 115 C, shutdown after three samples at 120 C) plus the
fanless MacBook Air's measured-rail energy budget, a 600 J burst at up
to 20 W, then 8 W regulated toward an 85 C filtered die with a 4 W
floor.

On a Mac with a fan that budget defeats the fan, whose speed the SMC
appears to set from the heat the SoC makes. On the J604 (MacBook Pro
14-inch, M4), with ten busy loops for 180 s on Aurora's linux-aurora
7.3.0.aurora1-37 package, the burst ran out after 53 s, the P and E
rails (PP0b + PPbb) fell from up to 22.7 W to 5-12 W, the heatpipe
power (PHPC) from up to 28 W to 8-17 W, and 19 s later the SMC set the
fan target to 0 for the rest of the load. macOS 27.2 on the same Mac,
same load: the fan ramps from 2500 rpm to its 6550 rpm maximum and
never stops.

Drop the budget on every board whose device tree describes a fan: an
available child with apple,fan-maximum under an available
apple,smc-hwmon node. On the current T8132 device trees that is the
J604, the J623 and J624 (iMac) and the J773g (Mac mini); the J713 and
J715 (Air) have no fan node and keep the budget. The die guard stays
on every board: the rails are still read and reported, a rail fault or
a telemetry gap still selects full protection and recovers one step
per second, but sustained power no longer restricts.

While every die sensor is dark (-ENODATA) during idle and the SMC
rails are read cleanly, unbudgeted boards have no temperature-driven
energy bucket, so keep the sample timestamp and hwmon rail sum current
instead of letting a >2 s dark span trigger the gap fault clamp on
wake. The GPU still gets full protection while the sensors are dark, a
genuine >2 s telemetry gap still fails closed, and any prior fault
remains latched until valid die samples confirm recovery.

Signed-off-by: Friedrich <[email protected]>
@aeries0x
aeries0x requested review from a team as code owners November 24, 2026 13:37
@aeries0x

Copy link
Copy Markdown
Contributor Author

Updated to d3735de5963f (on main 7092b1dca9fd, no AI attribution) and refreshed the PR description:

  • apple_pmp_unbudgeted() now iterates for_each_compatible_node_scoped(hwmon, NULL, "apple,smc-hwmon") and requires of_device_is_available(hwmon) before inspecting child fan nodes.
  • Added apple_pmp_power_dark() for unbudgeted fan-cooled boards so >2 s dark die-sensor (-ENODATA) spans keep last_ns/total_mw fresh instead of triggering the gap fault clamp on wake, while preserving GPU dark protection (apple_pmp_gpu_publish(..., 8, 0)), fail-closed on genuine >2 s telemetry gaps, latched faults, and fanless Air behavior. Added KUnit coverage (apple_pmp_test_unbudgeted_dark, 9/9 passing).
  • Re-booted on the J604 (7c7190fa7adf tree, 180 s load + 30 s idle, 0 failed units, 0 thermal/telemetry/kernel errors; host-tests 460/501 == base; checkpatch --strict and LLVM W=1 clean).
  • Added a note on coordination with M4 PMP: fan-based rail budget and self-described 27.2 PMP path #2533 in the PR body (happy to either land thermal: apple-pmp: no Air power budget on fan-cooled boards #1971 first or close it in favour of M4 PMP: fan-based rail budget and self-described 27.2 PMP path #2533 if maintainers prefer carrying the fan-cooled policy there).

@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 at d3735de5963f

Blockers:

  • Required CI at d3735de5963f is still pending (kunit and host-tests in_progress; readiness / readiness and latest pr-text / pr-text queued); wait for all checks to finish green before approving and merging.
  • The Tested: line cites pre-signoff commit 7c7190fa7adf rather than literal head d3735de5963f (the tree 52a42414b9f3 is identical and only Signed-off-by: changed; please cite d3735de5963f explicitly in Tested: so the exact-head SHA match is unambiguous).

Checked: Full diff (drivers/thermal/apple-pmp-thermal.c, include/linux/soc/apple/pmp-power-policy.h, drivers/thermal/apple-pmp-policy-test.c), T8132 DT fan nodes, prior review findings, and pre-PR checklist §1–§6. Code is clean and all prior code, safety, dark-sensor, and commit-metadata blockers are resolved.

Evidence
  • §1 No model gating: PASS — apple_pmp_unbudgeted() iterates for_each_compatible_node_scoped(hwmon, NULL, "apple,smc-hwmon"), checks of_device_is_available(hwmon), and inspects for_each_available_child_of_node_scoped(hwmon, child) for apple,fan-maximum. Verified against current T8132 DTs: selects J604 (hwmon-fan.dtsi), J623/J624 (hwmon-fan-dual.dtsi), and J773g (hwmon-mini.dtsi -> hwmon-fan.dtsi); leaves J713/J715 Airs budgeted.
  • §2 Production-ready: PASS — default kernel command line, no new writable module parameters (power_status remains read-only 0400 with additive budget=%d), no magic delays or races.
  • §3 Safety: PASS — die guard (106 C cooling, 110 C target, 115 C full protection, 3x >=120 C critical shutdown) is unchanged. apple_pmp_power_dark() keeps last_ns and total_mw fresh on unbudgeted boards only during clean -ENODATA dark spans with valid SMC rail reads, while keeping GPU dark protection (apple_pmp_gpu_publish(..., 8, 0)), fail-closed on genuine >2 s gaps or SMC read errors, latched faults until 3 valid die samples confirm recovery, and a strict no-op on fanless Airs. Extracted apple_pmp_power_release() preserves identical Air arithmetic. Covered by KUnit apple_pmp_test_unbudgeted and apple_pmp_test_unbudgeted_dark.
  • §4 Clean-room & commits: PASS — commit d3735de5963f carries human author/committer (Friedrich) and human Signed-off-by: only, with no prohibited trailers in the commit, PR title, PR body, or diff, and no copyrighted Apple material.
  • §5 Evidence & CI: J604 180 s load, 30 s idle, and regression check (0 failed units, 0 thermal/telemetry errors, 0 new kernel errors) are recorded for identical tree 7c7190fa7adf (d3735de5963f adds only Signed-off-by:). Live CI on d3735de5963f: kunit in_progress, host-tests in_progress, pr-text / pr-text prior success / latest queued, readiness / readiness queued.
  • §6 Naming: PASS — uses aura, no legacy naming issues.
  • Non-blocking: Landing #1971 first and rebasing #2533 onto it is clean (#2533 is still held on the J773g 10GbE cluster-mask setup failure); an owner-run J773g/J623/J624 or J713/J715 Air row remains welcome when available.

@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: MERGE at d3735de5963f

Blockers: none

Checked: Required CI at d3735de5963f (kunit, host-tests, pr-text) is now green. Full diff, die-guard/dark-sensor safety, DT fan-child selection, KUnit tests, commit DCO/clean-room metadata, and J604 180 s load / 30 s idle / regression proof on byte-identical tree 52a42414b9f3 (d3735de5963f adds only Signed-off-by:) are all verified.

Evidence
  • CI on d3735de5963f: kunit PASS, host-tests PASS, pr-text PASS (readiness skipped on fork).
  • Hardware & safety: J604 (M4) 180 s load (15.30 W mean, fan 2500 -> 3825 rpm, die max 109 C) and 30 s idle (0 faults, 0 failed units, 0 new kernel errors) on identical tree 52a42414b9f3; Air path unchanged; fail-closed on >2 s gaps / SMC errors.
  • Follow-up: #2533 can cleanly rebase onto this once merged.

@github-actions github-actions Bot added blast:m4 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) and removed changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at d3735de5: not ready yet

Check Detail
CI at head ok 5 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at d3735de5
Conflicts ok not computed yet
PR text ok Risk: two-way · fan-cooled T8132 Macs (J604, J623, J624, J773g); fanless Airs (J713, J715) keep the budget unchanged — a plain revert restores the previous policy. Changes on those boards: - apple_pmp_power_init_unbudgeted(): the rails are still read and reported (power_status shows budget=0, the hwmon sum channel is labelled "CPU/GPU rail sum"). A rail fault or a telemetry gap still selects full protection and recovers one step per second; sustained power never restricts. - apple_pmp_power_dark(): while every die sensor is dark (-ENODATA) during idle and the SMC rails are read cleanly, unbudgeted boards have no temperature-driven energy bucket, so the rail sum and sample timestamp stay current instead of letting a >2 s dark span trigger the gap fault clamp on wake. The GPU still receives full protection (apple_pmp_gpu_publish(..., 8, 0)) while sensors are dark, a genuine >2 s telemetry gap still fails closed, any latched fault stays latched until valid die samples confirm recovery, and fanless Airs are untouched. - The die guard is untouched (cooling from 106 °C, target 110 °C, full protection 115 °C, shutdown after three samples at 120 °C). The J604 ADT's temp-sensor has the J713's limits: 110 °C target and 125 °C maximum on Ta000m, Te000m, Te001m and Tp000m-Tp002m. - The release loop moves into apple_pmp_power_release(), shared by both paths; the Airs run the same arithmetic as before. - KUnit cases cover both the unbudgeted path (apple_pmp_test_unbudgeted) and dark-sensor spans (apple_pmp_test_unbudgeted_dark: 10 s dark span without clamping on wake, genuine >2 s gap still failing closed, latched fault preserved across dark samples, no-op on budgeted Airs).

Areas: none matched in CODEOWNERS

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

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed needs-hw-row No hardware row at the PR head (bot) ready-to-merge Meets the merge policy: merge it (bot) labels Nov 24, 2026
@github-actions github-actions Bot removed the ready-to-merge Meets the merge policy: merge it (bot) label Nov 24, 2026
@DjDeveloperr
DjDeveloperr merged commit 0ed988a into aurora-silicon:main Nov 24, 2026
8 of 10 checks passed
DjDeveloperr added a commit that referenced this pull request Nov 24, 2026
Resolve conflicts with merged #2676 and #1971:
- Keep main's apple_pmp_t8132_retained_board() check (including
  apple,tunable-soc-device) in include/linux/soc/apple/pmp-display.h.
- Keep #1971's unbudgeted fan-cooled power policy (apple_pmp_unbudgeted,
  apple_pmp_power_init_unbudgeted, apple_pmp_power_dark) in
  drivers/thermal/apple-pmp-thermal.c alongside this branch's
  topology/cpufreq cluster discovery.
- Keep this branch's self-described 27.2 temperature-record lookup in
  drivers/soc/apple/pmp-telemetry.c.

Signed-off-by: Diljit Singh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blast:m4 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants