Kconfig 13 KB

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