[PATCH] ugly hack to make therm_pm72 work on XServe G5

STALE8112d

3 messages, 2 authors, 2004-08-06 · open the first message on its own page

[PATCH] ugly hack to make therm_pm72 work on XServe G5

From: Harald Welte <laforge@gnumonks.org>
Date: 2004-08-05 11:43:48

Hi!

I've now figured out most of the details on the Apple FCU setup on my
Dual G5 XServe ClusterNode.  In case anybody is interested, attached is
a ugly hack to add support for RackMac3,1 to therm_pm72.c and make the
machine a bit less noisy.

I'm now working on a completely new FCU driver that just exports the fan
RPM / PWM, voltage/current/... to userspace.  I think some userspace
process can then take care about the policy when and how to blow what
amount of air through the individual fans.

My main problem is that the machine will be installed in some rack 500km
away, so I can't really make sure that any further driver development
will actually work as expected. ;)

Just in case anybody else wants to dive into this issue, please contact
me before, I already discovered quite a lot more about the FCU/i2c/...
setup in the RackMac3,1 than what is visible in this patch.

(attached also a small userspace program to hard-code the fans to some
rpm/pwm)
--
- Harald Welte [off-list ref]               http://www.gnumonks.org/
============================================================================
Programming is like sex: One mistake and you have to support it your lifetime

Re: [PATCH] ugly hack to make therm_pm72 work on XServe G5

From: Harald Welte <laforge@gnumonks.org>
Date: 2004-08-06 08:04:06

I actually forgot that small userspace program ;)

It is a total ripoff of the kernel driver and was implemented because
it's easier to play with i2c from userspace during development.

benh:  Any reason why you implemented your own byte+word read/write
routines?  Apparently the i2c_smbus routines work quite fine, even from
userspace...

--
- Harald Welte [off-list ref]               http://www.gnumonks.org/
============================================================================
Programming is like sex: One mistake and you have to support it your lifetime

Re: [PATCH] ugly hack to make therm_pm72 work on XServe G5

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2004-08-06 08:09:14

On Fri, 2004-08-06 at 18:04, Harald Welte wrote:
I actually forgot that small userspace program ;)

It is a total ripoff of the kernel driver and was implemented because
it's easier to play with i2c from userspace during development.

benh:  Any reason why you implemented your own byte+word read/write
routines?  Apparently the i2c_smbus routines work quite fine, even from
userspace...
I don't remember the exact reason, I had some issues, either with the
sensors or the FCU, or maybe it was for mimmicing OF code...

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help