diff options
author | Dave Kleikamp <dave.kleikamp@oracle.com> | 2016-10-28 13:12:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-18 14:16:58 -0500 |
commit | c88c545bf3202ca2cdb45df93eb40e3bcdbb3742 (patch) | |
tree | 432eda20e70b4d1af107fbd15c8a851aace7ead8 /arch/sparc | |
parent | 87a349f9cc0908bc0cfac0c9ece3179f650ae95a (diff) |
sparc64: Add FORCE_MAX_ZONEORDER and default to 13
This change allows ATU (new IOMMU) in SPARC systems to request
large (32M) contiguous memory during boot for creating IOTSB backing
store.
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Tushar Dave <tushar.n.dave@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/Kconfig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index b23c76b42d6e..5202eb4ba2db 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig | |||
@@ -89,6 +89,10 @@ config ARCH_DEFCONFIG | |||
89 | config ARCH_PROC_KCORE_TEXT | 89 | config ARCH_PROC_KCORE_TEXT |
90 | def_bool y | 90 | def_bool y |
91 | 91 | ||
92 | config ARCH_ATU | ||
93 | bool | ||
94 | default y if SPARC64 | ||
95 | |||
92 | config IOMMU_HELPER | 96 | config IOMMU_HELPER |
93 | bool | 97 | bool |
94 | default y if SPARC64 | 98 | default y if SPARC64 |
@@ -304,6 +308,20 @@ config ARCH_SPARSEMEM_ENABLE | |||
304 | config ARCH_SPARSEMEM_DEFAULT | 308 | config ARCH_SPARSEMEM_DEFAULT |
305 | def_bool y if SPARC64 | 309 | def_bool y if SPARC64 |
306 | 310 | ||
311 | config FORCE_MAX_ZONEORDER | ||
312 | int "Maximum zone order" | ||
313 | default "13" | ||
314 | help | ||
315 | The kernel memory allocator divides physically contiguous memory | ||
316 | blocks into "zones", where each zone is a power of two number of | ||
317 | pages. This option selects the largest power of two that the kernel | ||
318 | keeps in the memory allocator. If you need to allocate very large | ||
319 | blocks of physically contiguous memory, then you may need to | ||
320 | increase this value. | ||
321 | |||
322 | This config option is actually maximum order plus one. For example, | ||
323 | a value of 13 means that the largest free memory block is 2^12 pages. | ||
324 | |||
307 | source "mm/Kconfig" | 325 | source "mm/Kconfig" |
308 | 326 | ||
309 | if SPARC64 | 327 | if SPARC64 |