# SPDX-License-Identifier: GPL-2.0-only
config [31mCONFIG_64BIT[0m
bool "64-bit kernel" if "$(ARCH)" = "sparc"
default "$(ARCH)" = "sparc64"
help
[31mCONFIG_SPARC[0m is a family of RISC microprocessors designed and marketed by
Sun Microsystems, incorporated. They are very widely found in Sun
workstations and clones.
Say yes to build a 64-bit kernel - formerly known as sparc64
Say no to build a 32-bit kernel - formerly known as sparc
config [31mCONFIG_SPARC[0m
bool
default y
select [31mCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT[0m if [31mCONFIG_SPARC64[0m && [31mCONFIG_PCI[0m
select [31mCONFIG_ARCH_MIGHT_HAVE_PC_SERIO[0m
select [31mCONFIG_OF[0m
select [31mCONFIG_OF_PROMTREE[0m
select [31mCONFIG_HAVE_ASM_MODVERSIONS[0m
select [31mCONFIG_HAVE_IDE[0m
select [31mCONFIG_HAVE_OPROFILE[0m
select [31mCONFIG_HAVE_ARCH_KGDB[0m if ![31mCONFIG_SMP[0m || [31mCONFIG_SPARC64[0m
select [31mCONFIG_HAVE_ARCH_TRACEHOOK[0m
select [31mCONFIG_HAVE_EXIT_THREAD[0m
select [31mCONFIG_HAVE_PCI[0m
select [31mCONFIG_SYSCTL_EXCEPTION_TRACE[0m
select [31mCONFIG_RTC_CLASS[0m
select [31mCONFIG_RTC_DRV_M48T59[0m
select [31mCONFIG_RTC_SYSTOHC[0m
select [31mCONFIG_HAVE_ARCH_JUMP_LABEL[0m if [31mCONFIG_SPARC64[0m
select [31mCONFIG_GENERIC_IRQ_SHOW[0m
select [31mCONFIG_ARCH_WANT_IPC_PARSE_VERSION[0m
select [31mCONFIG_GENERIC_PCI_IOMAP[0m
select [31mCONFIG_HAVE_NMI_WATCHDOG[0m if [31mCONFIG_SPARC64[0m
select [31mCONFIG_HAVE_CBPF_JIT[0m if [31mCONFIG_SPARC32[0m
select [31mCONFIG_HAVE_EBPF_JIT[0m if [31mCONFIG_SPARC64[0m
select [31mCONFIG_HAVE_DEBUG_BUGVERBOSE[0m
select [31mCONFIG_GENERIC_SMP_IDLE_THREAD[0m
select [31mCONFIG_GENERIC_CLOCKEVENTS[0m
select [31mCONFIG_GENERIC_STRNCPY_FROM_USER[0m
select [31mCONFIG_GENERIC_STRNLEN_USER[0m
select [31mCONFIG_MODULES_USE_ELF_RELA[0m
select [31mCONFIG_PCI_SYSCALL[0m if [31mCONFIG_PCI[0m
select [31mCONFIG_ODD_RT_SIGACTION[0m
select [31mCONFIG_OLD_SIGSUSPEND[0m
select [31mCONFIG_CPU_NO_EFFICIENT_FFS[0m
select [31mCONFIG_LOCKDEP_SMALL[0m if [31mCONFIG_LOCKDEP[0m
select [31mCONFIG_NEED_DMA_MAP_STATE[0m
select [31mCONFIG_NEED_SG_DMA_LENGTH[0m
config [31mCONFIG_SPARC32[0m
def_bool ![31mCONFIG_64BIT[0m
select [31mCONFIG_ARCH_32BIT_OFF_T[0m
select [31mCONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU[0m
select [31mCONFIG_GENERIC_ATOMIC64[0m
select [31mCONFIG_CLZ_TAB[0m
select [31mCONFIG_HAVE_UID16[0m
select [31mCONFIG_OLD_SIGACTION[0m
config [31mCONFIG_SPARC64[0m
def_bool [31mCONFIG_64BIT[0m
select [31mCONFIG_HAVE_FUNCTION_TRACER[0m
select [31mCONFIG_HAVE_FUNCTION_GRAPH_TRACER[0m
select [31mCONFIG_HAVE_KRETPROBES[0m
select [31mCONFIG_HAVE_KPROBES[0m
select [31mCONFIG_HAVE_RCU_TABLE_FREE[0m if [31mCONFIG_SMP[0m
select [31mCONFIG_HAVE_RCU_TABLE_NO_INVALIDATE[0m if [31mCONFIG_HAVE_RCU_TABLE_FREE[0m
select [31mCONFIG_HAVE_MEMBLOCK_NODE_MAP[0m
select [31mCONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE[0m
select [31mCONFIG_HAVE_DYNAMIC_FTRACE[0m
select [31mCONFIG_HAVE_FTRACE_MCOUNT_RECORD[0m
select [31mCONFIG_HAVE_SYSCALL_TRACEPOINTS[0m
select [31mCONFIG_HAVE_CONTEXT_TRACKING[0m
select [31mCONFIG_HAVE_DEBUG_KMEMLEAK[0m
select [31mCONFIG_IOMMU_HELPER[0m
select [31mCONFIG_SPARSE_IRQ[0m
select [31mCONFIG_RTC_DRV_CMOS[0m
select [31mCONFIG_RTC_DRV_BQ4802[0m
select [31mCONFIG_RTC_DRV_SUN4V[0m
select [31mCONFIG_RTC_DRV_STARFIRE[0m
select [31mCONFIG_HAVE_PERF_EVENTS[0m
select [31mCONFIG_PERF_USE_VMALLOC[0m
select [31mCONFIG_IRQ_PREFLOW_FASTEOI[0m
select [31mCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG[0m
select [31mCONFIG_HAVE_C_RECORDMCOUNT[0m
select [31mCONFIG_HAVE_ARCH_AUDITSYSCALL[0m
select [31mCONFIG_ARCH_SUPPORTS_ATOMIC_RMW[0m
select [31mCONFIG_HAVE_NMI[0m
select [31mCONFIG_HAVE_REGS_AND_STACK_ACCESS_API[0m
select [31mCONFIG_ARCH_USE_QUEUED_RWLOCKS[0m
select [31mCONFIG_ARCH_USE_QUEUED_SPINLOCKS[0m
select [31mCONFIG_GENERIC_TIME_VSYSCALL[0m
select [31mCONFIG_ARCH_CLOCKSOURCE_DATA[0m
select [31mCONFIG_ARCH_HAS_PTE_SPECIAL[0m
select [31mCONFIG_PCI_DOMAINS[0m if [31mCONFIG_PCI[0m
select [31mCONFIG_ARCH_HAS_GIGANTIC_PAGE[0m
config [31mCONFIG_ARCH_DEFCONFIG[0m
string
default "arch/sparc/configs/sparc32_defconfig" if [31mCONFIG_SPARC32[0m
default "arch/sparc/configs/sparc64_defconfig" if [31mCONFIG_SPARC64[0m
config [31mCONFIG_ARCH_PROC_KCORE_TEXT[0m
def_bool y
config [31mCONFIG_CPU_BIG_ENDIAN[0m
def_bool y
config [31mCONFIG_ARCH_ATU[0m
bool
default y if [31mCONFIG_SPARC64[0m
config [31mCONFIG_STACKTRACE_SUPPORT[0m
bool
default y if [31mCONFIG_SPARC64[0m
config [31mCONFIG_LOCKDEP_SUPPORT[0m
bool
default y if [31mCONFIG_SPARC64[0m
config [31mCONFIG_ARCH_HIBERNATION_POSSIBLE[0m
def_bool y if [31mCONFIG_SPARC64[0m
config [31mCONFIG_AUDIT_ARCH[0m
bool
default y
config [31mCONFIG_HAVE_SETUP_PER_CPU_AREA[0m
def_bool y if [31mCONFIG_SPARC64[0m
config [31mCONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK[0m
def_bool y if [31mCONFIG_SPARC64[0m
config [31mCONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK[0m
def_bool y if [31mCONFIG_SPARC64[0m
config [31mCONFIG_MMU[0m
bool
default y
config [31mCONFIG_HIGHMEM[0m
bool
default y if [31mCONFIG_SPARC32[0m
config [31mCONFIG_ZONE_DMA[0m
bool
default y if [31mCONFIG_SPARC32[0m
config [31mCONFIG_GENERIC_ISA_DMA[0m
bool
default y if [31mCONFIG_SPARC32[0m
config [31mCONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC[0m
def_bool y if [31mCONFIG_SPARC64[0m
config [31mCONFIG_PGTABLE_LEVELS[0m
default 4 if [31mCONFIG_64BIT[0m
default 3
config [31mCONFIG_ARCH_SUPPORTS_UPROBES[0m
def_bool y if [31mCONFIG_SPARC64[0m
menu "Processor type and features"
config [31mCONFIG_SMP[0m
bool "Symmetric multi-processing support"
---help---
This enables support for systems with more than one CPU. If you have
a system with only one CPU, say N. If you have a system with more
than one CPU, say Y.
If you say N here, the kernel will run on uni- and multiprocessor
machines, but will use only one CPU of a multiprocessor machine. If
you say Y here, the kernel will run on many, but not all,
uniprocessor machines. On a uniprocessor machine, the kernel
will run faster if you say N here.
People using multiprocessor machines who say Y here should also say
Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
Management" code will be disabled if you say Y here.
See also <file:Documentation/admin-guide/lockup-watchdogs.rst> and the [31mCONFIG_SMP[0m-HOWTO
available at <http://www.tldp.org/docs.html#howto>.
If you don't know what to do here, say N.
config [31mCONFIG_NR_CPUS[0m
int "Maximum number of CPUs"
depends on [31mCONFIG_SMP[0m
range 2 32 if [31mCONFIG_SPARC32[0m
range 2 4096 if [31mCONFIG_SPARC64[0m
default 32 if [31mCONFIG_SPARC32[0m
default 4096 if [31mCONFIG_SPARC64[0m
source "kernel/Kconfig.hz"
config [31mCONFIG_GENERIC_HWEIGHT[0m
bool
default y
config [31mCONFIG_GENERIC_CALIBRATE_DELAY[0m
bool
default y
config [31mCONFIG_ARCH_MAY_HAVE_PC_FDC[0m
bool
default y
config [31mCONFIG_EMULATED_CMPXCHG[0m
bool
default y if [31mCONFIG_SPARC32[0m
help
Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
is emulated, and therefore it is not completely atomic.
# Makefile helpers
config [31mCONFIG_SPARC32_SMP[0m
bool
default y
depends on [31mCONFIG_SPARC32[0m && [31mCONFIG_SMP[0m
config [31mCONFIG_SPARC64_SMP[0m
bool
default y
depends on [31mCONFIG_SPARC64[0m && [31mCONFIG_SMP[0m
config [31mCONFIG_EARLYFB[0m
bool "Support for early boot text console"
default y
depends on [31mCONFIG_SPARC64[0m
help
Say Y here to enable a faster early framebuffer boot console.
config [31mCONFIG_SECCOMP[0m
bool "Enable seccomp to safely compute untrusted bytecode"
depends on [31mCONFIG_SPARC64[0m && [31mCONFIG_PROC_FS[0m
default y
help
This kernel feature is useful for number crunching applications
that may need to compute untrusted bytecode during their
execution. By using pipes or other transports made available to
the process as file descriptors supporting the read/write
syscalls, it's possible to isolate those applications in
their own address space using seccomp. Once seccomp is
enabled via /proc/<pid>/seccomp, it cannot be disabled
and the task is only allowed to execute a few safe syscalls
defined by each seccomp mode.
If unsure, say Y. Only embedded should say N here.
config [31mCONFIG_HOTPLUG_CPU[0m
bool "Support for hot-pluggable CPUs"
depends on [31mCONFIG_SPARC64[0m && [31mCONFIG_SMP[0m
help
Say Y here to experiment with turning CPUs off and on. CPUs
can be controlled through /sys/devices/system/cpu/cpu#.
Say N if you want to disable CPU hotplug.
if [31mCONFIG_SPARC64[0m
source "drivers/cpufreq/Kconfig"
endif
config [31mCONFIG_US3_MC[0m
tristate "UltraSPARC-III Memory Controller driver"
depends on [31mCONFIG_SPARC64[0m
default y
help
This adds a driver for the UltraSPARC-III memory controller.
Loading this driver allows exact mnemonic strings to be
printed in the event of a memory error, so that the faulty DIMM
on the motherboard can be matched to the error.
If in doubt, say Y, as this information can be very useful.
# Global things across all Sun machines.
config [31mCONFIG_GENERIC_LOCKBREAK[0m
bool
default y
depends on [31mCONFIG_SPARC64[0m && [31mCONFIG_SMP[0m && [31mCONFIG_PREEMPT[0m
config [31mCONFIG_NUMA[0m
bool "NUMA support"
depends on [31mCONFIG_SPARC64[0m && [31mCONFIG_SMP[0m
config [31mCONFIG_NODES_SHIFT[0m
int "Maximum NUMA Nodes (as a power of 2)"
range 4 5 if [31mCONFIG_SPARC64[0m
default "5"
depends on [31mCONFIG_NEED_MULTIPLE_NODES[0m
help
Specify the maximum number of [31mCONFIG_NUMA[0m Nodes available on the target
system. Increases memory reserved to accommodate various tables.
# Some [31mCONFIG_NUMA[0m nodes have memory ranges that span
# other nodes. Even though a pfn is valid and
# between a node's start and end pfns, it may not
# reside on that node. See memmap_init_zone()
# for details.
config [31mCONFIG_NODES_SPAN_OTHER_NODES[0m
def_bool y
depends on [31mCONFIG_NEED_MULTIPLE_NODES[0m
config [31mCONFIG_ARCH_SPARSEMEM_ENABLE[0m
def_bool y if [31mCONFIG_SPARC64[0m
select [31mCONFIG_SPARSEMEM_VMEMMAP_ENABLE[0m
config [31mCONFIG_ARCH_SPARSEMEM_DEFAULT[0m
def_bool y if [31mCONFIG_SPARC64[0m
config [31mCONFIG_FORCE_MAX_ZONEORDER[0m
int "Maximum zone order"
default "13"
help
The kernel memory allocator divides physically contiguous memory
blocks into "zones", where each zone is a power of two number of
pages. This option selects the largest power of two that the kernel
keeps in the memory allocator. If you need to allocate very large
blocks of physically contiguous memory, then you may need to
increase this value.
This config option is actually maximum order plus one. For example,
a value of 13 means that the largest free memory block is 2^12 pages.
if [31mCONFIG_SPARC64[0m
source "kernel/power/Kconfig"
endif
config [31mCONFIG_SCHED_SMT[0m
bool "SMT (Hyperthreading) scheduler support"
depends on [31mCONFIG_SPARC64[0m && [31mCONFIG_SMP[0m
default y
help
SMT scheduler support improves the CPU scheduler's decision making
when dealing with [31mCONFIG_SPARC[0m cpus at a cost of slightly increased overhead
in some places. If unsure say N here.
config [31mCONFIG_SCHED_MC[0m
bool "Multi-core scheduler support"
depends on [31mCONFIG_SPARC64[0m && [31mCONFIG_SMP[0m
default y
help
Multi-core scheduler support improves the CPU scheduler's decision
making when dealing with multi-core CPU chips at a cost of slightly
increased overhead in some places. If unsure say N here.
config [31mCONFIG_CMDLINE_BOOL[0m
bool "Default bootloader kernel arguments"
depends on [31mCONFIG_SPARC64[0m
config [31mCONFIG_CMDLINE[0m
string "Initial kernel command string"
depends on [31mCONFIG_CMDLINE_BOOL[0m
default "console=ttyS0,9600 root=/dev/sda1"
help
Say Y here if you want to be able to pass default arguments to
the kernel. This will be overridden by the bootloader, if you
use one (such as SILO). This is most useful if you want to boot
a kernel from TFTP, and want default options to be available
with having them passed on the command line.
NOTE: This option WILL override the PROM bootargs setting!
config [31mCONFIG_SUN_PM[0m
bool
default y if [31mCONFIG_SPARC32[0m
help
Enable power management and CPU standby features on supported
[31mCONFIG_SPARC[0m platforms.
config [31mCONFIG_SPARC_LED[0m
tristate "Sun4m LED driver"
depends on [31mCONFIG_SPARC32[0m
help
This driver toggles the front-panel LED on sun4m systems
in a user-specifiable manner. Its state can be probed
by reading /proc/led and its blinking mode can be changed
via writes to /proc/led
config [31mCONFIG_SERIAL_CONSOLE[0m
bool
depends on [31mCONFIG_SPARC32[0m
default y
---help---
If you say Y here, it will be possible to use a serial port as the
system console (the system console is the device which receives all
kernel messages and warnings and which allows logins in single user
mode). This could be useful if some terminal or printer is connected
to that serial port.
Even if you say Y here, the currently visible virtual console
(/dev/tty0) will still be used as the system console by default, but
you can alter that using a kernel command line option such as
"console=ttyS1". (Try "man bootparam" or see the documentation of
your boot loader (silo) about how to pass options to the kernel at
boot time.)
If you don't have a graphics card installed and you say Y here, the
kernel will automatically use the first serial line, /dev/ttyS0, as
system console.
If unsure, say N.
config [31mCONFIG_SPARC_LEON[0m
bool "Sparc Leon processor family"
depends on [31mCONFIG_SPARC32[0m
select [31mCONFIG_USB_EHCI_BIG_ENDIAN_MMIO[0m
select [31mCONFIG_USB_EHCI_BIG_ENDIAN_DESC[0m
select [31mCONFIG_USB_UHCI_BIG_ENDIAN_MMIO[0m
select [31mCONFIG_USB_UHCI_BIG_ENDIAN_DESC[0m
---help---
If you say Y here if you are running on a [31mCONFIG_SPARC[0m-LEON processor.
The LEON processor is a synthesizable VHDL model of the
[31mCONFIG_SPARC[0m-v8 standard. LEON is part of the GRLIB collection of
IP cores that are distributed under GPL. GRLIB can be downloaded
from www.gaisler.com. You can download a sparc-linux cross-compilation
toolchain at www.gaisler.com.
if [31mCONFIG_SPARC_LEON[0m
menu "U-Boot options"
config [31mCONFIG_UBOOT_LOAD_ADDR[0m
hex "uImage Load Address"
default 0x40004000
---help---
U-Boot kernel load address, the address in physical address space
where u-boot will place the Linux kernel before booting it.
This address is normally the base address of main memory + 0x4000.
config [31mCONFIG_UBOOT_FLASH_ADDR[0m
hex "uImage.o Load Address"
default 0x00080000
---help---
Optional setting only affecting the uImage.o ELF-image used to
download the uImage file to the target using a ELF-loader other than
U-Boot. It may for example be used to download an uImage to FLASH with
the GRMON utility before even starting u-boot.
config [31mCONFIG_UBOOT_ENTRY_ADDR[0m
hex "uImage Entry Address"
default 0xf0004000
---help---
Do not change this unless you know what you're doing. This is
hardcoded by the [31mCONFIG_SPARC32[0m and LEON port.
This is the virtual address u-boot jumps to when booting the Linux
Kernel.
endmenu
endif
endmenu
menu "Bus options (PCI etc.)"
config [31mCONFIG_SBUS[0m
bool
default y
config [31mCONFIG_SBUSCHAR[0m
bool
default y
config [31mCONFIG_SUN_LDOMS[0m
bool "Sun Logical Domains support"
depends on [31mCONFIG_SPARC64[0m
help
Say Y here is you want to support virtual devices via
Logical Domains.
config [31mCONFIG_PCIC_PCI[0m
bool
depends on [31mCONFIG_PCI[0m && [31mCONFIG_SPARC32[0m && ![31mCONFIG_SPARC_LEON[0m
default y
config [31mCONFIG_LEON_PCI[0m
bool
depends on [31mCONFIG_PCI[0m && [31mCONFIG_SPARC_LEON[0m
default y
config [31mCONFIG_SPARC_GRPCI1[0m
bool "GRPCI Host Bridge Support"
depends on [31mCONFIG_LEON_PCI[0m
default y
help
Say Y here to include the GRPCI Host Bridge Driver. The GRPCI
[31mCONFIG_PCI[0m host controller is typically found in GRLIB [31mCONFIG_SPARC32[0m/LEON
systems. The driver has one property (all_pci_errors) controlled
from the bootloader that makes the GRPCI to generate interrupts
on detected [31mCONFIG_PCI[0m Parity and System errors.
config [31mCONFIG_SPARC_GRPCI2[0m
bool "GRPCI2 Host Bridge Support"
depends on [31mCONFIG_LEON_PCI[0m
default y
help
Say Y here to include the GRPCI2 Host Bridge Driver.
config [31mCONFIG_SUN_OPENPROMFS[0m
tristate "Openprom tree appears in /proc/openprom"
help
If you say Y, the OpenPROM device tree will be available as a
virtual file system, which you can mount to /proc/openprom by "mount
-t openpromfs none /proc/openprom".
To compile the /proc/openprom support as a module, choose [31mCONFIG_M[0m here: the
module will be called openpromfs.
Only choose N if you know in advance that you will not need to modify
OpenPROM settings on the running system.
# Makefile helpers
config [31mCONFIG_SPARC64_PCI[0m
bool
default y
depends on [31mCONFIG_SPARC64[0m && [31mCONFIG_PCI[0m
config [31mCONFIG_SPARC64_PCI_MSI[0m
bool
default y
depends on [31mCONFIG_SPARC64_PCI[0m && [31mCONFIG_PCI_MSI[0m
endmenu
config [31mCONFIG_COMPAT[0m
bool
depends on [31mCONFIG_SPARC64[0m
default y
select [31mCONFIG_COMPAT_BINFMT_ELF[0m
select [31mCONFIG_HAVE_UID16[0m
select [31mCONFIG_ARCH_WANT_OLD_COMPAT_IPC[0m
select [31mCONFIG_COMPAT_OLD_SIGACTION[0m
config [31mCONFIG_SYSVIPC_COMPAT[0m
bool
depends on [31mCONFIG_COMPAT[0m && [31mCONFIG_SYSVIPC[0m
default y
source "drivers/sbus/char/Kconfig"