Kconfig 11 KB

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