Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. config 64BIT
  2. bool "64-bit kernel" if "$(ARCH)" = "sparc"
  3. default "$(ARCH)" = "sparc64"
  4. help
  5. SPARC is a family of RISC microprocessors designed and marketed by
  6. Sun Microsystems, incorporated. They are very widely found in Sun
  7. workstations and clones.
  8. Say yes to build a 64-bit kernel - formerly known as sparc64
  9. Say no to build a 32-bit kernel - formerly known as sparc
  10. config SPARC
  11. bool
  12. default y
  13. select ARCH_MIGHT_HAVE_PC_PARPORT if SPARC64 && PCI
  14. select ARCH_MIGHT_HAVE_PC_SERIO
  15. select OF
  16. select OF_PROMTREE
  17. select HAVE_IDE
  18. select HAVE_OPROFILE
  19. select HAVE_ARCH_KGDB if !SMP || SPARC64
  20. select HAVE_ARCH_TRACEHOOK
  21. select HAVE_EXIT_THREAD
  22. select SYSCTL_EXCEPTION_TRACE
  23. select RTC_CLASS
  24. select RTC_DRV_M48T59
  25. select RTC_SYSTOHC
  26. select HAVE_ARCH_JUMP_LABEL if SPARC64
  27. select GENERIC_IRQ_SHOW
  28. select ARCH_WANT_IPC_PARSE_VERSION
  29. select GENERIC_PCI_IOMAP
  30. select HAVE_NMI_WATCHDOG if SPARC64
  31. select HAVE_CBPF_JIT if SPARC32
  32. select HAVE_EBPF_JIT if SPARC64
  33. select HAVE_DEBUG_BUGVERBOSE
  34. select GENERIC_SMP_IDLE_THREAD
  35. select GENERIC_CLOCKEVENTS
  36. select GENERIC_STRNCPY_FROM_USER
  37. select GENERIC_STRNLEN_USER
  38. select MODULES_USE_ELF_RELA
  39. select ODD_RT_SIGACTION
  40. select OLD_SIGSUSPEND
  41. select ARCH_HAS_SG_CHAIN
  42. select CPU_NO_EFFICIENT_FFS
  43. select LOCKDEP_SMALL if LOCKDEP
  44. select NEED_DMA_MAP_STATE
  45. select NEED_SG_DMA_LENGTH
  46. select HAVE_MEMBLOCK
  47. select NO_BOOTMEM
  48. config SPARC32
  49. def_bool !64BIT
  50. select ARCH_HAS_SYNC_DMA_FOR_CPU
  51. select DMA_NONCOHERENT_OPS
  52. select GENERIC_ATOMIC64
  53. select CLZ_TAB
  54. select HAVE_UID16
  55. select OLD_SIGACTION
  56. config SPARC64
  57. def_bool 64BIT
  58. select HAVE_FUNCTION_TRACER
  59. select HAVE_FUNCTION_GRAPH_TRACER
  60. select HAVE_KRETPROBES
  61. select HAVE_KPROBES
  62. select HAVE_RCU_TABLE_FREE if SMP
  63. select HAVE_MEMBLOCK_NODE_MAP
  64. select HAVE_ARCH_TRANSPARENT_HUGEPAGE
  65. select HAVE_DYNAMIC_FTRACE
  66. select HAVE_FTRACE_MCOUNT_RECORD
  67. select HAVE_SYSCALL_TRACEPOINTS
  68. select HAVE_CONTEXT_TRACKING
  69. select HAVE_DEBUG_KMEMLEAK
  70. select IOMMU_HELPER
  71. select SPARSE_IRQ
  72. select RTC_DRV_CMOS
  73. select RTC_DRV_BQ4802
  74. select RTC_DRV_SUN4V
  75. select RTC_DRV_STARFIRE
  76. select HAVE_PERF_EVENTS
  77. select PERF_USE_VMALLOC
  78. select IRQ_PREFLOW_FASTEOI
  79. select ARCH_HAVE_NMI_SAFE_CMPXCHG
  80. select HAVE_C_RECORDMCOUNT
  81. select HAVE_ARCH_AUDITSYSCALL
  82. select ARCH_SUPPORTS_ATOMIC_RMW
  83. select HAVE_NMI
  84. select HAVE_REGS_AND_STACK_ACCESS_API
  85. select ARCH_USE_QUEUED_RWLOCKS
  86. select ARCH_USE_QUEUED_SPINLOCKS
  87. select GENERIC_TIME_VSYSCALL
  88. select ARCH_CLOCKSOURCE_DATA
  89. select ARCH_HAS_PTE_SPECIAL
  90. config ARCH_DEFCONFIG
  91. string
  92. default "arch/sparc/configs/sparc32_defconfig" if SPARC32
  93. default "arch/sparc/configs/sparc64_defconfig" if SPARC64
  94. config ARCH_PROC_KCORE_TEXT
  95. def_bool y
  96. config CPU_BIG_ENDIAN
  97. def_bool y
  98. config ARCH_ATU
  99. bool
  100. default y if SPARC64
  101. config STACKTRACE_SUPPORT
  102. bool
  103. default y if SPARC64
  104. config LOCKDEP_SUPPORT
  105. bool
  106. default y if SPARC64
  107. config ARCH_HIBERNATION_POSSIBLE
  108. def_bool y if SPARC64
  109. config AUDIT_ARCH
  110. bool
  111. default y
  112. config HAVE_SETUP_PER_CPU_AREA
  113. def_bool y if SPARC64
  114. config NEED_PER_CPU_EMBED_FIRST_CHUNK
  115. def_bool y if SPARC64
  116. config NEED_PER_CPU_PAGE_FIRST_CHUNK
  117. def_bool y if SPARC64
  118. config MMU
  119. bool
  120. default y
  121. config HIGHMEM
  122. bool
  123. default y if SPARC32
  124. config ZONE_DMA
  125. bool
  126. default y if SPARC32
  127. config GENERIC_ISA_DMA
  128. bool
  129. default y if SPARC32
  130. config ARCH_SUPPORTS_DEBUG_PAGEALLOC
  131. def_bool y if SPARC64
  132. config PGTABLE_LEVELS
  133. default 4 if 64BIT
  134. default 3
  135. config ARCH_SUPPORTS_UPROBES
  136. def_bool y if SPARC64
  137. menu "Processor type and features"
  138. config SMP
  139. bool "Symmetric multi-processing support"
  140. ---help---
  141. This enables support for systems with more than one CPU. If you have
  142. a system with only one CPU, say N. If you have a system with more
  143. than one CPU, say Y.
  144. If you say N here, the kernel will run on uni- and multiprocessor
  145. machines, but will use only one CPU of a multiprocessor machine. If
  146. you say Y here, the kernel will run on many, but not all,
  147. uniprocessor machines. On a uniprocessor machine, the kernel
  148. will run faster if you say N here.
  149. People using multiprocessor machines who say Y here should also say
  150. Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
  151. Management" code will be disabled if you say Y here.
  152. See also <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO
  153. available at <http://www.tldp.org/docs.html#howto>.
  154. If you don't know what to do here, say N.
  155. config NR_CPUS
  156. int "Maximum number of CPUs"
  157. depends on SMP
  158. range 2 32 if SPARC32
  159. range 2 4096 if SPARC64
  160. default 32 if SPARC32
  161. default 4096 if SPARC64
  162. source kernel/Kconfig.hz
  163. config RWSEM_GENERIC_SPINLOCK
  164. bool
  165. default y if SPARC32
  166. config RWSEM_XCHGADD_ALGORITHM
  167. bool
  168. default y if SPARC64
  169. config GENERIC_HWEIGHT
  170. bool
  171. default y
  172. config GENERIC_CALIBRATE_DELAY
  173. bool
  174. default y
  175. config ARCH_MAY_HAVE_PC_FDC
  176. bool
  177. default y
  178. config EMULATED_CMPXCHG
  179. bool
  180. default y if SPARC32
  181. help
  182. Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
  183. is emulated, and therefore it is not completely atomic.
  184. # Makefile helpers
  185. config SPARC32_SMP
  186. bool
  187. default y
  188. depends on SPARC32 && SMP
  189. config SPARC64_SMP
  190. bool
  191. default y
  192. depends on SPARC64 && SMP
  193. config EARLYFB
  194. bool "Support for early boot text console"
  195. default y
  196. depends on SPARC64
  197. help
  198. Say Y here to enable a faster early framebuffer boot console.
  199. config SECCOMP
  200. bool "Enable seccomp to safely compute untrusted bytecode"
  201. depends on SPARC64 && PROC_FS
  202. default y
  203. help
  204. This kernel feature is useful for number crunching applications
  205. that may need to compute untrusted bytecode during their
  206. execution. By using pipes or other transports made available to
  207. the process as file descriptors supporting the read/write
  208. syscalls, it's possible to isolate those applications in
  209. their own address space using seccomp. Once seccomp is
  210. enabled via /proc/<pid>/seccomp, it cannot be disabled
  211. and the task is only allowed to execute a few safe syscalls
  212. defined by each seccomp mode.
  213. If unsure, say Y. Only embedded should say N here.
  214. config HOTPLUG_CPU
  215. bool "Support for hot-pluggable CPUs"
  216. depends on SPARC64 && SMP
  217. help
  218. Say Y here to experiment with turning CPUs off and on. CPUs
  219. can be controlled through /sys/devices/system/cpu/cpu#.
  220. Say N if you want to disable CPU hotplug.
  221. if SPARC64
  222. source "drivers/cpufreq/Kconfig"
  223. endif
  224. config US3_MC
  225. tristate "UltraSPARC-III Memory Controller driver"
  226. depends on SPARC64
  227. default y
  228. help
  229. This adds a driver for the UltraSPARC-III memory controller.
  230. Loading this driver allows exact mnemonic strings to be
  231. printed in the event of a memory error, so that the faulty DIMM
  232. on the motherboard can be matched to the error.
  233. If in doubt, say Y, as this information can be very useful.
  234. # Global things across all Sun machines.
  235. config GENERIC_LOCKBREAK
  236. bool
  237. default y
  238. depends on SPARC64 && SMP && PREEMPT
  239. config NUMA
  240. bool "NUMA support"
  241. depends on SPARC64 && SMP
  242. config NODES_SHIFT
  243. int "Maximum NUMA Nodes (as a power of 2)"
  244. range 4 5 if SPARC64
  245. default "5"
  246. depends on NEED_MULTIPLE_NODES
  247. help
  248. Specify the maximum number of NUMA Nodes available on the target
  249. system. Increases memory reserved to accommodate various tables.
  250. # Some NUMA nodes have memory ranges that span
  251. # other nodes. Even though a pfn is valid and
  252. # between a node's start and end pfns, it may not
  253. # reside on that node. See memmap_init_zone()
  254. # for details.
  255. config NODES_SPAN_OTHER_NODES
  256. def_bool y
  257. depends on NEED_MULTIPLE_NODES
  258. config ARCH_SELECT_MEMORY_MODEL
  259. def_bool y if SPARC64
  260. config ARCH_SPARSEMEM_ENABLE
  261. def_bool y if SPARC64
  262. select SPARSEMEM_VMEMMAP_ENABLE
  263. config ARCH_SPARSEMEM_DEFAULT
  264. def_bool y if SPARC64
  265. config FORCE_MAX_ZONEORDER
  266. int "Maximum zone order"
  267. default "13"
  268. help
  269. The kernel memory allocator divides physically contiguous memory
  270. blocks into "zones", where each zone is a power of two number of
  271. pages. This option selects the largest power of two that the kernel
  272. keeps in the memory allocator. If you need to allocate very large
  273. blocks of physically contiguous memory, then you may need to
  274. increase this value.
  275. This config option is actually maximum order plus one. For example,
  276. a value of 13 means that the largest free memory block is 2^12 pages.
  277. if SPARC64
  278. source "kernel/power/Kconfig"
  279. endif
  280. config SCHED_SMT
  281. bool "SMT (Hyperthreading) scheduler support"
  282. depends on SPARC64 && SMP
  283. default y
  284. help
  285. SMT scheduler support improves the CPU scheduler's decision making
  286. when dealing with SPARC cpus at a cost of slightly increased overhead
  287. in some places. If unsure say N here.
  288. config SCHED_MC
  289. bool "Multi-core scheduler support"
  290. depends on SPARC64 && SMP
  291. default y
  292. help
  293. Multi-core scheduler support improves the CPU scheduler's decision
  294. making when dealing with multi-core CPU chips at a cost of slightly
  295. increased overhead in some places. If unsure say N here.
  296. config CMDLINE_BOOL
  297. bool "Default bootloader kernel arguments"
  298. depends on SPARC64
  299. config CMDLINE
  300. string "Initial kernel command string"
  301. depends on CMDLINE_BOOL
  302. default "console=ttyS0,9600 root=/dev/sda1"
  303. help
  304. Say Y here if you want to be able to pass default arguments to
  305. the kernel. This will be overridden by the bootloader, if you
  306. use one (such as SILO). This is most useful if you want to boot
  307. a kernel from TFTP, and want default options to be available
  308. with having them passed on the command line.
  309. NOTE: This option WILL override the PROM bootargs setting!
  310. config SUN_PM
  311. bool
  312. default y if SPARC32
  313. help
  314. Enable power management and CPU standby features on supported
  315. SPARC platforms.
  316. config SPARC_LED
  317. tristate "Sun4m LED driver"
  318. depends on SPARC32
  319. help
  320. This driver toggles the front-panel LED on sun4m systems
  321. in a user-specifiable manner. Its state can be probed
  322. by reading /proc/led and its blinking mode can be changed
  323. via writes to /proc/led
  324. config SERIAL_CONSOLE
  325. bool
  326. depends on SPARC32
  327. default y
  328. ---help---
  329. If you say Y here, it will be possible to use a serial port as the
  330. system console (the system console is the device which receives all
  331. kernel messages and warnings and which allows logins in single user
  332. mode). This could be useful if some terminal or printer is connected
  333. to that serial port.
  334. Even if you say Y here, the currently visible virtual console
  335. (/dev/tty0) will still be used as the system console by default, but
  336. you can alter that using a kernel command line option such as
  337. "console=ttyS1". (Try "man bootparam" or see the documentation of
  338. your boot loader (silo) about how to pass options to the kernel at
  339. boot time.)
  340. If you don't have a graphics card installed and you say Y here, the
  341. kernel will automatically use the first serial line, /dev/ttyS0, as
  342. system console.
  343. If unsure, say N.
  344. config SPARC_LEON
  345. bool "Sparc Leon processor family"
  346. depends on SPARC32
  347. select USB_EHCI_BIG_ENDIAN_MMIO
  348. select USB_EHCI_BIG_ENDIAN_DESC
  349. select USB_UHCI_BIG_ENDIAN_MMIO
  350. select USB_UHCI_BIG_ENDIAN_DESC
  351. ---help---
  352. If you say Y here if you are running on a SPARC-LEON processor.
  353. The LEON processor is a synthesizable VHDL model of the
  354. SPARC-v8 standard. LEON is part of the GRLIB collection of
  355. IP cores that are distributed under GPL. GRLIB can be downloaded
  356. from www.gaisler.com. You can download a sparc-linux cross-compilation
  357. toolchain at www.gaisler.com.
  358. if SPARC_LEON
  359. menu "U-Boot options"
  360. config UBOOT_LOAD_ADDR
  361. hex "uImage Load Address"
  362. default 0x40004000
  363. ---help---
  364. U-Boot kernel load address, the address in physical address space
  365. where u-boot will place the Linux kernel before booting it.
  366. This address is normally the base address of main memory + 0x4000.
  367. config UBOOT_FLASH_ADDR
  368. hex "uImage.o Load Address"
  369. default 0x00080000
  370. ---help---
  371. Optional setting only affecting the uImage.o ELF-image used to
  372. download the uImage file to the target using a ELF-loader other than
  373. U-Boot. It may for example be used to download an uImage to FLASH with
  374. the GRMON utility before even starting u-boot.
  375. config UBOOT_ENTRY_ADDR
  376. hex "uImage Entry Address"
  377. default 0xf0004000
  378. ---help---
  379. Do not change this unless you know what you're doing. This is
  380. hardcoded by the SPARC32 and LEON port.
  381. This is the virtual address u-boot jumps to when booting the Linux
  382. Kernel.
  383. endmenu
  384. endif
  385. endmenu
  386. menu "Bus options (PCI etc.)"
  387. config SBUS
  388. bool
  389. default y
  390. config SBUSCHAR
  391. bool
  392. default y
  393. config SUN_LDOMS
  394. bool "Sun Logical Domains support"
  395. depends on SPARC64
  396. help
  397. Say Y here is you want to support virtual devices via
  398. Logical Domains.
  399. config PCI
  400. bool "Support for PCI and PS/2 keyboard/mouse"
  401. help
  402. Find out whether your system includes a PCI bus. PCI is the name of
  403. a bus system, i.e. the way the CPU talks to the other stuff inside
  404. your box. If you say Y here, the kernel will include drivers and
  405. infrastructure code to support PCI bus devices.
  406. CONFIG_PCI is needed for all JavaStation's (including MrCoffee),
  407. CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC.
  408. All of these platforms are extremely obscure, so say N if unsure.
  409. config PCI_DOMAINS
  410. def_bool PCI if SPARC64
  411. config PCI_SYSCALL
  412. def_bool PCI
  413. config PCIC_PCI
  414. bool
  415. depends on PCI && SPARC32 && !SPARC_LEON
  416. default y
  417. config LEON_PCI
  418. bool
  419. depends on PCI && SPARC_LEON
  420. default y
  421. config SPARC_GRPCI1
  422. bool "GRPCI Host Bridge Support"
  423. depends on LEON_PCI
  424. default y
  425. help
  426. Say Y here to include the GRPCI Host Bridge Driver. The GRPCI
  427. PCI host controller is typically found in GRLIB SPARC32/LEON
  428. systems. The driver has one property (all_pci_errors) controlled
  429. from the bootloader that makes the GRPCI to generate interrupts
  430. on detected PCI Parity and System errors.
  431. config SPARC_GRPCI2
  432. bool "GRPCI2 Host Bridge Support"
  433. depends on LEON_PCI
  434. default y
  435. help
  436. Say Y here to include the GRPCI2 Host Bridge Driver.
  437. source "drivers/pci/Kconfig"
  438. source "drivers/pcmcia/Kconfig"
  439. config SUN_OPENPROMFS
  440. tristate "Openprom tree appears in /proc/openprom"
  441. help
  442. If you say Y, the OpenPROM device tree will be available as a
  443. virtual file system, which you can mount to /proc/openprom by "mount
  444. -t openpromfs none /proc/openprom".
  445. To compile the /proc/openprom support as a module, choose M here: the
  446. module will be called openpromfs.
  447. Only choose N if you know in advance that you will not need to modify
  448. OpenPROM settings on the running system.
  449. # Makefile helpers
  450. config SPARC64_PCI
  451. bool
  452. default y
  453. depends on SPARC64 && PCI
  454. config SPARC64_PCI_MSI
  455. bool
  456. default y
  457. depends on SPARC64_PCI && PCI_MSI
  458. endmenu
  459. config COMPAT
  460. bool
  461. depends on SPARC64
  462. default y
  463. select COMPAT_BINFMT_ELF if BINFMT_ELF
  464. select HAVE_UID16
  465. select ARCH_WANT_OLD_COMPAT_IPC
  466. select COMPAT_OLD_SIGACTION
  467. config SYSVIPC_COMPAT
  468. bool
  469. depends on COMPAT && SYSVIPC
  470. default y
  471. source "drivers/sbus/char/Kconfig"