]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s/pseries: radix flush translations before MMU is enabled at boot
authorNicholas Piggin <npiggin@gmail.com>
Mon, 2 Sep 2019 15:29:29 +0000 (01:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 5 Sep 2019 04:22:40 +0000 (14:22 +1000)
commit6be2ce11ee308ba73d8323d22e9207d14731219e
tree8c7fa912a9014f9318f90b169f7330c0d92025c9
parentd3fa16f1a9264252c6eb2bb8c4c76f94a52c62c7
powerpc/64s/pseries: radix flush translations before MMU is enabled at boot

Radix guests are responsible for managing their own translation caches,
so make them match bare metal radix and hash, and make each CPU flush
all its translations right before enabling its MMU.

Radix guests may not flush partition scope translations, so in
tlbiel_all, make these flushes conditional on CPU_FTR_HVMODE. Process
scope translations are the only type visible to the guest.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190902152931.17840-5-npiggin@gmail.com
arch/powerpc/mm/book3s64/radix_pgtable.c
arch/powerpc/mm/book3s64/radix_tlb.c