]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 25 Nov 2021 15:52:11 +0000 (16:52 +0100)
commit366ebb6ecd972fc73c8a7853e87653ab93d8abdb
treecb11f8f41066aa355c150563ccf2f992ad73d4bc
parenta410f4cc30fbf1bdaef97867f3c1d0973d63120e
MIPS: use 3-level pgtable for 64KB page size on MIPS_VA_BITS_48

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: 1607126f99bb ("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>
arch/mips/Kconfig