* [Xenomai-help] IRQ issue :xnintr_irq_handler
@ 2009-04-08 12:41 Marcel Soulot
2009-04-08 12:53 ` Gilles Chanteperdrix
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Soulot @ 2009-04-08 12:41 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 770 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] IRQ issue :xnintr_irq_handler
2009-04-08 12:41 [Xenomai-help] IRQ issue :xnintr_irq_handler Marcel Soulot
@ 2009-04-08 12:53 ` Gilles Chanteperdrix
2009-04-08 13:07 ` Marcel Soulot
0 siblings, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2009-04-08 12:53 UTC (permalink / raw)
To: Marcel Soulot; +Cc: xenomai
Marcel Soulot wrote:
> 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 ?
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] IRQ issue :xnintr_irq_handler
2009-04-08 12:53 ` Gilles Chanteperdrix
@ 2009-04-08 13:07 ` Marcel Soulot
2009-04-08 13:21 ` Gilles Chanteperdrix
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Soulot @ 2009-04-08 13:07 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1391 bytes --]
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 <gilles.chanteperdrix@xenomai.org>
> Marcel Soulot wrote:
> > 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.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.
>
[-- Attachment #2: Type: text/html, Size: 1933 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] IRQ issue :xnintr_irq_handler
2009-04-08 13:07 ` Marcel Soulot
@ 2009-04-08 13:21 ` Gilles Chanteperdrix
0 siblings, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2009-04-08 13:21 UTC (permalink / raw)
To: Marcel Soulot; +Cc: xenomai
Marcel Soulot wrote:
> 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.
--
Gilles.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-08 13:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-08 12:41 [Xenomai-help] IRQ issue :xnintr_irq_handler Marcel Soulot
2009-04-08 12:53 ` Gilles Chanteperdrix
2009-04-08 13:07 ` Marcel Soulot
2009-04-08 13:21 ` Gilles Chanteperdrix
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.