All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: ferretliu@domain.hid
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Different performance in irq handling between native	skin and rtdm?
Date: Sat, 15 Jul 2006 10:32:17 +0200	[thread overview]
Message-ID: <44B8A811.2070507@domain.hid> (raw)
In-Reply-To: <44B87D16.7030407@domain.hid>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 1510 bytes --]

Liu Zhenghui wrote:
> I have an A/D card which has a shared irq number 16 with the Radeon 7500
> video card. So I have to in isr tell whether this interrupt is from AD
> card. If not, then let other isr handle it. For native skin, this is
> done by returning RT_INTR_PROPAGATE in isr, while for rtdm, by using
> RTDM_IRQTYPE_SHARED flag when request the interrupt. I found both works,
> but rtdm solution make the xorg very slow (open a new window, animation
> etc.), while native skin not. It seems that it take a much longer
> latency for rtdm to propagate the irq to video card than for native
> skin. How did this happen?

The point with RTDM is that is simple doesn't propagate the IRQ to Linux
like the native skin is able to. The reason: there is no common RT-safe
(priority-inversion-free) way to share IRQs between real-time and
non-real-time devices. That's a sad fact. Thus, I decided to drop the
propagation flag from the RTDM API. This way RTDM just tries to make you
reconsider your system design.

What you can do is to try flipping the A/D card in some PCI slots in the
hope that its IRQ changes. If this doesn't help: don't know, is there a
way to run your ATI driver without IRQ help? Otherwise, you would have
to hack the video driver so that IRQ requests are handled in a real-time
stub first (i.e. the reason is logged and removed from the hardware) and
then propagated to Linux via some virtual IRQ. Feasible, but a log of
work, thus only a last resort.

Jan


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

      reply	other threads:[~2006-07-15  8:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-15  5:28 [Xenomai-help] Different performance in irq handling between native skin and rtdm? Liu Zhenghui
2006-07-15  8:32 ` 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=44B8A811.2070507@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=ferretliu@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.