From owner-p4-projects@FreeBSD.ORG Thu Aug 21 10:32:28 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7B27716A4C1; Thu, 21 Aug 2003 10:32:27 -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 2505416A4BF; Thu, 21 Aug 2003 10:32:27 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 391D14400F; Thu, 21 Aug 2003 10:32:26 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from dhcp42.pn.xcllnt.net (dhcp42.pn.xcllnt.net [192.168.4.242]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id h7LHWPwO025391; Thu, 21 Aug 2003 10:32:25 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp42.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp42.pn.xcllnt.net (8.12.9/8.12.9) with ESMTP id h7LHWPFD000860; Thu, 21 Aug 2003 10:32:25 -0700 (PDT) (envelope-from marcel@dhcp42.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp42.pn.xcllnt.net (8.12.9/8.12.9/Submit) id h7LHWP3T000859; Thu, 21 Aug 2003 10:32:25 -0700 (PDT) (envelope-from marcel) Date: Thu, 21 Aug 2003 10:32:25 -0700 From: Marcel Moolenaar To: John Baldwin Message-ID: <20030821173225.GA780@dhcp42.pn.xcllnt.net> References: <20030821164706.GA566@dhcp42.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i 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:32:28 -0000 On Thu, Aug 21, 2003 at 01:13:03PM -0400, John Baldwin wrote: > > I'd still be interested to see what the MADT output from acpidump > is on one of these machines. See http://people.freebsd.org/~marcel/acpidump.txt I just made it. > What I plan to have is an ISA bus that has a identify routine > that uses ACPI to enumerate ISA devices defined in ACPI. I'm not sure I like the sound of that. We need a clear distinction between ISA and ACPI on ia64, because not all machines have ISA compatibility in their chipsets. It must therefore be possible to build kernels without ISA but still have well-known devices (from the ISA era) used as ACPI devices. Take for example the code in sio(4) that tries to detect which IRQ is raised by the device. This is perfectly valid for true ISA, but utterly and miserably fails for ACPI devices in non-ISA machines. So, you want the ISA bus attachment to be able to detect the IRQ, and have a seperate ACPI bus attachment that simply doesn't bother. This means that you need an ISA bus that doesn't double for something that isn't ISA, like ACPI. So, please. Do not blur the distinction by having it all mapped as ISA devices. I really don't want to have to shoot you :-) > 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? Yes. > 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). This makes sense. It's however not how it is (unfortunately). I'll ask around. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net