From: Jan Kiszka <jan.kiszka@domain.hid>
To: Dmitry Adamushko <dmitry.adamushko@domain.hid>
Cc: xenomai@xenomai.org
Subject: [Xenomai-core] Re: Move rtdm_irq_enable close to rtdm_irq_request
Date: Wed, 06 Sep 2006 11:26:23 +0200 [thread overview]
Message-ID: <44FE943F.9000803@domain.hid> (raw)
In-Reply-To: <b647ffbd0609060159q7677cd30y80208afc58caf17@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1682 bytes --]
Dmitry Adamushko wrote:
> Sharing itself is no problem: if your request an IRQ with XN_ISR_SHARED
>> set but the nucleus is not able to actually assign it to more than one
>> driver, the second request will simply fail. I see no need to deny the
>> first request or even break the driver build.
>>
> Problematic is only the handling of edge-triggered shared IRQs with the
>>
> level-triggered handler (can cause lost IRQs). Probably a runtime check
>> is best as we cannot control the configuration of, e.g., external RTDM
>> drivers. What about the attached patch?
>
>
> It's ok with me.
>
> I just thought maybe it's better to break a build and alert a user earlier
> (although, it's kind of inderect alert indeed) when the host environment
> (Xeno) doesn't support a requested mode (e.g. SHARED_EDGE).
>
> If such a driver (that requires EDGE_SHARED) is a part of the mainline,
> then
> we may use Kconfig features either (1) to make it "selectable" only when
> XENO_OPT_SHIRQ_EDGE is on or (2) select XENO_OPT_SHIRQ_EDGE automatically
> when the driver has been choosen.
>
Let's do both, the runtime check + some Kconfig magic for mainline drivers.
For the latter we should reorganise the config options slightly.
XENO_OPT_SHIRQ_* may better depend on a new switch XENO_OPT_SHIRQ. Thus,
when the user enables IRQ sharing and some in-tree driver requires
edge-triggering support, XENO_OPT_SHIRQ_EDGE will be selected by the
driver's Kconfig: select XENO_OPT_SHIRQ_EDGE if XENO_OPT_SHIRQ. With the
current layout it would look like this: select XENO_OPT_SHIRQ_EDGE if
XENO_OPT_SHIRQ_LEVEL. That may appear illogical to the user.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2006-09-06 9:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-05 12:58 [Xenomai-core] Move rtdm_irq_enable close to rtdm_irq_request Jan Kiszka
2006-09-05 15:38 ` [Xenomai-core] " Wolfgang Grandegger
2006-09-05 16:02 ` Jan Kiszka
2006-09-05 19:10 ` Dmitry Adamushko
2006-09-06 6:36 ` Jan Kiszka
2006-09-06 8:59 ` Dmitry Adamushko
2006-09-06 9:26 ` Jan Kiszka [this message]
2006-09-06 12:27 ` Dmitry Adamushko
2006-09-06 14:54 ` Jan Kiszka
2006-09-06 15:08 ` Dmitry Adamushko
2006-09-06 15:54 ` Jan Kiszka
2006-09-06 17:23 ` Dmitry Adamushko
2006-09-06 18:13 ` Jan Kiszka
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=44FE943F.9000803@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.