Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Dec 2002 10:22:52 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   Re: PERFORCE change 22825 for review
Message-ID:  <XFMail.20021231102252.jhb@FreeBSD.org>
In-Reply-To: <20021230201350.GA696@dhcp01.pn.xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On 30-Dec-2002 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 (= compatible with ISA), then this should
> work.

ACPI isn't a bus.  However, you can probably (XXX) assume that if there
is an ACPI device that isn't hung off of PCI, it's like an ISA device
and thus use ISA-type properties.  Ugly isn't it. :(

>> 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

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20021231102252.jhb>