]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/powernv: Fix CPU hotplug to handle waking on HVI
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 7 Feb 2017 00:35:31 +0000 (11:35 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 9 Feb 2017 04:19:57 +0000 (15:19 +1100)
commit9b256714979fad61ae11d90b53cf67dd5e6484eb
tree4e800dc0430b413bb9c3b3f0c68f6099bbe8716a
parent90c1e3c2fafec57fcb55b5d69bcf293b1a5fc8b3
powerpc/powernv: Fix CPU hotplug to handle waking on HVI

The IPIs come in as HVI not EE, so we need to test the appropriate
SRR1 bits. The encoding is such that it won't have false positives
on P7 and P8 so we can just test it like that. We also need to handle
the icp-opal variant of the flush.

Fixes: d74361881f0d ("powerpc/xics: Add ICP OPAL backend")
Cc: stable@vger.kernel.org # v4.8+
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/reg.h
arch/powerpc/include/asm/xics.h
arch/powerpc/platforms/powernv/smp.c
arch/powerpc/sysdev/xics/icp-opal.c