From: Hans de Goede <hdegoede@redhat.com>
To: Thomas Gleixner <tglx@linutronix.de>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: LKML <linux-kernel@vger.kernel.org>,
Carlo Caione <carlo.caione@gmail.com>,
Russell King <linux@arm.linux.org.uk>
Subject: Re: [PATCH] irq: Add a new IRQF_ACK_BEFORE_UNMASK irq flagq
Date: Thu, 13 Mar 2014 17:20:29 +0100 [thread overview]
Message-ID: <5321DACD.6010303@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1403131442480.18573@ionos.tec.linutronix.de>
Hi,
On 03/13/2014 03:32 PM, Thomas Gleixner wrote:
> On Thu, 13 Mar 2014, Sebastian Andrzej Siewior wrote:
>> One side note: Since we need to specify IRQCHIP_EOI_THREADED and
>> handle_fasteoi_late_irq() as the handler, would it be easily doable to use
>> the handle_fasteoi_irq() handler and skip the EOI in the threaded mode?
>> But if it creates a mess then leave it as it is.
>
> Yeah, I was looking into that already. Patch below.
>
> To resemble the late version you need to add IRQCHIP_EOI_THREADED and
> IRQCHIP_EOI_IF_HANDLED to your irq chip.
Just gave this a review (in as far as I'm qualified to review core irq
code), looks good and I agree this is an improvement over the previous
version.
There is one behavioral change for irq-chips not setting the new
IRQCHIP_EOI_THREADED flag hiding in there.
Before if the conditional unmask conditions were true for the
ONESHOT case the code would do: "unmask; eoi", now it does
"eoi; unmask" I believe the new behavior is more correct, but, since
it is a behavior change I thought I should point this out.
I've also given this a test-run on sun4i and it works as advertised.
FWIW, this patch is:
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
I'll include this in v3 of my irq-sun4i patch-set as it is a dependency
there.
Regards,
Hans
next prev parent reply other threads:[~2014-03-13 16:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-11 23:13 [PATCH] irq: Add a new IRQF_ACK_BEFORE_UNMASK irq flag Hans de Goede
2014-03-12 8:55 ` Hans de Goede
2014-03-12 10:38 ` Thomas Gleixner
2014-03-12 10:45 ` Russell King - ARM Linux
2014-03-12 10:48 ` Thomas Gleixner
2014-03-12 17:08 ` Hans de Goede
2014-03-12 22:16 ` Thomas Gleixner
2014-03-13 13:09 ` Sebastian Andrzej Siewior
2014-03-13 13:32 ` Thomas Gleixner
2014-03-13 13:37 ` Sebastian Andrzej Siewior
2014-03-13 14:32 ` [PATCH] irq: Add a new IRQF_ACK_BEFORE_UNMASK irq flagq Thomas Gleixner
2014-03-13 16:20 ` Hans de Goede [this message]
2014-03-13 16:24 ` Thomas Gleixner
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=5321DACD.6010303@redhat.com \
--to=hdegoede@redhat.com \
--cc=bigeasy@linutronix.de \
--cc=carlo.caione@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=tglx@linutronix.de \
/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.