mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 19:45:08 +07:00
243e25112d
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>
36 lines
927 B
C
36 lines
927 B
C
#ifndef __ASM_POWERPC_XMON_H
|
|
#define __ASM_POWERPC_XMON_H
|
|
|
|
/*
|
|
* Copyrignt (C) 2006 IBM Corp
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*/
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
#include <linux/irqreturn.h>
|
|
|
|
#ifdef CONFIG_XMON
|
|
extern void xmon_setup(void);
|
|
extern void xmon_register_spus(struct list_head *list);
|
|
struct pt_regs;
|
|
extern int xmon(struct pt_regs *excp);
|
|
extern irqreturn_t xmon_irq(int, void *);
|
|
#else
|
|
static inline void xmon_setup(void) { };
|
|
static inline void xmon_register_spus(struct list_head *list) { };
|
|
#endif
|
|
|
|
#if defined(CONFIG_XMON) && defined(CONFIG_SMP)
|
|
extern int cpus_are_in_xmon(void);
|
|
#endif
|
|
|
|
extern void xmon_printf(const char *format, ...);
|
|
|
|
#endif /* __KERNEL __ */
|
|
#endif /* __ASM_POWERPC_XMON_H */
|