Kconfig 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. # For a description of the syntax of this configuration file,
  2. # see Documentation/kbuild/kconfig-language.txt.
  3. config TILE
  4. def_bool y
  5. select HAVE_KVM if !TILEGX
  6. select GENERIC_FIND_FIRST_BIT
  7. select USE_GENERIC_SMP_HELPERS
  8. select CC_OPTIMIZE_FOR_SIZE
  9. select HAVE_GENERIC_HARDIRQS
  10. select GENERIC_IRQ_PROBE
  11. select GENERIC_PENDING_IRQ if SMP
  12. select GENERIC_IRQ_SHOW
  13. select HAVE_SYSCALL_WRAPPERS if TILEGX
  14. select SYS_HYPERVISOR
  15. select ARCH_HAVE_NMI_SAFE_CMPXCHG
  16. select GENERIC_CLOCKEVENTS
  17. # FIXME: investigate whether we need/want these options.
  18. # select HAVE_IOREMAP_PROT
  19. # select HAVE_OPTPROBES
  20. # select HAVE_REGS_AND_STACK_ACCESS_API
  21. # select HAVE_HW_BREAKPOINT
  22. # select PERF_EVENTS
  23. # select HAVE_USER_RETURN_NOTIFIER
  24. # config NO_BOOTMEM
  25. # config ARCH_SUPPORTS_DEBUG_PAGEALLOC
  26. # config HUGETLB_PAGE_SIZE_VARIABLE
  27. config MMU
  28. def_bool y
  29. config GENERIC_CSUM
  30. def_bool y
  31. config SEMAPHORE_SLEEPERS
  32. def_bool y
  33. config HAVE_ARCH_ALLOC_REMAP
  34. def_bool y
  35. config HAVE_SETUP_PER_CPU_AREA
  36. def_bool y
  37. config NEED_PER_CPU_PAGE_FIRST_CHUNK
  38. def_bool y
  39. config SYS_SUPPORTS_HUGETLBFS
  40. def_bool y
  41. # Support for additional huge page sizes besides HPAGE_SIZE.
  42. # The software support is currently only present in the TILE-Gx
  43. # hypervisor. TILEPro in any case does not support page sizes
  44. # larger than the default HPAGE_SIZE.
  45. config HUGETLB_SUPER_PAGES
  46. depends on HUGETLB_PAGE && TILEGX
  47. def_bool y
  48. # FIXME: tilegx can implement a more efficient rwsem.
  49. config RWSEM_GENERIC_SPINLOCK
  50. def_bool y
  51. # We have a very flat architecture from a migration point of view,
  52. # so save boot time by presetting this (particularly useful on tile-sim).
  53. config DEFAULT_MIGRATION_COST
  54. int
  55. default "10000000"
  56. # We only support gcc 4.4 and above, so this should work.
  57. config ARCH_SUPPORTS_OPTIMIZED_INLINING
  58. def_bool y
  59. config ARCH_PHYS_ADDR_T_64BIT
  60. def_bool y
  61. config ARCH_DMA_ADDR_T_64BIT
  62. def_bool y
  63. config NEED_DMA_MAP_STATE
  64. def_bool y
  65. config LOCKDEP_SUPPORT
  66. def_bool y
  67. config STACKTRACE_SUPPORT
  68. def_bool y
  69. select STACKTRACE
  70. # We use discontigmem for now; at some point we may want to switch
  71. # to sparsemem (Tilera bug 7996).
  72. config ARCH_DISCONTIGMEM_ENABLE
  73. def_bool y
  74. config ARCH_DISCONTIGMEM_DEFAULT
  75. def_bool y
  76. config TRACE_IRQFLAGS_SUPPORT
  77. def_bool y
  78. config STRICT_DEVMEM
  79. def_bool y
  80. # SMP is required for Tilera Linux.
  81. config SMP
  82. def_bool y
  83. # Allow checking for compile-time determined overflow errors in
  84. # copy_from_user(). There are still unprovable places in the
  85. # generic code as of 2.6.34, so this option is not really compatible
  86. # with -Werror, which is more useful in general.
  87. config DEBUG_COPY_FROM_USER
  88. def_bool n
  89. config HVC_TILE
  90. select HVC_DRIVER
  91. def_bool y
  92. config TILEGX
  93. bool "Building with TILE-Gx (64-bit) compiler and toolchain"
  94. config TILEPRO
  95. def_bool !TILEGX
  96. config 64BIT
  97. def_bool TILEGX
  98. config ARCH_DEFCONFIG
  99. string
  100. default "arch/tile/configs/tilepro_defconfig" if !TILEGX
  101. default "arch/tile/configs/tilegx_defconfig" if TILEGX
  102. source "init/Kconfig"
  103. menu "Tilera-specific configuration"
  104. config NR_CPUS
  105. int "Maximum number of tiles (2-255)"
  106. range 2 255
  107. depends on SMP
  108. default "64"
  109. ---help---
  110. Building with 64 is the recommended value, but a slightly
  111. smaller kernel memory footprint results from using a smaller
  112. value on chips with fewer tiles.
  113. if TILEGX
  114. choice
  115. prompt "Kernel page size"
  116. default PAGE_SIZE_64KB
  117. help
  118. This lets you select the page size of the kernel. For best
  119. performance on memory-intensive applications, a page size of 64KB
  120. is recommended. For workloads involving many small files, many
  121. connections, etc., it may be better to select 16KB, which uses
  122. memory more efficiently at some cost in TLB performance.
  123. Note that this option is TILE-Gx specific; currently
  124. TILEPro page size is set by rebuilding the hypervisor.
  125. config PAGE_SIZE_16KB
  126. bool "16KB"
  127. config PAGE_SIZE_64KB
  128. bool "64KB"
  129. endchoice
  130. endif
  131. source "kernel/Kconfig.hz"
  132. config KEXEC
  133. bool "kexec system call"
  134. ---help---
  135. kexec is a system call that implements the ability to shutdown your
  136. current kernel, and to start another kernel. It is like a reboot
  137. but it is independent of the system firmware. It is used
  138. to implement the "mboot" Tilera booter.
  139. The name comes from the similarity to the exec system call.
  140. config COMPAT
  141. bool "Support 32-bit TILE-Gx binaries in addition to 64-bit"
  142. depends on TILEGX
  143. select COMPAT_BINFMT_ELF
  144. default y
  145. ---help---
  146. If enabled, the kernel will support running TILE-Gx binaries
  147. that were built with the -m32 option.
  148. config SYSVIPC_COMPAT
  149. def_bool y
  150. depends on COMPAT && SYSVIPC
  151. # We do not currently support disabling HIGHMEM on tile64 and tilepro.
  152. config HIGHMEM
  153. bool # "Support for more than 512 MB of RAM"
  154. default !TILEGX
  155. ---help---
  156. Linux can use the full amount of RAM in the system by
  157. default. However, the address space of TILE processors is
  158. only 4 Gigabytes large. That means that, if you have a large
  159. amount of physical memory, not all of it can be "permanently
  160. mapped" by the kernel. The physical memory that's not
  161. permanently mapped is called "high memory".
  162. If you are compiling a kernel which will never run on a
  163. machine with more than 512 MB total physical RAM, answer
  164. "false" here. This will result in the kernel mapping all of
  165. physical memory into the top 1 GB of virtual memory space.
  166. If unsure, say "true".
  167. # We do not currently support disabling NUMA.
  168. config NUMA
  169. bool # "NUMA Memory Allocation and Scheduler Support"
  170. depends on SMP && DISCONTIGMEM
  171. default y
  172. ---help---
  173. NUMA memory allocation is required for TILE processors
  174. unless booting with memory striping enabled in the
  175. hypervisor, or with only a single memory controller.
  176. It is recommended that this option always be enabled.
  177. config NODES_SHIFT
  178. int "Log base 2 of the max number of memory controllers"
  179. default 2
  180. depends on NEED_MULTIPLE_NODES
  181. ---help---
  182. By default, 2, i.e. 2^2 == 4 DDR2 controllers.
  183. In a system with more controllers, this value should be raised.
  184. choice
  185. depends on !TILEGX
  186. prompt "Memory split" if EXPERT
  187. default VMSPLIT_3G
  188. ---help---
  189. Select the desired split between kernel and user memory.
  190. If the address range available to the kernel is less than the
  191. physical memory installed, the remaining memory will be available
  192. as "high memory". Accessing high memory is a little more costly
  193. than low memory, as it needs to be mapped into the kernel first.
  194. Note that increasing the kernel address space limits the range
  195. available to user programs, making the address space there
  196. tighter. Selecting anything other than the default 3G/1G split
  197. will also likely make your kernel incompatible with binary-only
  198. kernel modules.
  199. If you are not absolutely sure what you are doing, leave this
  200. option alone!
  201. config VMSPLIT_3_75G
  202. bool "3.75G/0.25G user/kernel split (no kernel networking)"
  203. config VMSPLIT_3_5G
  204. bool "3.5G/0.5G user/kernel split"
  205. config VMSPLIT_3G
  206. bool "3G/1G user/kernel split"
  207. config VMSPLIT_2_75G
  208. bool "2.75G/1.25G user/kernel split (for full 1G low memory)"
  209. config VMSPLIT_2_5G
  210. bool "2.5G/1.5G user/kernel split"
  211. config VMSPLIT_2_25G
  212. bool "2.25G/1.75G user/kernel split"
  213. config VMSPLIT_2G
  214. bool "2G/2G user/kernel split"
  215. config VMSPLIT_1G
  216. bool "1G/3G user/kernel split"
  217. endchoice
  218. config PAGE_OFFSET
  219. hex
  220. depends on !64BIT
  221. default 0xF0000000 if VMSPLIT_3_75G
  222. default 0xE0000000 if VMSPLIT_3_5G
  223. default 0xB0000000 if VMSPLIT_2_75G
  224. default 0xA0000000 if VMSPLIT_2_5G
  225. default 0x90000000 if VMSPLIT_2_25G
  226. default 0x80000000 if VMSPLIT_2G
  227. default 0x40000000 if VMSPLIT_1G
  228. default 0xC0000000
  229. source "mm/Kconfig"
  230. config CMDLINE_BOOL
  231. bool "Built-in kernel command line"
  232. default n
  233. ---help---
  234. Allow for specifying boot arguments to the kernel at
  235. build time. On some systems (e.g. embedded ones), it is
  236. necessary or convenient to provide some or all of the
  237. kernel boot arguments with the kernel itself (that is,
  238. to not rely on the boot loader to provide them.)
  239. To compile command line arguments into the kernel,
  240. set this option to 'Y', then fill in the
  241. the boot arguments in CONFIG_CMDLINE.
  242. Systems with fully functional boot loaders (e.g. mboot, or
  243. if booting over PCI) should leave this option set to 'N'.
  244. config CMDLINE
  245. string "Built-in kernel command string"
  246. depends on CMDLINE_BOOL
  247. default ""
  248. ---help---
  249. Enter arguments here that should be compiled into the kernel
  250. image and used at boot time. If the boot loader provides a
  251. command line at boot time, it is appended to this string to
  252. form the full kernel command line, when the system boots.
  253. However, you can use the CONFIG_CMDLINE_OVERRIDE option to
  254. change this behavior.
  255. In most cases, the command line (whether built-in or provided
  256. by the boot loader) should specify the device for the root
  257. file system.
  258. config CMDLINE_OVERRIDE
  259. bool "Built-in command line overrides boot loader arguments"
  260. default n
  261. depends on CMDLINE_BOOL
  262. ---help---
  263. Set this option to 'Y' to have the kernel ignore the boot loader
  264. command line, and use ONLY the built-in command line.
  265. This is used to work around broken boot loaders. This should
  266. be set to 'N' under normal conditions.
  267. config VMALLOC_RESERVE
  268. hex
  269. default 0x1000000
  270. config HARDWALL
  271. bool "Hardwall support to allow access to user dynamic network"
  272. default y
  273. config KERNEL_PL
  274. int "Processor protection level for kernel"
  275. range 1 2
  276. default "1"
  277. ---help---
  278. This setting determines the processor protection level the
  279. kernel will be built to run at. Generally you should use
  280. the default value here.
  281. endmenu # Tilera-specific configuration
  282. menu "Bus options"
  283. config PCI
  284. bool "PCI support"
  285. default y
  286. select PCI_DOMAINS
  287. select GENERIC_PCI_IOMAP
  288. ---help---
  289. Enable PCI root complex support, so PCIe endpoint devices can
  290. be attached to the Tile chip. Many, but not all, PCI devices
  291. are supported under Tilera's root complex driver.
  292. config PCI_DOMAINS
  293. bool
  294. config NO_IOMEM
  295. def_bool !PCI
  296. config NO_IOPORT
  297. def_bool !PCI
  298. source "drivers/pci/Kconfig"
  299. config HOTPLUG
  300. bool "Support for hot-pluggable devices"
  301. ---help---
  302. Say Y here if you want to plug devices into your computer while
  303. the system is running, and be able to use them quickly. In many
  304. cases, the devices can likewise be unplugged at any time too.
  305. One well-known example of this is USB.
  306. source "drivers/pci/hotplug/Kconfig"
  307. endmenu
  308. menu "Executable file formats"
  309. # only elf supported
  310. config KCORE_ELF
  311. def_bool y
  312. depends on PROC_FS
  313. source "fs/Kconfig.binfmt"
  314. endmenu
  315. source "net/Kconfig"
  316. source "drivers/Kconfig"
  317. source "fs/Kconfig"
  318. source "arch/tile/Kconfig.debug"
  319. source "security/Kconfig"
  320. source "crypto/Kconfig"
  321. source "lib/Kconfig"
  322. source "arch/tile/kvm/Kconfig"