From: olof@lixom.net (Olof Johansson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] soc: ti: QMSS: Fix usage of irq_set_affinity_hint
Date: Fri, 2 Nov 2018 11:22:31 -0700 [thread overview]
Message-ID: <20181102182231.jlyruwut3dtsfhp6@localhost> (raw)
In-Reply-To: <20181031084134.96289-1-marc.zyngier@arm.com>
On Wed, Oct 31, 2018 at 08:41:34AM +0000, Marc Zyngier wrote:
> The Keystone QMSS driver is pretty damaged, in the sense that it
> does things like this:
>
> irq_set_affinity_hint(irq, to_cpumask(&cpu_map));
>
> where cpu_map is a local variable. As we leave the function, this
> will point to nowhere-land, and things will end-up badly.
>
> Instead, let's use a proper cpumask that gets allocated, giving
> the driver a chance to actually work with things like irqbalance
> as well as have a hypothetical 64bit future.
>
> Cc: stable at vger.kernel.org
> Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
> ---
> * From v1:
> - Added Santosh's Ack
> - Cc stable
> - Directly sent to arm-soc for immediate pick-up
> (https://lore.kernel.org/lkml/0a20aaf3-65ce-a7ae-8a0e-877313483969 at oracle.com/)
Applied to fixes, thanks. (We could have added the cc too, but thanks for doing
it!)
-Olof
prev parent reply other threads:[~2018-11-02 18:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-31 8:41 [PATCH v2] soc: ti: QMSS: Fix usage of irq_set_affinity_hint Marc Zyngier
2018-11-02 18:22 ` Olof Johansson [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=20181102182231.jlyruwut3dtsfhp6@localhost \
--to=olof@lixom.net \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox