diff mbox series

[2/2] riscv: Enable HAVE_ARCH_HUGE_VMALLOC for 64BIT

Message ID 20220915065027.3501044-3-liushixin2@huawei.com (mailing list archive)
State Superseded, archived
Headers show
Series riscv: Support HAVE_ARCH_HUGE_VMAP and HAVE_ARCH_HUGE_VMALLOC | expand

Commit Message

Liu Shixin Sept. 15, 2022, 6:50 a.m. UTC
After we support HAVE_ARCH_HUGE_VMAP, we can now enbale HAVE_ARCH_HUGE_VMALLOC
too. This feature has been used in kvmalloc and alloc_large_system_hash
for now. This feature can be disabled by kernel parameters "nohugevmalloc".

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Kefeng Wang Oct. 8, 2022, 2:18 a.m. UTC | #1
On 2022/9/15 14:50, Liu Shixin wrote:
> After we support HAVE_ARCH_HUGE_VMAP, we can now enbale HAVE_ARCH_HUGE_VMALLOC
> too. This feature has been used in kvmalloc and alloc_large_system_hash
> for now. This feature can be disabled by kernel parameters "nohugevmalloc".
>
> Signed-off-by: Liu Shixin <liushixin2@huawei.com>
> ---
>   arch/riscv/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index 336b925570c0..d567dca3ae75 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -70,6 +70,7 @@ config RISCV
>   	select GENERIC_TIME_VSYSCALL if MMU && 64BIT
>   	select GENERIC_VDSO_TIME_NS if HAVE_GENERIC_VDSO
>   	select HAVE_ARCH_AUDITSYSCALL
> +	select HAVE_ARCH_HUGE_VMALLOC

should be "select HAVE_ARCH_HUGE_VMALLOC if HAVE_ARCH_HUGE_VMAP"

this could also fix the lkp build issue.

>   	select HAVE_ARCH_HUGE_VMAP if MMU && 64BIT && !XIP_KERNEL
>   	select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL
>   	select HAVE_ARCH_JUMP_LABEL_RELATIVE if !XIP_KERNEL
diff mbox series

Patch

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 336b925570c0..d567dca3ae75 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -70,6 +70,7 @@  config RISCV
 	select GENERIC_TIME_VSYSCALL if MMU && 64BIT
 	select GENERIC_VDSO_TIME_NS if HAVE_GENERIC_VDSO
 	select HAVE_ARCH_AUDITSYSCALL
+	select HAVE_ARCH_HUGE_VMALLOC
 	select HAVE_ARCH_HUGE_VMAP if MMU && 64BIT && !XIP_KERNEL
 	select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL
 	select HAVE_ARCH_JUMP_LABEL_RELATIVE if !XIP_KERNEL