Repository navigation
Revert "thermal: apple-pmp: avoid P-core wakeups for cool idle polling" - #3803
RyanTheTide wants to merge 1 commit into
Conversation
This reverts merge 116542b (linux#3546). On J713 (M4 Air, fleet91 9c353d7) the slower cool-idle polling turns spans where the PMP thermal sensors read dark into repeated -ENODATA reads, the core marks thermal_zone2 broken and disables it, and the driver's guard latches p/e/gpu level 8 with fault=1. From then on a 10-thread load runs at 912/900 MHz P/E until the next reboot; deep sleep does not clear it. It latched after 5 h 27 min of uptime. The edge kernel (933f822, without #3546) does not show it. Revert now; the dark-sensor handling is redone in linux#2774.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Row (in progress): fac0494 (same driver change, applied to fleet91 9c353d7) + J713 (M4 Air) + recovers from the latch; 7 h soak running.
|
There was a problem hiding this comment.
Verdict: MERGE at fac0494
Checked:
- An exact revert of #3546 (merge 116542b).
drivers/thermal/apple-pmp-thermal.cat this head is byte-identical to its state before #3546 (116542bd^1). No later main commit touches it. tools/asahi/pmp-thermal-poll-tests.pyis removed, and the onerun-host-tests.pyentry for it goes with it. The rest of the host-test table, which later merges grew, is untouched.git grep pmp-thermal-pollfinds no other reference.- This restores the polling that shipped through fleet85, which the J713 sweep (edge 933f822, without #3546) shows without the 912/900 MHz latch.
Follow-ups (not blocking):
- The dark-sensor -ENODATA handling that makes the cool-idle polling safe is tracked in #2774. Reland the P-core wakeup saving on top of it.
|
Soak result: FAIL. The revert does not prevent the latch. Please don't merge on my earlier row. Same J713 boot, reverted module loaded at 15:55 (J713 clock): clean for 28 min, then at 16:24:07 a burst of So on this boot the dark-sensor spans latch the guard with or without #3546's slower cool-idle polling. #3546 isn't the cause, and the fix has to be the dark-sensor handling itself (#2774). Holding this PR; I'll test #2774's driver on the same J713, which now reproduces the latch within about 30 min. |
What
Reverts linux#3546 (merge 116542b, "thermal: apple-pmp: avoid P-core wakeups for cool idle polling").
On J713 (M4 Air, fleet91 9c353d7) the slower cool-idle polling turns spans where the PMP thermal sensors read dark into repeated -ENODATA reads. The thermal core marks thermal_zone2 broken and disables it, and the driver's guard latches
p/e/gpu_level=8 fault=1. From then on a 10-thread load runs at 912/900 MHz P/E until the next reboot; deep sleep does not clear it. It latched after 5 h 27 min of uptime. The edge kernel (933f822, no #3546) does not show it. Evidence: HW sweep 12-02 comment on linux#2774 (issuecomment-7315328260).Merge-then-fix: the dark-sensor handling is being redone in linux#2774; this restores the pre-#3546 polling until that lands.
Tested
git revert -m 1on main cafee21; no later commits touch the driver.make W=1 LLVM=1 drivers/thermal/apple-pmp-thermal.o(arm64, fleet config): builds, no warnings.pmp-thermal-poll-tests.pyhost test..text== shipped module). Live module swap on the latched J713 (6 h 53 min uptime, level 8, P/E 912/900 MHz): guard back to level 0, fault=0, apple-pmp-die zone enabled, 10-thread load P 3984 / E 2496 MHz. Details: issuecomment-7316947667.Risk
Risk: two-way · J713 (a plain revert of this revert restores #3546).
Low: restores the polling that shipped before 11-29 (fleet85 and earlier). The cost is the P-core wakeups #3546 removed at cool idle (idle power only).
Not yet