From: "maxime.ripard@free-electrons.com" <maxime.ripard@free-electrons.com>
To: Vineet Gupta <Vineet.Gupta1@synopsys.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Jason Cooper <jason@lakedaemon.net>,
Peter Zijlstra <peterz@infradead.org>,
Thomas Gleixner <tglx@linutronix.de>,
arcml <linux-snps-arc@lists.infradead.org>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: percpu irq APIs and perf
Date: Mon, 14 Dec 2015 09:43:24 +0100 [thread overview]
Message-ID: <20151214084324.GE19456@lukather> (raw)
In-Reply-To: <566ABF86.9030308@synopsys.com>
[-- Attachment #1: Type: text/plain, Size: 1587 bytes --]
Hi,
On Fri, Dec 11, 2015 at 05:50:22PM +0530, Vineet Gupta wrote:
> >> (2) It seems that disabling autoen by default for percpu irq makes sense as
> >> evident from drivers/net/ethernet/marvell/mvneta.c where users want to control
> >> this. However the comment there is misleading
> >>
> >> /* Even though the documentation says that request_percpu_irq
> >> * doesn't enable the interrupts automatically, it actually
> >> * does so on the local CPU.
> >> *
> >> * Make sure it's disabled.
> >> */
> >>
> >> Either sme core code is clearing NOAUTOEN or calling enable_precpu_irq() making
> >> request_percpu_irq() enable it.
> >
> > If that's the case, this is a bug. Nobody should enable that interrupt
> > until the driver has chosen to do so.
>
> Perhaps Maxim can shed more light as this seems to be his comment.
I don't really have the full context here, but we did this in order to
allow RX queue interrupts to be enabled on a particular CPU.
The IP was supposed to do that by itself, but we hadn't figure that
out at the time. So what we ended up doing is disabling the interrupts
by default and then enable it only on the CPU meant to receive the
queue interrupts.
What we found out doing so was that the per-cpu interrupts were
enabled on the cpu calling request_percpu_irq, and so that's why it
ended up with that comment.
I also fixed the documentation accordingly in a1b7febd725a.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2015-12-14 8:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-10 9:25 percpu irq APIs and perf Vineet Gupta
2015-12-10 9:55 ` Marc Zyngier
2015-12-11 5:26 ` Vineet Gupta
2015-12-11 11:23 ` Marc Zyngier
2015-12-11 12:20 ` Vineet Gupta
2015-12-11 17:58 ` Marc Zyngier
2015-12-14 5:50 ` Vineet Gupta
2015-12-14 8:43 ` maxime.ripard [this message]
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=20151214084324.GE19456@lukather \
--to=maxime.ripard@free-electrons.com \
--cc=Vineet.Gupta1@synopsys.com \
--cc=daniel.lezcano@linaro.org \
--cc=jason@lakedaemon.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-snps-arc@lists.infradead.org \
--cc=marc.zyngier@arm.com \
--cc=peterz@infradead.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox