From owner-freebsd-acpi@FreeBSD.ORG Sun Apr 30 15:27:00 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D88116A400 for ; Sun, 30 Apr 2006 15:27:00 +0000 (UTC) (envelope-from ales.rom@kabelnet.net) Received: from mta1.siol.net (mta1.siol.net [193.189.160.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97B3743D45 for ; Sun, 30 Apr 2006 15:26:58 +0000 (GMT) (envelope-from ales.rom@kabelnet.net) Received: from edge2.siol.net ([10.10.10.211]) by mta1.siol.net with ESMTP id <20060430152657.CZQV4387.mta1.siol.net@edge2.siol.net>; Sun, 30 Apr 2006 17:26:57 +0200 Received: from [192.168.1.105] (really [193.77.16.246]) by edge2.siol.net with ESMTP id <20060430152656.SONM7870.edge2.siol.net@[192.168.1.105]>; Sun, 30 Apr 2006 17:26:56 +0200 Message-ID: <4454D745.6000203@kabelnet.net> Date: Sun, 30 Apr 2006 15:27:01 +0000 From: Ales User-Agent: Thunderbird 1.5 (X11/20060225) MIME-Version: 1.0 To: Nate Lawson , freebsd-acpi@freebsd.org References: <44524200.8050504@kabelnet.net> <44525C0B.8090802@root.org> In-Reply-To: <44525C0B.8090802@root.org> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: powerd on Gericom Webgine XL not running quite well X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 15:27:00 -0000 Nate Lawson pravi: > Ales wrote: > > Powerd is running, but when it comes to maximum frequency speed it > stays >> there. The example of powerd -v is here: >> >> # powerd -v >> idle time < 65%, increasing clock speed from 798 MHz to 931 MHz >> idle time > 90%, decreasing clock speed from 1064 MHz to 997 MHz >> idle time > 90%, decreasing clock speed from 931 MHz to 864 MHz >> idle time < 65%, increasing clock speed from 931 MHz to 1064 MHz >> idle time > 90%, decreasing clock speed from 1197 MHz to 1197 MHz >> idle time > 90%, decreasing clock speed from 1197 MHz to 1197 MHz >> idle time > 90%, decreasing clock speed from 1197 MHz to 1197 MHz >> idle time > 90%, decreasing clock speed from 1197 MHz to 1197 MHz >> . >> . >> . >> So, it looks that powerd can increase and decrease CPU speed until it >> reaches maximum. If I manualy change frequency with sysctl, frequency >> can go down again. >> >> sysctl dev.cpu.0.freq=800 >> dev.cpu.0.freq: 1197 -> 798 > >> dev.cpu.0.%desc: ACPI CPU >> dev.cpu.0.%driver: cpu >> dev.cpu.0.%location: handle=\_PR_.CPU1 >> dev.cpu.0.%pnpinfo: _HID=none _UID=0 >> dev.cpu.0.%parent: acpi0 >> dev.cpu.0.freq: 1197 >> dev.cpu.0.freq_levels: 1197/35004 1197/35004 1197/35004 1197/35004 >> 1197/35004 1064/29004 997/25291 931/23595 864/21910 798/20224 >> >> dev.powernow.0.%desc: PowerNow! K7 >> dev.powernow.0.%driver: powernow >> dev.powernow.0.%parent: cpu0 >> dev.powernow.0.freq_settings: 1197/35004 1197/35004 1197/35004 >> 1197/35004 1197/35004 1064/29004 997/25291 931/23595 864/21910 >> 798/20224 > > Something is really screwy with your powernow settings. It's > reporting 5 settings with all the same freq (1197, see above). So > powerd is decreasing your frequency, it's just decreasing from 1197 to > 1197 (no change). > > The way to figure this out is to add some debugging prints to the > powernow table detection algorithm to see why this is occurring. > Also, you could try not loading cpufreq.ko and see if acpi_perf gives > more accurate settings. Just make sure acpi is loaded to get acpi_perf. > Well, if I change POWERNOW_MAX_STATES in powernow.c from 16 to 7 (I belive it is the number of states on my proc) everything works fine!!! I know it is stupid solution, but I do not know anything about C/C++ programming. Sorry. dev.powernow.0.freq_settings: 1197/-1 1064/-1 997/-1 931/-1 864/-1 798/-1 Another thing. I belive that 1 frequency here is missing. (8,5x133MHz=1133MHz) It should be there because we have FSB=133, multi=6 to 9 in 0,5 step. Is this information helpful to anyone? Ales