The "legacy" ISA interrupt controller has various modes, but the
legacy mode is to be edge-sensitive. Edge-sensitivity here isn't
quite what a hardware engineer would mean by it, but it does mean
that, once an interrupt has been triggered, it has to go low before
another interrupt can be recognized. That's consistent with your
experiments. In general, an ISA interrupt service loop needs to be of
the form: while (device is interrupting) { service the interrupt }
Shared interrupts (eg PCI) are different, of course. Because they're
shared, the interrupt controller can't be edge-sensitive. One problem
would be that another (interrupt sharing) device can hold the
interrupt line active (low for PCI), so two devices could in
principle interrupt alternately and the interrupt line itself never
go inactive, and no edges would be seen by the interrupt controller.
The same service loop should work just fine, but the penalty for not
servicing a PCI interrupt should just be that the ISR will get
invoked again. Of course, that will go on forever unless the
interrupt *is* serviced, but you can get away with servicing one at a
time, and taking an interrupt for each event. Not necessarily
efficient, but it should work.
Depending on the interrupt controller, an interrupt may need to be
ACKed; this is definitely true for legacy ISA interrupt controllers.
That's not typically a driver function, as I recall.
-- /Jonathan Lundell. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/