All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Harco Kuppens <h.kuppens@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] keyboard interrupt
Date: Wed, 17 Sep 2008 23:33:37 +0200	[thread overview]
Message-ID: <48D177B1.7000009@domain.hid> (raw)
In-Reply-To: <48CE8CE7.6030209@domain.hid>

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

Harco Kuppens wrote:
> Hi,
> 
> I tried to make a demo program which showed how that user space task
> waiting for an interrupt with rt_intr_wait automatically gets an
> increase in priority when the interrupt arrives so that it can be dealed
> with immediately.
> 
> In my program I use the keyboard interrupt IRQ=1. I have a priority task
> doing spinning for 3 seconds using 100% of theCPU. During this spinning
> I want to test if a low priority task can still get an interrupt from
> the keyboard by letting the end user type some letters on the keyboard when
> My program works but only  the first interrupt gets caught when the high
> priority task is running. The following interrupts are only dealed with
> when the high priority task is done.
> Probably because linux first has to finish the first interrupt?

Exactly. You forward the IRQ to Linux, thus you reply on Linux for
dealing with the periphery (acking the IRQ there) and the final
end-of-IRQ signal.

> I thought that the adeos pipeline kept  interrupts on a hold between
> xenomai and linux, until xenomai has done its work. But in my example it
> seems that the second interrupt has to wait for linux has finished
> handling the first interrupt. That is really something you don't want.
> 
> Is my interpretation wrong, or do I something wrong in my code?

IRQ sharing between deterministic and non-deterministic code (here:
Xenomai and vanilla Linux) will never work, that's an inherent design
issue, nothing Xenomai or ipipe-specific.

Jan


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

  reply	other threads:[~2008-09-17 21:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-15 16:27 [Xenomai-help] keyboard interrupt Harco Kuppens
2008-09-17 21:33 ` Jan Kiszka [this message]
2008-09-18  8:58   ` Harco Kuppens
2008-09-19  6:53     ` Jan Kiszka
2008-09-19 14:06       ` Harco Kuppens
2008-09-21 10:38         ` Jan Kiszka
2008-09-22  9:52           ` Harco Kuppens

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=48D177B1.7000009@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=h.kuppens@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.