]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/mm/radix: Update ERAT flushes when invalidating TLB
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 6 Feb 2017 02:05:16 +0000 (13:05 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 9 Feb 2017 03:54:33 +0000 (14:54 +1100)
commit90c1e3c2fafec57fcb55b5d69bcf293b1a5fc8b3
treeea2bf611c6112a0fe03d1277ab62cbfc51cded92
parentd7df2443cd5f67fc6ee7c05a88e4996e8177f91b
powerpc/mm/radix: Update ERAT flushes when invalidating TLB

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")
Cc: stable@vger.kernel.org # v4.9+
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/tlb-radix.c