Kconfig 9.3 KB

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