]> git.baikalelectronics.ru Git - kernel.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)
commit84fb64efebeb8c9967d3e414d14766717e5a1835
tree4e800dc0430b413bb9c3b3f0c68f6099bbe8716a
parent1778c7e3a438d8410abd0fc10d6221f6ff21bb46
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: a91df3e51bb8 ("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