Re: [GIT PATCH] more Driver core patches for 2.6.19




You can simply mask it, have it handled by userspace and re-enable it
when that's done. Though say hello to horrible interrupt latencies and
hope you aren't sharing it with anything critical...

For the sharing case, some sort of softirq should be created. That is, when a
hard interrupt is generated and the irq handler is executed, set a flag that at
some other point in time, the irq is delivered to userspace. Like you do with
signals in userspace:

void sighandler(int s) {
exit_main_loop_soon = 1;
}

something similar could be done in kernelspace without interrupting important
devices/irq_handlers sharing the same IRQ.


-`J'
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: PCI Interrupt
    ... devices and ACK the interrupt (I believe RTAI does that in reverse ... On PC hardware or in general, sharing edge-triggered interrupts can ... The fact that some ISA peripherials do respect the open-collector ... generations of the hardware treated the IRQ line very differently. ...
    (Linux-Kernel)
  • Re: IRQ Sharing
    ... Therefor it is not always feasible to get rid of interrupt sharing. ... The PCI specification explicitly states that PCI devices can share ...
    (Linux-Kernel)
  • Sharing serial IRQ on the ISA bus
    ... The hardware that permits the sharing is a wired-OR of the INT lines of the 16550 UARTs. ... A UART INT line goes high when this UART interrupts. ... The wired-OR output is the IRQ line, connected to the interrupt controller, that interrupts the processor when a low-to-high edge is detected on the line. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: IRQ Sharing
    ... other than executing the interrupt handler of both devices. ... When it comes to sharing with other devices I have made the choice to ... > hardwiring them) between on-board devices and PCI slots is also common ... The physic IRQ line can be shared, the only thing i need is the virtual IRQ to ...
    (Linux-Kernel)
  • [Fwd: 2.6.20-14.23 pauses on ThinkPad X32]
    ... Latency: 96 ... Subsystem: 1014:052d ... Interrupt: pin A routed to IRQ 11 ...
    (Ubuntu)