]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
powerpc/64s: Invalidate ERAT on powersave wakeup for POWER9
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 27 Jun 2017 16:45:27 +0000 (13:45 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 11 Jul 2017 16:46:34 +0000 (13:46 -0300)
commita37c15c35d9d93faaf8a53cf5ee3d2c88645e9c6
tree4fa26be17c30b9fa771029a64f5ea4269ee1be55
parent78e6d25cadba1f17e1ec75d170f2d8869e07b0cf
powerpc/64s: Invalidate ERAT on powersave wakeup for POWER9

BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1700521
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>
(backported from: ba6d334ac230065243a92bb7cb3fd6a5f6a7f8ac)
Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kernel/idle_book3s.S