]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xive: Fix trying to "push" an already active pool VP
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Apr 2018 05:17:59 +0000 (15:17 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 18 Apr 2018 14:49:45 +0000 (00:49 +1000)
commit8c793322fd6548d88bdceb59d1dce47e0b8223c8
tree74f389ca722eb54ae5b756ff01e0b2688b41bd69
parent9c353fe189bc5ef525a05118e0985f379bd8055b
powerpc/xive: Fix trying to "push" an already active pool VP

When setting up a CPU, we "push" (activate) a pool VP for it.

However it's an error to do so if it already has an active
pool VP.

This happens when doing soft CPU hotplug on powernv since we
don't tear down the CPU on unplug. The HW flags the error which
gets captured by the diagnostics.

Fix this by making sure to "pull" out any already active pool
first.

Fixes: 2d7ecd8d170c ("powerpc/xive: Native exploitation of the XIVE interrupt controller")
Cc: stable@vger.kernel.org # v4.12+
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/xive/native.c