powerpc/64s/powernv: machine check dump SLB contents
Re-use the code introduced in pseries to save and dump the contents of the SLB in the case of an SLB involved machine check exception. This patch also avoids allocating the SLB save array on pseries radix. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190802105709.27696-9-npiggin@gmail.com
This commit is contained in:

committed by
Michael Ellerman

parent
0b66370c61
commit
7290f3b3d3
@@ -511,6 +511,12 @@ void machine_check_print_event_info(struct machine_check_event *evt,
|
||||
subtype = evt->error_class < ARRAY_SIZE(mc_error_class) ?
|
||||
mc_error_class[evt->error_class] : "Unknown";
|
||||
printk("%sMCE: CPU%d: %s\n", level, evt->cpu, subtype);
|
||||
|
||||
#ifdef CONFIG_PPC_BOOK3S_64
|
||||
/* Display faulty slb contents for SLB errors. */
|
||||
if (evt->error_type == MCE_ERROR_TYPE_SLB)
|
||||
slb_dump_contents(local_paca->mce_faulty_slbs);
|
||||
#endif
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(machine_check_print_event_info);
|
||||
|
||||
|
Reference in New Issue
Block a user