From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 15 Nov 2013 15:41:19 +1100 From: Anton Blanchard To: benh@kernel.crashing.org, paulus@samba.org, mikey@neuling.org Subject: [PATCH] powerpc: print DAR and DSISR on machine check oopses Message-ID: <20131115154119.3614ed43@kryten> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Machine check exceptions set DAR and DSISR, so print them in our oops output. Signed-off-by: Anton Blanchard --- Index: b/arch/powerpc/kernel/process.c =================================================================== --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -864,7 +864,7 @@ void show_regs(struct pt_regs * regs) trap = TRAP(regs); if ((regs->trap != 0xc00) && cpu_has_feature(CPU_FTR_CFAR)) printk("CFAR: "REG"\n", regs->orig_gpr3); - if (trap == 0x300 || trap == 0x600) + if (trap == 0x200 || trap == 0x300 || trap == 0x600) #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) printk("DEAR: "REG", ESR: "REG"\n", regs->dar, regs->dsisr); #else