[RFC PATCH v2 19/21] riscv: Kconfig: Adjust mmap rnd bits for 64K Page
Xu Lu
luxu.kernel at bytedance.com
Thu Dec 5 02:37:27 PST 2024
Signed-off-by: Xu Lu <luxu.kernel at bytedance.com>
---
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
More information about the linux-riscv
mailing list