powerpc/64s: Invalidate ERAT on powersave wakeup for POWER9
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 24 Jun 2017 17:29:01 +0000 (12:29 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Jun 2017 04:18:30 +0000 (14:18 +1000)
commitba6d334ac230065243a92bb7cb3fd6a5f6a7f8ac
tree6ceb186cbb0b29e634db2c117e9894f160a5925b
parent74e27c6af56fe6898c3c8c451595746a992f0f0f
powerpc/64s: Invalidate ERAT on powersave wakeup for POWER9

On POWER9 the ERAT may be incorrect on wakeup from some stop states
that lose state. This causes random segvs and illegal instructions
when these stop states are enabled.

This patch invalidates the ERAT on wakeup on POWER9 to prevent this
from causing a problem.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Merge comment change with upstream changes]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kernel/idle_book3s.S