From owner-freebsd-acpi@FreeBSD.ORG Mon Nov 28 13:04:26 2005 Return-Path: X-Original-To: freebsd-acpi@freebsd.org 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 BB3CD16A41F for ; Mon, 28 Nov 2005 13:04:26 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id B63A243D60 for ; Mon, 28 Nov 2005 13:04:25 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2728668 for multiple; Mon, 28 Nov 2005 08:04:34 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jASD4KP1056772; Mon, 28 Nov 2005 08:04:20 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-acpi@freebsd.org Date: Mon, 28 Nov 2005 08:04:17 -0500 User-Agent: KMail/1.8.3 References: <19269e540511250555p18355d49u@mail.gmail.com> In-Reply-To: <19269e540511250555p18355d49u@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200511280804.18428.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Timm Florian Gloger Subject: Re: System freezes when using 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: Mon, 28 Nov 2005 13:04:26 -0000 On Friday 25 November 2005 08:55 am, Timm Florian Gloger wrote: > hey list, > > i installed a fresh 6.0 stable system on my machine. > > when using acpi the system freezes after less than 10 minutes. > with disabled acpi there is no such problem and the system runs fine. > > i am new to freebsd so i dont know all the things which may influence > the acpi driver to misbehave. > > i attached the outputs which are mentioned in the handbook. > > the system is: > > asus a7n8x deluxe rev 2.0 bios 1008 > amd athlon xp 3000+ fsb 400 > 1 gb ddr400 ram > nforce 2 chipset (firewire disabled) > sapphire radeon 9800 pro > > if there are any further information required to get the system work > properly ... > > thanks > timm Try disabling APIC for now. Your BIOS has a bug in that it tells us that t= he=20 APIC-routed interrupts are active-hi polarity when in fact they are=20 active-low. Unfortunately it seems that a few BIOSen have this bug. :( Al= l=20 PCI interrupts should be level-triggered active-low polarity. You can also= =20 try the following patch: Index: acpi_pci_link.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /host/cvs/usr/cvs/src/sys/dev/acpica/acpi_pci_link.c,v retrieving revision 1.48 diff -u -r1.48 acpi_pci_link.c =2D-- acpi_pci_link.c 1 Nov 2005 22:44:07 -0000 1.48 +++ acpi_pci_link.c 28 Nov 2005 13:03:29 -0000 @@ -859,7 +859,18 @@ if (!link->l_routed && PCI_INTERRUPT_VALID(link->l_irq)) { link->l_routed =3D TRUE; + /* + * Some BIOSen are broken and actually set + * some interrupts to active-high with level + * trigger. Workaround this by hard-coding + * active-low and level-trigger. + */ +#if 0 acpi_config_intr(dev, resource); +#else + BUS_CONFIG_INTR(dev, link->l_irq, + INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW); +#endif pci_link_interrupt_weights[link->l_irq] +=3D link->l_references; } =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org