1 # SPDX-License-Identifier: GPL-2.0
2 menu "Memory management options"
5 hex "Kernel page offset address"
8 This option allows you to set the virtual address at which the
9 kernel will be mapped to.
12 config KERNEL_4M_PAGES
13 bool "Map kernel with 4MB pages"
14 depends on METAG_META21_MMU
17 Map the kernel with large pages to reduce TLB pressure.
20 prompt "User page size"
26 This is the default page size used by all Meta cores.
30 depends on METAG_META21_MMU
32 This enables 8kB pages as supported by Meta 2.x and later MMUs.
36 depends on METAG_META21_MMU
38 This enables 16kB pages as supported by Meta 2.x and later MMUs.
43 bool "Non Uniform Memory Access (NUMA) Support"
44 select ARCH_WANT_NUMA_VARIABLE_LOCALITY
46 Some Meta systems have MMU-mappable on-chip memories with
47 lower latencies than main memory. This enables support for
48 these blocks by binding them to nodes and allowing
49 memory policies to be used for prioritizing and controlling
52 config FORCE_MAX_ZONEORDER
53 int "Maximum zone order"
57 The kernel memory allocator divides physically contiguous memory
58 blocks into "zones", where each zone is a power of two number of
59 pages. This option selects the largest power of two that the kernel
60 keeps in the memory allocator. If you need to allocate very large
61 blocks of physically contiguous memory, then you may need to
64 This config option is actually maximum order plus one. For example,
65 a value of 11 means that the largest free memory block is 2^10 pages.
67 The page size is not necessarily 4KB. Keep this in mind
68 when choosing a value for this option.
71 bool "Level 2 Cache Support"
72 depends on METAG_META21
74 Press y here to enable support for the Meta Level 2 (L2) cache. This
75 will enable the cache at start up if it hasn't already been enabled
78 If the bootloader enables the L2 you must press y here to ensure the
79 kernel takes the appropriate actions to keep the cache coherent.
84 depends on NEED_MULTIPLE_NODES
86 config ARCH_FLATMEM_ENABLE
90 config ARCH_SPARSEMEM_ENABLE
92 select SPARSEMEM_STATIC
94 config ARCH_SPARSEMEM_DEFAULT
97 config ARCH_SELECT_MEMORY_MODEL
100 config SYS_SUPPORTS_HUGETLBFS
102 depends on METAG_META21_MMU
105 prompt "HugeTLB page size"
106 depends on METAG_META21_MMU && HUGETLB_PAGE
107 default HUGETLB_PAGE_SIZE_1M
109 config HUGETLB_PAGE_SIZE_8K
111 depends on PAGE_SIZE_4K
113 config HUGETLB_PAGE_SIZE_16K
115 depends on PAGE_SIZE_4K || PAGE_SIZE_8K
117 config HUGETLB_PAGE_SIZE_32K
120 config HUGETLB_PAGE_SIZE_64K
123 config HUGETLB_PAGE_SIZE_128K
126 config HUGETLB_PAGE_SIZE_256K
129 config HUGETLB_PAGE_SIZE_512K
132 config HUGETLB_PAGE_SIZE_1M
135 config HUGETLB_PAGE_SIZE_2M
138 config HUGETLB_PAGE_SIZE_4M