All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Benjamin ZORES <benjamin.zores@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] Error propagating ISR to Linux domain
Date: Wed, 16 Jul 2008 19:02:49 +0200	[thread overview]
Message-ID: <487E29B9.40904@domain.hid> (raw)
In-Reply-To: <487E1BE8.1000306@domain.hid>

Benjamin ZORES wrote:
> Hi,
> 
> I've encountered a little problem when trying to propagate an ISR from 
> Xenomai to Linux context.
> 
> To sum up clearly, I'm writing an RT kernel module that drives a PCI card.
> I've registered a nucleus ISR handler on the IRQ attributed to this card.
> 
> On some systems, this IRQ is dedicated to this PCI card only.
> Though, on others, it is shared with other peripherals.
> Hence, I need to forward/propagate this IRQ to Linux domain for other 
> drivers to handle it
> when the IRQ has not been initiated by my PCI card.

If you also need deterministic IRQ handling in the shared case, that
approach won't fly. It may work to some degree if there are significant
gaps between the individual IRQs, so significant that one can assume
Linux will always be reactive enough to handle the last forwarded IRQ
(and thus release the line before the RT event arrives).

The only truly deterministic solution is to write minimal IRQ handlers
for the involved Linux devices in RT space, ie. for Xenomai. RT-IRQ
sharing works nicely.

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux


  reply	other threads:[~2008-07-16 17:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-16 16:03 [Xenomai-core] Error propagating ISR to Linux domain Benjamin ZORES
2008-07-16 17:02 ` Jan Kiszka [this message]
2008-07-20 16:25 ` Ulrich Schwab
2008-07-28 14:37   ` Gilles Chanteperdrix
2008-07-29 14:20     ` Gilles Chanteperdrix
2008-07-29 22:15       ` Ulrich Schwab
2008-07-29 22:24         ` Gilles Chanteperdrix
2008-07-30  8:31         ` Gilles Chanteperdrix
2008-07-30  9:22           ` Ulrich Schwab
2008-07-30  9:26             ` 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=487E29B9.40904@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=benjamin.zores@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.