Kconfig 13 KB

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