Kconfig 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. menu "Memory management options"
  2. config PAGE_OFFSET
  3. hex "Kernel page offset address"
  4. default "0x40000000"
  5. help
  6. This option allows you to set the virtual address at which the
  7. kernel will be mapped to.
  8. endmenu
  9. config KERNEL_4M_PAGES
  10. bool "Map kernel with 4MB pages"
  11. depends on METAG_META21_MMU
  12. default y
  13. help
  14. Map the kernel with large pages to reduce TLB pressure.
  15. choice
  16. prompt "User page size"
  17. default PAGE_SIZE_4K
  18. config PAGE_SIZE_4K
  19. bool "4kB"
  20. help
  21. This is the default page size used by all Meta cores.
  22. config PAGE_SIZE_8K
  23. bool "8kB"
  24. depends on METAG_META21_MMU
  25. help
  26. This enables 8kB pages as supported by Meta 2.x and later MMUs.
  27. config PAGE_SIZE_16K
  28. bool "16kB"
  29. depends on METAG_META21_MMU
  30. help
  31. This enables 16kB pages as supported by Meta 2.x and later MMUs.
  32. endchoice
  33. config NUMA
  34. bool "Non Uniform Memory Access (NUMA) Support"
  35. select ARCH_WANT_NUMA_VARIABLE_LOCALITY
  36. help
  37. Some Meta systems have MMU-mappable on-chip memories with
  38. lower latencies than main memory. This enables support for
  39. these blocks by binding them to nodes and allowing
  40. memory policies to be used for prioritizing and controlling
  41. allocation behaviour.
  42. config FORCE_MAX_ZONEORDER
  43. int "Maximum zone order"
  44. range 10 32
  45. default "10"
  46. help
  47. The kernel memory allocator divides physically contiguous memory
  48. blocks into "zones", where each zone is a power of two number of
  49. pages. This option selects the largest power of two that the kernel
  50. keeps in the memory allocator. If you need to allocate very large
  51. blocks of physically contiguous memory, then you may need to
  52. increase this value.
  53. This config option is actually maximum order plus one. For example,
  54. a value of 11 means that the largest free memory block is 2^10 pages.
  55. The page size is not necessarily 4KB. Keep this in mind
  56. when choosing a value for this option.
  57. config METAG_L2C
  58. bool "Level 2 Cache Support"
  59. depends on METAG_META21
  60. help
  61. Press y here to enable support for the Meta Level 2 (L2) cache. This
  62. will enable the cache at start up if it hasn't already been enabled
  63. by the bootloader.
  64. If the bootloader enables the L2 you must press y here to ensure the
  65. kernel takes the appropriate actions to keep the cache coherent.
  66. config NODES_SHIFT
  67. int
  68. default "1"
  69. depends on NEED_MULTIPLE_NODES
  70. config ARCH_FLATMEM_ENABLE
  71. def_bool y
  72. depends on !NUMA
  73. config ARCH_SPARSEMEM_ENABLE
  74. def_bool y
  75. select SPARSEMEM_STATIC
  76. config ARCH_SPARSEMEM_DEFAULT
  77. def_bool y
  78. config ARCH_SELECT_MEMORY_MODEL
  79. def_bool y
  80. config SYS_SUPPORTS_HUGETLBFS
  81. def_bool y
  82. depends on METAG_META21_MMU
  83. choice
  84. prompt "HugeTLB page size"
  85. depends on METAG_META21_MMU && HUGETLB_PAGE
  86. default HUGETLB_PAGE_SIZE_1M
  87. config HUGETLB_PAGE_SIZE_8K
  88. bool "8kB"
  89. depends on PAGE_SIZE_4K
  90. config HUGETLB_PAGE_SIZE_16K
  91. bool "16kB"
  92. depends on PAGE_SIZE_4K || PAGE_SIZE_8K
  93. config HUGETLB_PAGE_SIZE_32K
  94. bool "32kB"
  95. config HUGETLB_PAGE_SIZE_64K
  96. bool "64kB"
  97. config HUGETLB_PAGE_SIZE_128K
  98. bool "128kB"
  99. config HUGETLB_PAGE_SIZE_256K
  100. bool "256kB"
  101. config HUGETLB_PAGE_SIZE_512K
  102. bool "512kB"
  103. config HUGETLB_PAGE_SIZE_1M
  104. bool "1MB"
  105. config HUGETLB_PAGE_SIZE_2M
  106. bool "2MB"
  107. config HUGETLB_PAGE_SIZE_4M
  108. bool "4MB"
  109. endchoice
  110. config METAG_COREMEM
  111. bool
  112. default y if SUSPEND
  113. source "mm/Kconfig"