From: Mitchell Tasman <tasman@bbn.com>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] A possible mis-interaction between CONFIG_PREEMPT and GPIO IRQ handling for ARM, leading to extreme latency
Date: Tue, 29 May 2012 03:20:15 -0400 [thread overview]
Message-ID: <4FC478AF.6020905@bbn.com> (raw)
In-Reply-To: <4FBF78FE.3020300@xenomai.org>
Gilles,
On 05/25/2012 08:20 AM, Gilles Chanteperdrix wrote:
> On 05/25/2012 11:18 AM, Mitchell Tasman wrote:
>> Thank you once again for your excellent support, and I very much look
>> forward to the updated I-Pipe for ARM 2.6.38.8 patch set.
>
> You are welcome. The patch should be done during the week-end.
Hi. I noticed that you made some commits on the for-ipipe-2.6.38-arm
branch of your ipipe-gch.git repository, and decided to take a quick
look, leading to a question.
In arch/arm/plat-omap/gpio.c, I found that you reverted-out some changes
relating to earlier fixes to handling of GPIO interrupts, bringing the
source closer to the vanilla linux 2.6.38.8 version.
One change that had been made along the way on the for-ipipe-2.6.38-arm
branch was to add a gpio_mask_ack_irq() function, and invoke it like so
from gpio_irq_handler(), instead of invoking gpio_ack_irq():
#ifndef CONFIG_IPIPE
desc->irq_data.chip->irq_ack(&desc->irq_data);
#else /* CONFIG_IPIPE */
desc->irq_data.chip->irq_mask_ack(&desc->irq_data);
#endif /* CONFIG_IPIPE */
With the latest commits, the gpio_mask_ack_irq() function remains, but
it is no longer invoked, with gpio_ack_irq() being called
unconditionally instead, as with the vanilla 2.6.38.8 source.
Looking at I-Pipe support for 3.0.13, I found that the inline function
chained_irq_enter() is called at the equivalent place in
gpio_irq_handler(), and that function appears to invoke
gpio_mask_ack_irq() when available (which it is for OMAP in your tree),
and otherwise calls gpio_ack_irq().
I just wanted to double-check with you that the vanilla 2.6.38.8 source
is indeed correct (or at least harmless) in its unconditional calling of
gpio_ack_irq() from gpio_irq_handler(), and that the apparent difference
in behavior between the 3.0.13 and 2.6.38.8 I-Pipe patch sets is fine as
well.
Thank you very much for updating I-Pipe support for ARM 2.6.38.8.
Best Regards,
Mitch
next prev parent reply other threads:[~2012-05-29 7:20 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 0:31 [Xenomai] A possible mis-interaction between CONFIG_PREEMPT and GPIO IRQ handling for ARM, leading to extreme latency Mitchell Tasman
2012-05-22 7:40 ` Gilles Chanteperdrix
2012-05-22 8:07 ` Gilles Chanteperdrix
2012-05-22 8:34 ` [Xenomai] RE : " Jean-Pascal JULIEN
2012-05-22 8:51 ` Gilles Chanteperdrix
2012-05-22 11:52 ` [Xenomai] RE : " Jean-Pascal JULIEN
2012-05-22 12:38 ` Gilles Chanteperdrix
2012-05-22 13:23 ` [Xenomai] RE : " Jean-Pascal JULIEN
2012-05-22 13:33 ` Gilles Chanteperdrix
2012-05-22 21:22 ` [Xenomai] " Mitchell Tasman
2012-05-22 21:30 ` Gilles Chanteperdrix
2012-05-25 9:18 ` Mitchell Tasman
2012-05-25 12:20 ` Gilles Chanteperdrix
2012-05-29 7:20 ` Mitchell Tasman [this message]
2012-05-29 8:06 ` Gilles Chanteperdrix
2012-05-29 8:52 ` Mitchell Tasman
2012-06-07 7:44 ` Eric Eric
2012-06-07 8:21 ` Gilles Chanteperdrix
2012-06-07 8:34 ` Gilles Chanteperdrix
-- strict thread matches above, loose matches on Subject: below --
2012-05-22 15:50 Jean-Pascal JULIEN
2012-05-23 8:22 Jean-Pascal JULIEN
2012-05-23 17:05 ` Mitchell Tasman
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=4FC478AF.6020905@bbn.com \
--to=tasman@bbn.com \
--cc=gilles.chanteperdrix@xenomai.org \
--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.