Kconfig 13 KB

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