diff options
author | Hari Bathini <hbathini@linux.ibm.com> | 2019-09-11 17:50:26 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-09-13 17:04:43 +0300 |
commit | 41df5928721ff4b5f83767cd5e8b77862fc62bb3 (patch) | |
tree | 1cf57af8683728dcd14a5ad0c8d7e81d0d43bb45 /arch/powerpc/kernel | |
parent | 6f5f193e84d3d7b55d406ecc7ac4ea1ef1d1876f (diff) | |
download | linux-41df5928721ff4b5f83767cd5e8b77862fc62bb3.tar.xz |
powerpc/fadump: add fadump support on powernv
Add basic callback functions for FADump on PowerNV platform.
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/156821342072.5656.4346362203141486452.stgit@hbathini.in.ibm.com
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/fadump.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c index 9d9f7c384a71..b17673d8d50b 100644 --- a/arch/powerpc/kernel/fadump.c +++ b/arch/powerpc/kernel/fadump.c @@ -107,11 +107,20 @@ static int __init fadump_cma_init(void) { return 1; } int __init early_init_dt_scan_fw_dump(unsigned long node, const char *uname, int depth, void *data) { - if (depth != 1 || strcmp(uname, "rtas") != 0) + if (depth != 1) return 0; - rtas_fadump_dt_scan(&fw_dump, node); - return 1; + if (strcmp(uname, "rtas") == 0) { + rtas_fadump_dt_scan(&fw_dump, node); + return 1; + } + + if (strcmp(uname, "ibm,opal") == 0) { + opal_fadump_dt_scan(&fw_dump, node); + return 1; + } + + return 0; } /* |