Merge tag 'riscv/for-v5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv...
[sfrench/cifs-2.6.git] / arch / riscv / Kconfig
index 13a1c0d04e9eb1c9a139ab6464d6f1a2ea778918..59a4727ecd6c074672e82d8bb4ec7638912957f6 100644 (file)
@@ -52,6 +52,8 @@ config RISCV
        select ARCH_HAS_MMIOWB
        select HAVE_EBPF_JIT if 64BIT
        select EDAC_SUPPORT
+       select ARCH_HAS_GIGANTIC_PAGE
+       select ARCH_WANT_HUGE_PMD_SHARE if 64BIT
 
 config MMU
        def_bool y
@@ -66,6 +68,12 @@ config PAGE_OFFSET
        default 0xffffffff80000000 if 64BIT && MAXPHYSMEM_2GB
        default 0xffffffe000000000 if 64BIT && MAXPHYSMEM_128GB
 
+config ARCH_WANT_GENERAL_HUGETLB
+       def_bool y
+
+config SYS_SUPPORTS_HUGETLBFS
+       def_bool y
+
 config STACKTRACE_SUPPORT
        def_bool y
 
@@ -97,6 +105,8 @@ config PGTABLE_LEVELS
        default 3 if 64BIT
        default 2
 
+source "arch/riscv/Kconfig.socs"
+
 menu "Platform type"
 
 choice