From owner-freebsd-mobile@FreeBSD.ORG Tue Aug 17 07:10:45 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 076C616A4CE for ; Tue, 17 Aug 2004 07:10:45 +0000 (GMT) Received: from pd5mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id C316443D5E for ; Tue, 17 Aug 2004 07:10:44 +0000 (GMT) (envelope-from colin.percival@wadham.ox.ac.uk) Received: from pd3mr3so.prod.shaw.ca (pd3mr3so-ser.prod.shaw.ca [10.0.141.179])2003))freebsd-mobile@freebsd.org; Tue, 17 Aug 2004 01:06:06 -0600 (MDT) Received: from pn2ml1so.prod.shaw.ca ([10.0.121.145]) by pd3mr3so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I2K0036JX26FI30@pd3mr3so.prod.shaw.ca> for freebsd-mobile@freebsd.org; Tue, 17 Aug 2004 01:06:06 -0600 (MDT) Received: from piii600.wadham.ox.ac.uk (S0106006067227a4a.vc.shawcable.net [24.87.233.42]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0I2K00H4YX24D8@l-daemon> for freebsd-mobile@freebsd.org; Tue, 17 Aug 2004 01:06:06 -0600 (MDT) Date: Tue, 17 Aug 2004 00:05:16 -0700 From: Colin Percival In-reply-to: <86zn4uwr82.fsf@kamino.rfc1149.org> X-Sender: cperciva@popserver.sfu.ca (Unverified) To: Arne Schwabe Message-id: <6.1.0.6.1.20040817000124.03faa468@popserver.sfu.ca> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6 Content-type: text/plain; charset=us-ascii References: <6.1.0.6.1.20040816074348.03f99338@popserver.sfu.ca> <86zn4uwr82.fsf@kamino.rfc1149.org> cc: freebsd-mobile@freebsd.org Subject: Re: Enhanced SpeedStep driver available X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2004 07:10:45 -0000 At 17:19 16/08/2004, Arne Schwabe wrote: >Colin Percival writes: >> Thanks to everyone who has been sending me data about their >> processors (and in particular, the 90nm versions), I now have >> a first draft of a Enhanced SpeedStep driver available. [...] > >[2:14]arne@kamino:~/tmp/estctrl% sudo sysctl hw.est_curfreq=1600 >hw.est_curfreq: 600 -> 600 >[2:14]arne@kamino:~/tmp/estctrl% sudo sysctl hw.est_curfreq=1600 >hw.est_curfreq: 1600 -> 1600 > >For some reason, the message when I set cpu freq higher does not work I think I know what cases this: It takes a few microseconds for the processor to change frequencies, and sysctl(8) is checking the new value too soon. I've added a small delay before returning from the sysctl handler; this should make it impossible for this race to occur. I've put an updated version online; could you try it and tell me if this problem goes away? Colin Percival