]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Disable preemption in hash lazy mmu mode
authorNicholas Piggin <npiggin@gmail.com>
Thu, 13 Oct 2022 15:16:45 +0000 (01:16 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 18 Oct 2022 11:46:18 +0000 (22:46 +1100)
commitf4afa26752e749bbfb8f47831c19001f08c547ed
tree7edf904a6f570bedf5cf93b5b863f8d95980dca7
parentdf4c5ae1c53a6a1c4d4afa24fdda405dfd1d0c32
powerpc/64s: Disable preemption in hash lazy mmu mode

apply_to_page_range on kernel pages does not disable preemption, which
is a requirement for hash's lazy mmu mode, which keeps track of the
TLBs to flush with a per-cpu array.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221013151647.1857994-1-npiggin@gmail.com
arch/powerpc/include/asm/book3s/64/tlbflush-hash.h