LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] x86/mm: add select HAVE_ARCH_HUGE_VMALLOC in Kconfig
@ 2021-08-18 21:21 Song Liu
  2021-08-24 16:35 ` Song Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Song Liu @ 2021-08-18 21:21 UTC (permalink / raw)
  To: linux-kernel, x86; +Cc: tglx, mingo, bp, hpa, linux-mm, kernel-team, Song Liu

Add "select HAVE_ARCH_HUGE_VMALLOC if HAVE_ARCH_HUGE_VMAP", so that huge
vmalloc is enabled for X86_64 || X86_PAE.

Signed-off-by: Song Liu <songliubraving@fb.com>
---
 arch/x86/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index a68bf2db0d3ea..6344c572555e0 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -154,6 +154,7 @@ config X86
 	select HAVE_ACPI_APEI_NMI		if ACPI
 	select HAVE_ALIGNED_STRUCT_PAGE		if SLUB
 	select HAVE_ARCH_AUDITSYSCALL
+	select HAVE_ARCH_HUGE_VMALLOC		if HAVE_ARCH_HUGE_VMAP
 	select HAVE_ARCH_HUGE_VMAP		if X86_64 || X86_PAE
 	select HAVE_ARCH_JUMP_LABEL
 	select HAVE_ARCH_JUMP_LABEL_RELATIVE
-- 
2.30.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] x86/mm: add select HAVE_ARCH_HUGE_VMALLOC in Kconfig
  2021-08-18 21:21 [PATCH] x86/mm: add select HAVE_ARCH_HUGE_VMALLOC in Kconfig Song Liu
@ 2021-08-24 16:35 ` Song Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Song Liu @ 2021-08-24 16:35 UTC (permalink / raw)
  To: LKML, the arch/x86 maintainers
  Cc: Thomas Gleixner, Ingo Molnar, bp, hpa,
	Linux Memory Management List, Kernel Team



> On Aug 18, 2021, at 2:21 PM, Song Liu <songliubraving@fb.com> wrote:
> 
> Add "select HAVE_ARCH_HUGE_VMALLOC if HAVE_ARCH_HUGE_VMAP", so that huge
> vmalloc is enabled for X86_64 || X86_PAE.
> 
> Signed-off-by: Song Liu <songliubraving@fb.com>

Ping...

Does this change make sense? In my tests on Intel CPU, vmalloc will not 
return 2MB page without this change. 

Thanks,
Song  

> ---
> arch/x86/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
> 
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index a68bf2db0d3ea..6344c572555e0 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -154,6 +154,7 @@ config X86
> 	select HAVE_ACPI_APEI_NMI		if ACPI
> 	select HAVE_ALIGNED_STRUCT_PAGE		if SLUB
> 	select HAVE_ARCH_AUDITSYSCALL
> +	select HAVE_ARCH_HUGE_VMALLOC		if HAVE_ARCH_HUGE_VMAP
> 	select HAVE_ARCH_HUGE_VMAP		if X86_64 || X86_PAE
> 	select HAVE_ARCH_JUMP_LABEL
> 	select HAVE_ARCH_JUMP_LABEL_RELATIVE
> -- 
> 2.30.2
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-24 16:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18 21:21 [PATCH] x86/mm: add select HAVE_ARCH_HUGE_VMALLOC in Kconfig Song Liu
2021-08-24 16:35 ` Song Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).