Kconfig 11 KB

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