Kconfig 13 KB

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