Skip to contentSkip to conversation

Interrupt Handler Invocation

DISCUSSION Singaravelan Nallasellan 2 participants 2 messages Sep 18, 2008

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw
Quoted 6 lines · On Thu, 18 Sep 2008 23:27:30 +0530 "Singaravelan Nallasellan"…

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

Quoted 1 line

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.