Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274219
b: refs/heads/master
c: 37caf9f
h: refs/heads/master
i:
  274217: d3c6df4
  274215: f103e5b
v: v3
  • Loading branch information
Kumar Gala committed Oct 7, 2011
1 parent 4d72a17 commit 9fab9a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 09af52f78e58d9aee0980276833bf3adee3ed07b
refs/heads/master: 37caf9f2a1b99d11ba71e17168d221da9ca13f24
3 changes: 3 additions & 0 deletions trunk/arch/powerpc/include/asm/reg_booke.h
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,9 @@
#define L1CSR1_ICFI 0x00000002 /* Instr Cache Flash Invalidate */
#define L1CSR1_ICE 0x00000001 /* Instr Cache Enable */

/* Bit definitions for L1CSR2. */
#define L1CSR2_DCWS 0x40000000 /* Data Cache write shadow */

/* Bit definitions for L2CSR0. */
#define L2CSR0_L2E 0x80000000 /* L2 Cache Enable */
#define L2CSR0_L2PE 0x40000000 /* L2 Cache Parity/ECC Enable */
Expand Down
9 changes: 8 additions & 1 deletion trunk/arch/powerpc/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,14 @@ int machine_check_e500mc(struct pt_regs *regs)

if (reason & MCSR_DCPERR_MC) {
printk("Data Cache Parity Error\n");
recoverable = 0;

/*
* In write shadow mode we auto-recover from the error, but it
* may still get logged and cause a machine check. We should
* only treat the non-write shadow case as non-recoverable.
*/
if (!(mfspr(SPRN_L1CSR2) & L1CSR2_DCWS))
recoverable = 0;
}

if (reason & MCSR_L2MMU_MHIT) {
Expand Down

0 comments on commit 9fab9a2

Please sign in to comment.