Kconfig 13 KB

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