diff options
| author | Cédric Le Goater <[email protected]> | 2020-03-06 15:01:43 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2020-03-26 13:20:38 +0000 |
| commit | 930914b7d528fc6b0249bffc00564100bcf6ef75 (patch) | |
| tree | 3834a9397f3ed2e1d2ba1e91b84234fc49901fc8 /arch/powerpc/sysdev/xive/native.c | |
| parent | powerpc/xmon: Add source flags to output of XIVE interrupts (diff) | |
| download | kernel-930914b7d528fc6b0249bffc00564100bcf6ef75.tar.gz kernel-930914b7d528fc6b0249bffc00564100bcf6ef75.zip | |
powerpc/xive: Add a debugfs file to dump internal XIVE state
As does XMON, the debugfs file /sys/kernel/debug/powerpc/xive exposes
the XIVE internal state of the machine CPUs and interrupts. Available
on the PowerNV and sPAPR platforms.
Signed-off-by: Cédric Le Goater <[email protected]>
[mpe: Make the debugfs file 0400]
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/sysdev/xive/native.c')
| -rw-r--r-- | arch/powerpc/sysdev/xive/native.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/xive/native.c b/arch/powerpc/sysdev/xive/native.c index 50e1a8e02497..5218fdc4b29a 100644 --- a/arch/powerpc/sysdev/xive/native.c +++ b/arch/powerpc/sysdev/xive/native.c @@ -19,6 +19,7 @@ #include <linux/cpumask.h> #include <linux/mm.h> +#include <asm/machdep.h> #include <asm/prom.h> #include <asm/io.h> #include <asm/smp.h> @@ -850,3 +851,5 @@ int xive_native_get_vp_state(u32 vp_id, u64 *out_state) return 0; } EXPORT_SYMBOL_GPL(xive_native_get_vp_state); + +machine_arch_initcall(powernv, xive_core_debug_init); |
