OSDN Git Service

powerpc/64: Fix the definition of the fixmap area
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 20 Apr 2021 13:32:48 +0000 (13:32 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Apr 2021 10:59:15 +0000 (20:59 +1000)
commit9ccba66d4d2aff9a3909aa77d57ea8b7cc166f3c
tree6dd70ee13f506460dfdf38c6131b14b6db598849
parent389586333c0229a4fbc5c1a7f89148d141293682
powerpc/64: Fix the definition of the fixmap area

At the time being, the fixmap area is defined at the top of
the address space or just below KASAN.

This definition is not valid for PPC64.

For PPC64, use the top of the I/O space.

Because of circular dependencies, it is not possible to include
asm/fixmap.h in asm/book3s/64/pgtable.h , so define a fixed size
AREA at the top of the I/O space for fixmap and ensure during
build that the size is big enough.

Fixes: 265c3491c4bc ("powerpc: Add support for GENERIC_EARLY_IOREMAP")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0d51620eacf036d683d1a3c41328f69adb601dc0.1618925560.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/book3s/64/pgtable.h
arch/powerpc/include/asm/fixmap.h
arch/powerpc/include/asm/nohash/64/pgtable.h