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)
commit3729e0ec59a20825bd4c8c70996b2df63915e1dd
tree32167c2bd0d15b40db4515e974deec8358dd2bb7
parent99cd49bb39516d1beb1c38ae629b15ccb923198c
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: 7b9f71f974a1 ("powerpc/64s: POWER9 machine check handler")
Fixes: 201220bb0e8c ("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