]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix reverse map real-mode address lookup with huge vmalloc
authorNicholas Piggin <npiggin@gmail.com>
Wed, 26 May 2021 12:00:05 +0000 (22:00 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 28 May 2021 12:54:27 +0000 (22:54 +1000)
commit4fdaf25733c40c28f2944af006174f986f0980e5
treeae864a9562e6211d32f26ab0608cdf8e40388386
parent00595f8c7f77b27ac1671b5b5dded43a6e2316bf
powerpc: Fix reverse map real-mode address lookup with huge vmalloc

real_vmalloc_addr() does not currently work for huge vmalloc, which is
what the reverse map can be allocated with for radix host, hash guest.

Extract the hugepage aware equivalent from eeh code into a helper, and
convert existing sites including this one to use it.

Fixes: 707112b6b563 ("powerpc/64s/radix: Enable huge vmalloc mappings")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210526120005.3432222-1-npiggin@gmail.com
arch/powerpc/include/asm/pte-walk.h
arch/powerpc/kernel/eeh.c
arch/powerpc/kernel/io-workarounds.c
arch/powerpc/kvm/book3s_hv_rm_mmu.c