From owner-p4-projects Mon Dec 30 23:53:52 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7997037B405; Mon, 30 Dec 2002 23:53:50 -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 0AA1A37B401; Mon, 30 Dec 2002 23:53:50 -0800 (PST) Received: from herring.nlsystems.com (mailgate.nlsystems.com [62.49.251.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 819AB43ED4; Mon, 30 Dec 2002 23:53:48 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by herring.nlsystems.com (8.12.6/8.12.6) with ESMTP id gBV7rkOR012502; Tue, 31 Dec 2002 07:53:46 GMT (envelope-from dfr@nlsystems.com) Content-Type: text/plain; charset="iso-8859-1" From: Doug Rabson To: Marcel Moolenaar , John Baldwin Subject: Re: PERFORCE change 22825 for review Date: Tue, 31 Dec 2002 07:53:45 +0000 User-Agent: KMail/1.4.3 Cc: Perforce Change Reviews References: <200212280132.gBS1WakY007301@repoman.freebsd.org> <20021230201350.GA696@dhcp01.pn.xcllnt.net> In-Reply-To: <20021230201350.GA696@dhcp01.pn.xcllnt.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212310753.46078.dfr@nlsystems.com> X-Spam-Status: No, hits=-7.7 required=6.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_KMAIL version=2.41 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 Monday 30 December 2002 8:13 pm, Marcel Moolenaar wrote: > 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 (=3D 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... The type of interrupt should be stated in the MADT. Look at=20 PLATFORM_INTERRUPT_SOURCE, fields Polarity and TriggerMode. --=20 Doug Rabson=09=09=09=09Mail: dfr@nlsystems.com =09=09=09=09=09Phone: +44 20 8348 6160 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message