Kconfig 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. menu "Memory management options"
  2. config QUICKLIST
  3. def_bool y
  4. config MMU
  5. bool "Support for memory management hardware"
  6. depends on !CPU_SH2
  7. default y
  8. help
  9. Some SH processors (such as SH-2/SH-2A) lack an MMU. In order to
  10. boot on these systems, this option must not be set.
  11. On other systems (such as the SH-3 and 4) where an MMU exists,
  12. turning this off will boot the kernel on these machines with the
  13. MMU implicitly switched off.
  14. config PAGE_OFFSET
  15. hex
  16. default "0x80000000" if MMU && SUPERH32
  17. default "0x20000000" if MMU && SUPERH64
  18. default "0x00000000"
  19. config FORCE_MAX_ZONEORDER
  20. int "Maximum zone order"
  21. range 9 64 if PAGE_SIZE_16KB
  22. default "9" if PAGE_SIZE_16KB
  23. range 7 64 if PAGE_SIZE_64KB
  24. default "7" if PAGE_SIZE_64KB
  25. range 11 64
  26. default "14" if !MMU
  27. default "11"
  28. help
  29. The kernel memory allocator divides physically contiguous memory
  30. blocks into "zones", where each zone is a power of two number of
  31. pages. This option selects the largest power of two that the kernel
  32. keeps in the memory allocator. If you need to allocate very large
  33. blocks of physically contiguous memory, then you may need to
  34. increase this value.
  35. This config option is actually maximum order plus one. For example,
  36. a value of 11 means that the largest free memory block is 2^10 pages.
  37. The page size is not necessarily 4KB. Keep this in mind when
  38. choosing a value for this option.
  39. config MEMORY_START
  40. hex "Physical memory start address"
  41. default "0x08000000"
  42. ---help---
  43. Computers built with Hitachi SuperH processors always
  44. map the ROM starting at address zero. But the processor
  45. does not specify the range that RAM takes.
  46. The physical memory (RAM) start address will be automatically
  47. set to 08000000. Other platforms, such as the Solution Engine
  48. boards typically map RAM at 0C000000.
  49. Tweak this only when porting to a new machine which does not
  50. already have a defconfig. Changing it from the known correct
  51. value on any of the known systems will only lead to disaster.
  52. config MEMORY_SIZE
  53. hex "Physical memory size"
  54. default "0x04000000"
  55. help
  56. This sets the default memory size assumed by your SH kernel. It can
  57. be overridden as normal by the 'mem=' argument on the kernel command
  58. line. If unsure, consult your board specifications or just leave it
  59. as 0x04000000 which was the default value before this became
  60. configurable.
  61. # Physical addressing modes
  62. config 29BIT
  63. def_bool !32BIT
  64. depends on SUPERH32
  65. config 32BIT
  66. bool
  67. default y if CPU_SH5
  68. config PMB_ENABLE
  69. bool "Support 32-bit physical addressing through PMB"
  70. depends on MMU && EXPERIMENTAL && CPU_SH4A && !CPU_SH4AL_DSP
  71. help
  72. If you say Y here, physical addressing will be extended to
  73. 32-bits through the SH-4A PMB. If this is not set, legacy
  74. 29-bit physical addressing will be used.
  75. choice
  76. prompt "PMB handling type"
  77. depends on PMB_ENABLE
  78. default PMB_FIXED
  79. config PMB
  80. bool "PMB"
  81. depends on MMU && EXPERIMENTAL && CPU_SH4A && !CPU_SH4AL_DSP
  82. help
  83. If you say Y here, physical addressing will be extended to
  84. 32-bits through the SH-4A PMB. If this is not set, legacy
  85. 29-bit physical addressing will be used.
  86. config PMB_FIXED
  87. bool "fixed PMB"
  88. depends on MMU && EXPERIMENTAL && CPU_SH4A && !CPU_SH4AL_DSP
  89. select 32BIT
  90. help
  91. If this option is enabled, fixed PMB mappings are inherited
  92. from the boot loader, and the kernel does not attempt dynamic
  93. management. This is the closest to legacy 29-bit physical mode,
  94. and allows systems to support up to 512MiB of system memory.
  95. endchoice
  96. config X2TLB
  97. bool "Enable extended TLB mode"
  98. depends on (CPU_SHX2 || CPU_SHX3) && MMU && EXPERIMENTAL
  99. help
  100. Selecting this option will enable the extended mode of the SH-X2
  101. TLB. For legacy SH-X behaviour and interoperability, say N. For
  102. all of the fun new features and a willingless to submit bug reports,
  103. say Y.
  104. config VSYSCALL
  105. bool "Support vsyscall page"
  106. depends on MMU && (CPU_SH3 || CPU_SH4)
  107. default y
  108. help
  109. This will enable support for the kernel mapping a vDSO page
  110. in process space, and subsequently handing down the entry point
  111. to the libc through the ELF auxiliary vector.
  112. From the kernel side this is used for the signal trampoline.
  113. For systems with an MMU that can afford to give up a page,
  114. (the default value) say Y.
  115. config NUMA
  116. bool "Non Uniform Memory Access (NUMA) Support"
  117. depends on MMU && SYS_SUPPORTS_NUMA && EXPERIMENTAL
  118. default n
  119. help
  120. Some SH systems have many various memories scattered around
  121. the address space, each with varying latencies. This enables
  122. support for these blocks by binding them to nodes and allowing
  123. memory policies to be used for prioritizing and controlling
  124. allocation behaviour.
  125. config NODES_SHIFT
  126. int
  127. default "3" if CPU_SUBTYPE_SHX3
  128. default "1"
  129. depends on NEED_MULTIPLE_NODES
  130. config ARCH_FLATMEM_ENABLE
  131. def_bool y
  132. depends on !NUMA
  133. config ARCH_SPARSEMEM_ENABLE
  134. def_bool y
  135. select SPARSEMEM_STATIC
  136. config ARCH_SPARSEMEM_DEFAULT
  137. def_bool y
  138. config MAX_ACTIVE_REGIONS
  139. int
  140. default "6" if (CPU_SUBTYPE_SHX3 && SPARSEMEM)
  141. default "2" if SPARSEMEM && (CPU_SUBTYPE_SH7722 || \
  142. CPU_SUBTYPE_SH7785)
  143. default "1"
  144. config ARCH_POPULATES_NODE_MAP
  145. def_bool y
  146. config ARCH_SELECT_MEMORY_MODEL
  147. def_bool y
  148. config ARCH_ENABLE_MEMORY_HOTPLUG
  149. def_bool y
  150. depends on SPARSEMEM && MMU
  151. config ARCH_ENABLE_MEMORY_HOTREMOVE
  152. def_bool y
  153. depends on SPARSEMEM && MMU
  154. config ARCH_MEMORY_PROBE
  155. def_bool y
  156. depends on MEMORY_HOTPLUG
  157. choice
  158. prompt "Page table layout"
  159. default PGTABLE_LEVELS_3 if X2TLB
  160. default PGTABLE_LEVELS_2
  161. config PGTABLE_LEVELS_2
  162. bool "2 Levels"
  163. help
  164. This is the default page table layout for all SuperH CPUs.
  165. config PGTABLE_LEVELS_3
  166. bool "3 Levels"
  167. depends on X2TLB
  168. help
  169. This enables a 3 level page table structure.
  170. endchoice
  171. choice
  172. prompt "Kernel page size"
  173. default PAGE_SIZE_8KB if X2TLB
  174. default PAGE_SIZE_4KB
  175. config PAGE_SIZE_4KB
  176. bool "4kB"
  177. depends on !MMU || !X2TLB || PGTABLE_LEVELS_3
  178. help
  179. This is the default page size used by all SuperH CPUs.
  180. config PAGE_SIZE_8KB
  181. bool "8kB"
  182. depends on !MMU || X2TLB
  183. help
  184. This enables 8kB pages as supported by SH-X2 and later MMUs.
  185. config PAGE_SIZE_16KB
  186. bool "16kB"
  187. depends on !MMU
  188. help
  189. This enables 16kB pages on MMU-less SH systems.
  190. config PAGE_SIZE_64KB
  191. bool "64kB"
  192. depends on !MMU || CPU_SH4 || CPU_SH5
  193. help
  194. This enables support for 64kB pages, possible on all SH-4
  195. CPUs and later.
  196. endchoice
  197. choice
  198. prompt "HugeTLB page size"
  199. depends on HUGETLB_PAGE
  200. default HUGETLB_PAGE_SIZE_1MB if PAGE_SIZE_64KB
  201. default HUGETLB_PAGE_SIZE_64K
  202. config HUGETLB_PAGE_SIZE_64K
  203. bool "64kB"
  204. depends on !PAGE_SIZE_64KB
  205. config HUGETLB_PAGE_SIZE_256K
  206. bool "256kB"
  207. depends on X2TLB
  208. config HUGETLB_PAGE_SIZE_1MB
  209. bool "1MB"
  210. config HUGETLB_PAGE_SIZE_4MB
  211. bool "4MB"
  212. depends on X2TLB
  213. config HUGETLB_PAGE_SIZE_64MB
  214. bool "64MB"
  215. depends on X2TLB
  216. config HUGETLB_PAGE_SIZE_512MB
  217. bool "512MB"
  218. depends on CPU_SH5
  219. endchoice
  220. source "mm/Kconfig"
  221. config SCHED_MC
  222. bool "Multi-core scheduler support"
  223. depends on SMP
  224. default y
  225. help
  226. Multi-core scheduler support improves the CPU scheduler's decision
  227. making when dealing with multi-core CPU chips at a cost of slightly
  228. increased overhead in some places. If unsure say N here.
  229. endmenu
  230. menu "Cache configuration"
  231. config SH7705_CACHE_32KB
  232. bool "Enable 32KB cache size for SH7705"
  233. depends on CPU_SUBTYPE_SH7705
  234. default y
  235. choice
  236. prompt "Cache mode"
  237. default CACHE_WRITEBACK if CPU_SH2A || CPU_SH3 || CPU_SH4 || CPU_SH5
  238. default CACHE_WRITETHROUGH if (CPU_SH2 && !CPU_SH2A)
  239. config CACHE_WRITEBACK
  240. bool "Write-back"
  241. config CACHE_WRITETHROUGH
  242. bool "Write-through"
  243. help
  244. Selecting this option will configure the caches in write-through
  245. mode, as opposed to the default write-back configuration.
  246. Since there's sill some aliasing issues on SH-4, this option will
  247. unfortunately still require the majority of flushing functions to
  248. be implemented to deal with aliasing.
  249. If unsure, say N.
  250. config CACHE_OFF
  251. bool "Off"
  252. endchoice
  253. endmenu