Kconfig 13 KB

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