Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config 64BIT
  3. bool "64-bit kernel" if "$(ARCH)" = "sparc"
  4. default "$(ARCH)" = "sparc64"
  5. help
  6. SPARC is a family of RISC microprocessors designed and marketed by
  7. Sun Microsystems, incorporated. They are very widely found in Sun
  8. workstations and clones.
  9. Say yes to build a 64-bit kernel - formerly known as sparc64
  10. Say no to build a 32-bit kernel - formerly known as sparc
  11. config SPARC
  12. bool
  13. default y
  14. select ARCH_MIGHT_HAVE_PC_PARPORT if SPARC64 && PCI
  15. select ARCH_MIGHT_HAVE_PC_SERIO
  16. select DMA_OPS
  17. select OF
  18. select OF_PROMTREE
  19. select HAVE_ASM_MODVERSIONS
  20. select HAVE_ARCH_KGDB if !SMP || SPARC64
  21. select HAVE_ARCH_TRACEHOOK
  22. select HAVE_ARCH_SECCOMP if SPARC64
  23. select HAVE_EXIT_THREAD
  24. select HAVE_PCI
  25. select SYSCTL_EXCEPTION_TRACE
  26. select RTC_CLASS
  27. select RTC_DRV_M48T59
  28. select RTC_SYSTOHC
  29. select HAVE_ARCH_JUMP_LABEL if SPARC64
  30. select GENERIC_IRQ_SHOW
  31. select ARCH_WANT_IPC_PARSE_VERSION
  32. select GENERIC_PCI_IOMAP
  33. select HAVE_NMI_WATCHDOG if SPARC64
  34. select HAVE_CBPF_JIT if SPARC32
  35. select HAVE_EBPF_JIT if SPARC64
  36. select HAVE_DEBUG_BUGVERBOSE
  37. select GENERIC_SMP_IDLE_THREAD
  38. select MODULES_USE_ELF_RELA
  39. select PCI_SYSCALL if PCI
  40. select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
  41. select ODD_RT_SIGACTION
  42. select OLD_SIGSUSPEND
  43. select CPU_NO_EFFICIENT_FFS
  44. select LOCKDEP_SMALL if LOCKDEP
  45. select NEED_DMA_MAP_STATE
  46. select NEED_SG_DMA_LENGTH
  47. select TRACE_IRQFLAGS_SUPPORT
  48. config SPARC32
  49. def_bool !64BIT
  50. select ARCH_32BIT_OFF_T
  51. select ARCH_HAS_CPU_FINALIZE_INIT if !SMP
  52. select ARCH_HAS_SYNC_DMA_FOR_CPU
  53. select CLZ_TAB
  54. select DMA_DIRECT_REMAP
  55. select GENERIC_ATOMIC64
  56. select HAVE_UID16
  57. select LOCK_MM_AND_FIND_VMA
  58. select OLD_SIGACTION
  59. select ZONE_DMA
  60. config SPARC64
  61. def_bool 64BIT
  62. select ALTERNATE_USER_ADDRESS_SPACE
  63. select HAVE_FUNCTION_TRACER
  64. select HAVE_FUNCTION_GRAPH_TRACER
  65. select HAVE_KRETPROBES
  66. select HAVE_KPROBES
  67. select MMU_GATHER_RCU_TABLE_FREE if SMP
  68. select MMU_GATHER_MERGE_VMAS
  69. select MMU_GATHER_NO_FLUSH_CACHE
  70. select HAVE_ARCH_TRANSPARENT_HUGEPAGE
  71. select HAVE_DYNAMIC_FTRACE
  72. select HAVE_FTRACE_MCOUNT_RECORD
  73. select HAVE_SYSCALL_TRACEPOINTS
  74. select HAVE_CONTEXT_TRACKING_USER
  75. select HAVE_TIF_NOHZ
  76. select HAVE_DEBUG_KMEMLEAK
  77. select IOMMU_HELPER
  78. select SPARSE_IRQ
  79. select RTC_DRV_CMOS
  80. select RTC_DRV_BQ4802
  81. select RTC_DRV_SUN4V
  82. select RTC_DRV_STARFIRE
  83. select HAVE_PERF_EVENTS
  84. select PERF_USE_VMALLOC
  85. select ARCH_HAVE_NMI_SAFE_CMPXCHG
  86. select HAVE_C_RECORDMCOUNT
  87. select HAVE_ARCH_AUDITSYSCALL
  88. select ARCH_SUPPORTS_ATOMIC_RMW
  89. select ARCH_SUPPORTS_DEBUG_PAGEALLOC
  90. select HAVE_NMI
  91. select HAVE_REGS_AND_STACK_ACCESS_API
  92. select ARCH_USE_QUEUED_RWLOCKS
  93. select ARCH_USE_QUEUED_SPINLOCKS
  94. select GENERIC_TIME_VSYSCALL
  95. select ARCH_CLOCKSOURCE_DATA
  96. select ARCH_HAS_PTE_SPECIAL
  97. select PCI_DOMAINS if PCI
  98. select ARCH_HAS_GIGANTIC_PAGE
  99. select HAVE_SOFTIRQ_ON_OWN_STACK
  100. select HAVE_SETUP_PER_CPU_AREA
  101. select NEED_PER_CPU_EMBED_FIRST_CHUNK
  102. select NEED_PER_CPU_PAGE_FIRST_CHUNK
  103. config ARCH_PROC_KCORE_TEXT
  104. def_bool y
  105. config CPU_BIG_ENDIAN
  106. def_bool y
  107. config ARCH_ATU
  108. bool
  109. default y if SPARC64
  110. config STACKTRACE_SUPPORT
  111. bool
  112. default y if SPARC64
  113. config LOCKDEP_SUPPORT
  114. bool
  115. default y if SPARC64
  116. config ARCH_HIBERNATION_POSSIBLE
  117. def_bool y if SPARC64
  118. config AUDIT_ARCH
  119. bool
  120. default y
  121. config MMU
  122. bool
  123. default y
  124. config HIGHMEM
  125. bool
  126. default y if SPARC32
  127. select KMAP_LOCAL
  128. config GENERIC_ISA_DMA
  129. bool
  130. default y if SPARC32
  131. config PGTABLE_LEVELS
  132. default 4 if 64BIT
  133. default 3
  134. config ARCH_SUPPORTS_UPROBES
  135. def_bool y if SPARC64
  136. menu "Processor type and features"
  137. config SMP
  138. bool "Symmetric multi-processing support"
  139. help
  140. This enables support for systems with more than one CPU. If you have
  141. a system with only one CPU, say N. If you have a system with more
  142. than one CPU, say Y.
  143. If you say N here, the kernel will run on uni- and multiprocessor
  144. machines, but will use only one CPU of a multiprocessor machine. If
  145. you say Y here, the kernel will run on many, but not all,
  146. uniprocessor machines. On a uniprocessor machine, the kernel
  147. will run faster if you say N here.
  148. People using multiprocessor machines who say Y here should also say
  149. Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
  150. Management" code will be disabled if you say Y here.
  151. See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO
  152. available at <https://www.tldp.org/docs.html#howto>.
  153. If you don't know what to do here, say N.
  154. config NR_CPUS
  155. int "Maximum number of CPUs"
  156. depends on SMP
  157. range 2 32 if SPARC32
  158. range 2 4096 if SPARC64
  159. default 32 if SPARC32
  160. default 4096 if SPARC64
  161. source "kernel/Kconfig.hz"
  162. config GENERIC_HWEIGHT
  163. bool
  164. default y
  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. config HOTPLUG_CPU
  193. bool "Support for hot-pluggable CPUs"
  194. depends on SPARC64 && SMP
  195. help
  196. Say Y here to experiment with turning CPUs off and on. CPUs
  197. can be controlled through /sys/devices/system/cpu/cpu#.
  198. Say N if you want to disable CPU hotplug.
  199. if SPARC64
  200. source "drivers/cpufreq/Kconfig"
  201. endif
  202. config US3_MC
  203. tristate "UltraSPARC-III Memory Controller driver"
  204. depends on SPARC64
  205. default y
  206. help
  207. This adds a driver for the UltraSPARC-III memory controller.
  208. Loading this driver allows exact mnemonic strings to be
  209. printed in the event of a memory error, so that the faulty DIMM
  210. on the motherboard can be matched to the error.
  211. If in doubt, say Y, as this information can be very useful.
  212. # Global things across all Sun machines.
  213. config GENERIC_LOCKBREAK
  214. bool
  215. default y
  216. depends on SPARC64 && SMP && PREEMPTION
  217. config NUMA
  218. bool "NUMA support"
  219. depends on SPARC64 && SMP
  220. config NODES_SHIFT
  221. int "Maximum NUMA Nodes (as a power of 2)"
  222. range 4 5 if SPARC64
  223. default "5"
  224. depends on NUMA
  225. help
  226. Specify the maximum number of NUMA Nodes available on the target
  227. system. Increases memory reserved to accommodate various tables.
  228. config ARCH_SPARSEMEM_ENABLE
  229. def_bool y if SPARC64
  230. select SPARSEMEM_VMEMMAP_ENABLE
  231. config ARCH_SPARSEMEM_DEFAULT
  232. def_bool y if SPARC64
  233. config ARCH_FORCE_MAX_ORDER
  234. int "Maximum zone order"
  235. default "13"
  236. help
  237. The kernel memory allocator divides physically contiguous memory
  238. blocks into "zones", where each zone is a power of two number of
  239. pages. This option selects the largest power of two that the kernel
  240. keeps in the memory allocator. If you need to allocate very large
  241. blocks of physically contiguous memory, then you may need to
  242. increase this value.
  243. This config option is actually maximum order plus one. For example,
  244. a value of 13 means that the largest free memory block is 2^12 pages.
  245. if SPARC64 || COMPILE_TEST
  246. source "kernel/power/Kconfig"
  247. endif
  248. config SCHED_SMT
  249. bool "SMT (Hyperthreading) scheduler support"
  250. depends on SPARC64 && SMP
  251. default y
  252. help
  253. SMT scheduler support improves the CPU scheduler's decision making
  254. when dealing with SPARC cpus at a cost of slightly increased overhead
  255. in some places. If unsure say N here.
  256. config SCHED_MC
  257. bool "Multi-core scheduler support"
  258. depends on SPARC64 && SMP
  259. default y
  260. help
  261. Multi-core scheduler support improves the CPU scheduler's decision
  262. making when dealing with multi-core CPU chips at a cost of slightly
  263. increased overhead in some places. If unsure say N here.
  264. config CMDLINE_BOOL
  265. bool "Default bootloader kernel arguments"
  266. depends on SPARC64
  267. config CMDLINE
  268. string "Initial kernel command string"
  269. depends on CMDLINE_BOOL
  270. default "console=ttyS0,9600 root=/dev/sda1"
  271. help
  272. Say Y here if you want to be able to pass default arguments to
  273. the kernel. This will be overridden by the bootloader, if you
  274. use one (such as SILO). This is most useful if you want to boot
  275. a kernel from TFTP, and want default options to be available
  276. with having them passed on the command line.
  277. NOTE: This option WILL override the PROM bootargs setting!
  278. config SUN_PM
  279. bool
  280. default y if SPARC32
  281. help
  282. Enable power management and CPU standby features on supported
  283. SPARC platforms.
  284. config SPARC_LED
  285. tristate "Sun4m LED driver"
  286. depends on SPARC32
  287. help
  288. This driver toggles the front-panel LED on sun4m systems
  289. in a user-specifiable manner. Its state can be probed
  290. by reading /proc/led and its blinking mode can be changed
  291. via writes to /proc/led
  292. config SERIAL_CONSOLE
  293. bool
  294. depends on SPARC32
  295. default y
  296. help
  297. If you say Y here, it will be possible to use a serial port as the
  298. system console (the system console is the device which receives all
  299. kernel messages and warnings and which allows logins in single user
  300. mode). This could be useful if some terminal or printer is connected
  301. to that serial port.
  302. Even if you say Y here, the currently visible virtual console
  303. (/dev/tty0) will still be used as the system console by default, but
  304. you can alter that using a kernel command line option such as
  305. "console=ttyS1". (Try "man bootparam" or see the documentation of
  306. your boot loader (silo) about how to pass options to the kernel at
  307. boot time.)
  308. If you don't have a graphics card installed and you say Y here, the
  309. kernel will automatically use the first serial line, /dev/ttyS0, as
  310. system console.
  311. If unsure, say N.
  312. config SPARC_LEON
  313. bool "Sparc Leon processor family"
  314. depends on SPARC32
  315. select USB_EHCI_BIG_ENDIAN_MMIO
  316. select USB_EHCI_BIG_ENDIAN_DESC
  317. select USB_UHCI_BIG_ENDIAN_MMIO
  318. select USB_UHCI_BIG_ENDIAN_DESC
  319. help
  320. If you say Y here if you are running on a SPARC-LEON processor.
  321. The LEON processor is a synthesizable VHDL model of the
  322. SPARC-v8 standard. LEON is part of the GRLIB collection of
  323. IP cores that are distributed under GPL. GRLIB can be downloaded
  324. from www.gaisler.com. You can download a sparc-linux cross-compilation
  325. toolchain at www.gaisler.com.
  326. if SPARC_LEON
  327. menu "U-Boot options"
  328. config UBOOT_LOAD_ADDR
  329. hex "uImage Load Address"
  330. default 0x40004000
  331. help
  332. U-Boot kernel load address, the address in physical address space
  333. where u-boot will place the Linux kernel before booting it.
  334. This address is normally the base address of main memory + 0x4000.
  335. config UBOOT_FLASH_ADDR
  336. hex "uImage.o Load Address"
  337. default 0x00080000
  338. help
  339. Optional setting only affecting the uImage.o ELF-image used to
  340. download the uImage file to the target using a ELF-loader other than
  341. U-Boot. It may for example be used to download an uImage to FLASH with
  342. the GRMON utility before even starting u-boot.
  343. config UBOOT_ENTRY_ADDR
  344. hex "uImage Entry Address"
  345. default 0xf0004000
  346. help
  347. Do not change this unless you know what you're doing. This is
  348. hardcoded by the SPARC32 and LEON port.
  349. This is the virtual address u-boot jumps to when booting the Linux
  350. Kernel.
  351. endmenu
  352. endif
  353. endmenu
  354. menu "Bus options (PCI etc.)"
  355. config SBUS
  356. bool
  357. default y
  358. config SBUSCHAR
  359. bool
  360. default y
  361. config SUN_LDOMS
  362. bool "Sun Logical Domains support"
  363. depends on SPARC64
  364. help
  365. Say Y here is you want to support virtual devices via
  366. Logical Domains.
  367. config PCIC_PCI
  368. bool
  369. depends on PCI && SPARC32 && !SPARC_LEON
  370. default y
  371. config LEON_PCI
  372. bool
  373. depends on PCI && SPARC_LEON
  374. default y
  375. config SPARC_GRPCI1
  376. bool "GRPCI Host Bridge Support"
  377. depends on LEON_PCI
  378. default y
  379. help
  380. Say Y here to include the GRPCI Host Bridge Driver. The GRPCI
  381. PCI host controller is typically found in GRLIB SPARC32/LEON
  382. systems. The driver has one property (all_pci_errors) controlled
  383. from the bootloader that makes the GRPCI to generate interrupts
  384. on detected PCI Parity and System errors.
  385. config SPARC_GRPCI2
  386. bool "GRPCI2 Host Bridge Support"
  387. depends on LEON_PCI
  388. default y
  389. help
  390. Say Y here to include the GRPCI2 Host Bridge Driver.
  391. config SUN_OPENPROMFS
  392. tristate "Openprom tree appears in /proc/openprom"
  393. help
  394. If you say Y, the OpenPROM device tree will be available as a
  395. virtual file system, which you can mount to /proc/openprom by "mount
  396. -t openpromfs none /proc/openprom".
  397. To compile the /proc/openprom support as a module, choose M here: the
  398. module will be called openpromfs.
  399. Only choose N if you know in advance that you will not need to modify
  400. OpenPROM settings on the running system.
  401. # Makefile helpers
  402. config SPARC64_PCI
  403. bool
  404. default y
  405. depends on SPARC64 && PCI
  406. config SPARC64_PCI_MSI
  407. bool
  408. default y
  409. depends on SPARC64_PCI && PCI_MSI
  410. endmenu
  411. config COMPAT
  412. bool
  413. depends on SPARC64
  414. default y
  415. select HAVE_UID16
  416. select ARCH_WANT_OLD_COMPAT_IPC
  417. select COMPAT_OLD_SIGACTION
  418. source "drivers/sbus/char/Kconfig"