From owner-freebsd-current@FreeBSD.ORG Thu Nov 8 13:47:11 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 7B50016A419 for ; Thu, 8 Nov 2007 13:47:11 +0000 (UTC) (envelope-from barner@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 756E213C4B6 for ; Thu, 8 Nov 2007 13:47:10 +0000 (UTC) (envelope-from barner@gmx.de) Received: (qmail invoked by alias); 08 Nov 2007 13:20:02 -0000 Received: from ppp-88-217-22-81.dynamic.mnet-online.de (EHLO dose.local.invalid) [88.217.22.81] by mail.gmx.net (mp027) with SMTP; 08 Nov 2007 14:20:02 +0100 X-Authenticated: #147403 X-Provags-ID: V01U2FsdGVkX1+jjfMDSdKj1dqigxI+lWyvidddG7ybGZqaQqf6by vuiTkVMtAc9dfE Received: by dose.local.invalid (Postfix, from userid 1000) id 6C8FFC1BC; Thu, 8 Nov 2007 14:22:22 +0100 (CET) Date: Thu, 8 Nov 2007 14:22:22 +0100 From: Simon Barner To: Andrew Atrens Message-ID: <20071108132222.GC1674@dose.local.invalid> References: <472E9D0B.5080409@csub.edu> <20071106002940.GB1817@styx.ethz.ch> <472FD321.3010509@nortel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JgQwtEuHJzHdouWu" Content-Disposition: inline In-Reply-To: <472FD321.3010509@nortel.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Y-GMX-Trusted: 0 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 13:47:11 -0000 --JgQwtEuHJzHdouWu Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Andrew Atrens wrote: >=20 > I see the same thing with my T7500 - >=20 > dev.cpu.0.freq: 300 > dev.cpu.0.freq_levels: 2201/32000 2200/31000 1925/27125 1650/23250 1600/2= 0000 1400/17500 1200/13000 > 1050/11375 900/9750 800/10000 700/8750 600/7500 500/6250 400/5000 300/3750 >=20 > This patch to powerd works around the problem - >=20 >=20 > --- powerd.c 2007-11-05 21:33:40.000000000 -0500 > +++ /usr/src/usr.sbin/powerd/powerd.c 2007-11-05 16:48:49.000000000 -05= 00 > @@ -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 =3D q + 1; > } >=20 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. --=20 Best regards / Viele Gr=FC=DFe, barner@FreeBSD.= org Simon Barner barner@gmx.de --JgQwtEuHJzHdouWu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHMw2OCkn+/eutqCoRAiFyAJ9zqtoeiyWnxYQzy8aXWFzdbFOAYACeJsMP SJmOyapV6NxyAlj62VpPf4Q= =0P4B -----END PGP SIGNATURE----- --JgQwtEuHJzHdouWu--