powerpc/mm/radix: Update ERAT flushes when invalidating TLB
commit3433972d049f256a57b3538b2d29a7ee38748019
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 6 Feb 2017 02:05:16 +0000 (6 13:05 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 23:25:40 +0000 (14 15:25 -0800)
treed824740367ddf61259249595c00cf04d038ab95d
parent93fb043478b8d81cfa0d2399223bbf96bdb138e8
powerpc/mm/radix: Update ERAT flushes when invalidating TLB

commit 90c1e3c2fafec57fcb55b5d69bcf293b1a5fc8b3 upstream.

Three tiny changes to the ERAT flushing logic: First don't make
it depend on DD1. It hasn't been decided yet but we might run
DD2 in a mode that also requires explicit flushes for performance
reasons so make it unconditional. We also add a missing isync, and
finally remove the flush from _tlbiel_va as it is only necessary
for congruence-class invalidations (PID, LPID and full TLB), not
targetted invalidations.

Fixes: 96ed1fe511a8 ("powerpc/mm/radix: Invalidate ERAT on tlbiel for POWER9 DD1")
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/mm/tlb-radix.c