IRQ issue :xnintr_irq_handler
Hi,
I wrote a driver to manage GPIO on a PCI card. This PCI card offer UART and GPIO.
So when I use my GPIO driver with the IRQ10 (automatic assignment), I get this error message : Xenomai: xnintr_irq_handler: IRQ10 not handled. Disabling IRQ line.
I program IOCTL command which wait an event. This event is released when a interrupt is notified on a change state from the input.
I get my error message when I change the state of my input and want to provocate a interrupt.
I've made a another test; still with the same PCI card (same IRQ 10) but this time I load the 16550A driver and use the uart with www.captain.at test on writing and reading on the same uart. Everything works fine.
Can someone can explain me why I get my error ?
Thanks for your help,
Marcel.
Quoted 12 lines · Marcel Soulot
Hi,
I wrote a driver to manage GPIO on a PCI card. This PCI card offer UART and GPIO.
So when I use my GPIO driver with the IRQ10 (automatic assignment), I get this error message : Xenomai:xnintr_irq_handler: IRQ10 not handled. Disabling IRQ line.
I program IOCTL command which wait an event. This event is released when a interrupt is notified on a change state from the input.
I get my error message when I change the state of my input and want to provocate a interrupt.
Quoted 5 lines
I've made a another test; still with the same PCI card (same IRQ 10) but this time I load the 16550A driver and use the uart with www.captain.at test on writing and reading on the same uart. Everything works fine.
Can someone can explain me why I get my error ?
You get this error because no registered real-time IRQ handler is able to handle the IRQ, very likely because you try to share an IRQ between real-time drivers and non real-time drivers without modifying the non real-time drivers as explained in the FAQ.
Signature · 1 line
Gilles.
But why does it work for my uart driver and not for my gpio driver ? They works in the same way about irq management, spoke to the same chip?
Thanks,
Marcel .
2009/4/8 Gilles Chanteperdrix <[email protected]>
Quoted 29 lines
Quoted 3 lines · Marcel Soulot
Hi,
I wrote a driver to manage GPIO on a PCI card. This PCI card offer UART
and
Quoted 5 lines
GPIO.
So when I use my GPIO driver with the IRQ10 (automatic assignment), I get this error message : Xenomai:xnintr_irq_handler: IRQ10 not handled. Disabling IRQ line.
I program IOCTL command which wait an event. This event is released whena
Quoted 9 lines
interrupt is notified on a change state from the input.
I get my error message when I change the state of my input and want to provocate a interrupt.I've made a another test; still with the same PCI card (same IRQ 10) but this time I load the 16550A driver and use the uart with www.captain.attest on writing and reading on the same uart. Everything works fine.
Can someone can explain me why I get my error ?
You get this error because no registered real-time IRQ handler is able to handle the IRQ, very likely because you try to share an IRQ between real-time drivers and non real-time drivers without modifying the non real-time drivers as explained in the FAQ.
--
Gilles.
Quoted 2 lines · Marcel Soulot
But why does it work for my uart driver and not for my gpio driver ? They works in the same way about irq management, spoke to the same chip?
I have to admit that I did not really understand what your problem is. I only told you what "Xenomai: xnintr_irq_handler: IRQ10 not handled" means. Without seeing the driver code, I can not tell you much more, except that it all boils down to the driver returning XN_ISR_NONE. For the system to work correctly, when one driver returns XN_ISR_NONE, another driver has to handle (meaning really making the peripheral deasssert the irq line) the interrupt and return XN_ISR_HANDLED.
Signature · 1 line
Gilles.