All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Fwd: RTAI and Xenomai latency in kernel mode on AT91SAM9261-EK
Date: Wed, 10 Oct 2007 08:12:24 +0200	[thread overview]
Message-ID: <470C6D48.3070109@domain.hid> (raw)
In-Reply-To: <18187.63871.791885.643837@domain.hid>

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

Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>  > Again, the priority should not be the issue. The issue is likely that a
>  > pending or just being handled non-RT IRQ can stall some RT IRQ at
>  > hardware level. That must not happen. I-pipe rather has to log,
>  > acknowledge, and possibly mask that line quickly so that RT IRQs can be
>  > delivered again.
> 
> Thinking a bit more about my ethernet vs timer issue. If, when an
> ethernet interrupt is pending, adeos is not aware that there is also a
> timer interrupt pending, it will call the ethernet interrupt handler
> immediately then unmask the interrupt. So, Adeos will never have a
> chance to handle the timer interrupt before another ethernet interrupt
> is handled. Ergo, giving the timer interrupt the highest priority is
> what must be done.

No. Adeos will first start to dispatch the Ethernet IRQ. It will
ack&mask it and then re-enable the IRQ delivery before calling into the
handler. At this point the hardware can report the timer IRQ, and Adeos
will immediately start to deliver that one instead.

With IRQ hardware priorities, you only optimise the case when both
interrupts are pending in the hardware at the same time. The worst-case
remains that the Ethernet IRQ comes first, Adeos starts to handle it,
and _then_ the timer IRQ arrives. This is something the hardware can in
no way avoid (without looking into the future...).

Jan


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

  reply	other threads:[~2007-10-10  6:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-09 17:19 [Xenomai-core] RTAI and Xenomai latency in kernel mode on AT91SAM9261-EK Gregory CLEMENT
2007-10-09 18:15 ` Jan Kiszka
     [not found]   ` <305035a40710091207j4038c62s5fb81903ce843910@domain.hid>
2007-10-09 19:07     ` [Xenomai-core] Fwd: " Gregory CLEMENT
2007-10-09 19:45       ` Jan Kiszka
2007-10-09 21:58         ` Gilles Chanteperdrix
2007-10-10  6:12           ` Jan Kiszka [this message]
2007-10-10  8:45             ` Philippe Gerum
2007-10-10  8:54               ` Gilles Chanteperdrix
2007-10-10  9:28                 ` Philippe Gerum
2007-10-10  9:36                   ` Gilles Chanteperdrix
2007-10-10  9:54                     ` Philippe Gerum
2007-10-09 20:02       ` Jan Kiszka
2007-10-09 19:56   ` [Xenomai-core] " Gilles Chanteperdrix

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=470C6D48.3070109@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.