]> git.baikalelectronics.ru Git - kernel.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)
commit25fb7f0e4bb027d506ae4d633d7d9db2f2b1d606
tree6f5a50321648c0d45817ff8495a0694b6f15a861
parentb661703564fbe8e9e457b656242f9666a45c8abe
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: 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/sysdev/xics/icp-opal.c