projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a5054d
)
powerpc/64s/exceptions: Fix in_mce accounting in unrecoverable path
author
Nicholas Piggin
<npiggin@gmail.com>
Fri, 8 May 2020 04:33:54 +0000
(14:33 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Mon, 18 May 2020 11:58:44 +0000
(21:58 +1000)
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Link:
https://lore.kernel.org/r/20200508043408.886394-3-npiggin@gmail.com
arch/powerpc/kernel/exceptions-64s.S
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/exceptions-64s.S
b/arch/powerpc/kernel/exceptions-64s.S
index bbf3109c5cba2c7c3ceb43097de34e59a6bd3bc6..3322000316ab5ccdb9b251193028091126d16775 100644
(file)
--- a/
arch/powerpc/kernel/exceptions-64s.S
+++ b/
arch/powerpc/kernel/exceptions-64s.S
@@
-1267,6
+1267,10
@@
END_FTR_SECTION_IFSET(CPU_FTR_HVMODE)
andc r10,r10,r3
mtmsrd r10
+ lhz r12,PACA_IN_MCE(r13)
+ subi r12,r12,1
+ sth r12,PACA_IN_MCE(r13)
+
/* Invoke machine_check_exception to print MCE event and panic. */
addi r3,r1,STACK_FRAME_OVERHEAD
bl machine_check_exception