MIssed interrupts
am 07.02.2008 06:12:18 von Rick Brown
Hi,
If a particual IRQ line has been disabled (disable_irq()), what
happens if the device on that IRQ line generates interrupt? Does it
result in missed interrupt?
And in case of Uniprocessor machine, what happens if interrupts are
generated while spinlock_irq_save() etc?
TIA,
Rick
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: MIssed interrupts
am 07.02.2008 16:50:16 von Mulyadi Santosa
Hi....
On Feb 7, 2008 12:12 PM, Rick Brown wrote:
> Hi,
>
> If a particual IRQ line has been disabled (disable_irq()), what
> happens if the device on that IRQ line generates interrupt? Does it
> result in missed interrupt?
AFAIK at the time it's in disabled state...yes it will be missed. But
once you enabled it again.... missing interrupts will be received. It
is different when interrupt is masked...it will be simply ignored.
regards.
Mulyadi.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: MIssed interrupts
am 29.02.2008 04:35:24 von Peter Teoh
On 2/7/08, Rick Brown wrote:
> Hi,
>
> If a particual IRQ line has been disabled (disable_irq()), what
> happens if the device on that IRQ line generates interrupt? Does it
> result in missed interrupt?
Yes, and there are a few other problems with interrupts too. For
missed interrupt, we solved by "bottom half". In essence the
interrupt handler has to be very short (which is immuned to another
interrupt trigger), and complete as soon as possible to get ready to
receive another interrupt, while the "deferred context" can execute
slowly, but is all the time interrupt-ready.
>
> And in case of Uniprocessor machine, what happens if interrupts are
> generated while spinlock_irq_save() etc?
>
Same, missed interrupts.
Check this out:
http://www.cs.utah.edu/classes/cs5785/slides/08-6up.pdf
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: MIssed interrupts
am 29.02.2008 08:21:07 von Jike Song
On Thu, Feb 7, 2008 at 11:50 PM, Mulyadi Santosa
wrote:
> Hi....
>
> AFAIK at the time it's in disabled state...yes it will be missed. But
> once you enabled it again.... missing interrupts will be received.
Do you mean that the PIC(Local APIC or something else) will retain the
disabled interrupt, and deliver it once again to the processor core as
soon as be re-enabled?
Regards,
Jike
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: MIssed interrupts
am 29.02.2008 12:43:50 von Mulyadi Santosa
Hi...
On Fri, Feb 29, 2008 at 2:21 PM, Jike Song wrote:
> Do you mean that the PIC(Local APIC or something else) will retain the
> disabled interrupt, and deliver it once again to the processor core as
> soon as be re-enabled?
As far as I know, yes
regards,
Mulyadi.
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: MIssed interrupts
am 29.02.2008 15:34:49 von Peter Teoh
Hi Mulyadi,
On Fri, Feb 29, 2008 at 3:21 PM, Jike Song wrote:
> On Thu, Feb 7, 2008 at 11:50 PM, Mulyadi Santosa
> wrote:
> > Hi....
> >
> > AFAIK at the time it's in disabled state...yes it will be missed. But
> > once you enabled it again.... missing interrupts will be received.
>
> Do you mean that the PIC(Local APIC or something else) will retain the
> disabled interrupt, and deliver it once again to the processor core as
> soon as be re-enabled?
>
This is something new to me. After some some search, Mulyadi is
right. It is called "Interrupt Request Buffering". And according to
Unabridged Pentium 4 (pg 1537) while processing one interrupt, it can
receive another interrupt, but the 3rd one that comes in will be
discarded, and it is all on the same interrupt vector. Thanks for
the sharing everyone....
> Regards,
> Jike
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: MIssed interrupts
am 01.03.2008 09:36:34 von Mulyadi Santosa
Hi...
On Fri, Feb 29, 2008 at 9:34 PM, Peter Teoh wrote:
> This is something new to me. After some some search, Mulyadi is
> right. It is called "Interrupt Request Buffering". And according to
> Unabridged Pentium 4 (pg 1537) while processing one interrupt, it can
> receive another interrupt, but the 3rd one that comes in will be
> discarded, and it is all on the same interrupt vector. Thanks for
> the sharing everyone....
Well, I just recall the best I could from Understanding the Linux
kernel 3rd edition. If somebody can give further confirmation, that
would be great.
regards,
Mulyadi.
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: MIssed interrupts
am 03.03.2008 02:10:12 von Jike Song
On Fri, Feb 29, 2008 at 7:43 PM, Mulyadi Santosa
wrote:
> As far as I know, yes
>
> regards,
>
> Mulyadi.
>
Thanks for the confirmation.
Regards,
Jike
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: MIssed interrupts
am 02.04.2008 10:09:38 von Peter Teoh
More information on missing interrupts, esp on ARM platform:
http://www.embeddedrelated.com/usenet/embedded/show/72620-1. php
On Mon, Mar 3, 2008 at 9:10 AM, Jike Song wrote:
> On Fri, Feb 29, 2008 at 7:43 PM, Mulyadi Santosa
>
> wrote:
>
> > As far as I know, yes
> >
> > regards,
> >
> > Mulyadi.
> >
>
> Thanks for the confirmation.
>
> Regards,
> Jike
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
--
Regards,
Peter Teoh
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs