Re: MacBook patches

From: Rui Paulo <rpaulo_at_fnop.net>
Date: Sat, 02 Jun 2007 17:40:31 +0100
At Sat, 02 Jun 2007 00:36:55 +0200,
Arne Schwabe wrote:
>  sysctl -a |grep asmc
> hw.asmc.fan.0.speed: 4498
> hw.asmc.fan.0.safespeed: 1200
> hw.asmc.fan.0.minspeed: 2000
> hw.asmc.fan.0.maxspeed: 6000
> hw.asmc.fan.0.targetspeed: 4492
> hw.asmc.fan.1.speed: 4489
> hw.asmc.fan.1.safespeed: 1200
> hw.asmc.fan.1.minspeed: 2000
> hw.asmc.fan.1.maxspeed: 6000
> hw.asmc.fan.1.targetspeed: 4492
> hw.asmc.temp.enclosure: 54
> hw.asmc.temp.northbridge1: 118
> ^^^ This seems to be bogus and it . Values jump between 65 and 125.

Can you change asmc.c (asmc_wait function) like this and try again?

_at__at_ -492,7 +492,7 _at__at_ asmc_wait(device_t dev, uint8_t val)
 
        val = val & ASMC_STATUS_MASK;
 
-       for (i = 0; i < 100; i++) {
+       for (i = 0; i < 1000; i++) {
                if ((inb(ASMC_CMDPORT) & ASMC_STATUS_MASK) == val)
                        return 0;
                DELAY(10);


--
Rui Paulo
Received on Sat Jun 02 2007 - 14:40:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:11 UTC