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