From: Jan Kiszka <jan.kiszka@domain.hid>
To: rpm@xenomai.org
Cc: Xenomai-help@domain.hid
Subject: Re: [Xenomai-help] Problem with interrupt enabling
Date: Fri, 25 May 2007 14:00:58 +0200 [thread overview]
Message-ID: <4656CFFA.1020001@domain.hid> (raw)
In-Reply-To: <1180094224.20410.39.camel@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 2578 bytes --]
Philippe Gerum wrote:
> On Fri, 2007-05-25 at 13:16 +0200, Jan Kiszka wrote:
>> Johan Borkhuis wrote:
>>> Hello,
>>>
>>> I am trying to create an RTDM interrupt handler for an external
>>> interrupt. I use a rtdm_irq_request, followed by a rtdm_irq_enable. This
>> The rtdm_irq_enable is no longer required with RTDM revision 6 and
>> higher. But that's trunk, it's rev. 5 which still comes with Xenomai
>> 2.3.x. And the enable will also cause no harm with rev. 6.
>>
>>> caused one interrupt to be processed, but subsequent interrupts were not
>>> processed.
>>> After adding an extra rtdm_irq_enable to the ISR the interrupts are
>>> processed. When I look at the other drivers I don't see this. Is this
>>> needed, or is there a bug/feature in the interrupt handling on my platform?
>>> (I use a MVME3100 with a ppc8540 processor and openPIC interrupt
>>> controller).
>> What do you return with your IRQ handler? RTDM_IRQ_HANDLED?
>>
>> That explicit rtdm_irq_enable is not required by design, would rather be
>> a bug on certain platforms (where enable != end IRQ), and indicates that
>> something else is broken, maybe in Xenomai.
>>
>
> Xenomai is not involved at this level, it's the I-pipe business here. As
I would be careful with this judgement when reading further on...
> a matter of fact, the current I-pipe/ppc implementation forces the slow
> ack path, i.e. disables the source and send EOI in the openpic code,
> because we don't want another IRQ from the same source before some stage
> has processed the current one. This is due to the deferred-by-design
> nature of IRQ handling introduced by the interrupt pipeline, which has
> raised some issues (namely interrupt storm) for level-triggered IRQs on
> some ppc hw, IIRC.
>
> Calling enable/end is thus needed to reactivate the IRQ source at some
> point, even if it's not required by any vanilla kernel configuration
> which may instead use the fast ack mode (i.e. send EOI only for
> level-triggered interrupts, no masking).
The RTDM API just like the nucleus interrupt layer is precisely about
removing this need from the driver/application developer. Thus, if you
say we need ending here because I-pipe can't help on this arch, we would
see a clear Xenomai bug.
>
> Next powerpc patches should not require this, thanks to the genirq layer
> which helps differentiating interrupt flows in a much simpler way.
>
But until then we need a fix. Can we patch rthal_irq_end() on PPC to
address this depending on the I-pipe version?
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-05-25 12:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-25 11:04 [Xenomai-help] Problem with interrupt enabling Johan Borkhuis
2007-05-25 11:16 ` Jan Kiszka
2007-05-25 11:24 ` Johan Borkhuis
2007-05-25 11:34 ` Jan Kiszka
2007-05-25 11:50 ` Johan Borkhuis
2007-05-25 11:57 ` Philippe Gerum
2007-05-25 12:00 ` Jan Kiszka [this message]
2007-05-25 12:56 ` Philippe Gerum
2007-05-25 13:05 ` Jan Kiszka
2007-05-25 13:25 ` Philippe Gerum
2007-05-26 9:10 ` Philippe Gerum
2007-05-29 6:24 ` Johan Borkhuis
2007-05-29 7:32 ` Philippe Gerum
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=4656CFFA.1020001@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=Xenomai-help@domain.hid \
--cc=rpm@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.