sparc64: Fix regression in non-hypervisor TLB flush xcall
authorJames Clarke <jrtc27@jrtc27.com>
Wed, 29 May 2019 21:31:31 +0000 (22:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2019 05:13:40 +0000 (22:13 -0700)
commitd3c976c14ad8af421134c428b0a89ff8dd3bd8f8
tree45fa45c56bd6b0f364aa8a222f92f3585a8dd94a
parentf2c7c76c5d0a443053e94adb9f0918fa2fb85c3a
sparc64: Fix regression in non-hypervisor TLB flush xcall

Previously, %g2 would end up with the value PAGE_SIZE, but after the
commit mentioned below it ends up with the value 1 due to being reused
for a different purpose. We need it to be PAGE_SIZE as we use it to step
through pages in our demap loop, otherwise we set different flags in the
low 12 bits of the address written to, thereby doing things other than a
nucleus page flush.

Fixes: a74ad5e660a9 ("sparc64: Handle extremely large kernel TLB range flushes more gracefully.")
Reported-by: Meelis Roos <mroos@linux.ee>
Tested-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/ultra.S