Kconfig 12 KB

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