summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/eeh.c
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2019-02-15 03:48:13 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2019-02-21 16:10:14 +0300
commit5ca85ae6318df34874999e3fd1760a88208e2a8e (patch)
tree52b719c72f36414f01c51da0765d025d19f58537 /arch/powerpc/kernel/eeh.c
parente67fbbec74220733971b88804be93528f5246434 (diff)
downloadlinux-5ca85ae6318df34874999e3fd1760a88208e2a8e.tar.xz
powerpc/eeh_cache: Add a way to dump the EEH address cache
Adds a debugfs file that can be read to view the contents of the EEH address cache. This is pretty similar to the existing eeh_addr_cache_print() function, but that function is intended to debug issues inside of the kernel since it's #ifdef`ed out by default, and writes into the kernel log. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Reviewed-by: Sam Bobroff <sbobroff@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/eeh.c')
-rw-r--r--arch/powerpc/kernel/eeh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c
index 15e2734b4854..8d36c50e906f 100644
--- a/arch/powerpc/kernel/eeh.c
+++ b/arch/powerpc/kernel/eeh.c
@@ -1843,6 +1843,7 @@ static int __init eeh_init_proc(void)
&eeh_enable_dbgfs_ops);
debugfs_create_u32("eeh_max_freezes", 0600,
powerpc_debugfs_root, &eeh_max_freezes);
+ eeh_cache_debugfs_init();
#endif
}