1fa96b57cSHuacai Chen# SPDX-License-Identifier: GPL-2.0 2fa96b57cSHuacai Chenconfig LOONGARCH 3fa96b57cSHuacai Chen bool 4fa96b57cSHuacai Chen default y 5f30d1f49SHuacai Chen select ACPI 6cd057667SJianmin Lv select ACPI_GENERIC_GSI if ACPI 757fc7323SHuacai Chen select ACPI_MCFG if ACPI 8fa96b57cSHuacai Chen select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI 9fa96b57cSHuacai Chen select ARCH_BINFMT_ELF_STATE 10fa96b57cSHuacai Chen select ARCH_ENABLE_MEMORY_HOTPLUG 11fa96b57cSHuacai Chen select ARCH_ENABLE_MEMORY_HOTREMOVE 12fa96b57cSHuacai Chen select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI 13d4c937c2SQing Zhang select ARCH_HAS_FORTIFY_SOURCE 143f48f3d9SPaul E. McKenney select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS 15fa96b57cSHuacai Chen select ARCH_HAS_PTE_SPECIAL 16fa96b57cSHuacai Chen select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST 17fa96b57cSHuacai Chen select ARCH_INLINE_READ_LOCK if !PREEMPTION 18fa96b57cSHuacai Chen select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION 19fa96b57cSHuacai Chen select ARCH_INLINE_READ_LOCK_IRQ if !PREEMPTION 20fa96b57cSHuacai Chen select ARCH_INLINE_READ_LOCK_IRQSAVE if !PREEMPTION 21fa96b57cSHuacai Chen select ARCH_INLINE_READ_UNLOCK if !PREEMPTION 22fa96b57cSHuacai Chen select ARCH_INLINE_READ_UNLOCK_BH if !PREEMPTION 23fa96b57cSHuacai Chen select ARCH_INLINE_READ_UNLOCK_IRQ if !PREEMPTION 24fa96b57cSHuacai Chen select ARCH_INLINE_READ_UNLOCK_IRQRESTORE if !PREEMPTION 25fa96b57cSHuacai Chen select ARCH_INLINE_WRITE_LOCK if !PREEMPTION 26fa96b57cSHuacai Chen select ARCH_INLINE_WRITE_LOCK_BH if !PREEMPTION 27fa96b57cSHuacai Chen select ARCH_INLINE_WRITE_LOCK_IRQ if !PREEMPTION 28fa96b57cSHuacai Chen select ARCH_INLINE_WRITE_LOCK_IRQSAVE if !PREEMPTION 29fa96b57cSHuacai Chen select ARCH_INLINE_WRITE_UNLOCK if !PREEMPTION 30fa96b57cSHuacai Chen select ARCH_INLINE_WRITE_UNLOCK_BH if !PREEMPTION 31fa96b57cSHuacai Chen select ARCH_INLINE_WRITE_UNLOCK_IRQ if !PREEMPTION 32fa96b57cSHuacai Chen select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE if !PREEMPTION 33fa96b57cSHuacai Chen select ARCH_INLINE_SPIN_TRYLOCK if !PREEMPTION 34fa96b57cSHuacai Chen select ARCH_INLINE_SPIN_TRYLOCK_BH if !PREEMPTION 35fa96b57cSHuacai Chen select ARCH_INLINE_SPIN_LOCK if !PREEMPTION 36fa96b57cSHuacai Chen select ARCH_INLINE_SPIN_LOCK_BH if !PREEMPTION 37fa96b57cSHuacai Chen select ARCH_INLINE_SPIN_LOCK_IRQ if !PREEMPTION 38fa96b57cSHuacai Chen select ARCH_INLINE_SPIN_LOCK_IRQSAVE if !PREEMPTION 39fa96b57cSHuacai Chen select ARCH_INLINE_SPIN_UNLOCK if !PREEMPTION 40fa96b57cSHuacai Chen select ARCH_INLINE_SPIN_UNLOCK_BH if !PREEMPTION 41fa96b57cSHuacai Chen select ARCH_INLINE_SPIN_UNLOCK_IRQ if !PREEMPTION 42fa96b57cSHuacai Chen select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE if !PREEMPTION 43e0fba87cSHuacai Chen select ARCH_KEEP_MEMBLOCK 44fa96b57cSHuacai Chen select ARCH_MIGHT_HAVE_PC_PARPORT 45fa96b57cSHuacai Chen select ARCH_MIGHT_HAVE_PC_SERIO 46fa96b57cSHuacai Chen select ARCH_SPARSEMEM_ENABLE 4793a4fa62SQing Zhang select ARCH_STACKWALK 48fa96b57cSHuacai Chen select ARCH_SUPPORTS_ACPI 49fa96b57cSHuacai Chen select ARCH_SUPPORTS_ATOMIC_RMW 50fa96b57cSHuacai Chen select ARCH_SUPPORTS_HUGETLBFS 51d4b6f156SHuacai Chen select ARCH_SUPPORTS_NUMA_BALANCING 52fa96b57cSHuacai Chen select ARCH_USE_BUILTIN_BSWAP 53fa96b57cSHuacai Chen select ARCH_USE_CMPXCHG_LOCKREF 54fa96b57cSHuacai Chen select ARCH_USE_QUEUED_RWLOCKS 555f1e001bSHuacai Chen select ARCH_USE_QUEUED_SPINLOCKS 56fa96b57cSHuacai Chen select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT 571429cfdeSArd Biesheuvel select ARCH_WANT_LD_ORPHAN_WARN 580b376f1eSAneesh Kumar K.V select ARCH_WANT_OPTIMIZE_VMEMMAP 59fa96b57cSHuacai Chen select ARCH_WANTS_NO_INSTR 60fa96b57cSHuacai Chen select BUILDTIME_TABLE_SORT 61fa96b57cSHuacai Chen select COMMON_CLK 62366bb35aSHuacai Chen select CPU_PM 63f30d1f49SHuacai Chen select EFI 64fa96b57cSHuacai Chen select GENERIC_CLOCKEVENTS 65fa96b57cSHuacai Chen select GENERIC_CMOS_UPDATE 66fa96b57cSHuacai Chen select GENERIC_CPU_AUTOPROBE 67fa96b57cSHuacai Chen select GENERIC_ENTRY 68fa96b57cSHuacai Chen select GENERIC_GETTIMEOFDAY 69d2791341SHuacai Chen select GENERIC_IOREMAP if !ARCH_IOREMAP 70fa96b57cSHuacai Chen select GENERIC_IRQ_MULTI_HANDLER 71fa96b57cSHuacai Chen select GENERIC_IRQ_PROBE 72fa96b57cSHuacai Chen select GENERIC_IRQ_SHOW 73fa96b57cSHuacai Chen select GENERIC_LIB_ASHLDI3 74fa96b57cSHuacai Chen select GENERIC_LIB_ASHRDI3 75fa96b57cSHuacai Chen select GENERIC_LIB_CMPDI2 76fa96b57cSHuacai Chen select GENERIC_LIB_LSHRDI3 77fa96b57cSHuacai Chen select GENERIC_LIB_UCMPDI2 78235d074fSHuacai Chen select GENERIC_LIB_DEVMEM_IS_ALLOWED 79fa96b57cSHuacai Chen select GENERIC_PCI_IOMAP 80fa96b57cSHuacai Chen select GENERIC_SCHED_CLOCK 8146859ac8SHuacai Chen select GENERIC_SMP_IDLE_THREAD 82fa96b57cSHuacai Chen select GENERIC_TIME_VSYSCALL 83fa96b57cSHuacai Chen select GPIOLIB 84fcbfe812SNiklas Schnelle select HAS_IOPORT 85fa96b57cSHuacai Chen select HAVE_ARCH_AUDITSYSCALL 86fa96b57cSHuacai Chen select HAVE_ARCH_MMAP_RND_BITS if MMU 87fa96b57cSHuacai Chen select HAVE_ARCH_SECCOMP_FILTER 88fa96b57cSHuacai Chen select HAVE_ARCH_TRACEHOOK 89fa96b57cSHuacai Chen select HAVE_ARCH_TRANSPARENT_HUGEPAGE 90fa96b57cSHuacai Chen select HAVE_ASM_MODVERSIONS 9124a9c541SFrederic Weisbecker select HAVE_CONTEXT_TRACKING_USER 92a0a458fbSQing Zhang select HAVE_C_RECORDMCOUNT 93fa96b57cSHuacai Chen select HAVE_DEBUG_STACKOVERFLOW 94fa96b57cSHuacai Chen select HAVE_DMA_CONTIGUOUS 954733f09dSQing Zhang select HAVE_DYNAMIC_FTRACE 96ac7127e1SQing Zhang select HAVE_DYNAMIC_FTRACE_WITH_ARGS 979cdc3b6aSYouling Tang select HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS 988778ba2cSQing Zhang select HAVE_DYNAMIC_FTRACE_WITH_REGS 995dc61552STiezhu Yang select HAVE_EBPF_JIT 10041596803SHuacai Chen select HAVE_EFFICIENT_UNALIGNED_ACCESS if !ARCH_STRICT_ALIGN 101fa96b57cSHuacai Chen select HAVE_EXIT_THREAD 102fa96b57cSHuacai Chen select HAVE_FAST_GUP 103a0a458fbSQing Zhang select HAVE_FTRACE_MCOUNT_RECORD 104356bd6f2SQing Zhang select HAVE_FUNCTION_ARG_ACCESS_API 1058b5ee2c6STiezhu Yang select HAVE_FUNCTION_ERROR_INJECTION 106dbe3ba30SQing Zhang select HAVE_FUNCTION_GRAPH_TRACER 107dbe3ba30SQing Zhang select HAVE_FUNCTION_TRACER 108fa96b57cSHuacai Chen select HAVE_GENERIC_VDSO 109edffa33cSQing Zhang select HAVE_HW_BREAKPOINT if PERF_EVENTS 110fa96b57cSHuacai Chen select HAVE_IOREMAP_PROT 111fa96b57cSHuacai Chen select HAVE_IRQ_EXIT_ON_IRQ_STACK 112fa96b57cSHuacai Chen select HAVE_IRQ_TIME_ACCOUNTING 1136d4cc40fSTiezhu Yang select HAVE_KPROBES 11409e679c2STiezhu Yang select HAVE_KPROBES_ON_FTRACE 1153f553686STiezhu Yang select HAVE_KRETPROBES 116fa96b57cSHuacai Chen select HAVE_MOD_ARCH_SPECIFIC 117fa96b57cSHuacai Chen select HAVE_NMI 11857fc7323SHuacai Chen select HAVE_PCI 119fa96b57cSHuacai Chen select HAVE_PERF_EVENTS 120b37042b2SHuacai Chen select HAVE_PERF_REGS 121b37042b2SHuacai Chen select HAVE_PERF_USER_STACK_DUMP 122fa96b57cSHuacai Chen select HAVE_REGS_AND_STACK_ACCESS_API 123fa96b57cSHuacai Chen select HAVE_RSEQ 12422f367a6SYouling Tang select HAVE_SAMPLE_FTRACE_DIRECT 12522f367a6SYouling Tang select HAVE_SAMPLE_FTRACE_DIRECT_MULTI 126d4b6f156SHuacai Chen select HAVE_SETUP_PER_CPU_AREA if NUMA 12709f33601SHuacai Chen select HAVE_STACKPROTECTOR 128fa96b57cSHuacai Chen select HAVE_SYSCALL_TRACEPOINTS 129fa96b57cSHuacai Chen select HAVE_TIF_NOHZ 13046859ac8SHuacai Chen select HAVE_VIRT_CPU_ACCOUNTING_GEN if !SMP 131fa96b57cSHuacai Chen select IRQ_FORCED_THREADING 132fa96b57cSHuacai Chen select IRQ_LOONGARCH_CPU 133*a050ba1eSLinus Torvalds select LOCK_MM_AND_FIND_VMA 134f30d1f49SHuacai Chen select MMU_GATHER_MERGE_VMAS if MMU 135fa96b57cSHuacai Chen select MODULES_USE_ELF_RELA if MODULES 136d4b6f156SHuacai Chen select NEED_PER_CPU_EMBED_FIRST_CHUNK 137d4b6f156SHuacai Chen select NEED_PER_CPU_PAGE_FIRST_CHUNK 13888d4d957SBinbin Zhou select OF 13988d4d957SBinbin Zhou select OF_EARLY_FLATTREE 14057fc7323SHuacai Chen select PCI 14157fc7323SHuacai Chen select PCI_DOMAINS_GENERIC 14257fc7323SHuacai Chen select PCI_ECAM if ACPI 14357fc7323SHuacai Chen select PCI_LOONGSON 14457fc7323SHuacai Chen select PCI_MSI_ARCH_FALLBACKS 1457c12bb8fSHuacai Chen select PCI_QUIRKS 146fa96b57cSHuacai Chen select PERF_USE_VMALLOC 147fa96b57cSHuacai Chen select RTC_LIB 148f30d1f49SHuacai Chen select SMP 149fa96b57cSHuacai Chen select SPARSE_IRQ 15061a6fcccSHuacai Chen select SYSCTL_ARCH_UNALIGN_ALLOW 15161a6fcccSHuacai Chen select SYSCTL_ARCH_UNALIGN_NO_WARN 152fa96b57cSHuacai Chen select SYSCTL_EXCEPTION_TRACE 153fa96b57cSHuacai Chen select SWIOTLB 154fa96b57cSHuacai Chen select TRACE_IRQFLAGS_SUPPORT 155d4b6f156SHuacai Chen select USE_PERCPU_NUMA_NODE_ID 1564d7bf939SQing Zhang select USER_STACKTRACE_SUPPORT 157fa96b57cSHuacai Chen select ZONE_DMA32 158fa96b57cSHuacai Chen 159fa96b57cSHuacai Chenconfig 32BIT 160fa96b57cSHuacai Chen bool 161fa96b57cSHuacai Chen 162fa96b57cSHuacai Chenconfig 64BIT 163fa96b57cSHuacai Chen def_bool y 164fa96b57cSHuacai Chen 165fa96b57cSHuacai Chenconfig CPU_HAS_FPU 166fa96b57cSHuacai Chen bool 167fa96b57cSHuacai Chen default y 168fa96b57cSHuacai Chen 169fa96b57cSHuacai Chenconfig CPU_HAS_PREFETCH 170fa96b57cSHuacai Chen bool 171fa96b57cSHuacai Chen default y 172fa96b57cSHuacai Chen 1732d2c3952SYouling Tangconfig GENERIC_BUG 1742d2c3952SYouling Tang def_bool y 1752d2c3952SYouling Tang depends on BUG 1762d2c3952SYouling Tang 1772d2c3952SYouling Tangconfig GENERIC_BUG_RELATIVE_POINTERS 1782d2c3952SYouling Tang def_bool y 1792d2c3952SYouling Tang depends on GENERIC_BUG 1802d2c3952SYouling Tang 181fa96b57cSHuacai Chenconfig GENERIC_CALIBRATE_DELAY 182fa96b57cSHuacai Chen def_bool y 183fa96b57cSHuacai Chen 184fa96b57cSHuacai Chenconfig GENERIC_CSUM 185fa96b57cSHuacai Chen def_bool y 186fa96b57cSHuacai Chen 187fa96b57cSHuacai Chenconfig GENERIC_HWEIGHT 188fa96b57cSHuacai Chen def_bool y 189fa96b57cSHuacai Chen 190fa96b57cSHuacai Chenconfig L1_CACHE_SHIFT 191fa96b57cSHuacai Chen int 192fa96b57cSHuacai Chen default "6" 193fa96b57cSHuacai Chen 194fa96b57cSHuacai Chenconfig LOCKDEP_SUPPORT 195fa96b57cSHuacai Chen bool 196fa96b57cSHuacai Chen default y 197fa96b57cSHuacai Chen 19893a4fa62SQing Zhangconfig STACKTRACE_SUPPORT 19993a4fa62SQing Zhang bool 20093a4fa62SQing Zhang default y 20193a4fa62SQing Zhang 2029550dfdeSColin Ian King# MACH_LOONGSON32 and MACH_LOONGSON64 are deliberately carried over from the 203fa96b57cSHuacai Chen# MIPS Loongson code, to preserve Loongson-specific code paths in drivers that 204fa96b57cSHuacai Chen# are shared between architectures, and specifically expecting the symbols. 205fa96b57cSHuacai Chenconfig MACH_LOONGSON32 206fa96b57cSHuacai Chen def_bool 32BIT 207fa96b57cSHuacai Chen 208fa96b57cSHuacai Chenconfig MACH_LOONGSON64 209fa96b57cSHuacai Chen def_bool 64BIT 210fa96b57cSHuacai Chen 211d2791341SHuacai Chenconfig FIX_EARLYCON_MEM 212d2791341SHuacai Chen def_bool y 213d2791341SHuacai Chen 214fa96b57cSHuacai Chenconfig PAGE_SIZE_4KB 215fa96b57cSHuacai Chen bool 216fa96b57cSHuacai Chen 217fa96b57cSHuacai Chenconfig PAGE_SIZE_16KB 218fa96b57cSHuacai Chen bool 219fa96b57cSHuacai Chen 220fa96b57cSHuacai Chenconfig PAGE_SIZE_64KB 221fa96b57cSHuacai Chen bool 222fa96b57cSHuacai Chen 223fa96b57cSHuacai Chenconfig PGTABLE_2LEVEL 224fa96b57cSHuacai Chen bool 225fa96b57cSHuacai Chen 226fa96b57cSHuacai Chenconfig PGTABLE_3LEVEL 227fa96b57cSHuacai Chen bool 228fa96b57cSHuacai Chen 229fa96b57cSHuacai Chenconfig PGTABLE_4LEVEL 230fa96b57cSHuacai Chen bool 231fa96b57cSHuacai Chen 232fa96b57cSHuacai Chenconfig PGTABLE_LEVELS 233fa96b57cSHuacai Chen int 234fa96b57cSHuacai Chen default 2 if PGTABLE_2LEVEL 235fa96b57cSHuacai Chen default 3 if PGTABLE_3LEVEL 236fa96b57cSHuacai Chen default 4 if PGTABLE_4LEVEL 237fa96b57cSHuacai Chen 238fa96b57cSHuacai Chenconfig SCHED_OMIT_FRAME_POINTER 239fa96b57cSHuacai Chen bool 240fa96b57cSHuacai Chen default y 241fa96b57cSHuacai Chen 2420d8dad70SXi Ruoyaoconfig AS_HAS_EXPLICIT_RELOCS 2430d8dad70SXi Ruoyao def_bool $(as-instr,x:pcalau12i \$t0$(comma)%pc_hi20(x)) 2440d8dad70SXi Ruoyao 245fa96b57cSHuacai Chenmenu "Kernel type and options" 246fa96b57cSHuacai Chen 247fa96b57cSHuacai Chensource "kernel/Kconfig.hz" 248fa96b57cSHuacai Chen 249fa96b57cSHuacai Chenchoice 250fa96b57cSHuacai Chen prompt "Page Table Layout" 251fa96b57cSHuacai Chen default 16KB_2LEVEL if 32BIT 252fa96b57cSHuacai Chen default 16KB_3LEVEL if 64BIT 253fa96b57cSHuacai Chen help 254fa96b57cSHuacai Chen Allows choosing the page table layout, which is a combination 255fa96b57cSHuacai Chen of page size and page table levels. The size of virtual memory 256fa96b57cSHuacai Chen address space are determined by the page table layout. 257fa96b57cSHuacai Chen 258fa96b57cSHuacai Chenconfig 4KB_3LEVEL 259fa96b57cSHuacai Chen bool "4KB with 3 levels" 260fa96b57cSHuacai Chen select PAGE_SIZE_4KB 261fa96b57cSHuacai Chen select PGTABLE_3LEVEL 262fa96b57cSHuacai Chen help 263fa96b57cSHuacai Chen This option selects 4KB page size with 3 level page tables, which 264fa96b57cSHuacai Chen support a maximum of 39 bits of application virtual memory. 265fa96b57cSHuacai Chen 266fa96b57cSHuacai Chenconfig 4KB_4LEVEL 267fa96b57cSHuacai Chen bool "4KB with 4 levels" 268fa96b57cSHuacai Chen select PAGE_SIZE_4KB 269fa96b57cSHuacai Chen select PGTABLE_4LEVEL 270fa96b57cSHuacai Chen help 271fa96b57cSHuacai Chen This option selects 4KB page size with 4 level page tables, which 272fa96b57cSHuacai Chen support a maximum of 48 bits of application virtual memory. 273fa96b57cSHuacai Chen 274fa96b57cSHuacai Chenconfig 16KB_2LEVEL 275fa96b57cSHuacai Chen bool "16KB with 2 levels" 276fa96b57cSHuacai Chen select PAGE_SIZE_16KB 277fa96b57cSHuacai Chen select PGTABLE_2LEVEL 278fa96b57cSHuacai Chen help 279fa96b57cSHuacai Chen This option selects 16KB page size with 2 level page tables, which 280fa96b57cSHuacai Chen support a maximum of 36 bits of application virtual memory. 281fa96b57cSHuacai Chen 282fa96b57cSHuacai Chenconfig 16KB_3LEVEL 283fa96b57cSHuacai Chen bool "16KB with 3 levels" 284fa96b57cSHuacai Chen select PAGE_SIZE_16KB 285fa96b57cSHuacai Chen select PGTABLE_3LEVEL 286fa96b57cSHuacai Chen help 287fa96b57cSHuacai Chen This option selects 16KB page size with 3 level page tables, which 288fa96b57cSHuacai Chen support a maximum of 47 bits of application virtual memory. 289fa96b57cSHuacai Chen 290fa96b57cSHuacai Chenconfig 64KB_2LEVEL 291fa96b57cSHuacai Chen bool "64KB with 2 levels" 292fa96b57cSHuacai Chen select PAGE_SIZE_64KB 293fa96b57cSHuacai Chen select PGTABLE_2LEVEL 294fa96b57cSHuacai Chen help 295fa96b57cSHuacai Chen This option selects 64KB page size with 2 level page tables, which 296fa96b57cSHuacai Chen support a maximum of 42 bits of application virtual memory. 297fa96b57cSHuacai Chen 298fa96b57cSHuacai Chenconfig 64KB_3LEVEL 299fa96b57cSHuacai Chen bool "64KB with 3 levels" 300fa96b57cSHuacai Chen select PAGE_SIZE_64KB 301fa96b57cSHuacai Chen select PGTABLE_3LEVEL 302fa96b57cSHuacai Chen help 303fa96b57cSHuacai Chen This option selects 64KB page size with 3 level page tables, which 304fa96b57cSHuacai Chen support a maximum of 55 bits of application virtual memory. 305fa96b57cSHuacai Chen 306fa96b57cSHuacai Chenendchoice 307fa96b57cSHuacai Chen 308fa96b57cSHuacai Chenconfig CMDLINE 309fa96b57cSHuacai Chen string "Built-in kernel command line" 310fa96b57cSHuacai Chen help 311fa96b57cSHuacai Chen For most platforms, the arguments for the kernel's command line 312fa96b57cSHuacai Chen are provided at run-time, during boot. However, there are cases 313fa96b57cSHuacai Chen where either no arguments are being provided or the provided 314fa96b57cSHuacai Chen arguments are insufficient or even invalid. 315fa96b57cSHuacai Chen 316fa96b57cSHuacai Chen When that occurs, it is possible to define a built-in command 317fa96b57cSHuacai Chen line here and choose how the kernel should use it later on. 318fa96b57cSHuacai Chen 319fa96b57cSHuacai Chenchoice 320fa96b57cSHuacai Chen prompt "Kernel command line type" 321fa96b57cSHuacai Chen default CMDLINE_BOOTLOADER 322fa96b57cSHuacai Chen help 323fa96b57cSHuacai Chen Choose how the kernel will handle the provided built-in command 324fa96b57cSHuacai Chen line. 325fa96b57cSHuacai Chen 326fa96b57cSHuacai Chenconfig CMDLINE_BOOTLOADER 327fa96b57cSHuacai Chen bool "Use bootloader kernel arguments if available" 328fa96b57cSHuacai Chen help 329fa96b57cSHuacai Chen Prefer the command-line passed by the boot loader if available. 330fa96b57cSHuacai Chen Use the built-in command line as fallback in case we get nothing 331fa96b57cSHuacai Chen during boot. This is the default behaviour. 332fa96b57cSHuacai Chen 333fa96b57cSHuacai Chenconfig CMDLINE_EXTEND 334fa96b57cSHuacai Chen bool "Use built-in to extend bootloader kernel arguments" 335fa96b57cSHuacai Chen help 336fa96b57cSHuacai Chen The command-line arguments provided during boot will be 337fa96b57cSHuacai Chen appended to the built-in command line. This is useful in 338fa96b57cSHuacai Chen cases where the provided arguments are insufficient and 339fa96b57cSHuacai Chen you don't want to or cannot modify them. 340fa96b57cSHuacai Chen 341fa96b57cSHuacai Chenconfig CMDLINE_FORCE 342fa96b57cSHuacai Chen bool "Always use the built-in kernel command string" 343fa96b57cSHuacai Chen help 344fa96b57cSHuacai Chen Always use the built-in command line, even if we get one during 345fa96b57cSHuacai Chen boot. This is useful in case you need to override the provided 346fa96b57cSHuacai Chen command line on systems where you don't have or want control 347fa96b57cSHuacai Chen over it. 348fa96b57cSHuacai Chen 349fa96b57cSHuacai Chenendchoice 350fa96b57cSHuacai Chen 351fa96b57cSHuacai Chenconfig DMI 352fa96b57cSHuacai Chen bool "Enable DMI scanning" 353fa96b57cSHuacai Chen select DMI_SCAN_MACHINE_NON_EFI_FALLBACK 354fa96b57cSHuacai Chen default y 355fa96b57cSHuacai Chen help 356fa96b57cSHuacai Chen This enables SMBIOS/DMI feature for systems, and scanning of 357fa96b57cSHuacai Chen DMI to identify machine quirks. 358fa96b57cSHuacai Chen 359fa96b57cSHuacai Chenconfig EFI 360fa96b57cSHuacai Chen bool "EFI runtime service support" 361fa96b57cSHuacai Chen select UCS2_STRING 362fa96b57cSHuacai Chen select EFI_RUNTIME_WRAPPERS 363fa96b57cSHuacai Chen help 364fa96b57cSHuacai Chen This enables the kernel to use EFI runtime services that are 365fa96b57cSHuacai Chen available (such as the EFI variable services). 366fa96b57cSHuacai Chen 367ead384d9SHuacai Chenconfig EFI_STUB 368ead384d9SHuacai Chen bool "EFI boot stub support" 369ead384d9SHuacai Chen default y 370ead384d9SHuacai Chen depends on EFI 371ead384d9SHuacai Chen select EFI_GENERIC_STUB 372ead384d9SHuacai Chen help 373ead384d9SHuacai Chen This kernel feature allows the kernel to be loaded directly by 374ead384d9SHuacai Chen EFI firmware without the use of a bootloader. 375ead384d9SHuacai Chen 37646859ac8SHuacai Chenconfig SMP 37746859ac8SHuacai Chen bool "Multi-Processing support" 37846859ac8SHuacai Chen help 37946859ac8SHuacai Chen This enables support for systems with more than one CPU. If you have 38046859ac8SHuacai Chen a system with only one CPU, say N. If you have a system with more 38146859ac8SHuacai Chen than one CPU, say Y. 38246859ac8SHuacai Chen 38346859ac8SHuacai Chen If you say N here, the kernel will run on uni- and multiprocessor 38446859ac8SHuacai Chen machines, but will use only one CPU of a multiprocessor machine. If 38546859ac8SHuacai Chen you say Y here, the kernel will run on many, but not all, 38646859ac8SHuacai Chen uniprocessor machines. On a uniprocessor machine, the kernel 38746859ac8SHuacai Chen will run faster if you say N here. 38846859ac8SHuacai Chen 38946859ac8SHuacai Chen See also the SMP-HOWTO available at <http://www.tldp.org/docs.html#howto>. 39046859ac8SHuacai Chen 39146859ac8SHuacai Chen If you don't know what to do here, say N. 39246859ac8SHuacai Chen 39346859ac8SHuacai Chenconfig HOTPLUG_CPU 39446859ac8SHuacai Chen bool "Support for hot-pluggable CPUs" 39546859ac8SHuacai Chen depends on SMP 39646859ac8SHuacai Chen select GENERIC_IRQ_MIGRATION 39746859ac8SHuacai Chen help 39846859ac8SHuacai Chen Say Y here to allow turning CPUs off and on. CPUs can be 39946859ac8SHuacai Chen controlled through /sys/devices/system/cpu. 40046859ac8SHuacai Chen (Note: power management support will enable this option 40146859ac8SHuacai Chen automatically on SMP systems. ) 40246859ac8SHuacai Chen Say N if you want to disable CPU hotplug. 40346859ac8SHuacai Chen 40446859ac8SHuacai Chenconfig NR_CPUS 40546859ac8SHuacai Chen int "Maximum number of CPUs (2-256)" 40646859ac8SHuacai Chen range 2 256 40746859ac8SHuacai Chen depends on SMP 40846859ac8SHuacai Chen default "64" 40946859ac8SHuacai Chen help 41046859ac8SHuacai Chen This allows you to specify the maximum number of CPUs which this 41146859ac8SHuacai Chen kernel will support. 41246859ac8SHuacai Chen 413d4b6f156SHuacai Chenconfig NUMA 414d4b6f156SHuacai Chen bool "NUMA Support" 415255b4658SHuacai Chen select SMP 416d4b6f156SHuacai Chen select ACPI_NUMA if ACPI 417d4b6f156SHuacai Chen help 418d4b6f156SHuacai Chen Say Y to compile the kernel with NUMA (Non-Uniform Memory Access) 419d4b6f156SHuacai Chen support. This option improves performance on systems with more 420d4b6f156SHuacai Chen than one NUMA node; on single node systems it is generally better 421d4b6f156SHuacai Chen to leave it disabled. 422d4b6f156SHuacai Chen 423d4b6f156SHuacai Chenconfig NODES_SHIFT 424d4b6f156SHuacai Chen int 425d4b6f156SHuacai Chen default "6" 426d4b6f156SHuacai Chen depends on NUMA 427d4b6f156SHuacai Chen 4280192445cSZi Yanconfig ARCH_FORCE_MAX_ORDER 429fa96b57cSHuacai Chen int "Maximum zone order" 43023baf831SKirill A. Shutemov default "13" if PAGE_SIZE_64KB 43123baf831SKirill A. Shutemov default "11" if PAGE_SIZE_16KB 43223baf831SKirill A. Shutemov default "10" 433fa96b57cSHuacai Chen help 434fa96b57cSHuacai Chen The kernel memory allocator divides physically contiguous memory 435fa96b57cSHuacai Chen blocks into "zones", where each zone is a power of two number of 436fa96b57cSHuacai Chen pages. This option selects the largest power of two that the kernel 437fa96b57cSHuacai Chen keeps in the memory allocator. If you need to allocate very large 438fa96b57cSHuacai Chen blocks of physically contiguous memory, then you may need to 439fa96b57cSHuacai Chen increase this value. 440fa96b57cSHuacai Chen 441fa96b57cSHuacai Chen The page size is not necessarily 4KB. Keep this in mind 442fa96b57cSHuacai Chen when choosing a value for this option. 443fa96b57cSHuacai Chen 444d2791341SHuacai Chenconfig ARCH_IOREMAP 445d2791341SHuacai Chen bool "Enable LoongArch DMW-based ioremap()" 446d2791341SHuacai Chen help 447d2791341SHuacai Chen We use generic TLB-based ioremap() by default since it has page 448d2791341SHuacai Chen protection support. However, you can enable LoongArch DMW-based 449d2791341SHuacai Chen ioremap() for better performance. 450d2791341SHuacai Chen 45116c52e50SHuacai Chenconfig ARCH_WRITECOMBINE 45216c52e50SHuacai Chen bool "Enable WriteCombine (WUC) for ioremap()" 45316c52e50SHuacai Chen help 45416c52e50SHuacai Chen LoongArch maintains cache coherency in hardware, but when paired 45516c52e50SHuacai Chen with LS7A chipsets the WUC attribute (Weak-ordered UnCached, which 45616c52e50SHuacai Chen is similar to WriteCombine) is out of the scope of cache coherency 45716c52e50SHuacai Chen machanism for PCIe devices (this is a PCIe protocol violation, which 45816c52e50SHuacai Chen may be fixed in newer chipsets). 45916c52e50SHuacai Chen 46016c52e50SHuacai Chen This means WUC can only used for write-only memory regions now, so 46116c52e50SHuacai Chen this option is disabled by default, making WUC silently fallback to 46216c52e50SHuacai Chen SUC for ioremap(). You can enable this option if the kernel is ensured 46316c52e50SHuacai Chen to run on hardware without this bug. 46416c52e50SHuacai Chen 46516c52e50SHuacai Chen You can override this setting via writecombine=on/off boot parameter. 46616c52e50SHuacai Chen 46741596803SHuacai Chenconfig ARCH_STRICT_ALIGN 46841596803SHuacai Chen bool "Enable -mstrict-align to prevent unaligned accesses" if EXPERT 46941596803SHuacai Chen default y 47041596803SHuacai Chen help 47141596803SHuacai Chen Not all LoongArch cores support h/w unaligned access, we can use 47241596803SHuacai Chen -mstrict-align build parameter to prevent unaligned accesses. 47341596803SHuacai Chen 47441596803SHuacai Chen CPUs with h/w unaligned access support: 47541596803SHuacai Chen Loongson-2K2000/2K3000/3A5000/3C5000/3D5000. 47641596803SHuacai Chen 47741596803SHuacai Chen CPUs without h/w unaligned access support: 47841596803SHuacai Chen Loongson-2K500/2K1000. 47941596803SHuacai Chen 48041596803SHuacai Chen This option is enabled by default to make the kernel be able to run 48141596803SHuacai Chen on all LoongArch systems. But you can disable it manually if you want 48241596803SHuacai Chen to run kernel only on systems with h/w unaligned access support in 48341596803SHuacai Chen order to optimise for performance. 48441596803SHuacai Chen 4854a03b2acSYouling Tangconfig KEXEC 4864a03b2acSYouling Tang bool "Kexec system call" 4874a03b2acSYouling Tang select KEXEC_CORE 4884a03b2acSYouling Tang help 4894a03b2acSYouling Tang kexec is a system call that implements the ability to shutdown your 4904a03b2acSYouling Tang current kernel, and to start another kernel. It is like a reboot 4914a03b2acSYouling Tang but it is independent of the system firmware. And like a reboot 4924a03b2acSYouling Tang you can start any kernel with it, not just Linux. 4934a03b2acSYouling Tang 4944a03b2acSYouling Tang The name comes from the similarity to the exec system call. 4954a03b2acSYouling Tang 4964e62d1d8SYouling Tangconfig CRASH_DUMP 4974e62d1d8SYouling Tang bool "Build kdump crash kernel" 4983f89765dSYouling Tang select RELOCATABLE 4994e62d1d8SYouling Tang help 5004e62d1d8SYouling Tang Generate crash dump after being started by kexec. This should 5014e62d1d8SYouling Tang be normally only set in special crash dump kernels which are 5024e62d1d8SYouling Tang loaded in the main kernel with kexec-tools into a specially 5034e62d1d8SYouling Tang reserved region and then later executed after a crash by 5044e62d1d8SYouling Tang kdump/kexec. 5054e62d1d8SYouling Tang 5064e62d1d8SYouling Tang For more details see Documentation/admin-guide/kdump/kdump.rst 5074e62d1d8SYouling Tang 508d8da19fbSYouling Tangconfig RELOCATABLE 509d8da19fbSYouling Tang bool "Relocatable kernel" 510d8da19fbSYouling Tang help 511d8da19fbSYouling Tang This builds the kernel as a Position Independent Executable (PIE), 512d8da19fbSYouling Tang which retains all relocation metadata required, so as to relocate 513d8da19fbSYouling Tang the kernel binary at runtime to a different virtual address from 514d8da19fbSYouling Tang its link address. 515d8da19fbSYouling Tang 516e5f02b51SYouling Tangconfig RANDOMIZE_BASE 517e5f02b51SYouling Tang bool "Randomize the address of the kernel (KASLR)" 518e5f02b51SYouling Tang depends on RELOCATABLE 519e5f02b51SYouling Tang help 520e5f02b51SYouling Tang Randomizes the physical and virtual address at which the 521e5f02b51SYouling Tang kernel image is loaded, as a security feature that 522e5f02b51SYouling Tang deters exploit attempts relying on knowledge of the location 523e5f02b51SYouling Tang of kernel internals. 524e5f02b51SYouling Tang 525e5f02b51SYouling Tang The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET. 526e5f02b51SYouling Tang 527e5f02b51SYouling Tang If unsure, say N. 528e5f02b51SYouling Tang 529e5f02b51SYouling Tangconfig RANDOMIZE_BASE_MAX_OFFSET 530e5f02b51SYouling Tang hex "Maximum KASLR offset" if EXPERT 531e5f02b51SYouling Tang depends on RANDOMIZE_BASE 532e5f02b51SYouling Tang range 0x0 0x10000000 533e5f02b51SYouling Tang default "0x01000000" 534e5f02b51SYouling Tang help 535e5f02b51SYouling Tang When KASLR is active, this provides the maximum offset that will 536e5f02b51SYouling Tang be applied to the kernel image. It should be set according to the 537e5f02b51SYouling Tang amount of physical RAM available in the target system. 538e5f02b51SYouling Tang 539e5f02b51SYouling Tang This is limited by the size of the lower address memory, 256MB. 540e5f02b51SYouling Tang 541fa96b57cSHuacai Chenconfig SECCOMP 542fa96b57cSHuacai Chen bool "Enable seccomp to safely compute untrusted bytecode" 543fa96b57cSHuacai Chen depends on PROC_FS 544fa96b57cSHuacai Chen default y 545fa96b57cSHuacai Chen help 546fa96b57cSHuacai Chen This kernel feature is useful for number crunching applications 547fa96b57cSHuacai Chen that may need to compute untrusted bytecode during their 548fa96b57cSHuacai Chen execution. By using pipes or other transports made available to 549fa96b57cSHuacai Chen the process as file descriptors supporting the read/write 550fa96b57cSHuacai Chen syscalls, it's possible to isolate those applications in 551fa96b57cSHuacai Chen their own address space using seccomp. Once seccomp is 552fa96b57cSHuacai Chen enabled via /proc/<pid>/seccomp, it cannot be disabled 553fa96b57cSHuacai Chen and the task is only allowed to execute a few safe syscalls 554fa96b57cSHuacai Chen defined by each seccomp mode. 555fa96b57cSHuacai Chen 556fa96b57cSHuacai Chen If unsure, say Y. Only embedded should say N here. 557fa96b57cSHuacai Chen 558fa96b57cSHuacai Chenendmenu 559fa96b57cSHuacai Chen 560fa96b57cSHuacai Chenconfig ARCH_SELECT_MEMORY_MODEL 561fa96b57cSHuacai Chen def_bool y 562fa96b57cSHuacai Chen 563fa96b57cSHuacai Chenconfig ARCH_FLATMEM_ENABLE 564fa96b57cSHuacai Chen def_bool y 565d4b6f156SHuacai Chen depends on !NUMA 566fa96b57cSHuacai Chen 567fa96b57cSHuacai Chenconfig ARCH_SPARSEMEM_ENABLE 568fa96b57cSHuacai Chen def_bool y 5697b09f5afSFeiyang Chen select SPARSEMEM_VMEMMAP_ENABLE 570fa96b57cSHuacai Chen help 571fa96b57cSHuacai Chen Say Y to support efficient handling of sparse physical memory, 572fa96b57cSHuacai Chen for architectures which are either NUMA (Non-Uniform Memory Access) 573fa96b57cSHuacai Chen or have huge holes in the physical address space for other reasons. 574ee65728eSMike Rapoport See <file:Documentation/mm/numa.rst> for more. 575fa96b57cSHuacai Chen 576fa96b57cSHuacai Chenconfig ARCH_ENABLE_THP_MIGRATION 577fa96b57cSHuacai Chen def_bool y 578fa96b57cSHuacai Chen depends on TRANSPARENT_HUGEPAGE 579fa96b57cSHuacai Chen 580fa96b57cSHuacai Chenconfig ARCH_MEMORY_PROBE 581fa96b57cSHuacai Chen def_bool y 582fa96b57cSHuacai Chen depends on MEMORY_HOTPLUG 583fa96b57cSHuacai Chen 584fa96b57cSHuacai Chenconfig MMU 585fa96b57cSHuacai Chen bool 586fa96b57cSHuacai Chen default y 587fa96b57cSHuacai Chen 588fa96b57cSHuacai Chenconfig ARCH_MMAP_RND_BITS_MIN 589fa96b57cSHuacai Chen default 12 590fa96b57cSHuacai Chen 591fa96b57cSHuacai Chenconfig ARCH_MMAP_RND_BITS_MAX 592fa96b57cSHuacai Chen default 18 593fa96b57cSHuacai Chen 594fa96b57cSHuacai Chenmenu "Power management options" 595fa96b57cSHuacai Chen 596366bb35aSHuacai Chenconfig ARCH_SUSPEND_POSSIBLE 597366bb35aSHuacai Chen def_bool y 598366bb35aSHuacai Chen 5997db54bfeSHuacai Chenconfig ARCH_HIBERNATION_POSSIBLE 6007db54bfeSHuacai Chen def_bool y 6017db54bfeSHuacai Chen 602366bb35aSHuacai Chensource "kernel/power/Kconfig" 603fa96b57cSHuacai Chensource "drivers/acpi/Kconfig" 604fa96b57cSHuacai Chen 605fa96b57cSHuacai Chenendmenu 606fa96b57cSHuacai Chen 607fa96b57cSHuacai Chensource "drivers/firmware/Kconfig" 608