Message ID | 20200312235037.26072-1-vadym.kochan@plvision.eu (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | arm64: Kconfig: allow to change FORCE_MAX_ZONEORDER via custom config | expand |
On Fri, Mar 13, 2020 at 01:50:37AM +0200, Vadym Kochan wrote: > Add missing config option name which allows to change it via custom > config. Why? What is your use-case?
On Fri, Mar 13, 2020 at 12:37:41PM +0000, Catalin Marinas wrote: > On Fri, Mar 13, 2020 at 01:50:37AM +0200, Vadym Kochan wrote: > > Add missing config option name which allows to change it via custom > > config. > > Why? What is your use-case? > > -- > Catalin I need to allocate buffers bigger than default ZONEORDER, so I tried to increase it but it did not work because the config entry has no name.
On Fri, Mar 13, 2020 at 02:45:58PM +0200, Vadym Kochan wrote: > On Fri, Mar 13, 2020 at 12:37:41PM +0000, Catalin Marinas wrote: > > On Fri, Mar 13, 2020 at 01:50:37AM +0200, Vadym Kochan wrote: > > > Add missing config option name which allows to change it via custom > > > config. > > > > Why? What is your use-case? > > I need to allocate buffers bigger than default ZONEORDER, so I tried to > increase it but it did not work because the config entry has no name. I try not to make this selectable as we want a single kernel build to work on all supported hardware. The current values are chosen to allow huge pages. If you need bigger contiguous allocations, maybe something like CMA would help.
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0b30e884e088..d974f31c3c18 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1120,7 +1120,7 @@ config XEN Say Y if you want to run Linux in a Virtual Machine on Xen on ARM64. config FORCE_MAX_ZONEORDER - int + int "Maximum zone order" default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE) default "12" if (ARM64_16K_PAGES && TRANSPARENT_HUGEPAGE) default "11"
Add missing config option name which allows to change it via custom config. Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu> --- arch/arm64/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)