Kconfig 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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_KVM if !TILEGX
  6. select GENERIC_FIND_FIRST_BIT
  7. select USE_GENERIC_SMP_HELPERS
  8. select CC_OPTIMIZE_FOR_SIZE
  9. select HAVE_GENERIC_HARDIRQS
  10. select GENERIC_IRQ_PROBE
  11. select GENERIC_PENDING_IRQ if SMP
  12. select GENERIC_IRQ_SHOW
  13. select SYS_HYPERVISOR
  14. select ARCH_HAVE_NMI_SAFE_CMPXCHG if !M386
  15. # FIXME: investigate whether we need/want these options.
  16. # select HAVE_IOREMAP_PROT
  17. # select HAVE_OPTPROBES
  18. # select HAVE_REGS_AND_STACK_ACCESS_API
  19. # select HAVE_HW_BREAKPOINT
  20. # select PERF_EVENTS
  21. # select HAVE_USER_RETURN_NOTIFIER
  22. # config NO_BOOTMEM
  23. # config ARCH_SUPPORTS_DEBUG_PAGEALLOC
  24. # config HUGETLB_PAGE_SIZE_VARIABLE
  25. config MMU
  26. def_bool y
  27. config GENERIC_CSUM
  28. def_bool y
  29. config SEMAPHORE_SLEEPERS
  30. def_bool y
  31. config HAVE_ARCH_ALLOC_REMAP
  32. def_bool y
  33. config HAVE_SETUP_PER_CPU_AREA
  34. def_bool y
  35. config NEED_PER_CPU_PAGE_FIRST_CHUNK
  36. def_bool y
  37. config SYS_SUPPORTS_HUGETLBFS
  38. def_bool y
  39. config GENERIC_CLOCKEVENTS
  40. def_bool y
  41. # FIXME: tilegx can implement a more efficient rwsem.
  42. config RWSEM_GENERIC_SPINLOCK
  43. def_bool y
  44. # We have a very flat architecture from a migration point of view,
  45. # so save boot time by presetting this (particularly useful on tile-sim).
  46. config DEFAULT_MIGRATION_COST
  47. int
  48. default "10000000"
  49. # We only support gcc 4.4 and above, so this should work.
  50. config ARCH_SUPPORTS_OPTIMIZED_INLINING
  51. def_bool y
  52. config ARCH_PHYS_ADDR_T_64BIT
  53. def_bool y
  54. config ARCH_DMA_ADDR_T_64BIT
  55. def_bool y
  56. config LOCKDEP_SUPPORT
  57. def_bool y
  58. config STACKTRACE_SUPPORT
  59. def_bool y
  60. select STACKTRACE
  61. # We use discontigmem for now; at some point we may want to switch
  62. # to sparsemem (Tilera bug 7996).
  63. config ARCH_DISCONTIGMEM_ENABLE
  64. def_bool y
  65. config ARCH_DISCONTIGMEM_DEFAULT
  66. def_bool y
  67. config TRACE_IRQFLAGS_SUPPORT
  68. def_bool y
  69. config STRICT_DEVMEM
  70. def_bool y
  71. # SMP is required for Tilera Linux.
  72. config SMP
  73. def_bool y
  74. # Allow checking for compile-time determined overflow errors in
  75. # copy_from_user(). There are still unprovable places in the
  76. # generic code as of 2.6.34, so this option is not really compatible
  77. # with -Werror, which is more useful in general.
  78. config DEBUG_COPY_FROM_USER
  79. def_bool n
  80. config HVC_TILE
  81. select HVC_DRIVER
  82. def_bool y
  83. # Please note: TILE-Gx support is not yet finalized; this is
  84. # the preliminary support. TILE-Gx drivers are only provided
  85. # with the alpha or beta test versions for Tilera customers.
  86. config TILEGX
  87. depends on EXPERIMENTAL
  88. bool "Building with TILE-Gx (64-bit) compiler and toolchain"
  89. config 64BIT
  90. depends on TILEGX
  91. def_bool y
  92. config ARCH_DEFCONFIG
  93. string
  94. default "arch/tile/configs/tile_defconfig" if !TILEGX
  95. default "arch/tile/configs/tilegx_defconfig" if TILEGX
  96. source "init/Kconfig"
  97. menu "Tilera-specific configuration"
  98. config NR_CPUS
  99. int "Maximum number of tiles (2-255)"
  100. range 2 255
  101. depends on SMP
  102. default "64"
  103. ---help---
  104. Building with 64 is the recommended value, but a slightly
  105. smaller kernel memory footprint results from using a smaller
  106. value on chips with fewer tiles.
  107. source "kernel/time/Kconfig"
  108. source "kernel/Kconfig.hz"
  109. config KEXEC
  110. bool "kexec system call"
  111. ---help---
  112. kexec is a system call that implements the ability to shutdown your
  113. current kernel, and to start another kernel. It is like a reboot
  114. but it is independent of the system firmware. It is used
  115. to implement the "mboot" Tilera booter.
  116. The name comes from the similarity to the exec system call.
  117. config COMPAT
  118. bool "Support 32-bit TILE-Gx binaries in addition to 64-bit"
  119. depends on TILEGX
  120. select COMPAT_BINFMT_ELF
  121. default y
  122. ---help---
  123. If enabled, the kernel will support running TILE-Gx binaries
  124. that were built with the -m32 option.
  125. config SYSVIPC_COMPAT
  126. def_bool y
  127. depends on COMPAT && SYSVIPC
  128. # We do not currently support disabling HIGHMEM on tile64 and tilepro.
  129. config HIGHMEM
  130. bool # "Support for more than 512 MB of RAM"
  131. default !TILEGX
  132. ---help---
  133. Linux can use the full amount of RAM in the system by
  134. default. However, the address space of TILE processors is
  135. only 4 Gigabytes large. That means that, if you have a large
  136. amount of physical memory, not all of it can be "permanently
  137. mapped" by the kernel. The physical memory that's not
  138. permanently mapped is called "high memory".
  139. If you are compiling a kernel which will never run on a
  140. machine with more than 512 MB total physical RAM, answer
  141. "false" here. This will result in the kernel mapping all of
  142. physical memory into the top 1 GB of virtual memory space.
  143. If unsure, say "true".
  144. # We do not currently support disabling NUMA.
  145. config NUMA
  146. bool # "NUMA Memory Allocation and Scheduler Support"
  147. depends on SMP && DISCONTIGMEM
  148. default y
  149. ---help---
  150. NUMA memory allocation is required for TILE processors
  151. unless booting with memory striping enabled in the
  152. hypervisor, or with only a single memory controller.
  153. It is recommended that this option always be enabled.
  154. config NODES_SHIFT
  155. int "Log base 2 of the max number of memory controllers"
  156. default 2
  157. depends on NEED_MULTIPLE_NODES
  158. ---help---
  159. By default, 2, i.e. 2^2 == 4 DDR2 controllers.
  160. In a system with more controllers, this value should be raised.
  161. choice
  162. depends on !TILEGX
  163. prompt "Memory split" if EXPERT
  164. default VMSPLIT_3G
  165. ---help---
  166. Select the desired split between kernel and user memory.
  167. If the address range available to the kernel is less than the
  168. physical memory installed, the remaining memory will be available
  169. as "high memory". Accessing high memory is a little more costly
  170. than low memory, as it needs to be mapped into the kernel first.
  171. Note that increasing the kernel address space limits the range
  172. available to user programs, making the address space there
  173. tighter. Selecting anything other than the default 3G/1G split
  174. will also likely make your kernel incompatible with binary-only
  175. kernel modules.
  176. If you are not absolutely sure what you are doing, leave this
  177. option alone!
  178. config VMSPLIT_3_75G
  179. bool "3.75G/0.25G user/kernel split (no kernel networking)"
  180. config VMSPLIT_3_5G
  181. bool "3.5G/0.5G user/kernel split"
  182. config VMSPLIT_3G
  183. bool "3G/1G user/kernel split"
  184. config VMSPLIT_2_75G
  185. bool "2.75G/1.25G user/kernel split (for full 1G low memory)"
  186. config VMSPLIT_2_5G
  187. bool "2.5G/1.5G user/kernel split"
  188. config VMSPLIT_2_25G
  189. bool "2.25G/1.75G user/kernel split"
  190. config VMSPLIT_2G
  191. bool "2G/2G user/kernel split"
  192. config VMSPLIT_1G
  193. bool "1G/3G user/kernel split"
  194. endchoice
  195. config PAGE_OFFSET
  196. hex
  197. default 0xF0000000 if VMSPLIT_3_75G
  198. default 0xE0000000 if VMSPLIT_3_5G
  199. default 0xB0000000 if VMSPLIT_2_75G
  200. default 0xA0000000 if VMSPLIT_2_5G
  201. default 0x90000000 if VMSPLIT_2_25G
  202. default 0x80000000 if VMSPLIT_2G
  203. default 0x40000000 if VMSPLIT_1G
  204. default 0xC0000000
  205. source "mm/Kconfig"
  206. config CMDLINE_BOOL
  207. bool "Built-in kernel command line"
  208. default n
  209. ---help---
  210. Allow for specifying boot arguments to the kernel at
  211. build time. On some systems (e.g. embedded ones), it is
  212. necessary or convenient to provide some or all of the
  213. kernel boot arguments with the kernel itself (that is,
  214. to not rely on the boot loader to provide them.)
  215. To compile command line arguments into the kernel,
  216. set this option to 'Y', then fill in the
  217. the boot arguments in CONFIG_CMDLINE.
  218. Systems with fully functional boot loaders (e.g. mboot, or
  219. if booting over PCI) should leave this option set to 'N'.
  220. config CMDLINE
  221. string "Built-in kernel command string"
  222. depends on CMDLINE_BOOL
  223. default ""
  224. ---help---
  225. Enter arguments here that should be compiled into the kernel
  226. image and used at boot time. If the boot loader provides a
  227. command line at boot time, it is appended to this string to
  228. form the full kernel command line, when the system boots.
  229. However, you can use the CONFIG_CMDLINE_OVERRIDE option to
  230. change this behavior.
  231. In most cases, the command line (whether built-in or provided
  232. by the boot loader) should specify the device for the root
  233. file system.
  234. config CMDLINE_OVERRIDE
  235. bool "Built-in command line overrides boot loader arguments"
  236. default n
  237. depends on CMDLINE_BOOL
  238. ---help---
  239. Set this option to 'Y' to have the kernel ignore the boot loader
  240. command line, and use ONLY the built-in command line.
  241. This is used to work around broken boot loaders. This should
  242. be set to 'N' under normal conditions.
  243. config VMALLOC_RESERVE
  244. hex
  245. default 0x1000000
  246. config HARDWALL
  247. bool "Hardwall support to allow access to user dynamic network"
  248. default y
  249. config KERNEL_PL
  250. int "Processor protection level for kernel"
  251. range 1 2
  252. default "1"
  253. ---help---
  254. This setting determines the processor protection level the
  255. kernel will be built to run at. Generally you should use
  256. the default value here.
  257. endmenu # Tilera-specific configuration
  258. menu "Bus options"
  259. config PCI
  260. bool "PCI support"
  261. default y
  262. select PCI_DOMAINS
  263. select GENERIC_PCI_IOMAP
  264. ---help---
  265. Enable PCI root complex support, so PCIe endpoint devices can
  266. be attached to the Tile chip. Many, but not all, PCI devices
  267. are supported under Tilera's root complex driver.
  268. config PCI_DOMAINS
  269. bool
  270. config NO_IOMEM
  271. def_bool !PCI
  272. config NO_IOPORT
  273. def_bool !PCI
  274. source "drivers/pci/Kconfig"
  275. config HOTPLUG
  276. bool "Support for hot-pluggable devices"
  277. ---help---
  278. Say Y here if you want to plug devices into your computer while
  279. the system is running, and be able to use them quickly. In many
  280. cases, the devices can likewise be unplugged at any time too.
  281. One well-known example of this is USB.
  282. source "drivers/pci/hotplug/Kconfig"
  283. endmenu
  284. menu "Executable file formats"
  285. # only elf supported
  286. config KCORE_ELF
  287. def_bool y
  288. depends on PROC_FS
  289. source "fs/Kconfig.binfmt"
  290. endmenu
  291. source "net/Kconfig"
  292. source "drivers/Kconfig"
  293. source "fs/Kconfig"
  294. source "arch/tile/Kconfig.debug"
  295. source "security/Kconfig"
  296. source "crypto/Kconfig"
  297. source "lib/Kconfig"
  298. source "arch/tile/kvm/Kconfig"