From owner-freebsd-current@FreeBSD.ORG Tue May 15 11:05:00 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E528216A402; Tue, 15 May 2007 11:05:00 +0000 (UTC) (envelope-from rpaulo@fnop.net) Received: from core.fnop.net (mx.fnop.net [82.102.11.82]) by mx1.freebsd.org (Postfix) with ESMTP id 42D7E13C455; Tue, 15 May 2007 11:04:58 +0000 (UTC) (envelope-from rpaulo@fnop.net) Received: from core.fnop.net (mx.fnop.net [82.102.11.82]) by core.fnop.net (Postfix) with ESMTP id 5F4FF68FEBB; Tue, 15 May 2007 12:04:31 +0100 (WEST) Received: by core.fnop.net (Postfix, from userid 1015) id 1F439690924; Tue, 15 May 2007 12:04:31 +0100 (WEST) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on core.fnop.net X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.7 Received: from epsilon.local.fnop.net (unknown [193.136.24.152]) by core.fnop.net (Postfix) with ESMTP id A056068FEBB; Tue, 15 May 2007 12:04:30 +0100 (WEST) Date: Tue, 15 May 2007 12:04:38 +0100 Message-ID: <86646ul54p.wl%rpaulo@fnop.net> From: Rui Paulo To: Harald Schmalzbauer In-Reply-To: <200705151247.19122.h.schmalzbauer@omnisec.de> References: <42BC519E.8010309@satro.sk> <200705142348.07522.h.schmalzbauer@omnisec.de> <86lkfrymlw.wl%rpaulo@fnop.net> <200705151247.19122.h.schmalzbauer@omnisec.de> User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/21.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-current@freebsd.org, Colin Percival Subject: Re: cpufreq & enhanced speedstep X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 11:05:01 -0000 At Tue, 15 May 2007 12:47:18 +0200, Harald Schmalzbauer wrote: > > Am Dienstag, 15. Mai 2007 schrieb Rui Paulo: > > At Mon, 14 May 2007 23:48:07 +0200, > > > > Harald Schmalzbauer wrote: > [...] > > > I have a E6600 core2 and tried to reduce power dissipation by enabling > > > some speedstep technology. > > > acpi_perf seems to work since dev.cpu.freq shows 800 (possible > > > 2400/1600/800) and goes up while compiling, but I frequently get the > > > following errors: > > > > > > kernel: acpi_perf0: Px transition to 1600 failed > > > kernel: acpi_perf0: set freq failed, err 6 > > > > I don't really know why it fails.. > > With acpi_throttle and p4tcc disabled, like you advised, this > message doesn't occur any more. > But I only have two possible speed steps, 2400 and 1600. But it's switching > smoothly between them, atm. I don't have a power meter handy, so I can't see > if it really works (and saves power). I have a driver to gather the temperature reading of the CPU. If the temperature drops when you've enabled powerd, then it's most likely working. (Check my message "MacBook patches" if you wanna try it out) > But in any case, the Watt values (dev.cpu.0.freq_levels: 2400/88000 > 1600/56000) are wrong for my core2 CPU. > Where does acpi_perf get them from? Ok, form est (since without > cpufreq loaded > the values are /-1) but are they readable from any registers or are > they hard > coded according to the CPU type or are they in any table in the (acpi) BIOS? It gets the values from ACPI methods. -- Rui Paulo