Kconfig 13 KB

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