MIPS: use 3-level pgtable for 64KB page size on MIPS_VA_BITS_48
authorHuang Pei <huangpei@loongson.cn>
Thu, 25 Nov 2021 10:59:48 +0000 (18:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Dec 2021 07:46:49 +0000 (08:46 +0100)
commitfa0255f14ae773af8248fa764c888bce6bd49799
tree9464781efb1c46f5e8eaaf6aed7919c12f00f12d
parent63e8aabe1fa8a294c6cec8fcd1f7f3e4b529511d
MIPS: use 3-level pgtable for 64KB page size on MIPS_VA_BITS_48

[ Upstream commit 41ce097f714401e6ad8f3f5eb30d7f91b0b5e495 ]

It hangup when booting Loongson 3A1000 with BOTH
CONFIG_PAGE_SIZE_64KB and CONFIG_MIPS_VA_BITS_48, that it turn
out to use 2-level pgtable instead of 3-level. 64KB page size
with 2-level pgtable only cover 42 bits VA, use 3-level pgtable
to cover all 48 bits VA(55 bits)

Fixes: 1e321fa917fb ("MIPS64: Support of at least 48 bits of SEGBITS)
Signed-off-by: Huang Pei <huangpei@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/Kconfig