summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/mce.h
diff options
context:
space:
mode:
authorSantosh Sivaraj <santosh@fossix.org>2020-07-09 19:21:41 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-20 22:57:56 +1000
commitc37a63afc429ce959402168f67e4f094ab639ace (patch)
tree20b724de3e51d332276a97de8f867defa30e50d2 /arch/powerpc/include/asm/mce.h
parentaf9d00e93a4f062c5f160325d7b8f33336f6744e (diff)
powerpc/mce: Add MCE notification chain
Introduce notification chain which lets us know about uncorrected memory errors(UE). This would help prospective users in pmem or nvdimm subsystem to track bad blocks for better handling of persistent memory allocations. Signed-off-by: Santosh Sivaraj <santosh@fossix.org> Signed-off-by: Ganesh Goudar <ganeshgr@linux.ibm.com> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200709135142.721504-1-santosh@fossix.org
Diffstat (limited to 'arch/powerpc/include/asm/mce.h')
-rw-r--r--arch/powerpc/include/asm/mce.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/mce.h b/arch/powerpc/include/asm/mce.h
index 376a395daf32..7bdd0cd4f2de 100644
--- a/arch/powerpc/include/asm/mce.h
+++ b/arch/powerpc/include/asm/mce.h
@@ -220,6 +220,8 @@ extern void machine_check_print_event_info(struct machine_check_event *evt,
unsigned long addr_to_pfn(struct pt_regs *regs, unsigned long addr);
extern void mce_common_process_ue(struct pt_regs *regs,
struct mce_error_info *mce_err);
+int mce_register_notifier(struct notifier_block *nb);
+int mce_unregister_notifier(struct notifier_block *nb);
#ifdef CONFIG_PPC_BOOK3S_64
void flush_and_reload_slb(void);
#endif /* CONFIG_PPC_BOOK3S_64 */