Kconfig 12 KB

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