All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Jeff Webb <jeff.webb@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Propagating interrupts
Date: Thu, 02 Nov 2006 08:54:51 +0100	[thread overview]
Message-ID: <4549A44B.50307@domain.hid> (raw)
In-Reply-To: <454931D5.4050507@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1043 bytes --]

Jeff Webb wrote:
> 
> I have read that propagating interrupts to Linux is a bad idea for RT
> applications.  I am trying to understand what happens when I install an
> interrupt handler via the userspace POSIX skin like this:
> 
>  pthread_intr_attach_np (&ctr_intr, irq_number, PTHREAD_IPROPAGATE);
> 
> My RT thread waits on this interrupt using:
> 
>  pthread_intr_wait_np(ctr_intr, NULL);
> 
> Here is my understanding of what happens when I get an interrupt on this
> IRQ.  The Xenomai interrupt handler is executed, which wakes up my RT
> thread.  The interrupt remains masked until the Linux interrupt handler
> is executed.  The linux interrupt handler processes the interrupt, and
> then re-enables the IRQ.  Now the RT thread can receive more interrupts.
> 
> Is this basically correct?

Yes, the Linux domain can cause priority inversion /wrt the real-time
domain trying to handle the same IRQ line. That's true for any
deterministic/indeterministic IRQ handler combination, not only under
Xenomai.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

      reply	other threads:[~2006-11-02  7:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-01 23:46 [Xenomai-help] Propagating interrupts Jeff Webb
2006-11-02  7:54 ` Jan Kiszka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4549A44B.50307@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=jeff.webb@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.