applesmc for Mac Pro 2 x Quad-Core
Hi:
Quoted 8 lines · Andrew Morton
From: Ren� Rebe <[email protected]>
At least the 2x Quad-Core Apple Mac Pro appears to have some over-heat protection which suddenly powers off the whole box under load. This adds support for the fans and temerature sensors in the Mac Pro - later some "windwarm" a-like code should probably monitor the values. For now manually tweaking the fans prevents the sudden shutdown for me.
Quoted 6 lines
cd
/sys/devices/platform/applesmc.768
for x in fan{1,2,3,4}; doecho 1 > ${x}_manual echo 1285 > ${x}_outputdone
Ren�: there is a series of patches for the f75375s hwmon driver that allow fans to be initialized with platform data. Although I haven't reviewed the series in detail yet, IMO the concept looks OK and it may be appropriate for the Macs also.
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021597.html
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021598.html
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021599.html
Quoted 8 lines
Two sensors are 0, while four are 129 �C, those might be removed again, later.
Signed-off-by Ren� Rebe <[email protected]>Cc Mark M. Hoffman <[email protected]>Cc Nicolas Boichat <[email protected]>Cc Jean Delvare <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Quoted 4 lines
---
drivers/hwmon/applesmc.c | 107 ++++++++++++++++++++++++++++++++++--- 1 file changed, 101 insertions(+), 6 deletions(-)
Applied to hwmon-2.6.git/testing, thanks.
Signature · 8 lines
Mark M. Hoffman [email protected] _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 12 lines · Mark M. Hoffman
Quoted 11 lines
At least the 2x Quad-Core Apple Mac Pro appears to have some over-heat protection which suddenly powers off the whole box under load. This adds support for the fans and temerature sensors in the Mac Pro - later some "windwarm" a-like code should probably monitor the values. For now manually tweaking the fans prevents the sudden shutdown for me.
cd
/sys/devices/platform/applesmc.768
for x in fan{1,2,3,4}; doecho 1 > ${x}_manual echo 1285 > ${x}_outputdone
Quoted 8 lines
René: there is a series of patches for the f75375s hwmon driver that allow fans to be initialized with platform data. Although I haven't reviewed the series in detail yet, IMO the concept looks OK and it may be appropriate for the Macs also.
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021597.html
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021598.html
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021599.html
I still need to be convinced why this has to be hard-coded in the kernel when the same can be done, and fine-tuned, in user-space just fine.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Jean:
Quoted 18 lines · Jean Delvare
Quoted 17 lines · Mark M. Hoffman
Quoted 11 lines
At least the 2x Quad-Core Apple Mac Pro appears to have some over-heat protection which suddenly powers off the whole box under load. This adds support for the fans and temerature sensors in the Mac Pro - later some "windwarm" a-like code should probably monitor the values. For now manually tweaking the fans prevents the sudden shutdown for me.
cd
/sys/devices/platform/applesmc.768
for x in fan{1,2,3,4}; doecho 1 > ${x}_manual echo 1285 > ${x}_outputdone
René: there is a series of patches for the f75375s hwmon driver that allow fans to be initialized with platform data. Although I haven't reviewed the series in detail yet, IMO the concept looks OK and it may be appropriate for the Macs also.
Quoted 7 lines
Quoted 3 lines
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021597.html
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021598.html
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021599.htmlI still need to be convinced why this has to be hard-coded in the kernel when the same can be done, and fine-tuned, in user-space just fine.
For the same reasons that it would be better still if it were done by the BIOS.
When the machine's safety is at stake, you initialize the hardware into a sane, safe state as early as possible. Fine tuning is not the issue here. When you *know* that the hardware does not come up into a safe state, you should correct that ASAP.
Say fsck fails out to a shell during early inits... so the fans run full-on, big deal the machine needs attention anyway. That sure beats having some unrelated early userspace problem cause your power supply to catch fire.
Is that good hardware design? No, but that's irrelevant.
You are going to have to convince *me* why that patch series is a bad idea.
Regards,
Signature · 8 lines
Mark M. Hoffman [email protected] _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 24 lines · Mark M. Hoffman
Hi Jean:
Quoted 6 lines · Jean Delvare
Quoted 5 lines · Mark M. Hoffman
René: there is a series of patches for the f75375s hwmon driver that allow fans to be initialized with platform data. Although I haven't reviewed the series in detail yet, IMO the concept looks OK and it may be appropriate for the Macs also.
Quoted 7 lines
Quoted 3 lines
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021597.html
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021598.html
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021599.htmlI still need to be convinced why this has to be hard-coded in the kernel when the same can be done, and fine-tuned, in user-space just fine.
For the same reasons that it would be better still if it were done by the BIOS.
When the machine's safety is at stake, you initialize the hardware into a sane, safe state as early as possible. Fine tuning is not the issue here. When you *know* that the hardware does not come up into a safe state, you should correct that ASAP.
Quoted 7 lines
Say fsck fails out to a shell during early inits... so the fans run full-on, big deal the machine needs attention anyway. That sure beats having some unrelated early userspace problem cause your power supply to catch fire.
Is that good hardware design? No, but that's irrelevant.
You are going to have to convince *me* why that patch series is a bad idea.
OK, you're right.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors