Kconfig 13 KB

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