From owner-freebsd-acpi@FreeBSD.ORG Thu Nov 8 19:48:06 2007 Return-Path: Delivered-To: acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BB6A16A480 for ; Thu, 8 Nov 2007 19:48:06 +0000 (UTC) (envelope-from SRS0=d8604140a8ef9b17ae9120e79297b83c78dccd77=513=es.net=oberman@es.net) Received: from postal1.es.net (postal4.es.net [IPv6:2001:400:6000:1::66]) by mx1.freebsd.org (Postfix) with ESMTP id C17F213C4DD for ; Thu, 8 Nov 2007 19:48:03 +0000 (UTC) (envelope-from SRS0=d8604140a8ef9b17ae9120e79297b83c78dccd77=513=es.net=oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal4.es.net (Postal Node 4) with ESMTP (SSL) id NED29931; Thu, 08 Nov 2007 12:47:31 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id F3E5B4500E; Thu, 8 Nov 2007 11:47:29 -0800 (PST) To: Nate Lawson In-Reply-To: Your message of "Thu, 08 Nov 2007 11:25:16 PST." <4733629C.2010707@root.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1194551249_29324P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 08 Nov 2007 11:47:29 -0800 From: "Kevin Oberman" Message-Id: <20071108194729.F3E5B4500E@ptavv.es.net> X-Sender-IP: 198.128.4.29 X-Sender-Domain: es.net X-Recipent: ;; X-Sender: X-To_Name: Nate Lawson X-To_Domain: root.org X-To: Nate Lawson X-To_Email: nate@root.org X-To_Alias: nate Cc: acpi@freebsd.org Subject: Re: Deep sleep modes on 7-BETA locks up syscons X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 19:48:06 -0000 --==_Exmh_1194551249_29324P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Date: Thu, 08 Nov 2007 11:25:16 -0800 > From: Nate Lawson > > Kevin Oberman wrote: > > I have already sent much of this to -current@, but ACPI is clearly > > involved and I'll admit that I don't fully understand all of the > > implications of sleep (Cx) states. > > > > Recently I discovered that I could no longer boot up on battery. (As it > > turned out, I could not shut down, either.) The boot proceeds to devd > > which kicks off power_profile which resets the cx_state. I use > > performance_cx_lowest="HIGH" and economy_cx_lowest="LOW" which drops > > cx_state to C4 when on battery. > > > > States of C1 and C2 don't cause a problem and C3 and C4 do. (C4 is only > > available when on battery.) > > > > At that point things slow to a crawl. I have never had the patience to > > see if it would ever finish the boot, but it took many minutes just to > > start ipfw and load the rules. When anything made it to the screen, it > > appeared several lines at a time. > > > > If I am up and switch cx_state to C3 or C4 while running X, things work > > fine, but, if I exit X while the cx_state is still C3 or C4, the system > > switches back to the vty and spits out a few lines before locking up > > again. After several minutes I was able to log in to another vty and > > change the cx_state which started things running normally. > > > > This is a T43 (Pentium-M @2GHz) running ULE on 7-BETA2 of Nov. 4. The > > problem has not been there for too long, but I can't say for sure when I > > last ran on battery when not in X. > > > > I don't know if this is a syscons issue or some ugly interaction between > > syscons and ULE or an ACPI issue. > > > > If anyone else has seen this or has any ideas, I'd love to hear about it. > > Does changing timers help? sysctl kern.timecounter.hardware = TSC or > other options from kern.timecounter.choice > > I'm wondering if the local APIC timer is the problem. Crap! I need to remember when I make fairly fundamental changes on my system! I entirely forgot that I turned on APIC on my system for the first time as it didn't work when I first got the system. I'm pretty sure that this is what tickled it. Unfortunately, setting the timecounter to TSC does not seem to make a difference. :-( But I do appreciate the APIC suggestion. I'm about to build a new kernel without APIC to confirm this. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1194551249_29324P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFHM2fRkn3rs5h7N1ERAr/XAKCWlEbCULashnVV2GgNjLGY7iFYKQCgnV8r +1Sf8PPKgo847KjJNU0vRYU= =lv4o -----END PGP SIGNATURE----- --==_Exmh_1194551249_29324P--