]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fixup LPCR:PECE and HEIC setting on POWER9
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 5 Apr 2017 07:54:55 +0000 (17:54 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 10 Apr 2017 11:43:17 +0000 (21:43 +1000)
commit522f0059b5b71fa45a6bbc2dbba919cfb5eb83a7
treeb9e592848b9e945a80dbe6007d260859f08c3a20
parent5a2cc5a2d15cf2ec6d27567ddf9f8148f677b529
powerpc: Fixup LPCR:PECE and HEIC setting on POWER9

We need to set LPES in order for normal external interrupts (0x500)
to be directed to the guest while running in guest state.

We also need HEIC set to prevent them to be sent to the host while
in host state.

With XIVE the host never gets one of these and wouldn't know how to
handle it. All host external interrupts come in via the new
hypervisor virtualization interrupts vector.

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/kernel/cpu_setup_power.S