Kconfig 13 KB

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