From owner-freebsd-acpi@FreeBSD.ORG Fri Apr 28 18:17:47 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 6525016A402 for ; Fri, 28 Apr 2006 18:17:47 +0000 (UTC) (envelope-from nate@root.org) Received: from ylpvm01.prodigy.net (ylpvm01-ext.prodigy.net [207.115.57.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 940A943D45 for ; Fri, 28 Apr 2006 18:17:46 +0000 (GMT) (envelope-from nate@root.org) Received: from pimout6-ext.prodigy.net (pimout6-int.prodigy.net [207.115.4.22]) by ylpvm01.prodigy.net (8.12.10 outbound/8.12.10) with ESMTP id k3SIHfFm007157 for ; Fri, 28 Apr 2006 14:17:41 -0400 X-ORBL: [67.119.74.222] Received: from [10.0.0.53] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222]) by pimout6-ext.prodigy.net (8.13.6 out.dk/8.13.6) with ESMTP id k3SIHfwh225662; Fri, 28 Apr 2006 14:17:43 -0400 Message-ID: <44525C0B.8090802@root.org> Date: Fri, 28 Apr 2006 11:16:43 -0700 From: Nate Lawson User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Ales References: <44524200.8050504@kabelnet.net> In-Reply-To: <44524200.8050504@kabelnet.net> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org 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: Fri, 28 Apr 2006 18:17:47 -0000 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. -- Nate