]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/64: Fix setting of AIL in hypervisor mode
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 15 Nov 2016 04:28:33 +0000 (15:28 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Nov 2016 09:43:59 +0000 (20:43 +1100)
commitc0a36013639b06760f7c2c21a8387eac855432e1
tree3ef16572607edfbd655a5f46bca3fe80c0b6d69b
parent2ffd04dee0dacff36c03a02434965a96da032bcd
powerpc/64: Fix setting of AIL in hypervisor mode

Commit d3cbff1b5 "powerpc: Put exception configuration in a common place"
broke the setting of the AIL bit (which enables taking exceptions with
the MMU still on) on all processors, moving it incorrectly to a function
called only on the boot CPU. This was correct for the guest case but
not when running in hypervisor mode.

This fixes it by partially reverting that commit, putting the setting
back in cpu_ready_for_interrupts()

Fixes: d3cbff1b5a90 ("powerpc: Put exception configuration in a common place")
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/kernel/setup_64.c