Kconfig 13 KB

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