]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/xive: Native exploitation of the XIVE interrupt controller
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 5 Apr 2017 07:54:50 +0000 (17:54 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 10 Apr 2017 11:41:34 +0000 (21:41 +1000)
commit243e25112d06b348f087a6f7aba4bbc288285bdd
treec4f605e98e6e8cf6dbe730c946142943b82ac38e
parenta978e13965a40ac07163643cc3fa0ddb0d354198
powerpc/xive: Native exploitation of the XIVE interrupt controller

The XIVE interrupt controller is the new interrupt controller
found in POWER9. It supports advanced virtualization capabilities
among other things.

Currently we use a set of firmware calls that simulate the old
"XICS" interrupt controller but this is fairly inefficient.

This adds the framework for using XIVE along with a native
backend which OPAL for configuration. Later, a backend allowing
the use in a KVM or PowerVM guest will also be provided.

This disables some fast path for interrupts in KVM when XIVE is
enabled as these rely on the firmware emulation code which is no
longer available when the XIVE is used natively by Linux.

A latter patch will make KVM also directly exploit the XIVE, thus
recovering the lost performance (and more).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[mpe: Fixup pr_xxx("XIVE:"...), don't split pr_xxx() strings,
 tweak Kconfig so XIVE_NATIVE selects XIVE and depends on POWERNV,
 fix build errors when SMP=n, fold in fixes from Ben:
   Don't call cpu_online() on an invalid CPU number
   Fix irq target selection returning out of bounds cpu#
   Extra sanity checks on cpu numbers
 ]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
15 files changed:
arch/powerpc/include/asm/xive-regs.h [new file with mode: 0644]
arch/powerpc/include/asm/xive.h [new file with mode: 0644]
arch/powerpc/include/asm/xmon.h
arch/powerpc/kvm/book3s_hv_builtin.c
arch/powerpc/platforms/powernv/Kconfig
arch/powerpc/platforms/powernv/setup.c
arch/powerpc/platforms/powernv/smp.c
arch/powerpc/sysdev/Kconfig
arch/powerpc/sysdev/Makefile
arch/powerpc/sysdev/xive/Kconfig [new file with mode: 0644]
arch/powerpc/sysdev/xive/Makefile [new file with mode: 0644]
arch/powerpc/sysdev/xive/common.c [new file with mode: 0644]
arch/powerpc/sysdev/xive/native.c [new file with mode: 0644]
arch/powerpc/sysdev/xive/xive-internal.h [new file with mode: 0644]
arch/powerpc/xmon/xmon.c