From: Jan Kiszka <jan.kiszka@domain.hid>
To: Dmitry Adamushko <dmitry.adamushko@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [draft PATCH] nested enable/disable irq calls
Date: Tue, 11 Apr 2006 23:18:33 +0200 [thread overview]
Message-ID: <443C1D29.5020105@domain.hid> (raw)
In-Reply-To: <b647ffbd0604070805k32dc185fu4d3705906ffcbc2f@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 2215 bytes --]
Hi Dmitry,
Dmitry Adamushko wrote:
> Hi,
>
> yep, this is yet another draft patch which aims at supporting the
> nested irq disable/enable calls for the primary domain.
>
> o no changes on the adeos-ipipe layer, hence it's much cleaner and
> smaller that the one I have posted last time;
>
> o eliminates the need for XN_ISR_NOENABLE flag;
>
> o but is based on the presupposition (otherwise it's wrong) that for
> all acrhitectures that support Xenomai the following is true :
>
> pic_handler->ack :
> * mask
> * eoi
>
> pic_handler->end :
> * unmask
>
> Philippe told me some time ago that this is a _must_ now for any arch
> to be compatible with adeos-ipipe.
>
> If so, with some minor cleanups (XN_ISR_NOENABLE should be removed all
> over the map,
> docs fixes, ...) and testing the patch may hopefully find its way into
> the codebase.
>
> Any feedback?
>
Yes, I do have some remarks: due to legacy issues (I think to remember),
we have a lot of unbalanced irq-enable/disable code out there. IRQs are
currently enabled after registering a handler, but are not disabled on
detach. That's because of problems with Linux when letting it take over
a disabled IRQ, and for the sake of shared-irqs. Thus, if we introduce
such a nestable enable/disable, we _must_ think about managing the side
effects in legacy code (I haven't thought about this in details yet).
Another thing I have on my mind ATM is providing an additional IRQ
model: threaded IRQs. This is certainly not the best default model, but
it could help in certain scenarios to reduce prio-inversions due to
overloaded IRQ handler jobs (like we face from time to time with devices
on the slow ISA-bus...).
I think this should be rather simple to implement with the existing
infrastructure. I'm just wondering if it should become a RTDM or a
nucleus feature. Any opinions? [I'm currently in favour of RTDM.]
A nice add-on to this model would be to capture timestamps in the hard
stub and to distribute it to the threaded handlers. That's quite
egoistic, as it would perfectly fit our needs again: low timestamp
jitter but schedulable IRQ jobs. :)
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
next prev parent reply other threads:[~2006-04-11 21:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-07 15:05 [Xenomai-core] [draft PATCH] nested enable/disable irq calls Dmitry Adamushko
2006-04-07 15:22 ` Philippe Gerum
2006-04-11 21:18 ` Jan Kiszka [this message]
2006-04-12 8:46 ` Dmitry Adamushko
2006-04-12 18:17 ` Dmitry Adamushko
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=443C1D29.5020105@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=dmitry.adamushko@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.