powerpc/mm: Always invalidate tlb on hpte invalidate and update
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 31 May 2013 01:03:24 +0000 (01:03 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 31 May 2013 22:29:26 +0000 (08:29 +1000)
commit0608d692463598c1d6e826d9dd7283381b4f246c
tree646aee0d04c866118215cfa9a7529108287309e2
parent280a5ba22ca35575721d42e536176a3561f4ec43
powerpc/mm: Always invalidate tlb on hpte invalidate and update

If a hash bucket gets full, we "evict" a more/less random entry from it.
When we do that we don't invalidate the TLB (hpte_remove) because we assume
the old translation is still technically "valid". This implies that when
we are invalidating or updating pte, even if HPTE entry is not valid
we should do a tlb invalidate.

This was a regression introduced by b1022fbd293564de91596b8775340cf41ad5214c

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/hash_native_64.c