OSDN Git Service

powerpc/xive: Add a debugfs file to dump internal XIVE state
authorCédric Le Goater <clg@kaod.org>
Fri, 6 Mar 2020 15:01:43 +0000 (16:01 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Mar 2020 13:20:38 +0000 (00:20 +1100)
commit930914b7d528fc6b0249bffc00564100bcf6ef75
tree3834a9397f3ed2e1d2ba1e91b84234fc49901fc8
parent5191e0ba51df3a886a2040002e09afd53f625232
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 <clg@kaod.org>
[mpe: Make the debugfs file 0400]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200306150143.5551-5-clg@kaod.org
arch/powerpc/sysdev/xive/common.c
arch/powerpc/sysdev/xive/native.c
arch/powerpc/sysdev/xive/spapr.c
arch/powerpc/sysdev/xive/xive-internal.h