From owner-freebsd-stable@FreeBSD.ORG Thu Aug 28 02:27:13 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BFE6106566C for ; Thu, 28 Aug 2008 02:27:13 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 848108FC14 for ; Thu, 28 Aug 2008 02:27:12 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [IPv6:2001:470:1f11:75:2a0:d2ff:fe18:8b38]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m7S2QOP1075084; Wed, 27 Aug 2008 22:26:55 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-stable@freebsd.org Date: Wed, 27 Aug 2008 22:22:08 -0400 User-Agent: KMail/1.9.7 References: <20080827134020.GA4973@epia-2.farid-hajji.net> In-Reply-To: <20080827134020.GA4973@epia-2.farid-hajji.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808272222.08568.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:2001:470:1f11:75::1]); Wed, 27 Aug 2008 22:26:55 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8103/Wed Aug 27 20:41:49 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: cpghost Subject: Re: powerd freezes system on lower cpu speeds X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2008 02:27:13 -0000 On Wednesday 27 August 2008 09:40:20 am cpghost wrote: > Hello, > > I'm building a new system with an AMD Phenom 9350e Quad-Core: > > FreeBSD phenom.example.net 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: > Tue Aug 26 19:49:24 UTC 2008 root@phenom.example.net:/usr/obj/usr/\ > src/sys/GENERIC i386 > > Everything's running smoothly, until I start powerd. As soon as > that happens, the system freezes hard. Trying powerd in the foreground > with -v shows that it decreased the frequencies a few times, but then > hangs the system. > > So I've tried this manually: > > # sysctl dev.cpu.0.freq_levels > dev.cpu.0.freq_levels: 1985/-1 1736/-1 1488/-1 1240/-1 992/-1 744/-1 > 496/-1 248/-1 > > # sysctl dev.cpu.0.freq > dev.cpu.0.freq: 1985 > > powerd freezed the system after reaching 1240 when trying 992. If I set > the frequency manually down to 1240 with: > > # sysctl dev.cpu.0.freq=1240 > > everything's fine. But as soon as I try setting it further down > (992, 744, 496 or 248), the system freezes too, just the same > as with powerd. This is 100% reproducible. > > So what's going on here? Hard to say. My HP nc6220 laptop gets into a lockup where it spends all its time processing ACPI events (I think for some of the thermal monitoring the BIOS does) if I drop the CPU speed below 400. I just set debug.cpufreq.lowest in /boot/loader.conf. -- John Baldwin