Skip to contentSkip to conversation

applesmc for Mac Pro 2 x Quad-Core

PATCH Mark M. Hoffman 2 participants 4 messages Oct 23, 2007 – Oct 24, 2007

lore
Share & tools
lore
#0 lore raw

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}; do

	echo 1 > ${x}_manual
	echo 1285 > ${x}_output

done

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.

Cc Mark M. Hoffman <[email protected]>
Cc Nicolas Boichat <[email protected]>
Cc Jean Delvare <[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
#1 lore raw
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}; do

	echo 1 > ${x}_manual
	echo 1285 > ${x}_output

done

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
#2 lore raw
In reply to Mark M. Hoffman

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}; do

	echo 1 > ${x}_manual
	echo 1285 > ${x}_output

done

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

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
#3 lore raw
In reply to Mark M. Hoffman
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.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.

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