From owner-freebsd-current@FreeBSD.ORG Tue Sep 23 13:19:23 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21B06106564A for ; Tue, 23 Sep 2008 13:19:23 +0000 (UTC) (envelope-from bsd@fluffles.net) Received: from mail.fluffles.net (fluffles.net [80.69.95.190]) by mx1.freebsd.org (Postfix) with ESMTP id DA9238FC0A for ; Tue, 23 Sep 2008 13:19:17 +0000 (UTC) (envelope-from bsd@fluffles.net) Received: from [10.10.0.2] (cust.95.160.adsl.cistron.nl [195.64.95.160]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: info@fluffles.net) by mail.fluffles.net (Postfix) with ESMTP id 0BB6DB29D66; Tue, 23 Sep 2008 15:20:07 +0200 (CEST) Message-ID: <48D8ED68.8040407@fluffles.net> Date: Tue, 23 Sep 2008 15:21:44 +0200 From: "fluffles.net" User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: FreeBSD Current References: <200809070036.m870a3NC001532@softbank219001162114.bbtec.net> <48D72F0E.7040501@fluffles.net> <200809222333.m8MNXiuS064364@softbank219001162114.bbtec.net> <48D85FC0.5050807@fluffles.net> <200809230623.m8N6N5rV002035@softbank219001162114.bbtec.net> <48D8A3A7.5090207@fluffles.net> <200809230833.m8N8XeZ9001511@softbank219001162114.bbtec.net> In-Reply-To: <200809230833.m8N8XeZ9001511@softbank219001162114.bbtec.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "G .Otsuji" Subject: Re: AMD Family 10h cpufreq driver 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, 23 Sep 2008 13:19:23 -0000 G .Otsuji wrote: > Hi Veronica, > > Congratulations too! > It's funny that exactly the same thing :) > @400MHz 58.0W is quite a reduction of power! > Yes i expected some, but not 30W in savings, that's huge! I wonder if i can bring my consumption down with another motherboard. I've got some 20 modern motherboards here for testing purposes; power tests and compatibility with BSD. By the way, i noted that also Intel E8400's EIST (comparable feature to Cool'N'Quiet) is not supported under -CURRENT. The powernow for AMD K8-cpu's works though. And thanks to you now also for Phenom K10-generation. =) >> The only thing missing now is auto-adapting of the frequency by powerd. >> I do see powerd active in top, but it appears not to change the >> frequency. Anything i can do to fix that? Aside from that issue, i would >> say your driver works for me. >> > anyway, powerd looks at dev.cpu.0.freq_levels . > so i'd like to see "sysctl dev.cpu.0.freq_levels" writes. > dev.cpu.0.freq_levels: 2000/-1 1900/-1 1800/-1 1700/-1 1600/-1 1500/-1 1400/-1 1300/-1 1200/-1 1100/-1 1000/-1 900/-1 800/-1 700/-1 600/-1 500/-1 400/-1 > I think powerd's restart is needed, if there is . > I started powerd manually, there is no powerd_enable="YES" in /etc/rc.conf. I also manually load the cpufreq.ko module. > And also i'd like to know about the msr string that would be written > if you patched my patch , it'd be some debug informations for me. > I think more debug will be needed . > Patched and rebooted fine, now i get this output when loading cpufreq: pstate0: on cpu0 pstate0: msr is = 28a8011144004804 pstate1: on cpu1 pstate1: msr is = 28a8011144004804 pstate2: on cpu2 pstate2: msr is = 28a8011144004804 pstate3: on cpu3 pstate3: msr is = 28a8011144004804 [root@test ~]# dd if=/dev/zero of=/dev/gzero.eli bs=1m count=200 & [1] 1124 [root@test ~]# sysctl dev.cpu.0.freq dev.cpu.0.freq: 1200 If powerd works, it should raise the frequency to 2000 now, because of 100% cpu utilization on one core using GELI encryption kernelmodule. Regards, Veronica