]> 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)
commita8aa085da1faf20c59070e0ebc09fec6c31e5f48
tree4e800dc0430b413bb9c3b3f0c68f6099bbe8716a
parente82db5a105c00bd521bfdaf017117a7177889ff9
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: 289d0ddcd6a2 ("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