Kconfig 12 KB

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