Repository navigation
arm64: dts: apple: t6041-j575c: let userspace set the fan speeds - #2898
RyanTheTide merged 1 commit into
Conversation
|
Review at 0144e55. Looks correct to me. One row is still missing, for the case this flag newly allows.
The commit trailers are fine. |
|
Review at 0144e55. No blocker: DT only, the same shape as the J714s/J716s/K116s fan nodes, and the driver already handles it. What I checked:
Small points, not blocking:
Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist review at 0144e55b5e564331a0e8c9ceeb5f3fdbc9f6cd13 (dt-checks and host-tests: green).
The DT-only change in arch/arm64/boot/dts/apple/t6041-j575c.dts is clean and matches t6050-j714s.dts (F0md/F1md + apple,fan-manual-control, no Ftst), and macsmc-hwmon clamps writes to SMC-reported F0Mn/F0Mx while restoring auto control on suspend/shutdown/unbind. Before enabling userspace manual fan control on this desktop, two §3/§5 verification gaps remain:
Blockers
- §3 / §5 Missing worst-case manual-minimum thermal safety row:
The 15 min 84 W all-corestress-ngrun was performed with the SMC in automatic control, where the die already reached 99 °C while the SMC ramped both fans to 1569 rpm. Becauseapple,fan-manual-controlnewly allows userspace to pin both fans atF0Mn/F1Mn(1000 rpm) under load, please run a sustained 15 min all-core load on J575c with both fans held manually at minimum (1000 rpm), recording the die temperature plateau, CPU throttle behavior, and confirming no SMC thermal trip or shutdown. - §5 Missing restore/clamp test rows & explicit regression counts:
- Test
rebootandpoweroffwith a fan held manual (listed as untested; J614c/J616c haveFtst, whereas J575c has noFtstunlock key) and confirmF0Mx(3625 rpm) upper-clamp acceptance. - Include explicit §5 regression counts on the J575c boot (0 SELinux denials, 0 failed units, 0 new kernel errors; currently only "no macsmc-hwmon messages" is noted).
- Test
Non-blocking notes
- Add a brief sentence in the commit message explaining why J575c enables userspace manual fan control while J775D keeps fans read-only (untested vs hardware difference).
- Follow-up (out of scope for this PR): now that multiple boards only override
apple,fan-modetoF0md/F1md,macsmc-hwmoncould dynamically probeF%dMdthenF%dmd.
Checklist summary
- §1 No model gating: Pass (DT-only per-SMC key description).
- §2 Production-ready: Pass (default cmdline,
dt-checksgreen). - §3 Safety: Driver clamps to SMC-reported
F0Mn/F0Mxand restores auto mode on suspend/shutdown/unbind; blocked on J575c manual-minimum sustained-load thermal verification and reboot/poweroff restore proof on this no-FtstSMC. - §4 Clean-room & attribution: Pass (human author/committer + human
Signed-off-by:only, zero AI trailers in commit,Assisted-by:in PR body). - §5 Evidence: Good J575c basic manual/auto/s2idle/auto-load table; blocked on manual-minimum thermal soak, reboot/poweroff restore + max-RPM check, and explicit §5 regression counts.
- §6 Naming: Pass.
Assisted-by: LLM (Gemini 4 Neon)
The J575c SMC has no F0Md/F1Md fan mode keys: it spells them F0md/F1md,
as the T6050 SMC does, so macsmc-hwmon drops the mode key at probe
("Fan F0Ac: optional keys not found: mode F0Md") and fanX_target stays
read-only. Name the keys this SMC has and mark both fans
apple,fan-manual-control, as the J614c/J616c already are.
This SMC has no Ftst unlock key either; the fans are in automatic mode
and take the manual mode write directly. The SMC drives the fans until
userspace writes a target, and writing 0 hands a fan back.
The J775D Mac Studio uses the same key spelling but keeps its fans
read-only for userspace only because they have not been tested this way
yet (the J714s change, 7a479d4, left J716s and J775D out until
then), not because of a known hardware difference.
Tested on a J575c (7.3.0-1-106, integration/aurora f5fae3c) with a
one-shot Stage 2 whose J575c DTB differs only by this change: both
fanX_target are 0644 and the probe message is gone; fan 1 set to 2000
rpm ran at 2000 and returned to the SMC's 1000 rpm after 0 was written;
both fans set to 3000 ran at 2994/2990 and returned the same way; with
fan 1 held at 2000 an s2idle cycle handed it back to the SMC. After
these cycles, a 15 min all-core load (84 W, die up to 99 C) had the SMC
raise both fans from 1000 to 1569 rpm on its own. No macsmc-hwmon
messages in the kernel log.
Then on 7.3.0-1-108 (integration/aurora e892113, this commit's base)
with this commit's DTB: both fans set to their 3625 rpm maximum ran at
about 3640 rpm, and 5000 was clamped to 3625. With both fans held at
their 1000 rpm minimum, the same 15 min all-core load (84-85 W) took
the die to 96 C after 5 min, 104 C after 10 min and 106-108 C over the
last 3 min. That is below the first cpu-die trip (112 C), so no cooling
device engaged and the clocks stayed at 4512/2592/4512 MHz with the same
throughput as under SMC control; the SMC did not trip, shut down or
override the held fans, and took them to 2500 rpm on its own after 0
was written. With fan 1 held at 2000 rpm, both a reboot and a poweroff
followed by power-on came up with the fans under SMC control (1000 rpm)
on a boot whose device tree has no fan control. 0 failed units, and the
same kernel errors and warnings as with the base DTB.
Signed-off-by: Roberto Dantas <7robertodantas@gmail.com>
0144e55 to
b56051f
Compare
|
Thanks both. The rows you asked for are done on the J575c. The commit is the same DT change; only its message changed (J775D note and the new rows). It is still on e892113 and still merges cleanly on the current integration/aurora. Setup: kernel 7.3.0-1-108 = plain integration/aurora e892113 (this commit's base), one-shot Stage 2 whose J575c DTB differs from the e892113 build only by this change (decompiled diff: the two
Agreed on the follow-up: probing Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist re-review at b56051f86b40ffa508c85767af3af723c6ede09c (dt-checks and host-tests: green; MERGEABLE / clean).
All blockers from the prior review at 0144e55b have been resolved cleanly on J575c (7.3.0-1-108 / integration/aurora e892113c7 + exact DTB diff):
- §1 No model gating: Pass — DT-only per-SMC key override (
F0md/F1md+apple,fan-manual-controlonfan-F0Ac/fan-F1Ac), matchingt6050-j714s.dts. Commit message now clearly notes J775D remains read-only only because it has not been tested this way yet. - §2 Production-ready: Pass — works on default kernel command line with no hacks;
dt-checksandhost-testspass. - §3 Safety: Pass — zero hardcoded thermal/RPM limits in DT (
macsmc-hwmonclamps to SMC-reportedF0Mn/F0Mxand restores auto control on write-0/suspend/shutdown/unbind). Worst-case 15 min 84–85 W all-core load with both fans pinned at minimum (1000 rpm) peaked at 108 °C (below the 112 °Ccpu-dietrip), with 0 SMC trips/shutdowns/overrides, and writing0immediately handed control back (SMC ramped to 2500 rpm). Bothrebootandpoweroffwith fan 1 held at 2000 rpm returned both fans to SMC control (1000 rpm) on next boot with stock DTB. - §4 Clean-room & attribution: Pass — single commit
b56051f8with human author/committer and humanSigned-off-by:only, zero AI trailers in commit message,Assisted-by:at end of PR body. - §5 Evidence: Pass — complete J575c hardware verification covering min/mid/max (
3625-> 3637/3639 rpm), upper clamp (5000->3625), auto release (0-> 1000 rpm), s2idle restore, 15 min auto load, 15 min manual-minimum load, reboot/poweroff restore, and regression counts (0 failed units, SELinux disabled / 0avc:lines, identical 6 baseline kernel error lines / warnings, 0macsmc-hwmonmessages). - §6 Naming: Pass.
Ready to merge.
Assisted-by: LLM (Gemini 4 Neon)
fccf8a5
into
aurora-silicon:integration/aurora
The J575c (Mac Studio, M4 Max) fans are monitor-only:
fanX_targetis read-only, and every boot logsThis SMC has no
F0Md/F1Md. Its key list hasF0md/F1md(ui8, readable and writable), the T6050 spelling,and no
Ftstunlock key. This PR names those keys in the J575c fan nodes and marks both fansapple,fan-manual-control, as the J614c/J616c and J714s already are. DT only.The SMC keeps driving the fans until userspace writes a target, and writing 0 hands a fan back (#2448 semantics).
Tests (J575c)
Kernel
7.3.0-1-106= integration/aurora f5fae3c (macsmc-hwmon.candhwmon-fan-dual.dtsiare identicalthere and on e892113). One-shot trial Stage 2 whose J575c DTB differs from the
f5fae3c build only by this change (decompiled diff: the two
apple,fan-modestrings and the two flags).fan1_target,fan2_target0644; the "optional keys not found" lines are gone; no macsmc-hwmon messagesReview round (kernel
7.3.0-1-108= integration/aurora e892113, this commit's base; one-shot Stage 2 whose J575cDTB differs from the e892113 build only by this change):
rebootpoweroff, power onavc:lines); same 6 kernel error lines and same warnings as the base DTB on the same kernel (ASM3142 cold-boot firmware probe, DCP lane count); no macsmc-hwmon linesThe reboot/poweroff rows show the fan is not left in manual mode; they cannot tell the driver's shutdown hook apart
from the SMC resetting the fan mode itself.
J775D keeps its fans read-only only because they have not been tested this way yet (7a479d4 left J716s and
J775D out until then), not because of a known hardware difference. The commit message now says so.
Assisted-by: LLM (Claude:Opus 5.5)