]> 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)
commit84246c8225b5d4a1e667a5a7bef701607a6f4537
treeb9e592848b9e945a80dbe6007d260859f08c3a20
parent44090dc63a48938caebeadc4d368825c8fd82770
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