]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/icp-opal: Fix missing KVM case and harden replay
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 16 Jan 2017 17:58:53 +0000 (11:58 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 17 Jan 2017 00:50:03 +0000 (11:50 +1100)
commit9728a7c8ab2f7a1c8d5c95278d2e4f4ac1285385
tree6f5a50321648c0d45817ff8495a0694b6f15a861
parent32b53c012e0bfe20b2745962a89db0dc72ef3270
powerpc/icp-opal: Fix missing KVM case and harden replay

The icp-opal call is missing the code from icp-native to recover
interrupts snatched by KVM. Without that, when running KVM, we can
get into a situation where an interrupt is lost and the CPU stuck
with an elevated CPPR.

Also harden replay by always checking the return from opal_int_eoi().

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/sysdev/xics/icp-opal.c