From owner-p4-projects@FreeBSD.ORG Thu Aug 21 10:12:45 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 49F2D16A4C1; Thu, 21 Aug 2003 10:12:45 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD66F16A4BF for ; Thu, 21 Aug 2003 10:12:44 -0700 (PDT) Received: from mail.speakeasy.net (mail7.speakeasy.net [216.254.0.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1707543FDD for ; Thu, 21 Aug 2003 10:12:44 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 1188 invoked from network); 21 Aug 2003 17:12:42 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 21 Aug 2003 17:12:42 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h7LHCd9s099440; Thu, 21 Aug 2003 13:12:41 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030821164706.GA566@dhcp42.pn.xcllnt.net> Date: Thu, 21 Aug 2003 13:13:03 -0400 (EDT) From: John Baldwin To: Marcel Moolenaar cc: Perforce Change Reviews Subject: Re: PERFORCE change 36551 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 17:12:46 -0000 On 21-Aug-2003 Marcel Moolenaar wrote: > On Thu, Aug 21, 2003 at 10:40:47AM -0400, John Baldwin wrote: >> >> > >> > @@ -266,9 +266,18 @@ >> > struct sapic *sa = ia64_sapics[i]; >> > if (irq < sa->sa_base || irq > sa->sa_limit) >> > continue; >> > + /* >> > + * KLUDGE: Not all interrupts higher or equal to 16 are >> > + * active low and level sensitive. We don't know yet how >> > + * to check for this, so we hardcode the 2 cases we have >> > + * wrong explicitly. This kludge is specific to the HP >> > + * rx2600... >> > + */ >> >> Have you tried looking at any interrupt overrides in the MADT? >> That is where the BIOS should tell you which interrupts above 15 >> have ISA-like parameters. > > I think you said the same 8 or 9 months ago. I think I answered > something like: there's no interrupt override, because those > relate to overriding the legacy interrupts (0-15). It's still > true. There's no interrupt override, because we're not overriding > interrupts. I'd still be interested to see what the MADT output from acpidump is on one of these machines. > I also said that I thought it would be related to the fact that > the UARTs are on the acpi bus, to which you replied that ACPI > is not a bus. I didn't disagree, but it's generally much easier > to treat acpi as a bus in these cases. I think this too is still > true. The interrupt trigger and polarity is non-standard because > the UARTs are described by acpi. They are not pci devices. Yet > we assume that any non-laegacy irq (ie any larger than 15) must > be a pci interrupt. What I plan to have is an ISA bus that has a identify routine that uses ACPI to enumerate ISA devices defined in ACPI. > Unfortunately, I couldn't find anywhere in the ACPI spec that > states that devices described by ACPI have edge sensitivity and > are active high. It may be a mistake on HP's part. Or maybe we > should not reprogram the iosapics and assume the firmware has > done that... PCI devices are described in ACPI, so I don't think we can make assumptions about ACPI devices having interrupt properties. How are you getting the interrupt number for the UART devices anyway? Does ACPI specify an IRQ of 66 or whatever it is? If the UART devices raise an ISA interrupt, then by my reading, the ACPI resource should specify the ISA interrupt number (0-15), and the MADT should include a source override that maps that ISA interrupt number to a global interrupt number of 66 or whatever (which maps to a SAPIC:intpin). You could also just ask someone in HP how the heck you are supposed to know how to do this and see what they say. :) arun@ might be another good person to ask. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/