powerpc/64s: Add cp_abort after tlbiel to invalidate copy-buffer address
authorNicholas Piggin <npiggin@gmail.com>
Wed, 16 Sep 2020 03:02:34 +0000 (13:02 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Oct 2020 12:22:23 +0000 (23:22 +1100)
commit05504b42562066ae27ce3e7dcec37f81dea476cb
treec00e8dc7c53eccac96d304723065003b3d6029a8
parent9983efa83b0a98da33807ccf5c047e204fdcac4c
powerpc/64s: Add cp_abort after tlbiel to invalidate copy-buffer address

The copy buffer is implemented as a real address in the nest which is
translated from EA by copy, and used for memory access by paste. This
requires that it be invalidated by TLB invalidation.

TLBIE does invalidate the copy buffer, but TLBIEL does not. Add
cp_abort to the tlbiel sequence.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Fixup whitespace and comment formatting]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200916030234.4110379-2-npiggin@gmail.com
arch/powerpc/include/asm/synch.h
arch/powerpc/mm/book3s64/hash_native.c
arch/powerpc/mm/book3s64/radix_tlb.c