]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xive: Ensure active irqd when setting affinity
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 2 Aug 2017 01:54:41 +0000 (20:54 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Aug 2017 12:30:03 +0000 (22:30 +1000)
commitb8c61a0f1980735fb9ac06f0f59bb3e3abda1702
treeed14dec2e27bd052e0da7241af8ae99bb21af918
parent2363be4cfdc61a9dbd137ebb5021247a1994cb8c
powerpc/xive: Ensure active irqd when setting affinity

Ensure irqd is active before attempting to set affinity. This should
make the set affinity code more robust. For instance, this prevents
these messages seen on a 4.12 based kernel when taking cpus offline:

   [  123.053037264,3] XIVE[ IC 00  ] ISN 2 lead to invalid IVE !
   [   77.885859] xive: Error -6 reconfiguring irq 17
   [   77.885862] IRQ17: set affinity failed(-6).

That particular case has been fixed in 4.13-rc1 by commit
4bb31a8d00b6 ("genirq/cpuhotplug: Do not migrated shutdown irqs").

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/xive/common.c