]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
irqchip/gic-v3-its: Don't bind LPI to unavailable NUMA node
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 22 Jun 2018 09:52:51 +0000 (10:52 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commitd2fd562c0c69468033f32246a95ca392a2a08af3
treef26c363a19690347b80db08baceef02432938a34
parent5d3752e4f9e6875a422d9d747c2229f0d8fd2747
irqchip/gic-v3-its: Don't bind LPI to unavailable NUMA node

BugLink: http://bugs.launchpad.net/bugs/1807469
commit c1797b11a09c8323c92b074fd48b89a936c991d0 upstream.

On a NUMA system, if an ITS is local to an offline node, the ITS driver may
pick an offline CPU to bind the LPI.  In this case, pick an online CPU (and
the first one will do).

But on some systems, binding an LPI to non-local node CPU may cause
deadlock (see Cavium erratum 23144).  In this case, just fail the activate
and return an error code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Sumit Garg <sumit.garg@linaro.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20180622095254.5906-5-marc.zyngier@arm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/irqchip/irq-gic-v3-its.c