From owner-freebsd-current@FreeBSD.ORG Thu Nov 8 17:51:13 2007 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 A6EA716A417 for ; Thu, 8 Nov 2007 17:51:13 +0000 (UTC) (envelope-from ATRENS@nortel.com) Received: from zrtps0kn.nortel.com (zrtps0kn.nortel.com [47.140.192.55]) by mx1.freebsd.org (Postfix) with ESMTP id 3C46F13C4A6 for ; Thu, 8 Nov 2007 17:51:12 +0000 (UTC) (envelope-from ATRENS@nortel.com) Received: from zcarhxm2.corp.nortel.com (zcarhxm2.corp.nortel.com [47.129.230.99]) by zrtps0kn.nortel.com (Switch-2.2.6/Switch-2.2.0) with ESMTP id lA8Hopi27407; Thu, 8 Nov 2007 17:50:51 GMT Received: from ab-thinky.atrens.ca ([47.128.181.148] RDNS failed) by zcarhxm2.corp.nortel.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 8 Nov 2007 12:50:45 -0500 Message-ID: <47334C71.1010102@nortel.com> Date: Thu, 08 Nov 2007 12:50:41 -0500 From: "Andrew Atrens" User-Agent: Thunderbird 2.0.0.6 (X11/20071028) MIME-Version: 1.0 To: Simon Barner References: <472E9D0B.5080409@csub.edu> <20071106002940.GB1817@styx.ethz.ch> <472FD321.3010509@nortel.com> <20071108132222.GC1674@dose.local.invalid> In-Reply-To: <20071108132222.GC1674@dose.local.invalid> X-Enigmail-Version: 0.95.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 08 Nov 2007 17:50:45.0701 (UTC) FILETIME=[E3943F50:01C8222F] Cc: freebsd-current@FreeBSD.org, Matus Harvan Subject: Re: powerd adaptive mode latching 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: Thu, 08 Nov 2007 17:51:13 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Simon Barner wrote: > Andrew Atrens wrote: >> I see the same thing with my T7500 - >> >> dev.cpu.0.freq: 300 >> dev.cpu.0.freq_levels: 2201/32000 2200/31000 1925/27125 1650/23250 1600/20000 1400/17500 1200/13000 >> 1050/11375 900/9750 800/10000 700/8750 600/7500 500/6250 400/5000 300/3750 >> >> This patch to powerd works around the problem - >> >> >> --- powerd.c 2007-11-05 21:33:40.000000000 -0500 >> +++ /usr/src/usr.sbin/powerd/powerd.c 2007-11-05 16:48:49.000000000 -0500 >> @@ -182,6 +182,11 @@ >> free(*power); >> return (-1); >> } >> + /* kludge to w/around too-close cpu freqs */ >> + if ((i > 0 && ((*freqs)[i-1]-(*freqs)[i]) < 2)) { >> + (*numfreqs)--; >> + i--; >> + } >> p = q + 1; >> } >> > Please see kern/114722. The patch from the PR works fine with my > T61 (T7300). > > Funny enough, I contacted re@ to get this into 7.0 only two minutes ago. > > For the archives, the similar bug described in bin/117375 already seems > to be adressed in RELENG_7. both pr's are open .. and releng_7 and head are both at v 1.26 of acpi_perf.c so, no it's not fixed, *anywhere*. :) Cheers, Andrew. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHM0xw8It2CaCdeMwRAoRnAJkBtAwXrhRCe/nAPeteJ9nOxuq9qQCgnguA Luf5mTMfS7pwwupSIn38sZo= =nNvN -----END PGP SIGNATURE-----