Kconfig 12 KB

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