* Interrupt Handler Invocation
@ 2008-09-18 17:57 Singaravelan Nallasellan
2008-09-18 18:26 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Singaravelan Nallasellan @ 2008-09-18 17:57 UTC (permalink / raw)
To: linux-kernel
Hi,
I am currently assuming that the ISR will be invoked repeatedly till
the ISR says the IRQ is handled. Is it a valid assumption?
Can somebody throw some light on whether ISR is invoked repeatedly
when the ISR returns the IRQ is not handled?
What is the behaviour for edge or level triggered interrupts?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Interrupt Handler Invocation
2008-09-18 17:57 Interrupt Handler Invocation Singaravelan Nallasellan
@ 2008-09-18 18:26 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2008-09-18 18:26 UTC (permalink / raw)
To: Singaravelan Nallasellan; +Cc: linux-kernel
On Thu, 18 Sep 2008 23:27:30 +0530
"Singaravelan Nallasellan" <singaravelann@gmail.com> wrote:
> Hi,
>
> I am currently assuming that the ISR will be invoked repeatedly till
> the ISR says the IRQ is handled. Is it a valid assumption?
> Can somebody throw some light on whether ISR is invoked repeatedly
> when the ISR returns the IRQ is not handled?
That depends whether the IRQ is cleared
> What is the behaviour for edge or level triggered interrupts?
Hardware dependant.
IRQ_HANDLED isn't used to indicate that the IRQ was processed and some
magic should occur, it is used so that the kernel can detect stuck
interrupts.
Generally speaking if you get an edge triggered IRQ and nobody handles it
then it will be lost and you may get the IRQ line stuck unusable forever.
If you get a level triggered IRQ and nobody handles it you will get
stuck repeatedly calling the IRQ handler until the kernel shuts that IRQ
off entirely to try and keep going.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-18 18:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-18 17:57 Interrupt Handler Invocation Singaravelan Nallasellan
2008-09-18 18:26 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®