]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Fix machine check reporting of async store errors
authorNicholas Piggin <npiggin@gmail.com>
Mon, 17 May 2021 14:03:55 +0000 (00:03 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 21 Jun 2021 11:13:19 +0000 (21:13 +1000)
commitf51c13451f356d3d165acc93e96a9c3c43d9ddec
tree32167c2bd0d15b40db4515e974deec8358dd2bb7
parentcb375360bb8653a9875716f6642da38096ab46de
powerpc/powernv: Fix machine check reporting of async store errors

POWER9 and POWER10 asynchronous machine checks due to stores have their
cause reported in SRR1 but SRR1[42] is set, which in other cases
indicates DSISR cause.

Check for these cases and clear SRR1[42], so the cause matching uses
the i-side (SRR1) table.

Fixes: 3877610a434b ("powerpc/64s: POWER9 machine check handler")
Fixes: b3aa0d3be821 ("powerpc/powernv: Machine check handler for POWER10")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210517140355.2325406-1-npiggin@gmail.com
arch/powerpc/kernel/mce_power.c