[RFC PATCH v2 19/21] riscv: Kconfig: Adjust mmap rnd bits for 64K Page
From: Xu Lu
Date: Thu Dec 05 2024 - 05:41:50 EST
Signed-off-by: Xu Lu <luxu.kernel@xxxxxxxxxxxxx>
---
arch/riscv/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 592eb5766029..9dfe95a12890 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -253,6 +253,7 @@ config ARCH_MMAP_RND_COMPAT_BITS_MIN
# max bits determined by the following formula:
# VA_BITS - PAGE_SHIFT - 3
config ARCH_MMAP_RND_BITS_MAX
+ default 20 if 64BIT && RISCV_64K_PAGES # SV39 based
default 24 if 64BIT # SV39 based
default 17
--
2.20.1