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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:48 +0000 (16:56 +0200)
commitaf497961abef0e787a867476cd9c03d5b8c552db
tree44e868bd08858a527501401f62562b0238294668
parentf8d223f80ac6654e4b8c50a2a3afbd07dabfd679
powerpc/powernv: Fix machine check reporting of async store errors

[ Upstream commit 3729e0ec59a20825bd4c8c70996b2df63915e1dd ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/mce_power.c