From owner-freebsd-current@FreeBSD.ORG Fri Feb 6 11:25:21 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DA1316A4CE for ; Fri, 6 Feb 2004 11:25:21 -0800 (PST) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B27143D6D for ; Fri, 6 Feb 2004 11:25:18 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 23283 invoked from network); 6 Feb 2004 19:24:43 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 6 Feb 2004 19:24:43 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id i16JONM8019640; Fri, 6 Feb 2004 14:24:39 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Nate Lawson Date: Fri, 6 Feb 2004 13:43:49 -0500 User-Agent: KMail/1.5.4 References: <20040205151520.E48439@root.org> In-Reply-To: <20040205151520.E48439@root.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200402061343.49318.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: pmes@bis.midco.net cc: current@freebsd.org Subject: Re: Interrupt storm on acpi0 occurred after madt.c change X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2004 19:25:21 -0000 On Thursday 05 February 2004 06:19 pm, Nate Lawson wrote: > It should work fine in Linux. mp_config_ioapic_for_sci() in > arch/i386/kernel/mpparse.c has an exception for Tyans: > > /* > * Although the ACPI spec says that the SCI should be level/low > * don't reprogram it unless there is an explicit MADT OVR entry > * instructing us to do so -- otherwise we break Tyan boards which > * have the SCI wired edge/high but no MADT OVR. > */ > > This is for the case where there is no source override in the MADT for the > interrupt defined as ACPI_FADT->sci_int. The problem is that these motherboards _do_ have an MADT override entry. Even worse, I have seen different motherboards (some Tyan, some non-Tyan) that both have the exact same MADT override entry that maps IRQ 9 to interrupt 20 with active-hi polarity and level trigger. Now, on the !Tyan motherboards, using those params results in an interrupt storm, so I force the polarity to active-lo (on these motherboards, another PCI device such as fxp0 also uses IRQ 20). On the Tyan motherboards, the MADT entry is _identical_, but it storms if I set the polarity to low but works if it uses the bogus setting of active-hi (but with level trigger). The Tyan motherboards do not seem to share IRQ 20 with a PCI device, but I can't tell if a PCI device uses IRQ 20 in the MADT parser. It's a big mess, as I have two different vendors using the same exact MADT entry both with a bogus polarity, and one wants hte bogus polarity and one wants the normal polarity (i.e. use active-lo with level trigger). -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org