Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. # For a description of the syntax of this configuration file,
  2. # see Documentation/kbuild/kconfig-language.txt.
  3. #
  4. mainmenu "Linux/SPARC Kernel Configuration"
  5. config 64BIT
  6. bool "64-bit kernel" if ARCH = "sparc"
  7. default ARCH = "sparc64"
  8. help
  9. SPARC is a family of RISC microprocessors designed and marketed by
  10. Sun Microsystems, incorporated. They are very widely found in Sun
  11. workstations and clones.
  12. Say yes to build a 64-bit kernel - formerly known as sparc64
  13. Say no to build a 32-bit kernel - formerly known as sparc
  14. config SPARC
  15. bool
  16. default y
  17. select HAVE_IDE
  18. select HAVE_OPROFILE
  19. select HAVE_ARCH_KGDB if !SMP || SPARC64
  20. select HAVE_ARCH_TRACEHOOK
  21. select ARCH_WANT_OPTIONAL_GPIOLIB
  22. select RTC_CLASS
  23. select RTC_DRV_M48T59
  24. config SPARC32
  25. def_bool !64BIT
  26. config SPARC64
  27. def_bool 64BIT
  28. select ARCH_SUPPORTS_MSI
  29. select HAVE_FUNCTION_TRACER
  30. select HAVE_KRETPROBES
  31. select HAVE_KPROBES
  32. select HAVE_LMB
  33. select USE_GENERIC_SMP_HELPERS if SMP
  34. select RTC_DRV_CMOS
  35. select RTC_DRV_BQ4802
  36. select RTC_DRV_SUN4V
  37. select RTC_DRV_STARFIRE
  38. config ARCH_DEFCONFIG
  39. string
  40. default "arch/sparc/configs/sparc32_defconfig" if SPARC32
  41. default "arch/sparc/configs/sparc64_defconfig" if SPARC64
  42. # CONFIG_BITS can be used at source level to get 32/64 bits
  43. config BITS
  44. int
  45. default 32 if SPARC32
  46. default 64 if SPARC64
  47. config GENERIC_TIME
  48. bool
  49. default y if SPARC64
  50. config GENERIC_CMOS_UPDATE
  51. bool
  52. default y if SPARC64
  53. config GENERIC_CLOCKEVENTS
  54. bool
  55. default y if SPARC64
  56. config IOMMU_HELPER
  57. bool
  58. default y if SPARC64
  59. config QUICKLIST
  60. bool
  61. default y if SPARC64
  62. config STACKTRACE_SUPPORT
  63. bool
  64. default y if SPARC64
  65. config LOCKDEP_SUPPORT
  66. bool
  67. default y if SPARC64
  68. config HAVE_LATENCYTOP_SUPPORT
  69. bool
  70. default y if SPARC64
  71. config AUDIT_ARCH
  72. bool
  73. default y
  74. config HAVE_SETUP_PER_CPU_AREA
  75. def_bool y if SPARC64
  76. config GENERIC_HARDIRQS_NO__DO_IRQ
  77. bool
  78. def_bool y if SPARC64
  79. config MMU
  80. bool
  81. default y
  82. config HIGHMEM
  83. bool
  84. default y if SPARC32
  85. config ZONE_DMA
  86. bool
  87. default y if SPARC32
  88. config GENERIC_ISA_DMA
  89. bool
  90. default y if SPARC32
  91. config GENERIC_GPIO
  92. bool
  93. help
  94. Generic GPIO API support
  95. config ARCH_NO_VIRT_TO_BUS
  96. def_bool y
  97. config OF
  98. def_bool y
  99. source "init/Kconfig"
  100. source "kernel/Kconfig.freezer"
  101. menu "Processor type and features"
  102. config SMP
  103. bool "Symmetric multi-processing support (does not work on sun4/sun4c)"
  104. ---help---
  105. This enables support for systems with more than one CPU. If you have
  106. a system with only one CPU, say N. If you have a system with more
  107. than one CPU, say Y.
  108. If you say N here, the kernel will run on single and multiprocessor
  109. machines, but will use only one CPU of a multiprocessor machine. If
  110. you say Y here, the kernel will run on many, but not all,
  111. singleprocessor machines. On a singleprocessor machine, the kernel
  112. will run faster if you say N here.
  113. People using multiprocessor machines who say Y here should also say
  114. Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
  115. Management" code will be disabled if you say Y here.
  116. See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
  117. available at <http://www.tldp.org/docs.html#howto>.
  118. If you don't know what to do here, say N.
  119. config NR_CPUS
  120. int "Maximum number of CPUs"
  121. depends on SMP
  122. range 2 32 if SPARC32
  123. range 2 1024 if SPARC64
  124. default 32 if SPARC32
  125. default 64 if SPARC64
  126. source kernel/Kconfig.hz
  127. config RWSEM_GENERIC_SPINLOCK
  128. bool
  129. default y if SPARC32
  130. config RWSEM_XCHGADD_ALGORITHM
  131. bool
  132. default y if SPARC64
  133. config GENERIC_FIND_NEXT_BIT
  134. bool
  135. default y
  136. config GENERIC_HWEIGHT
  137. bool
  138. default y if !ULTRA_HAS_POPULATION_COUNT
  139. config GENERIC_CALIBRATE_DELAY
  140. bool
  141. default y
  142. config ARCH_MAY_HAVE_PC_FDC
  143. bool
  144. default y
  145. config EMULATED_CMPXCHG
  146. bool
  147. default y if SPARC32
  148. help
  149. Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
  150. is emulated, and therefore it is not completely atomic.
  151. # Makefile helpers
  152. config SPARC32_SMP
  153. bool
  154. default y
  155. depends on SPARC32 && SMP
  156. config SPARC64_SMP
  157. bool
  158. default y
  159. depends on SPARC64 && SMP
  160. choice
  161. prompt "Kernel page size" if SPARC64
  162. default SPARC64_PAGE_SIZE_8KB
  163. config SPARC64_PAGE_SIZE_8KB
  164. bool "8KB"
  165. help
  166. This lets you select the page size of the kernel.
  167. 8KB and 64KB work quite well, since SPARC ELF sections
  168. provide for up to 64KB alignment.
  169. If you don't know what to do, choose 8KB.
  170. config SPARC64_PAGE_SIZE_64KB
  171. bool "64KB"
  172. endchoice
  173. config SECCOMP
  174. bool "Enable seccomp to safely compute untrusted bytecode"
  175. depends on SPARC64 && PROC_FS
  176. default y
  177. help
  178. This kernel feature is useful for number crunching applications
  179. that may need to compute untrusted bytecode during their
  180. execution. By using pipes or other transports made available to
  181. the process as file descriptors supporting the read/write
  182. syscalls, it's possible to isolate those applications in
  183. their own address space using seccomp. Once seccomp is
  184. enabled via /proc/<pid>/seccomp, it cannot be disabled
  185. and the task is only allowed to execute a few safe syscalls
  186. defined by each seccomp mode.
  187. If unsure, say Y. Only embedded should say N here.
  188. config HOTPLUG_CPU
  189. bool "Support for hot-pluggable CPUs"
  190. depends on SPARC64 && SMP
  191. select HOTPLUG
  192. help
  193. Say Y here to experiment with turning CPUs off and on. CPUs
  194. can be controlled through /sys/devices/system/cpu/cpu#.
  195. Say N if you want to disable CPU hotplug.
  196. config GENERIC_HARDIRQS
  197. bool
  198. default y if SPARC64
  199. source "kernel/time/Kconfig"
  200. if SPARC64
  201. source "drivers/cpufreq/Kconfig"
  202. config US3_FREQ
  203. tristate "UltraSPARC-III CPU Frequency driver"
  204. depends on CPU_FREQ
  205. select CPU_FREQ_TABLE
  206. help
  207. This adds the CPUFreq driver for UltraSPARC-III processors.
  208. For details, take a look at <file:Documentation/cpu-freq>.
  209. If in doubt, say N.
  210. config US2E_FREQ
  211. tristate "UltraSPARC-IIe CPU Frequency driver"
  212. depends on CPU_FREQ
  213. select CPU_FREQ_TABLE
  214. help
  215. This adds the CPUFreq driver for UltraSPARC-IIe processors.
  216. For details, take a look at <file:Documentation/cpu-freq>.
  217. If in doubt, say N.
  218. endif
  219. config US3_MC
  220. tristate "UltraSPARC-III Memory Controller driver"
  221. depends on SPARC64
  222. default y
  223. help
  224. This adds a driver for the UltraSPARC-III memory controller.
  225. Loading this driver allows exact mnemonic strings to be
  226. printed in the event of a memory error, so that the faulty DIMM
  227. on the motherboard can be matched to the error.
  228. If in doubt, say Y, as this information can be very useful.
  229. # Global things across all Sun machines.
  230. config GENERIC_LOCKBREAK
  231. bool
  232. default y
  233. depends on SPARC64 && SMP && PREEMPT
  234. choice
  235. prompt "SPARC64 Huge TLB Page Size"
  236. depends on SPARC64 && HUGETLB_PAGE
  237. default HUGETLB_PAGE_SIZE_4MB
  238. config HUGETLB_PAGE_SIZE_4MB
  239. bool "4MB"
  240. config HUGETLB_PAGE_SIZE_512K
  241. bool "512K"
  242. config HUGETLB_PAGE_SIZE_64K
  243. depends on !SPARC64_PAGE_SIZE_64KB
  244. bool "64K"
  245. endchoice
  246. config NUMA
  247. bool "NUMA support"
  248. depends on SPARC64 && SMP
  249. config NODES_SHIFT
  250. int
  251. default "4"
  252. depends on NEED_MULTIPLE_NODES
  253. # Some NUMA nodes have memory ranges that span
  254. # other nodes. Even though a pfn is valid and
  255. # between a node's start and end pfns, it may not
  256. # reside on that node. See memmap_init_zone()
  257. # for details.
  258. config NODES_SPAN_OTHER_NODES
  259. def_bool y
  260. depends on NEED_MULTIPLE_NODES
  261. config ARCH_POPULATES_NODE_MAP
  262. def_bool y if SPARC64
  263. config ARCH_SELECT_MEMORY_MODEL
  264. def_bool y if SPARC64
  265. config ARCH_SPARSEMEM_ENABLE
  266. def_bool y if SPARC64
  267. select SPARSEMEM_VMEMMAP_ENABLE
  268. config ARCH_SPARSEMEM_DEFAULT
  269. def_bool y if SPARC64
  270. source "mm/Kconfig"
  271. config SCHED_SMT
  272. bool "SMT (Hyperthreading) scheduler support"
  273. depends on SPARC64 && SMP
  274. default y
  275. help
  276. SMT scheduler support improves the CPU scheduler's decision making
  277. when dealing with SPARC cpus at a cost of slightly increased overhead
  278. in some places. If unsure say N here.
  279. config SCHED_MC
  280. bool "Multi-core scheduler support"
  281. depends on SPARC64 && SMP
  282. default y
  283. help
  284. Multi-core scheduler support improves the CPU scheduler's decision
  285. making when dealing with multi-core CPU chips at a cost of slightly
  286. increased overhead in some places. If unsure say N here.
  287. if SPARC64
  288. source "kernel/Kconfig.preempt"
  289. endif
  290. config CMDLINE_BOOL
  291. bool "Default bootloader kernel arguments"
  292. depends on SPARC64
  293. config CMDLINE
  294. string "Initial kernel command string"
  295. depends on CMDLINE_BOOL
  296. default "console=ttyS0,9600 root=/dev/sda1"
  297. help
  298. Say Y here if you want to be able to pass default arguments to
  299. the kernel. This will be overridden by the bootloader, if you
  300. use one (such as SILO). This is most useful if you want to boot
  301. a kernel from TFTP, and want default options to be available
  302. with having them passed on the command line.
  303. NOTE: This option WILL override the PROM bootargs setting!
  304. config SUN_PM
  305. bool
  306. default y if SPARC32
  307. help
  308. Enable power management and CPU standby features on supported
  309. SPARC platforms.
  310. config SPARC_LED
  311. tristate "Sun4m LED driver"
  312. depends on SPARC32
  313. help
  314. This driver toggles the front-panel LED on sun4m systems
  315. in a user-specifiable manner. Its state can be probed
  316. by reading /proc/led and its blinking mode can be changed
  317. via writes to /proc/led
  318. config SERIAL_CONSOLE
  319. bool
  320. depends on SPARC32
  321. default y
  322. ---help---
  323. If you say Y here, it will be possible to use a serial port as the
  324. system console (the system console is the device which receives all
  325. kernel messages and warnings and which allows logins in single user
  326. mode). This could be useful if some terminal or printer is connected
  327. to that serial port.
  328. Even if you say Y here, the currently visible virtual console
  329. (/dev/tty0) will still be used as the system console by default, but
  330. you can alter that using a kernel command line option such as
  331. "console=ttyS1". (Try "man bootparam" or see the documentation of
  332. your boot loader (silo) about how to pass options to the kernel at
  333. boot time.)
  334. If you don't have a graphics card installed and you say Y here, the
  335. kernel will automatically use the first serial line, /dev/ttyS0, as
  336. system console.
  337. If unsure, say N.
  338. endmenu
  339. menu "Bus options (PCI etc.)"
  340. config SBUS
  341. bool
  342. default y
  343. config SBUSCHAR
  344. bool
  345. default y
  346. config SUN_LDOMS
  347. bool "Sun Logical Domains support"
  348. depends on SPARC64
  349. help
  350. Say Y here is you want to support virtual devices via
  351. Logical Domains.
  352. config PCI
  353. bool "Support for PCI and PS/2 keyboard/mouse"
  354. help
  355. Find out whether your system includes a PCI bus. PCI is the name of
  356. a bus system, i.e. the way the CPU talks to the other stuff inside
  357. your box. If you say Y here, the kernel will include drivers and
  358. infrastructure code to support PCI bus devices.
  359. CONFIG_PCI is needed for all JavaStation's (including MrCoffee),
  360. CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC.
  361. All of these platforms are extremely obscure, so say N if unsure.
  362. config PCI_DOMAINS
  363. def_bool PCI if SPARC64
  364. config PCI_SYSCALL
  365. def_bool PCI
  366. source "drivers/pci/Kconfig"
  367. source "drivers/pcmcia/Kconfig"
  368. config SUN_OPENPROMFS
  369. tristate "Openprom tree appears in /proc/openprom"
  370. help
  371. If you say Y, the OpenPROM device tree will be available as a
  372. virtual file system, which you can mount to /proc/openprom by "mount
  373. -t openpromfs none /proc/openprom".
  374. To compile the /proc/openprom support as a module, choose M here: the
  375. module will be called openpromfs.
  376. Only choose N if you know in advance that you will not need to modify
  377. OpenPROM settings on the running system.
  378. # Makefile helpers
  379. config SPARC32_PCI
  380. bool
  381. default y
  382. depends on SPARC32 && PCI
  383. config SPARC64_PCI
  384. bool
  385. default y
  386. depends on SPARC64 && PCI
  387. endmenu
  388. menu "Executable file formats"
  389. source "fs/Kconfig.binfmt"
  390. config COMPAT
  391. bool
  392. depends on SPARC64
  393. default y
  394. select COMPAT_BINFMT_ELF
  395. config SYSVIPC_COMPAT
  396. bool
  397. depends on COMPAT && SYSVIPC
  398. default y
  399. endmenu
  400. source "net/Kconfig"
  401. source "drivers/Kconfig"
  402. source "drivers/sbus/char/Kconfig"
  403. source "fs/Kconfig"
  404. source "arch/sparc/Kconfig.debug"
  405. source "security/Kconfig"
  406. source "crypto/Kconfig"
  407. source "lib/Kconfig"