From owner-freebsd-acpi@FreeBSD.ORG Sun Mar 6 01:02:46 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8FAB16A4CE for ; Sun, 6 Mar 2005 01:02:46 +0000 (GMT) Received: from muse.clarku.edu (calliope.clarku.edu [140.232.1.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2955243D3F for ; Sun, 6 Mar 2005 01:02:46 +0000 (GMT) (envelope-from ipartola@pisem.net) Received: from [192.168.0.101] (thalia.clarku.edu [140.232.1.65]) by muse.clarku.edu (Postfix) with ESMTP id 19BD91C8586 for ; Sat, 5 Mar 2005 20:02:45 -0500 (EST) Message-ID: <422A56B4.20103@pisem.net> Date: Sat, 05 Mar 2005 20:02:44 -0500 From: Igor Partola User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-acpi@freebsd.org References: <20050301213527.GA2286@adv.devet.org> <42259DB9.4080201@danielgraupner.de> <42276264.3060605@pisem.net> <42276299.8060206@pisem.net> <4227B581.6090705@root.org> <20050304195909.GD54743@galgenberg.net> In-Reply-To: <20050304195909.GD54743@galgenberg.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: Dell Inspiron 510m sleep states S3/S4 not working X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2005 01:02:46 -0000 Ulrich Spörlein wrote: >On Thu, 03.03.2005 at 17:10:25 -0800, Nate Lawson wrote: > > >>Easiest way to test for resets is to stick this loop in the C code, >>pushing it farther down until you identify the line of code that resets >>instead of hanging. >> >>hang: goto hang; >> >>Try this in AcpiEnterSleepState(). >> >> > >Been there, done that. See >http://lists.freebsd.org/mailman/htdig/freebsd-acpi/2004-December/000949.html > >Ulrich Spoerlein > > I just did some testing just to make sure that my system resets on the same line. Sadly that is the problem, writing PM1A resets the machine. I also compared the code with hwsleep.c from linux 2.6.10. They almost exactly the same, except for at one point but that should only affect S5. Everything else is the same. I have no idea of where the problem is but I'm willing to debug the code if someone tells me where to look. Should I maybe address the issue on freebsd-current as the problem might be in the device drivers? Igor From owner-freebsd-acpi@FreeBSD.ORG Sun Mar 6 02:30:09 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A00816A4CE for ; Sun, 6 Mar 2005 02:30:09 +0000 (GMT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85D7243D48 for ; Sun, 6 Mar 2005 02:30:08 +0000 (GMT) (envelope-from rjohns44@comcast.net) Received: from localhost.localdomain (pcp08854907pcs.ypeast01.mi.comcast.net[68.85.190.79]) by comcast.net (rwcrmhc12) with SMTP id <2005030602300701400ll9ibe>; Sun, 6 Mar 2005 02:30:07 +0000 From: Ron Johnson To: Nate Lawson In-Reply-To: <42213901.8050809@root.org> References: <1109461095.57306.10.camel@localhost> <42213901.8050809@root.org> Date: Sat, 05 Mar 2005 21:30:06 -0500 Message-Id: <1110076206.22929.13.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-acpi@freebsd.org Subject: Re: kern/77805: Boot hangs with ACPI enabled X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2005 02:30:09 -0000 On Sat, 2005-02-26 at 19:05 -0800, Nate Lawson wrote: > Ron Johnson wrote: > > Any help would be appreciated! dmesg output and ASL are in the bug > > report. > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=77805 > > > > With ACPI enabled, boot fails at "hw.acpi.cpu.cx_lowest: C1 -> C3". This > > statement is not in sysctl.conf or loader.conf and appears to be changed > > automatically. No issue in all previous 5.X versions. 5.3-STABLE > > downloaded from CVS on 2/19/2005 around 3pm EST. > > You want to change the performance/economy settings in rc.conf. Man 5 > rc.conf > > The defaults were changed between 5.2.1 and 5.3: > > src/etc/defaults/rc.conf:revision 1.206 > date: 2004/05/29 04:52:37; author: njl; state: Exp; lines: +1 -1 > Throw the switch and enable use of the lowest idle states while online in > addition to offline. This can be overridden in /etc/rc.conf if it causes > trouble although this has been stable since 2003/12. > > I have no idea why C3 is unstable on your machine. Please try > overriding this with something like this and see if it helps: > > performance_cx_state=HIGH > economy_cx_state=HIGH > It didn't help. Still hangs at the same point. It did output new error messages below. Feb 27 18:08:13 armada kernel: ACPI-0361: *** Error: Thread 29 cannot release Mutex [MUT0] acquired by thread 8 Feb 27 18:08:13 armada kernel: ACPI-1304: *** Error: Method execution failed [\_SB_.PCI0.PIB_.EC0_.SMRD] (Node 0xc14653e0), AE_AML_NOT_OWNER Feb 27 18:08:13 armada kernel: ACPI-1304: *** Error: Method execution failed [\_SB_.BAT1.UPBI] (Node 0xc13ab2c0), AE_AML_NOT_OWNER Feb 27 18:08:13 armada kernel: ACPI-1304: *** Error: Method execution failed [\_SB_.BAT1.SEBI] (Node 0xc13ab200), AE_AML_NOT_OWNER Feb 27 18:08:13 armada kernel: ACPI-1304: *** Error: Method execution failed [\_TZ_.THRM._TMP] (Node 0xc13ab8a0), AE_AML_NOT_OWNER Feb 27 18:08:13 armada kernel: acpi: suspend request ignored (not ready yet) Feb 27 18:08:16 armada last message repeated 5 times Feb 27 18:08:16 armada syslogd: exiting on signal 15 This does seem similar to the "Laptop and ACPI" thread http://lists.freebsd.org/pipermail/freebsd-acpi/2005-March/001325.html. Although my clock speed is reported correctly without ACPI. From owner-freebsd-acpi@FreeBSD.ORG Sun Mar 6 07:29:36 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EECA16A4CE for ; Sun, 6 Mar 2005 07:29:36 +0000 (GMT) Received: from ylpvm29.prodigy.net (ylpvm29-ext.prodigy.net [207.115.57.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A3E943D41 for ; Sun, 6 Mar 2005 07:29:36 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.5.51] (adsl-64-171-186-189.dsl.snfc21.pacbell.net [64.171.186.189])j267TCRs019476; Sun, 6 Mar 2005 02:29:13 -0500 Message-ID: <422AB15D.1040009@root.org> Date: Sat, 05 Mar 2005 23:29:33 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0RC1 (X11/20041205) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Igor Partola References: <20050301213527.GA2286@adv.devet.org> <42259DB9.4080201@danielgraupner.de> <42276264.3060605@pisem.net> <42276299.8060206@pisem.net> <4227B581.6090705@root.org> <20050304195909.GD54743@galgenberg.net> <422A56B4.20103@pisem.net> In-Reply-To: <422A56B4.20103@pisem.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-acpi@freebsd.org Subject: Re: Dell Inspiron 510m sleep states S3/S4 not working X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2005 07:29:36 -0000 Igor Partola wrote: > Ulrich Spörlein wrote: > >> On Thu, 03.03.2005 at 17:10:25 -0800, Nate Lawson wrote: >> >> >>> Easiest way to test for resets is to stick this loop in the C code, >>> pushing it farther down until you identify the line of code that >>> resets instead of hanging. >>> >>> hang: goto hang; >>> >>> Try this in AcpiEnterSleepState(). >>> >> >> >> Been there, done that. See >> http://lists.freebsd.org/mailman/htdig/freebsd-acpi/2004-December/000949.html >> >> >> Ulrich Spoerlein >> >> > I just did some testing just to make sure that my system resets on the > same line. Sadly that is the problem, writing PM1A resets the machine. > > I also compared the code with hwsleep.c from linux 2.6.10. They almost > exactly the same, except for at one point but that should only affect > S5. Everything else is the same. > > I have no idea of where the problem is but I'm willing to debug the code > if someone tells me where to look. Should I maybe address the issue on > freebsd-current as the problem might be in the device drivers? This kind of thing is hard to track down since it's likely an initialization problem elsewhere (i.e. we map pages differently or something.) It's probably not device drivers but is somewhere in the core i386 kernel instead. I'll look into it. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Mon Mar 7 11:01:21 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 289CE16A4CE for ; Mon, 7 Mar 2005 11:01:21 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAAA443D31 for ; Mon, 7 Mar 2005 11:01:20 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j27B1KMg037140 for ; Mon, 7 Mar 2005 11:01:20 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j27B1KmU037134 for freebsd-acpi@freebsd.org; Mon, 7 Mar 2005 11:01:20 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 7 Mar 2005 11:01:20 GMT Message-Id: <200503071101.j27B1KmU037134@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-acpi@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 11:01:21 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/07/22] i386/54756 acpi ACPI suspend/resume problem on CF-W2 lapt o [2003/08/17] i386/55661 acpi ACPI suspend/resume problem on ARMADA M70 o [2003/08/20] kern/55822 acpi No ACPI power off with SMP kernel o [2003/08/27] kern/56024 acpi ACPI suspend drains battery while in S3 o [2003/09/03] i386/56372 acpi acpi don't work on TYAN tiger100 M/B f [2003/09/10] kern/56659 acpi ACPI trouble on IBM ThinkPad X31 f [2003/12/17] i386/60317 acpi FreeBSD 5.2rc1 doesn't boot with ACPI ena o [2004/03/09] i386/64002 acpi acpi problem o [2004/05/27] i386/67273 acpi [hang] system hangs with acpi and Xfree o [2004/10/12] i386/72566 acpi ACPI, FreeBSD disables fan on Compaq Arma 10 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2004/01/22] i386/61703 acpi ACPI + Sound + Boot = Reboot o [2004/03/17] kern/64365 acpi ACPI problems f [2004/05/25] i386/67189 acpi ACPI S3 reboot computer on Dell Latitude o [2004/05/28] kern/67309 acpi zzz reboot computer (ACPI S3) f [2004/06/23] i386/68219 acpi ACPI + snd_maestro3 problem o [2004/07/29] i386/69750 acpi Boot without ACPI failed on ASUS L5 o [2004/11/11] i386/73822 acpi acpi / thermal support o [2004/11/21] kern/74215 acpi [request] add ACPI headers to /usr/includ 8 problems total. From owner-freebsd-acpi@FreeBSD.ORG Mon Mar 7 15:01:39 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E8F816A4CF for ; Mon, 7 Mar 2005 15:01:39 +0000 (GMT) Received: from tierra2.ng.fadesa.es (tierra2.ng.fadesa.es [195.55.55.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id A471C43D39 for ; Mon, 7 Mar 2005 15:01:37 +0000 (GMT) (envelope-from fandino@ng.fadesa.es) Received: from [195.55.55.163] ([195.55.55.163]) (authenticated bits=0) by tierra2.ng.fadesa.es (8.12.10/8.12.10) with ESMTP id j27F1Yf2025774 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 7 Mar 2005 16:01:36 +0100 Message-ID: <422C6CCE.1080908@ng.fadesa.es> Date: Mon, 07 Mar 2005 16:01:34 +0100 From: fandino User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: gl, en, es MIME-Version: 1.0 Cc: freebsd-acpi@freebsd.org References: <42281E1A.9050504@ng.fadesa.es> In-Reply-To: <42281E1A.9050504@ng.fadesa.es> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: user fandino from 195.55.55.163 X-Virus-Scanned: ClamAV 0.80/742/Wed Mar 2 02:05:59 2005 clamav-milter version 0.80j on tierra2.ng.fadesa.es X-Virus-Status: Clean Subject: Re: FreeBSD powers up after shutdown with 5.4-PRERELEASE X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: fandino@ng.fadesa.es List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 15:01:39 -0000 Hello, can be this related to my problem? # iasl acpi.txt Intel ACPI Component Architecture ASL Optimizing Compiler / AML Disassembler version 20041119 [Mar 5 2005] Copyright (C) 2000 - 2004 Intel Corporation Supports ACPI Specification Revision 2.0c acpi.txt 343: Method (\_WAK, 1, NotSerialized) Warning 2026 - ^ Reserved method must return a value (_WAK) acpi.txt 4367: Store (Local0, Local0) Error 1013 - ^ Method local variable is not initialized (Local0) ASL Input: acpi.txt - 5049 lines, 146322 bytes, 1828 keywords Compilation complete. 1 Errors, 1 Warnings, 0 Remarks, 538 Optimizations fandino wrote: > I need some help here, I have FreeBSD running in a Gigabyte GA-7N400V Pro2 > motherboard, all works fine except when the "Resume by alarm" option is > enabled in the bios. From this moment FreeBSD is unable to halt the machine > because it does a reset instead. As result the FreeBSD workstation is on > all day. > > I've followed the handbook advise switching hw.acpi.disable_on_poweroff > from 0 to 1 and viceversa, but it doesn't help. > > Yet I think it is something related to FreeBSD because I did a test > with a slackware distribution (kernel 2.4.26 and acpi ver. 20040326) > and indeed Linux is able to power off the machine with "Resume by alarm" > enabled. > > it would be possible to correct this easily ot it requires a big effort? > > Thank you. > > some info: > http://195.55.55.164/tests/FreeBSD/acpi/dmesg.txt > http://195.55.55.164/tests/FreeBSD/acpi/acpi.iasl.txt > > hw.acpi.supported_sleep_state: S1 S4 S5 > hw.acpi.power_button_state: S5 > hw.acpi.sleep_button_state: S1 > hw.acpi.lid_switch_state: NONE > hw.acpi.standby_state: S1 > hw.acpi.suspend_state: S3 > hw.acpi.sleep_delay: 1 > hw.acpi.s4bios: 0 > hw.acpi.verbose: 0 > hw.acpi.reset_video: 1 > hw.acpi.cpu.cx_supported: C1/0 > hw.acpi.cpu.cx_lowest: C1 > hw.acpi.cpu.cx_usage: 100.00% From owner-freebsd-acpi@FreeBSD.ORG Mon Mar 7 21:59:35 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 919DD16A4CE for ; Mon, 7 Mar 2005 21:59:35 +0000 (GMT) Received: from ms005msg.fastwebnet.it (ms005msg.fastwebnet.it [213.140.2.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F13D43D5C for ; Mon, 7 Mar 2005 21:59:34 +0000 (GMT) (envelope-from filippo@portatile.fastwebnet.it) Received: from portatile (1.255.90.63) by ms005msg.fastwebnet.it (7.2.052.3) id 41FFB24D0075E10B for freebsd-acpi@freebsd.org; Mon, 7 Mar 2005 22:59:33 +0100 Received: from portatile.fastwebnet.it (localhost [127.0.0.1]) by portatile (Postfix) with ESMTP id A8A1BB880 for ; Tue, 7 Mar 2006 22:59:32 +0100 (CET) Received: (from filippo@localhost) by portatile.fastwebnet.it (8.13.1/8.13.1/Submit) id k27LxVmI023562 for freebsd-acpi@freebsd.org; Tue, 7 Mar 2006 22:59:31 +0100 (CET) (envelope-from filippo) From: Filippo Forti To: freebsd-acpi@freebsd.org Message-ID: <20060307215931.GA17455@portatile.fastwebnet.it> Mail-Followup-To: freebsd-acpi@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: Dell Inspiron 5100 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: filippo.forti@fastwebnet.it List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Mon, 07 Mar 2005 21:59:35 -0000 X-Original-Date: Tue, 7 Mar 2006 22:59:31 +0100 X-List-Received-Date: Mon, 07 Mar 2005 21:59:35 -0000 Hello, Today I updated bios to version A32 on my inspiron 5100. As a result, I often get messages similar to these: ACPI-0501: *** Error: Handler for [EmbeddedControl] returned AE_NO_HARDWARE_RESPONSE ACPI-1304: *** Error: Method execution failed [\\_TZ_.THRM._TMP] (Node 0xc226ea60), AE_NO_HARDWARE_RESPONSE I'm not running on a modified dsdt at the moment. S1 is the only sleep state which seems to work, although the bios claims itself as "S4 capable". Attempting to enter S3 or S3 causes the Inspiron to reboot. Attempting to disassemble and compile the DSDT gives several warnings: portatile# iasl dell.dsl Intel ACPI Component Architecture ASL Optimizing Compiler / AML Disassembler version 20041119 [Mar 2 2005] Copyright (C) 2000 - 2004 Intel Corporation Supports ACPI Specification Revision 2.0c dell.dsl 518: Method (\_WAK, 1, NotSerialized) Warning 2026 - ^ Reserved method must return a value (_WAK) dell.dsl 1204: Method (_S0D, 0, NotSerialized) Warning 2033 - Unknown reserved name ^ (_S0D) dell.dsl 1246: Method (_S0D, 0, NotSerialized) Warning 2033 - Unknown reserved name ^ (_S0D) dell.dsl 1300: Method (_S0D, 0, NotSerialized) Warning 2033 - Unknown reserved name ^ (_S0D) dell.dsl 1342: Method (_S0D, 0, NotSerialized) Warning 2033 - Unknown reserved name ^ (_S0D) dell.dsl 2117: Return (Package (0x00) {}) Warning 2018 - Effective AML package length is zero ^ ASL Input: dell.dsl - 2362 lines, 67868 bytes, 996 keywords AML Output: DSDT.aml - 9276 bytes 401 named objects 595 executable opcodes Compilation complete. 0 Errors, 6 Warnings, 0 Remarks, 232 Optimizations Has anyone experienced or solved such a problem? Thanks in advance, Filippo From owner-freebsd-acpi@FreeBSD.ORG Tue Mar 8 14:29:28 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 349C716A549 for ; Tue, 8 Mar 2005 14:29:27 +0000 (GMT) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF22A43D53 for ; Tue, 8 Mar 2005 14:29:25 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id j28ETPIr081773 for ; Tue, 8 Mar 2005 08:29:25 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <422DB6C1.4000108@centtech.com> Date: Tue, 08 Mar 2005 08:29:21 -0600 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Dell D610 S3 acts like S5 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2005 14:29:28 -0000 I've recently switched from a D600 to a D610 (Dell Latitude laptop), which is a brand new model. Previously, S1 worked perfectly, and S3 would reboot the laptop. Now that I am on the new laptop, I don't seem to have an S1 (seemed strange, but what do I know), but I do have S3, S4, and S5. I'm now seeing different behavior when trying to go into S3 - the machine blanks the screen, runs the hard drive, and then powers off completely, as if I told it to go into S5 instead, but doesn't gracefully shut down the system. I'm running 6.0-CURRENT as of about a week ago. I have some general (asl, dsdt, dmesg, sysctl) info here: http://www.googlebit.com/freebsd/ I'd like to help debug this ACPI stuff anyway I can. Thanks for the great work so far! Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology I have seen the future and it is just like the present, only longer. ------------------------------------------------------------------------ From owner-freebsd-acpi@FreeBSD.ORG Wed Mar 9 19:29:40 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B63116A4CE for ; Wed, 9 Mar 2005 19:29:40 +0000 (GMT) Received: from postal3.es.net (postal3.es.net [198.128.3.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29EC943D77 for ; Wed, 9 Mar 2005 19:29:40 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal3.es.net (Postal Node 3) with ESMTP (SSL) id IBA74465; Wed, 09 Mar 2005 11:29:38 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 23DCB5D07; Wed, 9 Mar 2005 11:29:38 -0800 (PST) X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: nate@root.org Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_-19024908990" Date: Wed, 09 Mar 2005 11:29:38 -0800 From: "Kevin Oberman" Message-Id: <20050309192938.23DCB5D07@ptavv.es.net> cc: acpi@freebsd.org Subject: Issues with powerd X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 19:29:40 -0000 This is a multipart MIME message. --==_Exmh_-19024908990 Content-Type: text/plain; charset=us-ascii I have finally had a little time to play with powerd and I didn't find adaptive mode worked too well for me on my T30 running a Gnome desktop. The effect of running powerd was to move the freq in a rapid sawtooth dropping quickly to 150 MHz and them jumping back to 1800 and repeating. If the CPU was busy, the low point of the sawtooth would be elevated to 300or 600, but the basic pattern was constant oscillation. I looked at the source and decided that two things were wrong. 1. Dropping to half of the initial CPU speed was to a good choice. The drop is speed was too quick and it resulted in reducing the number of CPU performance levels to a small number instead of the 15 that should be available. 2. When the CPU got busier, jumping all the way to full speed was excessive and would always result in the sawtooth oscillation. I modified powerd to increase or decrease cpufreq in single steps instead of jumping (in either direction) and lowered DEFAULT_ACTIVE_PERCENT to 75. This results in a system that wanders between 150 and 450 when idle and climbs to full speed when under load. I suspect this is sub-optimal, but I think it's a lot better then the current operation. I will try to spend some time tweaking the algorithm a bit to see what makes things run best (for my personal idea of "best". Ideally, I'd like to see it stay constant an an idle or constantly loaded system and I suspect that I will need to add hysteresis to get there. Attached are my patch to powerd.c. -- 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 --==_Exmh_-19024908990 Content-Type: text/plain ; name="powerd.c.diff"; charset=us-ascii Content-Description: powerd.c.diff Content-Disposition: attachment; filename="powerd.c.diff" --- powerd.c.orig Sat Feb 26 17:58:49 2005 +++ powerd.c Wed Mar 9 11:27:46 2005 @@ -43,7 +43,7 @@ #include #include -#define DEFAULT_ACTIVE_PERCENT 80 +#define DEFAULT_ACTIVE_PERCENT 75 #define DEFAULT_IDLE_PERCENT 90 #define DEFAULT_POLL_INTERVAL 500 @@ -379,24 +379,28 @@ /* * If we're idle less than the active mark, jump the CPU to - * its fastest speed if we're not there yet. If we're idle + * the next faster speed if we're not there yet. If we're idle * more than the idle mark, drop down to the first setting * that is half the current speed (exponential backoff). */ if (idle < (total * cpu_running_mark) / 100 && curfreq < freqs[0]) { + for (i = (numfreqs - 1); i >= 0; i--) { + if (freqs[i] > curfreq) + break; + } if (vflag) { printf("idle time < %d%%, increasing clock" " speed from %d MHz to %d MHz\n", - cpu_running_mark, curfreq, freqs[0]); + cpu_running_mark, curfreq, freqs[i]); } - if (set_freq(freqs[0])) + if (set_freq(freqs[i])) err(1, "error setting CPU frequency %d", - freqs[0]); + freqs[i]); } else if (idle > (total * cpu_idle_mark) / 100 && curfreq > freqs[numfreqs - 1]) { for (i = 0; i < numfreqs - 1; i++) { - if (freqs[i] <= curfreq / 2) + if (freqs[i] < curfreq) break; } if (vflag) { --==_Exmh_-19024908990-- From owner-freebsd-acpi@FreeBSD.ORG Wed Mar 9 19:33:44 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4F2416A4CE for ; Wed, 9 Mar 2005 19:33:44 +0000 (GMT) Received: from postal3.es.net (postal3.es.net [198.128.3.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC17243D79 for ; Wed, 9 Mar 2005 19:33:44 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal3.es.net (Postal Node 3) with ESMTP (SSL) id IBA74465; Wed, 09 Mar 2005 11:33:44 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 38BDB5D07; Wed, 9 Mar 2005 11:33:44 -0800 (PST) To: acpi@freebsd.org In-reply-to: Your message of "Wed, 09 Mar 2005 11:29:38 PST." <20050309192938.23DCB5D07@ptavv.es.net> Date: Wed, 09 Mar 2005 11:33:44 -0800 From: "Kevin Oberman" Message-Id: <20050309193344.38BDB5D07@ptavv.es.net> Subject: Re: Issues with powerd X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 19:33:45 -0000 Sorry. Can't type. > Date: Wed, 09 Mar 2005 11:29:38 -0800 > From: "Kevin Oberman" > Sender: owner-freebsd-acpi@freebsd.org > > I have finally had a little time to play with powerd and I didn't find > adaptive mode worked too well for me on my T30 running a Gnome desktop. > > The effect of running powerd was to move the freq in a rapid sawtooth > dropping quickly to 150 MHz and them jumping back to 1800 and > repeating. If the CPU was busy, the low point of the sawtooth would be > elevated to 300or 600, but the basic pattern was constant oscillation. > > I looked at the source and decided that two things were wrong. > > 1. Dropping to half of the initial CPU speed was to a good choice. The not--^^ > drop is speed was too quick and it resulted in reducing the number of > CPU performance levels to a small number instead of the 15 that should > be available. -- 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 From owner-freebsd-acpi@FreeBSD.ORG Wed Mar 9 20:21:37 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56D0516A4CE for ; Wed, 9 Mar 2005 20:21:37 +0000 (GMT) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id B764A43D2F for ; Wed, 9 Mar 2005 20:21:36 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.5.50] (adsl-64-171-186-189.dsl.snfc21.pacbell.net [64.171.186.189]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id j29KLPZj021075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 9 Mar 2005 12:21:26 -0800 Message-ID: <422F5AB9.7000605@root.org> Date: Wed, 09 Mar 2005 12:21:13 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kevin Oberman References: <20050309192938.23DCB5D07@ptavv.es.net> In-Reply-To: <20050309192938.23DCB5D07@ptavv.es.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: acpi@freebsd.org Subject: Re: Issues with powerd X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 20:21:37 -0000 Kevin Oberman wrote: > I have finally had a little time to play with powerd and I didn't find > adaptive mode worked too well for me on my T30 running a Gnome desktop. > > The effect of running powerd was to move the freq in a rapid sawtooth > dropping quickly to 150 MHz and them jumping back to 1800 and > repeating. If the CPU was busy, the low point of the sawtooth would be > elevated to 300or 600, but the basic pattern was constant oscillation. > > I looked at the source and decided that two things were wrong. > > 1. Dropping to half of the initial CPU speed was to a good choice. The > drop is speed was too quick and it resulted in reducing the number of > CPU performance levels to a small number instead of the 15 that should > be available. > > 2. When the CPU got busier, jumping all the way to full speed was > excessive and would always result in the sawtooth oscillation. > > I modified powerd to increase or decrease cpufreq in single steps instead > of jumping (in either direction) and lowered DEFAULT_ACTIVE_PERCENT to > 75. This results in a system that wanders between 150 and 450 when idle > and climbs to full speed when under load. > > I suspect this is sub-optimal, but I think it's a lot better then the > current operation. I will try to spend some time tweaking the algorithm > a bit to see what makes things run best (for my personal idea of "best". > > Ideally, I'd like to see it stay constant an an idle or constantly > loaded system and I suspect that I will need to add hysteresis to get > there. > > Attached are my patch to powerd.c. Thanks, I appreciate you looking into this. I don't have a system with more than 2 levels so I'm not able to test complex behavior with my power strip + ampmeter. There are some characteristics I'd like to see in adaptive mode that perhaps you'd be interested in considering, implementing, and testing. The most important problem is that the sample interval is the same as the reconfigure interval (i.e., no history). I'd like to see various adaptive schemes in powerd (both predictive and stochastic). See these papers for more details: http://akebono.stanford.edu/users/nanni/research/dpm/date00yung.pdf http://akebono.stanford.edu/users/nanni/research/dpm/VLSI00.pdf For our default adaptive algorithm, I think sending the CPU to 100% any time there is work to be done is a good thing since you want to get any task that is present completed as soon as possible. However, I think decreasing the CPU speed while idle should decay more slowly (which is also what you're saying). The important thing to realize is that the transition latency is very low (10 us to 1 ms max) and getting lower with newer CPUs. If we're going to be using a full quantum at a HZ of 1000, we might as well do the transition to 100%. And if we're idle for a couple quantums, we might as well go to the lowest value. We currently have powerd sample the CPU busyness every 500 ms. This is too large an interval when running at a low speed and a task wants to run (500 quantums running at the low speed). The problem with our current polling approach is that we do add some overhead each cycle and so you don't want to be running powerd every microsecond or it will keep the system cpu-bound. :) Stepping through all 15 (or more) states when we know we're idle wastes power since the current model can only transition every half second. My goal was to get some kind of exponential decay when idle and jump to 100% when not. With a finer-grained sampling interval (1-2 ms?) I think this might be ok. Would you consider testing this alongside your approach? One problem with increasing DEFAULT_ACTIVE_PERCENT to 75 is that systems with decent IO load don't trigger the transition to 100% speed. Do an ls -laR > /dev/null on a partition and on my system, idle time hung around 80-85% but decreasing to a low CPU speed greatly increased the interrupt latency and decreased throughput. If your benchmark is "buildworld", the CPU usage of gcc pushes you easily over the 75% mark and so you get the desired transition to full speed. Anyway, let's try to tweak the current approach a little so that it mostly works. And if you're interested in this, the real solution is to implement a couple different algorithms and provide them to people to test. If I had to pick one, it would be exponential averaging (EA). See the paper above for details. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Thu Mar 10 16:40:06 2005 Return-Path: Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1BC5916A4CE for ; Thu, 10 Mar 2005 16:40:06 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F32EF43D2F for ; Thu, 10 Mar 2005 16:40:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2AGe5T4069207 for ; Thu, 10 Mar 2005 16:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2AGe5S2069206; Thu, 10 Mar 2005 16:40:05 GMT (envelope-from gnats) Date: Thu, 10 Mar 2005 16:40:05 GMT Message-Id: <200503101640.j2AGe5S2069206@freefall.freebsd.org> To: freebsd-acpi@FreeBSD.org From: Arne "Wörner" Subject: Re: i386/73822: acpi / thermal support X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Arne Wörner List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 16:40:06 -0000 The following reply was made to PR i386/73822; it has been noted by GNATS. From: Arne "Wörner" To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: i386/73822: acpi / thermal support Date: Thu, 10 Mar 2005 08:31:47 -0800 (PST) Now I use the package xmbmon-204 which works fine (just Temp2 looks wrong). > mbmon -d SMBus[VT8233/A/8235/8237(KT266/333/400/600)] found, but No HWM available on it!! Using ISA-IO access method!! * Int.Tec.Exp. Chip IT8705F/IT8712F or SIS950 found. > mbmon -c 1 Temp.= 34.0, 203.0, 41.0; Rot.= 1654, 2343, 0 Vcore = 1.62, 2.46; Volt. = 3.18, 4.97, 11.55, -3.62, -4.94 -Arne __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-acpi@FreeBSD.ORG Thu Mar 10 17:11:02 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A587A16A4CE for ; Thu, 10 Mar 2005 17:11:02 +0000 (GMT) Received: from poup.poupinou.org (poup.poupinou.org [195.101.94.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3899543D46 for ; Thu, 10 Mar 2005 17:11:02 +0000 (GMT) (envelope-from ducrot@poupinou.org) Received: from ducrot by poup.poupinou.org with local (Exim) id 1D9RB3-0001sc-00; Thu, 10 Mar 2005 18:10:25 +0100 Date: Thu, 10 Mar 2005 18:10:25 +0100 To: Nate Lawson , Jung-uk Kim Message-ID: <20050310171025.GB2298@poupinou.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i From: Bruno Ducrot cc: acpi@freebsd.org Subject: [cpufreq] powernow drivers X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 17:11:02 -0000 Hi, The powernow stuff is nearly complete but need testings and more cleanup, especially the 2 drivers shoud be merged. I'm providing them right now at http://www.poupinou.org/cpufreq/bsd/powernow.tar.gz before the merge because I maybe offline for one or two weeks in a few days. The powernow k6 is not finished, but mainly because I dont have the hardware. It would be fine though that I know for sure that someone test it before I make it public, so if you have a cyrix K6/II or III with powernow! capability and you want to test please write me. Thanks, -- Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care. From owner-freebsd-acpi@FreeBSD.ORG Thu Mar 10 19:33:11 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02A9B16A4CE for ; Thu, 10 Mar 2005 19:33:11 +0000 (GMT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3C7143D53 for ; Thu, 10 Mar 2005 19:33:10 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from RabbitsDen ([138.89.61.25])0.04 <0ID5007MAIB93U70@vms042.mailsrvcs.net> for acpi@freebsd.org; Thu, 10 Mar 2005 13:33:10 -0600 (CST) Date: Thu, 10 Mar 2005 14:33:06 -0500 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <20050310171025.GB2298@poupinou.org> To: Bruno Ducrot Message-id: <1110483186.1099.5.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-type: text/plain; charset=iso-8859-5 Content-transfer-encoding: 8BIT References: <20050310171025.GB2298@poupinou.org> cc: acpi@freebsd.org Subject: Re: [cpufreq] powernow drivers X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 19:33:11 -0000 On Thu, 2005-03-10 at 18:10 +0100, Bruno Ducrot wrote: > Hi, > > The powernow stuff is nearly complete but need testings and more > cleanup, especially the 2 drivers shoud be merged. > I'm providing them right now at > http://www.poupinou.org/cpufreq/bsd/powernow.tar.gz > before the merge because I maybe offline for one or two weeks in > a few days. > > The powernow k6 is not finished, but mainly because I dont have the > hardware. It would be fine though that I know for sure that someone > test it before I make it public, so if you have a cyrix K6/II or III > with powernow! capability and you want to test please write me. > > Thanks, > This works beautifully here (-CURRENT of March 2, Athlon XP-M). Now I get to play with 'powerd' too ;) Thank you very much. -- Alexandre "Sunny" Kovalenko (¾ÛÕÚáÐÝÔà ºÞÒÐÛÕÝÚÞ) From owner-freebsd-acpi@FreeBSD.ORG Thu Mar 10 20:08:27 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42CA616A4CE for ; Thu, 10 Mar 2005 20:08:27 +0000 (GMT) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D81243D1F for ; Thu, 10 Mar 2005 20:08:24 +0000 (GMT) (envelope-from jkim@niksun.com) Received: from [10.70.0.244] (daemon.mj.niksun.com [10.70.0.244]) by anuket.mj.niksun.com (8.13.1/8.12.11) with ESMTP id j2AK8NgG026033; Thu, 10 Mar 2005 15:08:23 -0500 (EST) (envelope-from jkim@niksun.com) From: Jung-uk Kim Organization: Niksun, Inc. To: Bruno Ducrot Date: Thu, 10 Mar 2005 15:08:19 -0500 User-Agent: KMail/1.6.2 References: <20050310171025.GB2298@poupinou.org> In-Reply-To: <20050310171025.GB2298@poupinou.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200503101508.20596.jkim@niksun.com> X-Virus-Scanned: ClamAV 0.83/760/Wed Mar 9 12:12:01 2005 on anuket.mj.niksun.com X-Virus-Status: Clean cc: acpi@freebsd.org Subject: Re: [cpufreq] powernow drivers X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 20:08:27 -0000 On Thursday 10 March 2005 12:10 pm, Bruno Ducrot wrote: > Hi, > > The powernow stuff is nearly complete but need testings and more > cleanup, especially the 2 drivers shoud be merged. > I'm providing them right now at > http://www.poupinou.org/cpufreq/bsd/powernow.tar.gz > before the merge because I maybe offline for one or two weeks in > a few days. > > The powernow k6 is not finished, but mainly because I dont have the > hardware. It would be fine though that I know for sure that > someone test it before I make it public, so if you have a cyrix > K6/II or III with powernow! capability and you want to test please > write me. It works fine on my Acer Ferrari 3400 (Mobile Athlon64 with Oakville core). My acpi_cnq driver is obsolete now. :-) It's great to see the feature is beautifully merged and complete. BTW, I have really minor and cosmetic comment. Official names are PowerNow! (for mobile) and Cool`n'Quiet (for desktop). ;-) http://www.amd.com/us-en/Processors/ProductInformation/0,,30_118_10220_10221%5E964,00.html http://www.amd.com/us-en/Processors/ProductInformation/0,,30_118_9485_9487%5E10272,00.html Thanks a lot, Jung-uk Kim > Thanks, > > -- > Bruno Ducrot > > -- Which is worse: ignorance or apathy? > -- Don't know. Don't care. From owner-freebsd-acpi@FreeBSD.ORG Thu Mar 10 20:34:26 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DF8F16A4CE for ; Thu, 10 Mar 2005 20:34:26 +0000 (GMT) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5788F43D2F for ; Thu, 10 Mar 2005 20:34:26 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.34] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id j2AKYNZj005740 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 10 Mar 2005 12:34:24 -0800 Message-ID: <4230AF39.4090100@root.org> Date: Thu, 10 Mar 2005 12:34:01 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bruno Ducrot References: <20050310171025.GB2298@poupinou.org> In-Reply-To: <20050310171025.GB2298@poupinou.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: acpi@freebsd.org Subject: Re: [cpufreq] powernow drivers X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 20:34:26 -0000 Bruno Ducrot wrote: > The powernow stuff is nearly complete but need testings and more > cleanup, especially the 2 drivers shoud be merged. > I'm providing them right now at > http://www.poupinou.org/cpufreq/bsd/powernow.tar.gz > before the merge because I maybe offline for one or two weeks in > a few days. > > The powernow k6 is not finished, but mainly because I dont have the > hardware. It would be fine though that I know for sure that someone > test it before I make it public, so if you have a cyrix K6/II or III > with powernow! capability and you want to test please write me. Excellent, your work looks really nice. Just a few comments: Please remove my name from the copyright. You did all the work and I just provided suggestions. Both drivers should just add a child called "powernow" instead of k*_powernow. You can't have k7 and k8 powernow on the same system, right? They can announce what hardware they are via device_set_desc() which it appears you're already doing. Also, DRIVER_MODULE for them should not have "pn8" as the first arg. You can remove the check for a freq >= 0xffff. I committed this to acpi_perf already. Have you tested the ACPI attachment for this? Does it work ok? I'm just curious because I don't have hw to test acpi-assisted probing. It looks like these can be merged pretty easily. Once you've done that, I'd like to import this driver. Thanks very much, -- Nate From owner-freebsd-acpi@FreeBSD.ORG Thu Mar 10 20:46:07 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99B1816A4CE for ; Thu, 10 Mar 2005 20:46:07 +0000 (GMT) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DB5143D41 for ; Thu, 10 Mar 2005 20:46:07 +0000 (GMT) (envelope-from jkim@niksun.com) Received: from [10.70.0.244] (daemon.mj.niksun.com [10.70.0.244]) by anuket.mj.niksun.com (8.13.1/8.12.11) with ESMTP id j2AKk6st027241; Thu, 10 Mar 2005 15:46:06 -0500 (EST) (envelope-from jkim@niksun.com) From: Jung-uk Kim Organization: Niksun, Inc. To: Bruno Ducrot Date: Thu, 10 Mar 2005 15:46:04 -0500 User-Agent: KMail/1.6.2 References: <20050310171025.GB2298@poupinou.org> <200503101508.20596.jkim@niksun.com> In-Reply-To: <200503101508.20596.jkim@niksun.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200503101546.04519.jkim@niksun.com> X-Virus-Scanned: ClamAV 0.83/760/Wed Mar 9 12:12:01 2005 on anuket.mj.niksun.com X-Virus-Status: Clean cc: acpi@freebsd.org Subject: Re: [cpufreq] powernow drivers X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 20:46:07 -0000 On Thursday 10 March 2005 03:08 pm, Jung-uk Kim wrote: > On Thursday 10 March 2005 12:10 pm, Bruno Ducrot wrote: > > Hi, > > > > The powernow stuff is nearly complete but need testings and more > > cleanup, especially the 2 drivers shoud be merged. > > I'm providing them right now at > > http://www.poupinou.org/cpufreq/bsd/powernow.tar.gz > > before the merge because I maybe offline for one or two weeks in > > a few days. > > > > The powernow k6 is not finished, but mainly because I dont have > > the hardware. It would be fine though that I know for sure that > > someone test it before I make it public, so if you have a cyrix > > K6/II or III with powernow! capability and you want to test > > please write me. > > It works fine on my Acer Ferrari 3400 (Mobile Athlon64 with > Oakville core). My acpi_cnq driver is obsolete now. :-) It's > great to see the feature is beautifully merged and complete. --- >8 --- SNIP!!! --- >8 --- My desktop is also working great (Athlon 64 with good old Clawhammer core). Cheers, Jung-uk Kim From owner-freebsd-acpi@FreeBSD.ORG Thu Mar 10 21:03:30 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D806216A4CE for ; Thu, 10 Mar 2005 21:03:30 +0000 (GMT) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52BD743D58 for ; Thu, 10 Mar 2005 21:03:30 +0000 (GMT) (envelope-from jkim@niksun.com) Received: from [10.70.0.244] (daemon.mj.niksun.com [10.70.0.244]) by anuket.mj.niksun.com (8.13.1/8.12.11) with ESMTP id j2AL3TpB027825; Thu, 10 Mar 2005 16:03:29 -0500 (EST) (envelope-from jkim@niksun.com) From: Jung-uk Kim Organization: Niksun, Inc. To: Bruno Ducrot Date: Thu, 10 Mar 2005 16:03:26 -0500 User-Agent: KMail/1.6.2 References: <20050310171025.GB2298@poupinou.org> <4230AF39.4090100@root.org> In-Reply-To: <4230AF39.4090100@root.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200503101603.26659.jkim@niksun.com> X-Virus-Scanned: ClamAV 0.83/760/Wed Mar 9 12:12:01 2005 on anuket.mj.niksun.com X-Virus-Status: Clean cc: freebsd-acpi@freebsd.org Subject: Re: [cpufreq] powernow drivers X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 21:03:31 -0000 On Thursday 10 March 2005 03:34 pm, Nate Lawson wrote: > Bruno Ducrot wrote: > > The powernow stuff is nearly complete but need testings and more > > cleanup, especially the 2 drivers shoud be merged. > > I'm providing them right now at > > http://www.poupinou.org/cpufreq/bsd/powernow.tar.gz > > before the merge because I maybe offline for one or two weeks in > > a few days. > > > > The powernow k6 is not finished, but mainly because I dont have > > the hardware. It would be fine though that I know for sure that > > someone test it before I make it public, so if you have a cyrix > > K6/II or III with powernow! capability and you want to test > > please write me. > > Excellent, your work looks really nice. Just a few comments: > > Please remove my name from the copyright. You did all the work and > I just provided suggestions. You can remove mine too. This driver doesn't look like acpi_cnq at all. ;-) > Both drivers should just add a child called "powernow" instead of > k*_powernow. You can't have k7 and k8 powernow on the same system, > right? They can announce what hardware they are via > device_set_desc() which it appears you're already doing. Also, > DRIVER_MODULE for them should not have "pn8" as the first arg. > > You can remove the check for a freq >= 0xffff. I committed this to > acpi_perf already. > > Have you tested the ACPI attachment for this? Does it work ok? > I'm just curious because I don't have hw to test acpi-assisted > probing. I have and it works. > It looks like these can be merged pretty easily. Once you've done > that, I'd like to import this driver. > > Thanks very much, Thank you, both of you, Jung-uk Kim > -- > Nate From owner-freebsd-acpi@FreeBSD.ORG Fri Mar 11 13:37:41 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29F6D16A4CE for ; Fri, 11 Mar 2005 13:37:41 +0000 (GMT) Received: from poup.poupinou.org (poup.poupinou.org [195.101.94.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB57843D60 for ; Fri, 11 Mar 2005 13:37:40 +0000 (GMT) (envelope-from ducrot@poupinou.org) Received: from ducrot by poup.poupinou.org with local (Exim) id 1D9kKC-0002nn-00; Fri, 11 Mar 2005 14:37:08 +0100 Date: Fri, 11 Mar 2005 14:37:08 +0100 To: Nate Lawson Message-ID: <20050311133708.GD2298@poupinou.org> References: <20050310171025.GB2298@poupinou.org> <4230AF39.4090100@root.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4230AF39.4090100@root.org> User-Agent: Mutt/1.5.6+20040907i From: Bruno Ducrot cc: acpi@freebsd.org Subject: Re: [cpufreq] powernow drivers X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2005 13:37:41 -0000 On Thu, Mar 10, 2005 at 12:34:01PM -0800, Nate Lawson wrote: > Bruno Ducrot wrote: > >The powernow stuff is nearly complete but need testings and more > >cleanup, especially the 2 drivers shoud be merged. > >I'm providing them right now at > >http://www.poupinou.org/cpufreq/bsd/powernow.tar.gz > >before the merge because I maybe offline for one or two weeks in > >a few days. > > > >The powernow k6 is not finished, but mainly because I dont have the > >hardware. It would be fine though that I know for sure that someone > >test it before I make it public, so if you have a cyrix K6/II or III > >with powernow! capability and you want to test please write me. > > Excellent, your work looks really nice. Just a few comments: > > Please remove my name from the copyright. You did all the work and I > just provided suggestions. > > Both drivers should just add a child called "powernow" instead of > k*_powernow. You can't have k7 and k8 powernow on the same system, > right? They can announce what hardware they are via device_set_desc() > which it appears you're already doing. Also, DRIVER_MODULE for them > should not have "pn8" as the first arg. I got a message like "cpu/pn already exist" or so if I do that. That's why I have to do a pn7/pn8 distinction for the DRIVER_MODULE. > You can remove the check for a freq >= 0xffff. I committed this to > acpi_perf already. Done. > > Have you tested the ACPI attachment for this? Does it work ok? I'm > just curious because I don't have hw to test acpi-assisted probing. This work like a charm, or else I would have send to you a complaint already ;) > It looks like these can be merged pretty easily. Once you've done that, > I'd like to import this driver. I'm not sure if I will have time right now to do so. I will do this this week-end before my vacation. It's also why I have send this email to acpi- before that merge so that people can atleast have those drivers to play with. -- Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care. From owner-freebsd-acpi@FreeBSD.ORG Sat Mar 12 01:45:34 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C43D616A4CE; Sat, 12 Mar 2005 01:45:34 +0000 (GMT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF90C43D39; Sat, 12 Mar 2005 01:45:33 +0000 (GMT) (envelope-from rjohns44@comcast.net) Received: from 204.127.205.143 ([204.127.205.143]) by comcast.net (sccrmhc12) with SMTP id <20050312014533012001jvrke>; Sat, 12 Mar 2005 01:45:33 +0000 Received: from [136.2.1.153] by 204.127.205.143; Sat, 12 Mar 2005 01:45:32 +0000 From: rjohns44@comcast.net To: freebsd-gnats-submit@FreeBSD.org, rjohns44@comcast.net, freebsd-acpi@freebsd.org, kris@obsecurity.org Date: Sat, 12 Mar 2005 01:45:32 +0000 Message-Id: <031220050145.22141.423249BC000C813A0000567D2200763704CBCB9C020801069D@comcast.net> X-Mailer: AT&T Message Center Version 1 (Dec 17 2004) X-Authenticated-Sender: cmpvaG5zNDRAY29tY2FzdC5uZXQ= MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: kern/77805: Boot hangs with ACPI enabled X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2005 01:45:34 -0000 Per the handbook, tried adding the following statement to /boot/loader.conf: debug.acpi.disabled=cpu This removed the "boot-hangs-during-startup" issue, but does point to a bug in the cpu portion of the ACPI. It seems to be have been overlooked in the correspondence on this issue, but this DID NOT OCCUR in 5.0-Release, 5.1-Release, 5.2-Release, 5.2.1-Release, 5.3-Release. It only happened when I upgraded to 5.3-Stable around 2/18/2005. On Sat, 2005-02-26 at 19:05 -0800, Nate Lawson wrote: > Ron Johnson wrote: > > Any help would be appreciated! dmesg output and ASL are in the bug > > report. > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=77805 > > > > With ACPI enabled, boot fails at "hw.acpi.cpu.cx_lowest: C1 -> C3". This > > statement is not in sysctl.conf or loader.conf and appears to be changed > > automatically. No issue in all previous 5.X versions. 5.3-STABLE > > downloaded from CVS on 2/19/2005 around 3pm EST. > > You want to change the performance/economy settings in rc.conf. Man 5 > rc.conf > > The defaults were changed between 5.2.1 and 5.3: > > src/etc/defaults/rc.conf:revision 1.206 > date: 2004/05/29 04:52:37; author: njl; state: Exp; lines: +1 -1 > Throw the switch and enable use of the lowest idle states while online in > addition to offline. This can be overridden in /etc/rc.conf if it causes > trouble although this has been stable since 2003/12. > > I have no idea why C3 is unstable on your machine. Please try > overriding this with something like this and see if it helps: > > performance_cx_state=HIGH > economy_cx_state=HIGH > It didn't help. Still hangs at the same point. It did output new error messages below. Feb 27 18:08:13 armada kernel: ACPI-0361: *** Error: Thread 29 cannot release Mutex [MUT0] acquired by thread 8 Feb 27 18:08:13 armada kernel: ACPI-1304: *** Error: Method execution failed [\_SB_.PCI0.PIB_.EC0_.SMRD] (Node 0xc14653e0), AE_AML_NOT_OWNER Feb 27 18:08:13 armada kernel: ACPI-1304: *** Error: Method execution failed [\_SB_.BAT1.UPBI] (Node 0xc13ab2c0), AE_AML_NOT_OWNER Feb 27 18:08:13 armada kernel: ACPI-1304: *** Error: Method execution failed [\_SB_.BAT1.SEBI] (Node 0xc13ab200), AE_AML_NOT_OWNER Feb 27 18:08:13 armada kernel: ACPI-1304: *** Error: Method execution failed [\_TZ_.THRM._TMP] (Node 0xc13ab8a0), AE_AML_NOT_OWNER Feb 27 18:08:13 armada kernel: acpi: suspend request ignored (not ready yet) Feb 27 18:08:16 armada last message repeated 5 times Feb 27 18:08:16 armada syslogd: exiting on signal 15 This does seem similar to the "Laptop and ACPI" thread http://lists.freebsd.org/pipermail/freebsd-acpi/2005-March/001325.html. Although my clock speed is reported correctly without ACPI. From owner-freebsd-acpi@FreeBSD.ORG Sat Mar 12 04:03:43 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98F6216A4CE; Sat, 12 Mar 2005 04:03:43 +0000 (GMT) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8409D43D53; Sat, 12 Mar 2005 04:03:42 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.22] (andersonbox2.centtech.com [192.168.42.22]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id j2C43fKB025710; Fri, 11 Mar 2005 22:03:41 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <42326A18.7030408@centtech.com> Date: Fri, 11 Mar 2005 22:03:36 -0600 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Current , acpi@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: ACPI problems - 10s hang from Performance to economy mode X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2005 04:03:43 -0000 I updated my src this morning, and I've noticed that now when I unplug the AC adapter on my laptop, my machine hangs for ~10s before suddenly coming alive again. I don't see the hang when going from battery to AC, and I can't break to the debugger when it's in the hung state - it will just wait until the hang is over, and then go into the debugger. My systems data is here: http://www.googlebit.com/freebsd/ What can I do to debug this at this point? Also - S3 is very close. I'll send a separate email about that later. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology I have seen the future and it is just like the present, only longer. ------------------------------------------------------------------------ From owner-freebsd-acpi@FreeBSD.ORG Sat Mar 12 05:13:03 2005 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10E2C16A4CE for ; Sat, 12 Mar 2005 05:13:03 +0000 (GMT) Received: from muse.clarku.edu (calliope.clarku.edu [140.232.1.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EB3643D31 for ; Sat, 12 Mar 2005 05:13:02 +0000 (GMT) (envelope-from ipartola@pisem.net) Received: from [192.168.0.101] (thalia.clarku.edu [140.232.1.65]) by muse.clarku.edu (Postfix) with ESMTP id 409A31CC29F; Sat, 12 Mar 2005 00:13:01 -0500 (EST) Message-ID: <42327A5D.9060509@pisem.net> Date: Sat, 12 Mar 2005 00:13:01 -0500 From: Igor Partola User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson , freebsd-acpi@freebsd.org References: <20050301213527.GA2286@adv.devet.org> <42259DB9.4080201@danielgraupner.de> <42276264.3060605@pisem.net> <42276299.8060206@pisem.net> <4227B581.6090705@root.org> <20050304195909.GD54743@galgenberg.net> <422A56B4.20103@pisem.net> <422AB15D.1040009@root.org> In-Reply-To: <422AB15D.1040009@root.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Dell Inspiron 510m sleep states S3/S4 not working X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2005 05:13:03 -0000 I've done a little more testing with this. In particular I disabled most of ACPI via debug.acpi.disable (this is on 5.2.1) except for bus, children and pci. I disabled things one by one (more or less), and observed the same type of behavior: a reset. I hope this helps eleminate possible places where the problem could be occuring. Respect, Igor