From owner-freebsd-acpi@FreeBSD.ORG Mon Apr 9 11:09:51 2007 Return-Path: X-Original-To: freebsd-acpi@FreeBSD.org Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1406F16A401 for ; Mon, 9 Apr 2007 11:09:51 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id E04DE13C46C for ; Mon, 9 Apr 2007 11:09:50 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l39B9otj055015 for ; Mon, 9 Apr 2007 11:09:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l39B9mFK054610 for freebsd-acpi@FreeBSD.org; Mon, 9 Apr 2007 11:09:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 Apr 2007 11:09:48 GMT Message-Id: <200704091109.l39B9mFK054610@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-acpi@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 09 Apr 2007 11:09:51 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o i386/54756 acpi ACPI suspend/resume problem on CF-W2 laptop o i386/55661 acpi ACPI suspend/resume problem on ARMADA M700 o kern/55822 acpi No ACPI power off with SMP kernel o kern/56024 acpi ACPI suspend drains battery while in S3 o i386/64002 acpi acpi problem o i386/67273 acpi [hang] system hangs with acpi and Xfree o i386/72566 acpi ACPI, FreeBSD disables fan on Compaq Armada 1750 o i386/79080 acpi acpi thermal changes freezes HP nx6110 o i386/79081 acpi ACPI suspend/resume not working on HP nx6110 o kern/104625 acpi ACPI on ASUS A8N-32 SLI/ASUS P4P800 does not show ther o kern/106924 acpi ACPI resume returns g_vfs_done() errors and kernel pan 11 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/67309 acpi zzz reboot computer (ACPI S3) o i386/69750 acpi Boot without ACPI failed on ASUS L5 o kern/73823 acpi [feature request] acpi / power-on by timer support o kern/76950 acpi ACPI wrongly blacklisted on Micron ClientPro 766Xi sys f kern/90871 acpi ACPI problems with ASUS A8N-VM-CSM o kern/97383 acpi Volume buttons on IBM Thinkpad crash system with ACPI o i386/97468 acpi [acpi] ACPI on ASUS A7V hangs on shutdown -p (power of o kern/98171 acpi [acpi] ACPI 1304 / 0501 errors on Acer 5024WLMi Laptop o i386/102343 acpi ACPI error o kern/103365 acpi [acpi] acpi poweroff doesn't work with geli device att o kern/108017 acpi [acpi]: Acer Aspire 5600 o kern/108488 acpi ACPI-1304: *** Error: Method execution failed o kern/108581 acpi sysctl: hw.acpi.cpu.cx_lowest: Invalid argument o kern/108695 acpi [ACPI]: Fatal trap 9: general protection fault when in o kern/109207 acpi ACPI Promlem 15 problems total. From owner-freebsd-acpi@FreeBSD.ORG Tue Apr 10 17:11:29 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D48DB16A406 for ; Tue, 10 Apr 2007 17:11:29 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 84DFA13C4D0 for ; Tue, 10 Apr 2007 17:11:29 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l3AHBONE065757; Tue, 10 Apr 2007 13:11:24 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-acpi@freebsd.org Date: Tue, 10 Apr 2007 12:22:41 -0400 User-Agent: KMail/1.9.4 References: <1f5e0ccb0704052343p13c2897bt478faad64c57272f@mail.gmail.com> In-Reply-To: <1f5e0ccb0704052343p13c2897bt478faad64c57272f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704101222.41414.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Tue, 10 Apr 2007 13:11:24 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/3064/Tue Apr 10 12:25:23 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Ilmars Virpa Subject: Re: PC randomly freezes after 4.x upgrade to 6.x. How to disable acpi completely? 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: Tue, 10 Apr 2007 17:11:29 -0000 On Friday 06 April 2007 02:43, Ilmars Virpa wrote: > Hello! > > I upgraded my customer's FreeBSD from 4.x to 6.x series, but now the > PC ranodmly freezes (at least once in 24h) and needless to say > customer is very angry. I guess it could be related to ACPI (because > I've changed almost every part of hardware) so I want to disable it, > but how? > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/acpi-overview.html > says: > "ACPI can be disabled with the acpiconf(8) utility." > But I somehow don't see any option in acpiconf(8) how to disable ACPI. > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/acpi-debug.html says: > "hint.apic.0.disabled="1" in loader.conf." That disables APIC. To disable ACPI use 'hint.acpi.0.disabled=1' -- John Baldwin From owner-freebsd-acpi@FreeBSD.ORG Tue Apr 10 18:07:13 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F158D16A401 for ; Tue, 10 Apr 2007 18:07:13 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id BFFB013C4C3 for ; Tue, 10 Apr 2007 18:07:13 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 8671 invoked from network); 10 Apr 2007 18:02:46 -0000 Received: from ppp-71-139-28-99.dsl.snfc21.pacbell.net (HELO ?10.0.0.235?) (nate-mail@71.139.28.99) by root.org with ESMTPA; 10 Apr 2007 18:02:46 -0000 Message-ID: <461BD13F.5030205@root.org> Date: Tue, 10 Apr 2007 11:02:39 -0700 From: Nate Lawson User-Agent: Thunderbird 1.5.0.7 (X11/20061027) MIME-Version: 1.0 To: John Baldwin References: <1f5e0ccb0704052343p13c2897bt478faad64c57272f@mail.gmail.com> <200704101222.41414.jhb@freebsd.org> In-Reply-To: <200704101222.41414.jhb@freebsd.org> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org, Ilmars Virpa Subject: Re: PC randomly freezes after 4.x upgrade to 6.x. How to disable acpi completely? 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: Tue, 10 Apr 2007 18:07:14 -0000 John Baldwin wrote: > On Friday 06 April 2007 02:43, Ilmars Virpa wrote: >> Hello! >> >> I upgraded my customer's FreeBSD from 4.x to 6.x series, but now the >> PC ranodmly freezes (at least once in 24h) and needless to say >> customer is very angry. I guess it could be related to ACPI (because >> I've changed almost every part of hardware) so I want to disable it, >> but how? >> >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/acpi-overview.html >> says: >> "ACPI can be disabled with the acpiconf(8) utility." >> But I somehow don't see any option in acpiconf(8) how to disable ACPI. >> >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/acpi-debug.html says: >> "hint.apic.0.disabled="1" in loader.conf." > > That disables APIC. To disable ACPI use 'hint.acpi.0.disabled=1' > I've updated the handbook to be less misleading. In any case, the man page (man 4 acpi) is the definitive source for information, including how to disable acpi. -- Nate From owner-freebsd-acpi@FreeBSD.ORG Wed Apr 11 11:48:36 2007 Return-Path: X-Original-To: acpi@freebsd.org Delivered-To: freebsd-acpi@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 024EE16A403; Wed, 11 Apr 2007 11:48:36 +0000 (UTC) (envelope-from takawata@init-main.com) Received: from sana.init-main.com (104.194.138.210.bn.2iij.net [210.138.194.104]) by mx1.freebsd.org (Postfix) with ESMTP id A32E813C48C; Wed, 11 Apr 2007 11:48:35 +0000 (UTC) (envelope-from takawata@init-main.com) Received: from ns.init-main.com (localhost [127.0.0.1]) by sana.init-main.com (8.13.8/8.13.8) with ESMTP id l3BBm47D024911; Wed, 11 Apr 2007 20:48:04 +0900 (JST) (envelope-from takawata@ns.init-main.com) Message-Id: <200704111148.l3BBm47D024911@sana.init-main.com> To: Alan Garfield From: takawata@jp.freebsd.org In-reply-to: Your message of "Wed, 11 Apr 2007 21:24:54 +1000." <461CC586.5060507@fromorbit.com> Date: Wed, 11 Apr 2007 20:48:04 +0900 Sender: takawata@init-main.com Cc: acpi@freebsd.org, hackers@freebsd.org Subject: Re: Resources and ACPI 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: Wed, 11 Apr 2007 11:48:36 -0000 In message <461CC586.5060507@fromorbit.com>, Alan Garfield さんいわく: >takawata@jp.freebsd.org wrote: >>> If the resources are allocated how do I access/see them? >> >> sc->sc_rid1 = 0; >> sc->sc_res1 = bus_alloc_resource_any(self, SYS_RES_IOPORT, &sc->sc_rid, >RF_ACTIVE); >> sc->sc_rid2 = 0; Oops! sc->sc_rid2 = 1; >> sc->sc_res2 = bus_alloc_resource_any(self, SYS_RES_IOPORT, &sc->sc_rid, >RF_ACTIVE); >> value_af = bus_space_read_8(rman_get_bustag(sc->sc_res2), rman_get_bus >handle(sc->sc_res2), 1); > >Thanks for this, but how does on tell which resources have been >allocated to which other than manually specifying them with >bus_alloc_resource()? Resource manager will do it. Device driver for a PnP aware bus will set resource location for each device under the bus. At that time, the resource is not allocated and activated. Then a device driver for a child device will allocate bus resource. rid parameter tells the order of resource you want to get. From owner-freebsd-acpi@FreeBSD.ORG Thu Apr 12 18:02:42 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9166E16A405 for ; Thu, 12 Apr 2007 18:02:42 +0000 (UTC) (envelope-from A.M.Gimblett@swansea.ac.uk) Received: from mhs.swan.ac.uk (mhs.swan.ac.uk [137.44.1.33]) by mx1.freebsd.org (Postfix) with ESMTP id 2DA9313C48A for ; Thu, 12 Apr 2007 18:02:41 +0000 (UTC) (envelope-from A.M.Gimblett@swansea.ac.uk) Received: from [137.44.2.59] (helo=cs-svr1.swan.ac.uk) by mhs.swan.ac.uk with esmtp (Exim 4.66) (envelope-from ) id 1Hc3KV-0003dh-LN for freebsd-acpi@freebsd.org; Thu, 12 Apr 2007 18:43:31 +0100 Received: from cspcag2.swan.ac.uk (cspcag2 [137.44.2.21]) by cs-svr1.swan.ac.uk (Postfix) with ESMTP id 557923F627 for ; Thu, 12 Apr 2007 18:43:27 +0100 (BST) Received: from cspcag2.swan.ac.uk (gimbo@localhost.swan.ac.uk [127.0.0.1]) by cspcag2.swan.ac.uk (8.13.3/8.13.3) with ESMTP id l3CHhQq5020954 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 12 Apr 2007 18:43:27 +0100 (BST) Received: (from gimbo@localhost) by cspcag2.swan.ac.uk (8.13.3/8.13.3/Submit) id l3CHhQgh015995 for freebsd-acpi@freebsd.org; Thu, 12 Apr 2007 18:43:26 +0100 (BST) Date: Thu, 12 Apr 2007 18:43:26 +0100 From: Andy Gimblett To: freebsd-acpi@freebsd.org Message-ID: <20070412174326.GA11115@cspcag2.swan.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i Subject: ACPI problems on Acer Aspire 5003WMLi 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, 12 Apr 2007 18:02:42 -0000 Hi there, The Acer Aspire 5003WMLi is a laptop in Acer's Aspire 5000 range. I've run FreeBSD on one since the start of 2007, but there are some ACPI issues. A number of errors appear when booting (see link below), and the acpidump'd ASL doesn't compile (also see below). The most obvious emergent symptom is the inability to monitor battery status. I have also been unable to get CD/DVD writing to work, and there are audio issues - though these may both be unrelated to ACPI; the only errors I see in logs look battery-related. I've created a web page containing the various debug information suggested by the handbook chapter on this topic. It includes: - Output of dmesg after boot -v - Output of sysctl -hw acpi - Output of acpidump -t -d - Output of iasl on that dumped ASL It is at: http://gimbo.org.uk/blog/freebsd_acpi_acer_aspire_5003wmli/ I'm running the latest BIOS, and a recent kernel (6.1-SECURITY), though that's a binary installed via freebsd-update; I'm guessing I'll need to compile a custom one to debug this? If anyone can advise me on how to proceed with debugging/solving this problem, I'd be most grateful, and will co-operate to the best of my ability. Best regards, -Andy -- Andy Gimblett Computer Science Department University of Wales Swansea http://www.cs.swan.ac.uk/~csandy/ From owner-freebsd-acpi@FreeBSD.ORG Fri Apr 13 15:48:27 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 29EA216A400 for ; Fri, 13 Apr 2007 15:48:27 +0000 (UTC) (envelope-from joseph.golio@isilon.com) Received: from seaxch08.isilon.com (seaxch08.isilon.com [70.103.106.47]) by mx1.freebsd.org (Postfix) with ESMTP id 0890F13C4AE for ; Fri, 13 Apr 2007 15:48:26 +0000 (UTC) (envelope-from joseph.golio@isilon.com) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Fri, 13 Apr 2007 08:36:25 -0700 Message-ID: <0C40B34038FD824FACDB387E778872876C17C7@seaxch08.desktop.isilon.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Help Thread-Index: Acd94X6zUxqZFYmWQUO05wsKxNdOtg== X-Priority: 1 Priority: Urgent Importance: high From: "Joseph Golio" To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Help 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: Fri, 13 Apr 2007 15:48:27 -0000 Folks, I'm new to ACPI and I'm in the process of trying to figure out how I can attach a handler to a GPE, at least I think it's a GPE. A bit of background is in order... =20 I'm working with a motherboard that has the Intel Blackford chipset. The chipset is wired in such a way that the MCH ERR[2] output is connected to the PIRQF/GPI<3> input pin of the ICH. I have the MCH configured to assert ERR2 on certain error conditions on the FSB, FBD Channels, PCI buses, etc. I also have the ICH configured to generate an SCI when PIRQF asserts. As I understand it from reading the ESB2 (ICH) docs, this generates an IRQ 21. When I force an error, I get the following error message on the console: =20 ACPI-0800: *** Error: AcpiEvGpeDispatch: No handler or method for GPE[13], disabling event =20 I've started reading the ACPI 3.0 Spec, but, needless to say, that's quite a challenge. So, first I'd like to understand the binding of IRQ 21 in the ICH's APIC to the GPE[13] that ACPI is obviously seeing. Next, I'd like to understand if it's possible to attach my own handler to the GPE[13] rather than have ACPI deal with it.=20 =20 Any and all help would be greatly appreciated. =20 Thanks, =20 Joe Golio