Re: APIC, changing level/edge interrupt

Pierre Ossman
2005-01-01T15:56:25Z

Tim Hockin wrote:

>On Tue, Dec 28, 2004 at 06:27:25PM +0100, Pierre Ossman wrote:
>
>
>>How do you tell the APIC that a device uses level triggered interrupts,
>>not edge triggered? I have a flash reader on the LPC bus which uses
>>level triggered interrupts and /proc/interrupts show edge triggered.
>>Some interrupts are missed by the APIC so I figured this might be why.
>>
>>
>
>BIOS should set this up. Maybe ACPI has a way to do this?
>
>
Should doesn't always mean that it actually does ;)
But since BIOS can configure the APIC then the kernel should be able to
also. A quick and dirty hack will suffice ATM since I just want to
pinpoint where the problem is.
What is the default mode and what does the XT-PIC expect? (it works fine
with the apic disabled).

ACPI might have some functions to configure the APIC correctly but right
now the connection between ACPI and drivers is rather weak (non-existant
for this driver) so that's not really a viable solution when testing.
Might be a good long term solution though.

Rgds
Pierre