xref: /linux/arch/loongarch/Kconfig (revision cb8a2ef0848ca80d67d6d56e2df757cfdf6b3355)
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
8a02f66bbSJames Morse	select ACPI_HOTPLUG_CPU if ACPI_PROCESSOR && HOTPLUG_CPU
9f6f0c9a7SHuacai Chen	select ACPI_PPTT if ACPI
10fa96b57cSHuacai Chen	select ACPI_SYSTEM_POWER_STATES_SUPPORT	if ACPI
11fa96b57cSHuacai Chen	select ARCH_BINFMT_ELF_STATE
125aa4ac64SQing Zhang	select ARCH_DISABLE_KASAN_INLINE
13fa96b57cSHuacai Chen	select ARCH_ENABLE_MEMORY_HOTPLUG
14fa96b57cSHuacai Chen	select ARCH_ENABLE_MEMORY_HOTREMOVE
15b3ff2d9cSMasahiro Yamada	select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
16fa96b57cSHuacai Chen	select ARCH_HAS_ACPI_TABLE_UPGRADE	if ACPI
179841c423SThomas Gleixner	select ARCH_HAS_CPU_FINALIZE_INIT
18d4c937c2SQing Zhang	select ARCH_HAS_FORTIFY_SOURCE
192363088eSFeiyang Chen	select ARCH_HAS_KCOV
203f48f3d9SPaul E. McKenney	select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS
21de0e30beSChenguang Zhao	select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
22fa96b57cSHuacai Chen	select ARCH_HAS_PTE_SPECIAL
23fa96b57cSHuacai Chen	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
24fa96b57cSHuacai Chen	select ARCH_INLINE_READ_LOCK if !PREEMPTION
25fa96b57cSHuacai Chen	select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION
26fa96b57cSHuacai Chen	select ARCH_INLINE_READ_LOCK_IRQ if !PREEMPTION
27fa96b57cSHuacai Chen	select ARCH_INLINE_READ_LOCK_IRQSAVE if !PREEMPTION
28fa96b57cSHuacai Chen	select ARCH_INLINE_READ_UNLOCK if !PREEMPTION
29fa96b57cSHuacai Chen	select ARCH_INLINE_READ_UNLOCK_BH if !PREEMPTION
30fa96b57cSHuacai Chen	select ARCH_INLINE_READ_UNLOCK_IRQ if !PREEMPTION
31fa96b57cSHuacai Chen	select ARCH_INLINE_READ_UNLOCK_IRQRESTORE if !PREEMPTION
32fa96b57cSHuacai Chen	select ARCH_INLINE_WRITE_LOCK if !PREEMPTION
33fa96b57cSHuacai Chen	select ARCH_INLINE_WRITE_LOCK_BH if !PREEMPTION
34fa96b57cSHuacai Chen	select ARCH_INLINE_WRITE_LOCK_IRQ if !PREEMPTION
35fa96b57cSHuacai Chen	select ARCH_INLINE_WRITE_LOCK_IRQSAVE if !PREEMPTION
36fa96b57cSHuacai Chen	select ARCH_INLINE_WRITE_UNLOCK if !PREEMPTION
37fa96b57cSHuacai Chen	select ARCH_INLINE_WRITE_UNLOCK_BH if !PREEMPTION
38fa96b57cSHuacai Chen	select ARCH_INLINE_WRITE_UNLOCK_IRQ if !PREEMPTION
39fa96b57cSHuacai Chen	select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE if !PREEMPTION
40fa96b57cSHuacai Chen	select ARCH_INLINE_SPIN_TRYLOCK if !PREEMPTION
41fa96b57cSHuacai Chen	select ARCH_INLINE_SPIN_TRYLOCK_BH if !PREEMPTION
42fa96b57cSHuacai Chen	select ARCH_INLINE_SPIN_LOCK if !PREEMPTION
43fa96b57cSHuacai Chen	select ARCH_INLINE_SPIN_LOCK_BH if !PREEMPTION
44fa96b57cSHuacai Chen	select ARCH_INLINE_SPIN_LOCK_IRQ if !PREEMPTION
45fa96b57cSHuacai Chen	select ARCH_INLINE_SPIN_LOCK_IRQSAVE if !PREEMPTION
46fa96b57cSHuacai Chen	select ARCH_INLINE_SPIN_UNLOCK if !PREEMPTION
47fa96b57cSHuacai Chen	select ARCH_INLINE_SPIN_UNLOCK_BH if !PREEMPTION
48fa96b57cSHuacai Chen	select ARCH_INLINE_SPIN_UNLOCK_IRQ if !PREEMPTION
49fa96b57cSHuacai Chen	select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE if !PREEMPTION
50e0fba87cSHuacai Chen	select ARCH_KEEP_MEMBLOCK
51fa96b57cSHuacai Chen	select ARCH_MIGHT_HAVE_PC_PARPORT
52fa96b57cSHuacai Chen	select ARCH_MIGHT_HAVE_PC_SERIO
53fa96b57cSHuacai Chen	select ARCH_SPARSEMEM_ENABLE
5493a4fa62SQing Zhang	select ARCH_STACKWALK
55fa96b57cSHuacai Chen	select ARCH_SUPPORTS_ACPI
56fa96b57cSHuacai Chen	select ARCH_SUPPORTS_ATOMIC_RMW
57fa96b57cSHuacai Chen	select ARCH_SUPPORTS_HUGETLBFS
585a31ed46SWANG Xuerui	select ARCH_SUPPORTS_LTO_CLANG
595a31ed46SWANG Xuerui	select ARCH_SUPPORTS_LTO_CLANG_THIN
60d4b6f156SHuacai Chen	select ARCH_SUPPORTS_NUMA_BALANCING
61fa96b57cSHuacai Chen	select ARCH_USE_BUILTIN_BSWAP
62fa96b57cSHuacai Chen	select ARCH_USE_CMPXCHG_LOCKREF
63fa96b57cSHuacai Chen	select ARCH_USE_QUEUED_RWLOCKS
645f1e001bSHuacai Chen	select ARCH_USE_QUEUED_SPINLOCKS
65fa96b57cSHuacai Chen	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT
661429cfdeSArd Biesheuvel	select ARCH_WANT_LD_ORPHAN_WARN
670b6f1582SAneesh Kumar K.V	select ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP
68fa96b57cSHuacai Chen	select ARCH_WANTS_NO_INSTR
69fa96b57cSHuacai Chen	select BUILDTIME_TABLE_SORT
70fa96b57cSHuacai Chen	select COMMON_CLK
71366bb35aSHuacai Chen	select CPU_PM
72f30d1f49SHuacai Chen	select EFI
73fa96b57cSHuacai Chen	select GENERIC_CLOCKEVENTS
74fa96b57cSHuacai Chen	select GENERIC_CMOS_UPDATE
75fa96b57cSHuacai Chen	select GENERIC_CPU_AUTOPROBE
76db3ba29aSJames Morse	select GENERIC_CPU_DEVICES
77fa96b57cSHuacai Chen	select GENERIC_ENTRY
78fa96b57cSHuacai Chen	select GENERIC_GETTIMEOFDAY
79d2791341SHuacai Chen	select GENERIC_IOREMAP if !ARCH_IOREMAP
80fa96b57cSHuacai Chen	select GENERIC_IRQ_MULTI_HANDLER
81fa96b57cSHuacai Chen	select GENERIC_IRQ_PROBE
82fa96b57cSHuacai Chen	select GENERIC_IRQ_SHOW
83fa96b57cSHuacai Chen	select GENERIC_LIB_ASHLDI3
84fa96b57cSHuacai Chen	select GENERIC_LIB_ASHRDI3
85fa96b57cSHuacai Chen	select GENERIC_LIB_CMPDI2
86fa96b57cSHuacai Chen	select GENERIC_LIB_LSHRDI3
87fa96b57cSHuacai Chen	select GENERIC_LIB_UCMPDI2
88235d074fSHuacai Chen	select GENERIC_LIB_DEVMEM_IS_ALLOWED
89fa96b57cSHuacai Chen	select GENERIC_PCI_IOMAP
90fa96b57cSHuacai Chen	select GENERIC_SCHED_CLOCK
9146859ac8SHuacai Chen	select GENERIC_SMP_IDLE_THREAD
92fa96b57cSHuacai Chen	select GENERIC_TIME_VSYSCALL
93aa5e65dcSTiezhu Yang	select GENERIC_VDSO_TIME_NS
94fa96b57cSHuacai Chen	select GPIOLIB
95fcbfe812SNiklas Schnelle	select HAS_IOPORT
96fa96b57cSHuacai Chen	select HAVE_ARCH_AUDITSYSCALL
97f02644e3SYouling Tang	select HAVE_ARCH_JUMP_LABEL
98f02644e3SYouling Tang	select HAVE_ARCH_JUMP_LABEL_RELATIVE
995aa4ac64SQing Zhang	select HAVE_ARCH_KASAN
1006ad3df56SEnze Li	select HAVE_ARCH_KFENCE
101e14dd076SQing Zhang	select HAVE_ARCH_KGDB if PERF_EVENTS
102fa96b57cSHuacai Chen	select HAVE_ARCH_MMAP_RND_BITS if MMU
1036b79ecd0SMasahiro Yamada	select HAVE_ARCH_SECCOMP
104fa96b57cSHuacai Chen	select HAVE_ARCH_SECCOMP_FILTER
105fa96b57cSHuacai Chen	select HAVE_ARCH_TRACEHOOK
106fa96b57cSHuacai Chen	select HAVE_ARCH_TRANSPARENT_HUGEPAGE
107fa96b57cSHuacai Chen	select HAVE_ASM_MODVERSIONS
10824a9c541SFrederic Weisbecker	select HAVE_CONTEXT_TRACKING_USER
109a0a458fbSQing Zhang	select HAVE_C_RECORDMCOUNT
1105d553770STiezhu Yang	select HAVE_DEBUG_KMEMLEAK
111fa96b57cSHuacai Chen	select HAVE_DEBUG_STACKOVERFLOW
112fa96b57cSHuacai Chen	select HAVE_DMA_CONTIGUOUS
1134733f09dSQing Zhang	select HAVE_DYNAMIC_FTRACE
114ac7127e1SQing Zhang	select HAVE_DYNAMIC_FTRACE_WITH_ARGS
1159cdc3b6aSYouling Tang	select HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
1168778ba2cSQing Zhang	select HAVE_DYNAMIC_FTRACE_WITH_REGS
1175dc61552STiezhu Yang	select HAVE_EBPF_JIT
11841596803SHuacai Chen	select HAVE_EFFICIENT_UNALIGNED_ACCESS if !ARCH_STRICT_ALIGN
119fa96b57cSHuacai Chen	select HAVE_EXIT_THREAD
120fa96b57cSHuacai Chen	select HAVE_FAST_GUP
121a0a458fbSQing Zhang	select HAVE_FTRACE_MCOUNT_RECORD
122356bd6f2SQing Zhang	select HAVE_FUNCTION_ARG_ACCESS_API
1238b5ee2c6STiezhu Yang	select HAVE_FUNCTION_ERROR_INJECTION
1245779e3c0SDonglin Peng	select HAVE_FUNCTION_GRAPH_RETVAL if HAVE_FUNCTION_GRAPH_TRACER
125dbe3ba30SQing Zhang	select HAVE_FUNCTION_GRAPH_TRACER
126dbe3ba30SQing Zhang	select HAVE_FUNCTION_TRACER
1272363088eSFeiyang Chen	select HAVE_GCC_PLUGINS
128fa96b57cSHuacai Chen	select HAVE_GENERIC_VDSO
129edffa33cSQing Zhang	select HAVE_HW_BREAKPOINT if PERF_EVENTS
130fa96b57cSHuacai Chen	select HAVE_IOREMAP_PROT
131fa96b57cSHuacai Chen	select HAVE_IRQ_EXIT_ON_IRQ_STACK
132fa96b57cSHuacai Chen	select HAVE_IRQ_TIME_ACCOUNTING
1336d4cc40fSTiezhu Yang	select HAVE_KPROBES
13409e679c2STiezhu Yang	select HAVE_KPROBES_ON_FTRACE
1353f553686STiezhu Yang	select HAVE_KRETPROBES
136c1fc48aaSTianrui Zhao	select HAVE_KVM
137fa96b57cSHuacai Chen	select HAVE_MOD_ARCH_SPECIFIC
138fa96b57cSHuacai Chen	select HAVE_NMI
139*cb8a2ef0STiezhu Yang	select HAVE_OBJTOOL if AS_HAS_EXPLICIT_RELOCS
14057fc7323SHuacai Chen	select HAVE_PCI
141fa96b57cSHuacai Chen	select HAVE_PERF_EVENTS
142b37042b2SHuacai Chen	select HAVE_PERF_REGS
143b37042b2SHuacai Chen	select HAVE_PERF_USER_STACK_DUMP
14480c7889dSHuacai Chen	select HAVE_PREEMPT_DYNAMIC_KEY
145fa96b57cSHuacai Chen	select HAVE_REGS_AND_STACK_ACCESS_API
1467b0a0964SHaoran Jiang	select HAVE_RETHOOK
147fa96b57cSHuacai Chen	select HAVE_RSEQ
14890868ff9SWANG Rui	select HAVE_RUST
14922f367a6SYouling Tang	select HAVE_SAMPLE_FTRACE_DIRECT
15022f367a6SYouling Tang	select HAVE_SAMPLE_FTRACE_DIRECT_MULTI
151d4b6f156SHuacai Chen	select HAVE_SETUP_PER_CPU_AREA if NUMA
152*cb8a2ef0STiezhu Yang	select HAVE_STACK_VALIDATION if HAVE_OBJTOOL
15309f33601SHuacai Chen	select HAVE_STACKPROTECTOR
154fa96b57cSHuacai Chen	select HAVE_SYSCALL_TRACEPOINTS
155fa96b57cSHuacai Chen	select HAVE_TIF_NOHZ
15646859ac8SHuacai Chen	select HAVE_VIRT_CPU_ACCOUNTING_GEN if !SMP
157fa96b57cSHuacai Chen	select IRQ_FORCED_THREADING
158fa96b57cSHuacai Chen	select IRQ_LOONGARCH_CPU
159a050ba1eSLinus Torvalds	select LOCK_MM_AND_FIND_VMA
160f30d1f49SHuacai Chen	select MMU_GATHER_MERGE_VMAS if MMU
161fa96b57cSHuacai Chen	select MODULES_USE_ELF_RELA if MODULES
162d4b6f156SHuacai Chen	select NEED_PER_CPU_EMBED_FIRST_CHUNK
163d4b6f156SHuacai Chen	select NEED_PER_CPU_PAGE_FIRST_CHUNK
16488d4d957SBinbin Zhou	select OF
16588d4d957SBinbin Zhou	select OF_EARLY_FLATTREE
16657fc7323SHuacai Chen	select PCI
16757fc7323SHuacai Chen	select PCI_DOMAINS_GENERIC
16857fc7323SHuacai Chen	select PCI_ECAM if ACPI
16957fc7323SHuacai Chen	select PCI_LOONGSON
17057fc7323SHuacai Chen	select PCI_MSI_ARCH_FALLBACKS
1717c12bb8fSHuacai Chen	select PCI_QUIRKS
172fa96b57cSHuacai Chen	select PERF_USE_VMALLOC
173fa96b57cSHuacai Chen	select RTC_LIB
174f30d1f49SHuacai Chen	select SMP
175fa96b57cSHuacai Chen	select SPARSE_IRQ
17661a6fcccSHuacai Chen	select SYSCTL_ARCH_UNALIGN_ALLOW
17761a6fcccSHuacai Chen	select SYSCTL_ARCH_UNALIGN_NO_WARN
178fa96b57cSHuacai Chen	select SYSCTL_EXCEPTION_TRACE
179fa96b57cSHuacai Chen	select SWIOTLB
180fa96b57cSHuacai Chen	select TRACE_IRQFLAGS_SUPPORT
181d4b6f156SHuacai Chen	select USE_PERCPU_NUMA_NODE_ID
1824d7bf939SQing Zhang	select USER_STACKTRACE_SUPPORT
183fa96b57cSHuacai Chen	select ZONE_DMA32
184fa96b57cSHuacai Chen
185fa96b57cSHuacai Chenconfig 32BIT
186fa96b57cSHuacai Chen	bool
187fa96b57cSHuacai Chen
188fa96b57cSHuacai Chenconfig 64BIT
189fa96b57cSHuacai Chen	def_bool y
190fa96b57cSHuacai Chen
1912d2c3952SYouling Tangconfig GENERIC_BUG
1922d2c3952SYouling Tang	def_bool y
1932d2c3952SYouling Tang	depends on BUG
1942d2c3952SYouling Tang
1952d2c3952SYouling Tangconfig GENERIC_BUG_RELATIVE_POINTERS
1962d2c3952SYouling Tang	def_bool y
1972d2c3952SYouling Tang	depends on GENERIC_BUG
1982d2c3952SYouling Tang
199fa96b57cSHuacai Chenconfig GENERIC_CALIBRATE_DELAY
200fa96b57cSHuacai Chen	def_bool y
201fa96b57cSHuacai Chen
202fa96b57cSHuacai Chenconfig GENERIC_CSUM
203fa96b57cSHuacai Chen	def_bool y
204fa96b57cSHuacai Chen
205fa96b57cSHuacai Chenconfig GENERIC_HWEIGHT
206fa96b57cSHuacai Chen	def_bool y
207fa96b57cSHuacai Chen
208fa96b57cSHuacai Chenconfig L1_CACHE_SHIFT
209fa96b57cSHuacai Chen	int
210fa96b57cSHuacai Chen	default "6"
211fa96b57cSHuacai Chen
212fa96b57cSHuacai Chenconfig LOCKDEP_SUPPORT
213fa96b57cSHuacai Chen	bool
214fa96b57cSHuacai Chen	default y
215fa96b57cSHuacai Chen
21693a4fa62SQing Zhangconfig STACKTRACE_SUPPORT
21793a4fa62SQing Zhang	bool
21893a4fa62SQing Zhang	default y
21993a4fa62SQing Zhang
2209550dfdeSColin Ian King# MACH_LOONGSON32 and MACH_LOONGSON64 are deliberately carried over from the
221fa96b57cSHuacai Chen# MIPS Loongson code, to preserve Loongson-specific code paths in drivers that
222fa96b57cSHuacai Chen# are shared between architectures, and specifically expecting the symbols.
223fa96b57cSHuacai Chenconfig MACH_LOONGSON32
224fa96b57cSHuacai Chen	def_bool 32BIT
225fa96b57cSHuacai Chen
226fa96b57cSHuacai Chenconfig MACH_LOONGSON64
227fa96b57cSHuacai Chen	def_bool 64BIT
228fa96b57cSHuacai Chen
229d2791341SHuacai Chenconfig FIX_EARLYCON_MEM
230d2791341SHuacai Chen	def_bool y
231d2791341SHuacai Chen
232fa96b57cSHuacai Chenconfig PAGE_SIZE_4KB
233fa96b57cSHuacai Chen	bool
234fa96b57cSHuacai Chen
235fa96b57cSHuacai Chenconfig PAGE_SIZE_16KB
236fa96b57cSHuacai Chen	bool
237fa96b57cSHuacai Chen
238fa96b57cSHuacai Chenconfig PAGE_SIZE_64KB
239fa96b57cSHuacai Chen	bool
240fa96b57cSHuacai Chen
241fa96b57cSHuacai Chenconfig PGTABLE_2LEVEL
242fa96b57cSHuacai Chen	bool
243fa96b57cSHuacai Chen
244fa96b57cSHuacai Chenconfig PGTABLE_3LEVEL
245fa96b57cSHuacai Chen	bool
246fa96b57cSHuacai Chen
247fa96b57cSHuacai Chenconfig PGTABLE_4LEVEL
248fa96b57cSHuacai Chen	bool
249fa96b57cSHuacai Chen
250fa96b57cSHuacai Chenconfig PGTABLE_LEVELS
251fa96b57cSHuacai Chen	int
252fa96b57cSHuacai Chen	default 2 if PGTABLE_2LEVEL
253fa96b57cSHuacai Chen	default 3 if PGTABLE_3LEVEL
254fa96b57cSHuacai Chen	default 4 if PGTABLE_4LEVEL
255fa96b57cSHuacai Chen
256fa96b57cSHuacai Chenconfig SCHED_OMIT_FRAME_POINTER
257fa96b57cSHuacai Chen	bool
258fa96b57cSHuacai Chen	default y
259fa96b57cSHuacai Chen
2600d8dad70SXi Ruoyaoconfig AS_HAS_EXPLICIT_RELOCS
2610d8dad70SXi Ruoyao	def_bool $(as-instr,x:pcalau12i \$t0$(comma)%pc_hi20(x))
2620d8dad70SXi Ruoyao
26338bb46f9SWANG Xueruiconfig AS_HAS_FCSR_CLASS
26438bb46f9SWANG Xuerui	def_bool $(as-instr,movfcsr2gr \$t0$(comma)\$fcsr0)
26538bb46f9SWANG Xuerui
26661650023SHuacai Chenconfig AS_HAS_LSX_EXTENSION
26761650023SHuacai Chen	def_bool $(as-instr,vld \$vr0$(comma)\$a0$(comma)0)
26861650023SHuacai Chen
26961650023SHuacai Chenconfig AS_HAS_LASX_EXTENSION
27061650023SHuacai Chen	def_bool $(as-instr,xvld \$xr0$(comma)\$a0$(comma)0)
27161650023SHuacai Chen
272bd3c5798SQi Huconfig AS_HAS_LBT_EXTENSION
273bd3c5798SQi Hu	def_bool $(as-instr,movscr2gr \$a0$(comma)\$scr0)
274bd3c5798SQi Hu
275c1fc48aaSTianrui Zhaoconfig AS_HAS_LVZ_EXTENSION
276c1fc48aaSTianrui Zhao	def_bool $(as-instr,hvcl 0)
277c1fc48aaSTianrui Zhao
278fa96b57cSHuacai Chenmenu "Kernel type and options"
279fa96b57cSHuacai Chen
280fa96b57cSHuacai Chensource "kernel/Kconfig.hz"
281fa96b57cSHuacai Chen
282fa96b57cSHuacai Chenchoice
283fa96b57cSHuacai Chen	prompt "Page Table Layout"
284fa96b57cSHuacai Chen	default 16KB_2LEVEL if 32BIT
285fa96b57cSHuacai Chen	default 16KB_3LEVEL if 64BIT
286fa96b57cSHuacai Chen	help
287fa96b57cSHuacai Chen	  Allows choosing the page table layout, which is a combination
288fa96b57cSHuacai Chen	  of page size and page table levels. The size of virtual memory
289fa96b57cSHuacai Chen	  address space are determined by the page table layout.
290fa96b57cSHuacai Chen
291fa96b57cSHuacai Chenconfig 4KB_3LEVEL
292fa96b57cSHuacai Chen	bool "4KB with 3 levels"
293fa96b57cSHuacai Chen	select PAGE_SIZE_4KB
294fa96b57cSHuacai Chen	select PGTABLE_3LEVEL
295fa96b57cSHuacai Chen	help
296fa96b57cSHuacai Chen	  This option selects 4KB page size with 3 level page tables, which
297fa96b57cSHuacai Chen	  support a maximum of 39 bits of application virtual memory.
298fa96b57cSHuacai Chen
299fa96b57cSHuacai Chenconfig 4KB_4LEVEL
300fa96b57cSHuacai Chen	bool "4KB with 4 levels"
301fa96b57cSHuacai Chen	select PAGE_SIZE_4KB
302fa96b57cSHuacai Chen	select PGTABLE_4LEVEL
303fa96b57cSHuacai Chen	help
304fa96b57cSHuacai Chen	  This option selects 4KB page size with 4 level page tables, which
305fa96b57cSHuacai Chen	  support a maximum of 48 bits of application virtual memory.
306fa96b57cSHuacai Chen
307fa96b57cSHuacai Chenconfig 16KB_2LEVEL
308fa96b57cSHuacai Chen	bool "16KB with 2 levels"
309fa96b57cSHuacai Chen	select PAGE_SIZE_16KB
310fa96b57cSHuacai Chen	select PGTABLE_2LEVEL
311fa96b57cSHuacai Chen	help
312fa96b57cSHuacai Chen	  This option selects 16KB page size with 2 level page tables, which
313fa96b57cSHuacai Chen	  support a maximum of 36 bits of application virtual memory.
314fa96b57cSHuacai Chen
315fa96b57cSHuacai Chenconfig 16KB_3LEVEL
316fa96b57cSHuacai Chen	bool "16KB with 3 levels"
317fa96b57cSHuacai Chen	select PAGE_SIZE_16KB
318fa96b57cSHuacai Chen	select PGTABLE_3LEVEL
319fa96b57cSHuacai Chen	help
320fa96b57cSHuacai Chen	  This option selects 16KB page size with 3 level page tables, which
321fa96b57cSHuacai Chen	  support a maximum of 47 bits of application virtual memory.
322fa96b57cSHuacai Chen
323fa96b57cSHuacai Chenconfig 64KB_2LEVEL
324fa96b57cSHuacai Chen	bool "64KB with 2 levels"
325fa96b57cSHuacai Chen	select PAGE_SIZE_64KB
326fa96b57cSHuacai Chen	select PGTABLE_2LEVEL
327fa96b57cSHuacai Chen	help
328fa96b57cSHuacai Chen	  This option selects 64KB page size with 2 level page tables, which
329fa96b57cSHuacai Chen	  support a maximum of 42 bits of application virtual memory.
330fa96b57cSHuacai Chen
331fa96b57cSHuacai Chenconfig 64KB_3LEVEL
332fa96b57cSHuacai Chen	bool "64KB with 3 levels"
333fa96b57cSHuacai Chen	select PAGE_SIZE_64KB
334fa96b57cSHuacai Chen	select PGTABLE_3LEVEL
335fa96b57cSHuacai Chen	help
336fa96b57cSHuacai Chen	  This option selects 64KB page size with 3 level page tables, which
337fa96b57cSHuacai Chen	  support a maximum of 55 bits of application virtual memory.
338fa96b57cSHuacai Chen
339fa96b57cSHuacai Chenendchoice
340fa96b57cSHuacai Chen
341fa96b57cSHuacai Chenconfig CMDLINE
342fa96b57cSHuacai Chen	string "Built-in kernel command line"
343fa96b57cSHuacai Chen	help
344fa96b57cSHuacai Chen	  For most platforms, the arguments for the kernel's command line
345fa96b57cSHuacai Chen	  are provided at run-time, during boot. However, there are cases
346fa96b57cSHuacai Chen	  where either no arguments are being provided or the provided
347fa96b57cSHuacai Chen	  arguments are insufficient or even invalid.
348fa96b57cSHuacai Chen
349fa96b57cSHuacai Chen	  When that occurs, it is possible to define a built-in command
350fa96b57cSHuacai Chen	  line here and choose how the kernel should use it later on.
351fa96b57cSHuacai Chen
352fa96b57cSHuacai Chenchoice
353fa96b57cSHuacai Chen	prompt "Kernel command line type"
354fa96b57cSHuacai Chen	default CMDLINE_BOOTLOADER
355fa96b57cSHuacai Chen	help
356fa96b57cSHuacai Chen	  Choose how the kernel will handle the provided built-in command
357fa96b57cSHuacai Chen	  line.
358fa96b57cSHuacai Chen
359fa96b57cSHuacai Chenconfig CMDLINE_BOOTLOADER
360fa96b57cSHuacai Chen	bool "Use bootloader kernel arguments if available"
361fa96b57cSHuacai Chen	help
362fa96b57cSHuacai Chen	  Prefer the command-line passed by the boot loader if available.
363fa96b57cSHuacai Chen	  Use the built-in command line as fallback in case we get nothing
364fa96b57cSHuacai Chen	  during boot. This is the default behaviour.
365fa96b57cSHuacai Chen
366fa96b57cSHuacai Chenconfig CMDLINE_EXTEND
367fa96b57cSHuacai Chen	bool "Use built-in to extend bootloader kernel arguments"
368fa96b57cSHuacai Chen	help
369fa96b57cSHuacai Chen	  The command-line arguments provided during boot will be
370fa96b57cSHuacai Chen	  appended to the built-in command line. This is useful in
371fa96b57cSHuacai Chen	  cases where the provided arguments are insufficient and
372fa96b57cSHuacai Chen	  you don't want to or cannot modify them.
373fa96b57cSHuacai Chen
374fa96b57cSHuacai Chenconfig CMDLINE_FORCE
375fa96b57cSHuacai Chen	bool "Always use the built-in kernel command string"
376fa96b57cSHuacai Chen	help
377fa96b57cSHuacai Chen	  Always use the built-in command line, even if we get one during
378fa96b57cSHuacai Chen	  boot. This is useful in case you need to override the provided
379fa96b57cSHuacai Chen	  command line on systems where you don't have or want control
380fa96b57cSHuacai Chen	  over it.
381fa96b57cSHuacai Chen
382fa96b57cSHuacai Chenendchoice
383fa96b57cSHuacai Chen
3845f346a6eSBinbin Zhouconfig BUILTIN_DTB
3855f346a6eSBinbin Zhou	bool "Enable built-in dtb in kernel"
3865f346a6eSBinbin Zhou	depends on OF
3875f346a6eSBinbin Zhou	help
3885f346a6eSBinbin Zhou	  Some existing systems do not provide a canonical device tree to
3895f346a6eSBinbin Zhou	  the kernel at boot time. Let's provide a device tree table in the
3905f346a6eSBinbin Zhou	  kernel, keyed by the dts filename, containing the relevant DTBs.
3915f346a6eSBinbin Zhou
3925f346a6eSBinbin Zhou	  Built-in DTBs are generic enough and can be used as references.
3935f346a6eSBinbin Zhou
3945f346a6eSBinbin Zhouconfig BUILTIN_DTB_NAME
3955f346a6eSBinbin Zhou	string "Source file for built-in dtb"
3965f346a6eSBinbin Zhou	depends on BUILTIN_DTB
3975f346a6eSBinbin Zhou	help
3985f346a6eSBinbin Zhou	  Base name (without suffix, relative to arch/loongarch/boot/dts/)
3995f346a6eSBinbin Zhou	  for the DTS file that will be used to produce the DTB linked into
4005f346a6eSBinbin Zhou	  the kernel.
4015f346a6eSBinbin Zhou
402fa96b57cSHuacai Chenconfig DMI
403fa96b57cSHuacai Chen	bool "Enable DMI scanning"
404fa96b57cSHuacai Chen	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
405fa96b57cSHuacai Chen	default y
406fa96b57cSHuacai Chen	help
407fa96b57cSHuacai Chen	  This enables SMBIOS/DMI feature for systems, and scanning of
408fa96b57cSHuacai Chen	  DMI to identify machine quirks.
409fa96b57cSHuacai Chen
410fa96b57cSHuacai Chenconfig EFI
411fa96b57cSHuacai Chen	bool "EFI runtime service support"
412fa96b57cSHuacai Chen	select UCS2_STRING
413fa96b57cSHuacai Chen	select EFI_RUNTIME_WRAPPERS
414fa96b57cSHuacai Chen	help
415fa96b57cSHuacai Chen	  This enables the kernel to use EFI runtime services that are
416fa96b57cSHuacai Chen	  available (such as the EFI variable services).
417fa96b57cSHuacai Chen
418ead384d9SHuacai Chenconfig EFI_STUB
419ead384d9SHuacai Chen	bool "EFI boot stub support"
420ead384d9SHuacai Chen	default y
421ead384d9SHuacai Chen	depends on EFI
422ead384d9SHuacai Chen	select EFI_GENERIC_STUB
423ead384d9SHuacai Chen	help
424ead384d9SHuacai Chen	  This kernel feature allows the kernel to be loaded directly by
425ead384d9SHuacai Chen	  EFI firmware without the use of a bootloader.
426ead384d9SHuacai Chen
427f6f0c9a7SHuacai Chenconfig SCHED_SMT
428f6f0c9a7SHuacai Chen	bool "SMT scheduler support"
429f6f0c9a7SHuacai Chen	default y
430f6f0c9a7SHuacai Chen	help
431f6f0c9a7SHuacai Chen	  Improves scheduler's performance when there are multiple
432f6f0c9a7SHuacai Chen	  threads in one physical core.
433f6f0c9a7SHuacai Chen
43446859ac8SHuacai Chenconfig SMP
43546859ac8SHuacai Chen	bool "Multi-Processing support"
43646859ac8SHuacai Chen	help
43746859ac8SHuacai Chen	  This enables support for systems with more than one CPU. If you have
43846859ac8SHuacai Chen	  a system with only one CPU, say N. If you have a system with more
43946859ac8SHuacai Chen	  than one CPU, say Y.
44046859ac8SHuacai Chen
44146859ac8SHuacai Chen	  If you say N here, the kernel will run on uni- and multiprocessor
44246859ac8SHuacai Chen	  machines, but will use only one CPU of a multiprocessor machine. If
44346859ac8SHuacai Chen	  you say Y here, the kernel will run on many, but not all,
44446859ac8SHuacai Chen	  uniprocessor machines. On a uniprocessor machine, the kernel
44546859ac8SHuacai Chen	  will run faster if you say N here.
44646859ac8SHuacai Chen
44746859ac8SHuacai Chen	  See also the SMP-HOWTO available at <http://www.tldp.org/docs.html#howto>.
44846859ac8SHuacai Chen
44946859ac8SHuacai Chen	  If you don't know what to do here, say N.
45046859ac8SHuacai Chen
45146859ac8SHuacai Chenconfig HOTPLUG_CPU
45246859ac8SHuacai Chen	bool "Support for hot-pluggable CPUs"
45346859ac8SHuacai Chen	depends on SMP
45446859ac8SHuacai Chen	select GENERIC_IRQ_MIGRATION
45546859ac8SHuacai Chen	help
45646859ac8SHuacai Chen	  Say Y here to allow turning CPUs off and on. CPUs can be
45746859ac8SHuacai Chen	  controlled through /sys/devices/system/cpu.
45846859ac8SHuacai Chen	  (Note: power management support will enable this option
45946859ac8SHuacai Chen	    automatically on SMP systems. )
46046859ac8SHuacai Chen	  Say N if you want to disable CPU hotplug.
46146859ac8SHuacai Chen
46246859ac8SHuacai Chenconfig NR_CPUS
46346859ac8SHuacai Chen	int "Maximum number of CPUs (2-256)"
46446859ac8SHuacai Chen	range 2 256
46546859ac8SHuacai Chen	depends on SMP
46646859ac8SHuacai Chen	default "64"
46746859ac8SHuacai Chen	help
46846859ac8SHuacai Chen	  This allows you to specify the maximum number of CPUs which this
46946859ac8SHuacai Chen	  kernel will support.
47046859ac8SHuacai Chen
471d4b6f156SHuacai Chenconfig NUMA
472d4b6f156SHuacai Chen	bool "NUMA Support"
473255b4658SHuacai Chen	select SMP
474d4b6f156SHuacai Chen	select ACPI_NUMA if ACPI
475d4b6f156SHuacai Chen	help
476d4b6f156SHuacai Chen	  Say Y to compile the kernel with NUMA (Non-Uniform Memory Access)
477d4b6f156SHuacai Chen	  support.  This option improves performance on systems with more
478d4b6f156SHuacai Chen	  than one NUMA node; on single node systems it is generally better
479d4b6f156SHuacai Chen	  to leave it disabled.
480d4b6f156SHuacai Chen
481d4b6f156SHuacai Chenconfig NODES_SHIFT
482d4b6f156SHuacai Chen	int
483d4b6f156SHuacai Chen	default "6"
484d4b6f156SHuacai Chen	depends on NUMA
485d4b6f156SHuacai Chen
4860192445cSZi Yanconfig ARCH_FORCE_MAX_ORDER
487fa96b57cSHuacai Chen	int "Maximum zone order"
48823baf831SKirill A. Shutemov	default "13" if PAGE_SIZE_64KB
48923baf831SKirill A. Shutemov	default "11" if PAGE_SIZE_16KB
49023baf831SKirill A. Shutemov	default "10"
491fa96b57cSHuacai Chen	help
492fa96b57cSHuacai Chen	  The kernel memory allocator divides physically contiguous memory
493fa96b57cSHuacai Chen	  blocks into "zones", where each zone is a power of two number of
494fa96b57cSHuacai Chen	  pages.  This option selects the largest power of two that the kernel
495fa96b57cSHuacai Chen	  keeps in the memory allocator.  If you need to allocate very large
496fa96b57cSHuacai Chen	  blocks of physically contiguous memory, then you may need to
497fa96b57cSHuacai Chen	  increase this value.
498fa96b57cSHuacai Chen
499fa96b57cSHuacai Chen	  The page size is not necessarily 4KB.  Keep this in mind
500fa96b57cSHuacai Chen	  when choosing a value for this option.
501fa96b57cSHuacai Chen
502d2791341SHuacai Chenconfig ARCH_IOREMAP
503d2791341SHuacai Chen	bool "Enable LoongArch DMW-based ioremap()"
504d2791341SHuacai Chen	help
505d2791341SHuacai Chen	  We use generic TLB-based ioremap() by default since it has page
506d2791341SHuacai Chen	  protection support. However, you can enable LoongArch DMW-based
507d2791341SHuacai Chen	  ioremap() for better performance.
508d2791341SHuacai Chen
50916c52e50SHuacai Chenconfig ARCH_WRITECOMBINE
51016c52e50SHuacai Chen	bool "Enable WriteCombine (WUC) for ioremap()"
51116c52e50SHuacai Chen	help
51216c52e50SHuacai Chen	  LoongArch maintains cache coherency in hardware, but when paired
51316c52e50SHuacai Chen	  with LS7A chipsets the WUC attribute (Weak-ordered UnCached, which
51416c52e50SHuacai Chen	  is similar to WriteCombine) is out of the scope of cache coherency
51516c52e50SHuacai Chen	  machanism for PCIe devices (this is a PCIe protocol violation, which
51616c52e50SHuacai Chen	  may be fixed in newer chipsets).
51716c52e50SHuacai Chen
51816c52e50SHuacai Chen	  This means WUC can only used for write-only memory regions now, so
51916c52e50SHuacai Chen	  this option is disabled by default, making WUC silently fallback to
52016c52e50SHuacai Chen	  SUC for ioremap(). You can enable this option if the kernel is ensured
52116c52e50SHuacai Chen	  to run on hardware without this bug.
52216c52e50SHuacai Chen
52316c52e50SHuacai Chen	  You can override this setting via writecombine=on/off boot parameter.
52416c52e50SHuacai Chen
52541596803SHuacai Chenconfig ARCH_STRICT_ALIGN
52641596803SHuacai Chen	bool "Enable -mstrict-align to prevent unaligned accesses" if EXPERT
52741596803SHuacai Chen	default y
52841596803SHuacai Chen	help
52941596803SHuacai Chen	  Not all LoongArch cores support h/w unaligned access, we can use
53041596803SHuacai Chen	  -mstrict-align build parameter to prevent unaligned accesses.
53141596803SHuacai Chen
53241596803SHuacai Chen	  CPUs with h/w unaligned access support:
53341596803SHuacai Chen	  Loongson-2K2000/2K3000/3A5000/3C5000/3D5000.
53441596803SHuacai Chen
53541596803SHuacai Chen	  CPUs without h/w unaligned access support:
53641596803SHuacai Chen	  Loongson-2K500/2K1000.
53741596803SHuacai Chen
53841596803SHuacai Chen	  This option is enabled by default to make the kernel be able to run
53941596803SHuacai Chen	  on all LoongArch systems. But you can disable it manually if you want
54041596803SHuacai Chen	  to run kernel only on systems with h/w unaligned access support in
54141596803SHuacai Chen	  order to optimise for performance.
54241596803SHuacai Chen
54361650023SHuacai Chenconfig CPU_HAS_FPU
54461650023SHuacai Chen	bool
54561650023SHuacai Chen	default y
54661650023SHuacai Chen
54761650023SHuacai Chenconfig CPU_HAS_LSX
54861650023SHuacai Chen	bool "Support for the Loongson SIMD Extension"
54961650023SHuacai Chen	depends on AS_HAS_LSX_EXTENSION
55061650023SHuacai Chen	help
55161650023SHuacai Chen	  Loongson SIMD Extension (LSX) introduces 128 bit wide vector registers
55261650023SHuacai Chen	  and a set of SIMD instructions to operate on them. When this option
55361650023SHuacai Chen	  is enabled the kernel will support allocating & switching LSX
55461650023SHuacai Chen	  vector register contexts. If you know that your kernel will only be
55561650023SHuacai Chen	  running on CPUs which do not support LSX or that your userland will
55661650023SHuacai Chen	  not be making use of it then you may wish to say N here to reduce
55761650023SHuacai Chen	  the size & complexity of your kernel.
55861650023SHuacai Chen
55961650023SHuacai Chen	  If unsure, say Y.
56061650023SHuacai Chen
56161650023SHuacai Chenconfig CPU_HAS_LASX
56261650023SHuacai Chen	bool "Support for the Loongson Advanced SIMD Extension"
56361650023SHuacai Chen	depends on CPU_HAS_LSX
56461650023SHuacai Chen	depends on AS_HAS_LASX_EXTENSION
56561650023SHuacai Chen	help
56661650023SHuacai Chen	  Loongson Advanced SIMD Extension (LASX) introduces 256 bit wide vector
56761650023SHuacai Chen	  registers and a set of SIMD instructions to operate on them. When this
56861650023SHuacai Chen	  option is enabled the kernel will support allocating & switching LASX
56961650023SHuacai Chen	  vector register contexts. If you know that your kernel will only be
57061650023SHuacai Chen	  running on CPUs which do not support LASX or that your userland will
57161650023SHuacai Chen	  not be making use of it then you may wish to say N here to reduce
57261650023SHuacai Chen	  the size & complexity of your kernel.
57361650023SHuacai Chen
57461650023SHuacai Chen	  If unsure, say Y.
57561650023SHuacai Chen
576bd3c5798SQi Huconfig CPU_HAS_LBT
577bd3c5798SQi Hu	bool "Support for the Loongson Binary Translation Extension"
578bd3c5798SQi Hu	depends on AS_HAS_LBT_EXTENSION
579bd3c5798SQi Hu	help
580bd3c5798SQi Hu	  Loongson Binary Translation (LBT) introduces 4 scratch registers (SCR0
581bd3c5798SQi Hu	  to SCR3), x86/ARM eflags (eflags) and x87 fpu stack pointer (ftop).
582bd3c5798SQi Hu	  Enabling this option allows the kernel to allocate and switch registers
583bd3c5798SQi Hu	  specific to LBT.
584bd3c5798SQi Hu
585bd3c5798SQi Hu	  If you want to use this feature, such as the Loongson Architecture
586bd3c5798SQi Hu	  Translator (LAT), say Y.
587bd3c5798SQi Hu
58861650023SHuacai Chenconfig CPU_HAS_PREFETCH
58961650023SHuacai Chen	bool
59061650023SHuacai Chen	default y
59161650023SHuacai Chen
59219e6dd0bSEric DeVolderconfig ARCH_SUPPORTS_KEXEC
59319e6dd0bSEric DeVolder	def_bool y
5944a03b2acSYouling Tang
59519e6dd0bSEric DeVolderconfig ARCH_SUPPORTS_CRASH_DUMP
59619e6dd0bSEric DeVolder	def_bool y
5974a03b2acSYouling Tang
59819e6dd0bSEric DeVolderconfig ARCH_SELECTS_CRASH_DUMP
59919e6dd0bSEric DeVolder	def_bool y
60019e6dd0bSEric DeVolder	depends on CRASH_DUMP
6013f89765dSYouling Tang	select RELOCATABLE
6024e62d1d8SYouling Tang
60378de91b4SYouling Tangconfig ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION
60478de91b4SYouling Tang	def_bool CRASH_CORE
60578de91b4SYouling Tang
606d8da19fbSYouling Tangconfig RELOCATABLE
607d8da19fbSYouling Tang	bool "Relocatable kernel"
608d8da19fbSYouling Tang	help
609d8da19fbSYouling Tang	  This builds the kernel as a Position Independent Executable (PIE),
610d8da19fbSYouling Tang	  which retains all relocation metadata required, so as to relocate
611d8da19fbSYouling Tang	  the kernel binary at runtime to a different virtual address from
612d8da19fbSYouling Tang	  its link address.
613d8da19fbSYouling Tang
614e5f02b51SYouling Tangconfig RANDOMIZE_BASE
615e5f02b51SYouling Tang	bool "Randomize the address of the kernel (KASLR)"
616e5f02b51SYouling Tang	depends on RELOCATABLE
617e5f02b51SYouling Tang	help
618e5f02b51SYouling Tang	   Randomizes the physical and virtual address at which the
619e5f02b51SYouling Tang	   kernel image is loaded, as a security feature that
620e5f02b51SYouling Tang	   deters exploit attempts relying on knowledge of the location
621e5f02b51SYouling Tang	   of kernel internals.
622e5f02b51SYouling Tang
623e5f02b51SYouling Tang	   The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
624e5f02b51SYouling Tang
625e5f02b51SYouling Tang	   If unsure, say N.
626e5f02b51SYouling Tang
627e5f02b51SYouling Tangconfig RANDOMIZE_BASE_MAX_OFFSET
628e5f02b51SYouling Tang	hex "Maximum KASLR offset" if EXPERT
629e5f02b51SYouling Tang	depends on RANDOMIZE_BASE
630e5f02b51SYouling Tang	range 0x0 0x10000000
631e5f02b51SYouling Tang	default "0x01000000"
632e5f02b51SYouling Tang	help
633e5f02b51SYouling Tang	  When KASLR is active, this provides the maximum offset that will
634e5f02b51SYouling Tang	  be applied to the kernel image. It should be set according to the
635e5f02b51SYouling Tang	  amount of physical RAM available in the target system.
636e5f02b51SYouling Tang
637e5f02b51SYouling Tang	  This is limited by the size of the lower address memory, 256MB.
638e5f02b51SYouling Tang
639fa96b57cSHuacai Chenendmenu
640fa96b57cSHuacai Chen
641fa96b57cSHuacai Chenconfig ARCH_SELECT_MEMORY_MODEL
642fa96b57cSHuacai Chen	def_bool y
643fa96b57cSHuacai Chen
644fa96b57cSHuacai Chenconfig ARCH_FLATMEM_ENABLE
645fa96b57cSHuacai Chen	def_bool y
646d4b6f156SHuacai Chen	depends on !NUMA
647fa96b57cSHuacai Chen
648fa96b57cSHuacai Chenconfig ARCH_SPARSEMEM_ENABLE
649fa96b57cSHuacai Chen	def_bool y
6507b09f5afSFeiyang Chen	select SPARSEMEM_VMEMMAP_ENABLE
651fa96b57cSHuacai Chen	help
652fa96b57cSHuacai Chen	  Say Y to support efficient handling of sparse physical memory,
653fa96b57cSHuacai Chen	  for architectures which are either NUMA (Non-Uniform Memory Access)
654fa96b57cSHuacai Chen	  or have huge holes in the physical address space for other reasons.
655ee65728eSMike Rapoport	  See <file:Documentation/mm/numa.rst> for more.
656fa96b57cSHuacai Chen
657fa96b57cSHuacai Chenconfig ARCH_MEMORY_PROBE
658fa96b57cSHuacai Chen	def_bool y
659fa96b57cSHuacai Chen	depends on MEMORY_HOTPLUG
660fa96b57cSHuacai Chen
661fa96b57cSHuacai Chenconfig MMU
662fa96b57cSHuacai Chen	bool
663fa96b57cSHuacai Chen	default y
664fa96b57cSHuacai Chen
665fa96b57cSHuacai Chenconfig ARCH_MMAP_RND_BITS_MIN
666fa96b57cSHuacai Chen	default 12
667fa96b57cSHuacai Chen
668fa96b57cSHuacai Chenconfig ARCH_MMAP_RND_BITS_MAX
669fa96b57cSHuacai Chen	default 18
670fa96b57cSHuacai Chen
67119bc6cb6STiezhu Yangconfig ARCH_SUPPORTS_UPROBES
67219bc6cb6STiezhu Yang	def_bool y
67319bc6cb6STiezhu Yang
6745aa4ac64SQing Zhangconfig KASAN_SHADOW_OFFSET
6755aa4ac64SQing Zhang	hex
6765aa4ac64SQing Zhang	default 0x0
6775aa4ac64SQing Zhang	depends on KASAN
6785aa4ac64SQing Zhang
679fa96b57cSHuacai Chenmenu "Power management options"
680fa96b57cSHuacai Chen
681366bb35aSHuacai Chenconfig ARCH_SUSPEND_POSSIBLE
682366bb35aSHuacai Chen	def_bool y
683366bb35aSHuacai Chen
6847db54bfeSHuacai Chenconfig ARCH_HIBERNATION_POSSIBLE
6857db54bfeSHuacai Chen	def_bool y
6867db54bfeSHuacai Chen
687366bb35aSHuacai Chensource "kernel/power/Kconfig"
688fa96b57cSHuacai Chensource "drivers/acpi/Kconfig"
689fa96b57cSHuacai Chen
690fa96b57cSHuacai Chenendmenu
691c1fc48aaSTianrui Zhao
692c1fc48aaSTianrui Zhaosource "arch/loongarch/kvm/Kconfig"
693