Kconfig 12 KB

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