From owner-p4-projects Mon Dec 30 12:12:56 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E98D537B405; Mon, 30 Dec 2002 12:12:53 -0800 (PST) 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 7F7B437B401; Mon, 30 Dec 2002 12:12:53 -0800 (PST) Received: from kayak.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2746C43E4A; Mon, 30 Dec 2002 12:12:52 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by kayak.xcllnt.net (8.12.6/8.12.6) with ESMTP id gBUKCkrT020555; Mon, 30 Dec 2002 12:12:46 -0800 (PST) (envelope-from marcel@kayak.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.6/8.12.6) with ESMTP id gBUKDtcc000746; Mon, 30 Dec 2002 12:13:55 -0800 (PST) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.6/8.12.6/Submit) id gBUKDpa1000745; Mon, 30 Dec 2002 12:13:51 -0800 (PST) Date: Mon, 30 Dec 2002 12:13:50 -0800 From: Marcel Moolenaar To: John Baldwin Cc: Perforce Change Reviews Subject: Re: PERFORCE change 22825 for review Message-ID: <20021230201350.GA696@dhcp01.pn.xcllnt.net> References: <200212280132.gBS1WakY007301@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Dec 30, 2002 at 02:41:58PM -0500, John Baldwin wrote: > > > DANGER, WILL ROBINSON: this change hardcodes the trigger > > mode and polarity for 3 interrupt vectors to be edge > > sensitive active high. Do not use this code unless you > > know it cannot harm. The kludge committed to get a serial > > console on the HP box in the cluster until we have figured > > where and how we can get information about interrupts and > > specificly about trigger mode and polarity. > > How about reading the default value of the vector in the IO APIC > vector entry? Or better yet, leave the polarity and trigger mode > of those entries alone and only ever change the vector. Hmmm... Not a bad idea. But a bit scary. If the default settings are level sensitive active low, then I'm willing to give it a shot. Another idea I'm playing with is to look at the bus on which the device is attached. PCI is (AFAICT) always level sensitive active low. No need to guess if the device is attached to a PCI bus. The hardcoding I did is typically for devices attached to the ACPI bus. If ACPI defaults to edge sensitive active high (= compatible with ISA), then this should work. > However, try looking at the madt. Check out the diffs in jhb_madt > to print out the contents of the MADT. The MADT can describe when > certain pins are not normal. You mean the redirection/override entries? We don't have those. I haven't found anything in the MADT that tells us what the polarity and trigger mode should be. The override entries only apply to PIC IRQs 0-15 and this box does not have any PICs. It does not support non-APIC interrupt schemes. Hence, no need for overrides. Apparently everything is perceived to be normal from ACPI's point of view, so there's nothing there... -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message