mce.h (9b031c86506cef9acae45e61339fcf9deaabb793) mce.h (201220bb0e8cbc163ec7f550b3b7b3da46eb5877)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Machine check exception header file.
4 *
5 * Copyright 2013 IBM Corporation
6 * Author: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
7 */
8

--- 72 unchanged lines hidden (view full) ---

81 MCE_TLB_ERROR_INDETERMINATE = 0,
82 MCE_TLB_ERROR_PARITY = 1,
83 MCE_TLB_ERROR_MULTIHIT = 2,
84};
85
86enum MCE_UserErrorType {
87 MCE_USER_ERROR_INDETERMINATE = 0,
88 MCE_USER_ERROR_TLBIE = 1,
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Machine check exception header file.
4 *
5 * Copyright 2013 IBM Corporation
6 * Author: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
7 */
8

--- 72 unchanged lines hidden (view full) ---

81 MCE_TLB_ERROR_INDETERMINATE = 0,
82 MCE_TLB_ERROR_PARITY = 1,
83 MCE_TLB_ERROR_MULTIHIT = 2,
84};
85
86enum MCE_UserErrorType {
87 MCE_USER_ERROR_INDETERMINATE = 0,
88 MCE_USER_ERROR_TLBIE = 1,
89 MCE_USER_ERROR_SCV = 2,
89};
90
91enum MCE_RaErrorType {
92 MCE_RA_ERROR_INDETERMINATE = 0,
93 MCE_RA_ERROR_IFETCH = 1,
94 MCE_RA_ERROR_IFETCH_FOREIGN = 2,
95 MCE_RA_ERROR_PAGE_TABLE_WALK_IFETCH = 3,
96 MCE_RA_ERROR_PAGE_TABLE_WALK_IFETCH_FOREIGN = 4,

--- 118 unchanged lines hidden (view full) ---

215extern int get_mce_event(struct machine_check_event *mce, bool release);
216extern void release_mce_event(void);
217extern void machine_check_queue_event(void);
218extern void machine_check_print_event_info(struct machine_check_event *evt,
219 bool user_mode, bool in_guest);
220unsigned long addr_to_pfn(struct pt_regs *regs, unsigned long addr);
221extern void mce_common_process_ue(struct pt_regs *regs,
222 struct mce_error_info *mce_err);
90};
91
92enum MCE_RaErrorType {
93 MCE_RA_ERROR_INDETERMINATE = 0,
94 MCE_RA_ERROR_IFETCH = 1,
95 MCE_RA_ERROR_IFETCH_FOREIGN = 2,
96 MCE_RA_ERROR_PAGE_TABLE_WALK_IFETCH = 3,
97 MCE_RA_ERROR_PAGE_TABLE_WALK_IFETCH_FOREIGN = 4,

--- 118 unchanged lines hidden (view full) ---

216extern int get_mce_event(struct machine_check_event *mce, bool release);
217extern void release_mce_event(void);
218extern void machine_check_queue_event(void);
219extern void machine_check_print_event_info(struct machine_check_event *evt,
220 bool user_mode, bool in_guest);
221unsigned long addr_to_pfn(struct pt_regs *regs, unsigned long addr);
222extern void mce_common_process_ue(struct pt_regs *regs,
223 struct mce_error_info *mce_err);
224int mce_register_notifier(struct notifier_block *nb);
225int mce_unregister_notifier(struct notifier_block *nb);
223#ifdef CONFIG_PPC_BOOK3S_64
224void flush_and_reload_slb(void);
225#endif /* CONFIG_PPC_BOOK3S_64 */
226#endif /* __ASM_PPC64_MCE_H__ */
226#ifdef CONFIG_PPC_BOOK3S_64
227void flush_and_reload_slb(void);
228#endif /* CONFIG_PPC_BOOK3S_64 */
229#endif /* __ASM_PPC64_MCE_H__ */