Date: Sat, 02 Jun 2007 17:40:31 +0100 From: Rui Paulo <rpaulo@fnop.net> To: Arne Schwabe <schwabe@uni-paderborn.de> Cc: Rui Paulo <rpaulo@fnop.net>, current@freebsd.org Subject: Re: MacBook patches Message-ID: <86lkf2mhs0.wl%rpaulo@fnop.net> In-Reply-To: <46609F87.9090201@uni-paderborn.de> References: <86k5vffjz8.wl%rpaulo@fnop.net> <86ejkx56y6.wl%rpaulo@fnop.net> <46609F87.9090201@uni-paderborn.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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? @@ -492,7 +492,7 @@ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86lkf2mhs0.wl%rpaulo>