usercopy: Check valid lifetime via stack depth
[linux-block.git] / arch / arm64 / Kconfig
CommitLineData
ec8f24b7 1# SPDX-License-Identifier: GPL-2.0-only
8c2c3df3
CM
2config ARM64
3 def_bool y
b6197b93 4 select ACPI_CCA_REQUIRED if ACPI
d8f4f161 5 select ACPI_GENERIC_GSI if ACPI
5f1ae4eb 6 select ACPI_GTDT if ACPI
c6bb8f89 7 select ACPI_IORT if ACPI
6933de0c 8 select ACPI_REDUCED_HARDWARE_ONLY if ACPI
52146173 9 select ACPI_MCFG if (ACPI && PCI)
888125a7 10 select ACPI_SPCR_TABLE if ACPI
0ce82232 11 select ACPI_PPTT if ACPI
09587a09 12 select ARCH_HAS_DEBUG_WX
ab7876a9 13 select ARCH_BINFMT_ELF_STATE
cd9bc2c9 14 select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE
1e866974 15 select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION
91024b3c
AK
16 select ARCH_ENABLE_MEMORY_HOTPLUG
17 select ARCH_ENABLE_MEMORY_HOTREMOVE
66f24fa7 18 select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2
1e866974 19 select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
c2280be8 20 select ARCH_HAS_CACHE_LINE_SIZE
2792d84e 21 select ARCH_HAS_CURRENT_STACK_POINTER
ec6d06ef 22 select ARCH_HAS_DEBUG_VIRTUAL
399145f9 23 select ARCH_HAS_DEBUG_VM_PGTABLE
13bf5ced 24 select ARCH_HAS_DMA_PREP_COHERENT
38b04a74 25 select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
e75bef2a 26 select ARCH_HAS_FAST_MULTIPLIER
6974f0c4 27 select ARCH_HAS_FORTIFY_SOURCE
957e3fac 28 select ARCH_HAS_GCOV_PROFILE_ALL
4eb0716e 29 select ARCH_HAS_GIGANTIC_PAGE
5e4c7549 30 select ARCH_HAS_KCOV
d8ae8a37 31 select ARCH_HAS_KEEPINITRD
f1e3a12b 32 select ARCH_HAS_MEMBARRIER_SYNC_CORE
0ebeea8c 33 select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
73b20c84 34 select ARCH_HAS_PTE_DEVMAP
3010a5ea 35 select ARCH_HAS_PTE_SPECIAL
347cb6af 36 select ARCH_HAS_SETUP_DMA_OPS
4739d53f 37 select ARCH_HAS_SET_DIRECT_MAP
d2852a22 38 select ARCH_HAS_SET_MEMORY
5fc57df2 39 select ARCH_STACKWALK
ad21fc4f
LA
40 select ARCH_HAS_STRICT_KERNEL_RWX
41 select ARCH_HAS_STRICT_MODULE_RWX
886643b7
CH
42 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
43 select ARCH_HAS_SYNC_DMA_FOR_CPU
4378a7d4 44 select ARCH_HAS_SYSCALL_WRAPPER
dc2acded 45 select ARCH_HAS_TEARDOWN_DMA_OPS if IOMMU_SUPPORT
1f85008e 46 select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
63703f37 47 select ARCH_HAS_ZONE_DMA_SET if EXPERT
ab7876a9 48 select ARCH_HAVE_ELF_PROT
396a5d4a 49 select ARCH_HAVE_NMI_SAFE_CMPXCHG
7ef858da
TG
50 select ARCH_INLINE_READ_LOCK if !PREEMPTION
51 select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION
52 select ARCH_INLINE_READ_LOCK_IRQ if !PREEMPTION
53 select ARCH_INLINE_READ_LOCK_IRQSAVE if !PREEMPTION
54 select ARCH_INLINE_READ_UNLOCK if !PREEMPTION
55 select ARCH_INLINE_READ_UNLOCK_BH if !PREEMPTION
56 select ARCH_INLINE_READ_UNLOCK_IRQ if !PREEMPTION
57 select ARCH_INLINE_READ_UNLOCK_IRQRESTORE if !PREEMPTION
58 select ARCH_INLINE_WRITE_LOCK if !PREEMPTION
59 select ARCH_INLINE_WRITE_LOCK_BH if !PREEMPTION
60 select ARCH_INLINE_WRITE_LOCK_IRQ if !PREEMPTION
61 select ARCH_INLINE_WRITE_LOCK_IRQSAVE if !PREEMPTION
62 select ARCH_INLINE_WRITE_UNLOCK if !PREEMPTION
63 select ARCH_INLINE_WRITE_UNLOCK_BH if !PREEMPTION
64 select ARCH_INLINE_WRITE_UNLOCK_IRQ if !PREEMPTION
65 select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE if !PREEMPTION
66 select ARCH_INLINE_SPIN_TRYLOCK if !PREEMPTION
67 select ARCH_INLINE_SPIN_TRYLOCK_BH if !PREEMPTION
68 select ARCH_INLINE_SPIN_LOCK if !PREEMPTION
69 select ARCH_INLINE_SPIN_LOCK_BH if !PREEMPTION
70 select ARCH_INLINE_SPIN_LOCK_IRQ if !PREEMPTION
71 select ARCH_INLINE_SPIN_LOCK_IRQSAVE if !PREEMPTION
72 select ARCH_INLINE_SPIN_UNLOCK if !PREEMPTION
73 select ARCH_INLINE_SPIN_UNLOCK_BH if !PREEMPTION
74 select ARCH_INLINE_SPIN_UNLOCK_IRQ if !PREEMPTION
75 select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE if !PREEMPTION
350e88ba 76 select ARCH_KEEP_MEMBLOCK
c63c8700 77 select ARCH_USE_CMPXCHG_LOCKREF
bf7f15c5 78 select ARCH_USE_GNU_PROPERTY
dce44566 79 select ARCH_USE_MEMTEST
087133ac 80 select ARCH_USE_QUEUED_RWLOCKS
c1109047 81 select ARCH_USE_QUEUED_SPINLOCKS
50479d58 82 select ARCH_USE_SYM_ANNOTATIONS
5d6ad668 83 select ARCH_SUPPORTS_DEBUG_PAGEALLOC
855f9a8e 84 select ARCH_SUPPORTS_HUGETLBFS
c484f256 85 select ARCH_SUPPORTS_MEMORY_FAILURE
5287569a 86 select ARCH_SUPPORTS_SHADOW_CALL_STACK if CC_HAVE_SHADOW_CALL_STACK
112b6a8e
ST
87 select ARCH_SUPPORTS_LTO_CLANG if CPU_LITTLE_ENDIAN
88 select ARCH_SUPPORTS_LTO_CLANG_THIN
9186ad8e 89 select ARCH_SUPPORTS_CFI_CLANG
4badad35 90 select ARCH_SUPPORTS_ATOMIC_RMW
42a7ba16 91 select ARCH_SUPPORTS_INT128 if CC_HAS_INT128
56166230 92 select ARCH_SUPPORTS_NUMA_BALANCING
84c187af 93 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION if COMPAT
81c22041 94 select ARCH_WANT_DEFAULT_BPF_JIT
67f3977f 95 select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT
b6f35981 96 select ARCH_WANT_FRAME_POINTERS
3876d4a3 97 select ARCH_WANT_HUGE_PMD_SHARE if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36)
59612b24 98 select ARCH_WANT_LD_ORPHAN_WARN
51c2ee6d 99 select ARCH_WANTS_NO_INSTR
f0b7f8a4 100 select ARCH_HAS_UBSAN_SANITIZE_ALL
25c92a37 101 select ARM_AMBA
1aee5d7a 102 select ARM_ARCH_TIMER
c4188edc 103 select ARM_GIC
875cbf3e 104 select AUDIT_ARCH_COMPAT_GENERIC
3ee80364 105 select ARM_GIC_V2M if PCI
021f6537 106 select ARM_GIC_V3
3ee80364 107 select ARM_GIC_V3_ITS if PCI
bff60792 108 select ARM_PSCI_FW
10916706 109 select BUILDTIME_TABLE_SORT
db2789b5 110 select CLONE_BACKWARDS
7ca2ef33 111 select COMMON_CLK
166936ba 112 select CPU_PM if (SUSPEND || CPU_IDLE)
7481cddf 113 select CRC32
7bc13fd3 114 select DCACHE_WORD_ACCESS
0c3b3171 115 select DMA_DIRECT_REMAP
ef37566c 116 select EDAC_SUPPORT
2f34f173 117 select FRAME_POINTER
d4932f9e 118 select GENERIC_ALLOCATOR
2ef7a295 119 select GENERIC_ARCH_TOPOLOGY
4b3dc967 120 select GENERIC_CLOCKEVENTS_BROADCAST
3be1a5c4 121 select GENERIC_CPU_AUTOPROBE
61ae1321 122 select GENERIC_CPU_VULNERABILITIES
bf4b558e 123 select GENERIC_EARLY_IOREMAP
2314ee4d 124 select GENERIC_IDLE_POLL_SETUP
d3afc7f1 125 select GENERIC_IRQ_IPI
8c2c3df3
CM
126 select GENERIC_IRQ_PROBE
127 select GENERIC_IRQ_SHOW
6544e67b 128 select GENERIC_IRQ_SHOW_LEVEL
6585bd82 129 select GENERIC_LIB_DEVMEM_IS_ALLOWED
cb61f676 130 select GENERIC_PCI_IOMAP
102f45fd 131 select GENERIC_PTDUMP
65cd4f6c 132 select GENERIC_SCHED_CLOCK
8c2c3df3
CM
133 select GENERIC_SMP_IDLE_THREAD
134 select GENERIC_TIME_VSYSCALL
28b1a824 135 select GENERIC_GETTIMEOFDAY
9614cc57 136 select GENERIC_VDSO_TIME_NS
8c2c3df3 137 select HARDIRQS_SW_RESEND
45544eee 138 select HAVE_MOVE_PMD
f5308c89 139 select HAVE_MOVE_PUD
eb01d42a 140 select HAVE_PCI
9f9a35a7 141 select HAVE_ACPI_APEI if (ACPI && EFI)
5284e1b4 142 select HAVE_ALIGNED_STRUCT_PAGE if SLUB
875cbf3e 143 select HAVE_ARCH_AUDITSYSCALL
8e7a4cef 144 select HAVE_ARCH_BITREVERSE
689eae42 145 select HAVE_ARCH_COMPILER_H
324420bf 146 select HAVE_ARCH_HUGE_VMAP
9732cafd 147 select HAVE_ARCH_JUMP_LABEL
c296146c 148 select HAVE_ARCH_JUMP_LABEL_RELATIVE
e17d8025 149 select HAVE_ARCH_KASAN if !(ARM64_16K_PAGES && ARM64_VA_BITS_48)
71b613fc 150 select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
2d4acb90 151 select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
94ab5b61 152 select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
dd03762a
KW
153 # Some instrumentation may be unsound, hence EXPERT
154 select HAVE_ARCH_KCSAN if EXPERT
840b2398 155 select HAVE_ARCH_KFENCE
9529247d 156 select HAVE_ARCH_KGDB
8f0d3aa9
DC
157 select HAVE_ARCH_MMAP_RND_BITS
158 select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT
271ca788 159 select HAVE_ARCH_PREL32_RELOCATIONS
70918779 160 select HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET
a1ae65b2 161 select HAVE_ARCH_SECCOMP_FILTER
0b3e3366 162 select HAVE_ARCH_STACKLEAK
9e8084d3 163 select HAVE_ARCH_THREAD_STRUCT_WHITELIST
8c2c3df3 164 select HAVE_ARCH_TRACEHOOK
8ee70879 165 select HAVE_ARCH_TRANSPARENT_HUGEPAGE
e3067861 166 select HAVE_ARCH_VMAP_STACK
8ee70879 167 select HAVE_ARM_SMCCC
2ff2b7ec 168 select HAVE_ASM_MODVERSIONS
6077776b 169 select HAVE_EBPF_JIT
af64d2aa 170 select HAVE_C_RECORDMCOUNT
5284e1b4 171 select HAVE_CMPXCHG_DOUBLE
95eff6b2 172 select HAVE_CMPXCHG_LOCAL
8ee70879 173 select HAVE_CONTEXT_TRACKING
b69ec42b 174 select HAVE_DEBUG_KMEMLEAK
6ac2104d 175 select HAVE_DMA_CONTIGUOUS
bd7d38db 176 select HAVE_DYNAMIC_FTRACE
3b23e499
TD
177 select HAVE_DYNAMIC_FTRACE_WITH_REGS \
178 if $(cc-option,-fpatchable-function-entry=2)
a31d793d
ST
179 select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY \
180 if DYNAMIC_FTRACE_WITH_REGS
50afc33a 181 select HAVE_EFFICIENT_UNALIGNED_ACCESS
67a929e0 182 select HAVE_FAST_GUP
af64d2aa 183 select HAVE_FTRACE_MCOUNT_RECORD
819e50e2 184 select HAVE_FUNCTION_TRACER
42d038c4 185 select HAVE_FUNCTION_ERROR_INJECTION
819e50e2 186 select HAVE_FUNCTION_GRAPH_TRACER
6b90bd4b 187 select HAVE_GCC_PLUGINS
8c2c3df3 188 select HAVE_HW_BREAKPOINT if PERF_EVENTS
24da208d 189 select HAVE_IRQ_TIME_ACCOUNTING
e26bb75a 190 select HAVE_KVM
396a5d4a 191 select HAVE_NMI
55834a77 192 select HAVE_PATA_PLATFORM
8c2c3df3 193 select HAVE_PERF_EVENTS
2ee0d7fd
JP
194 select HAVE_PERF_REGS
195 select HAVE_PERF_USER_STACK_DUMP
0a8ea52c 196 select HAVE_REGS_AND_STACK_ACCESS_API
a68773bd 197 select HAVE_POSIX_CPU_TIMERS_TASK_WORK
a823c35f 198 select HAVE_FUNCTION_ARG_ACCESS_API
ff2e6d72 199 select MMU_GATHER_RCU_TABLE_FREE
409d5db4 200 select HAVE_RSEQ
d148eac0 201 select HAVE_STACKPROTECTOR
055b1212 202 select HAVE_SYSCALL_TRACEPOINTS
2dd0e8d2 203 select HAVE_KPROBES
cd1ee3b1 204 select HAVE_KRETPROBES
28b1a824 205 select HAVE_GENERIC_VDSO
876945db 206 select IOMMU_DMA if IOMMU_SUPPORT
8c2c3df3 207 select IRQ_DOMAIN
e8557d1f 208 select IRQ_FORCED_THREADING
acc3042d 209 select KASAN_VMALLOC if KASAN_GENERIC
fea2acaa 210 select MODULES_USE_ELF_RELA
f616ab59 211 select NEED_DMA_MAP_STATE
86596f0a 212 select NEED_SG_DMA_LENGTH
8c2c3df3
CM
213 select OF
214 select OF_EARLY_FLATTREE
2eac9c2d 215 select PCI_DOMAINS_GENERIC if PCI
52146173 216 select PCI_ECAM if (ACPI && PCI)
20f1b79d 217 select PCI_SYSCALL if PCI
aa1e8ec1
CM
218 select POWER_RESET
219 select POWER_SUPPLY
8c2c3df3 220 select SPARSE_IRQ
09230cbc 221 select SWIOTLB
7ac57a89 222 select SYSCTL_EXCEPTION_TRACE
c02433dd 223 select THREAD_INFO_IN_TASK
7677f7fd 224 select HAVE_ARCH_USERFAULTFD_MINOR if USERFAULTFD
4aae683f 225 select TRACE_IRQFLAGS_SUPPORT
8c2c3df3
CM
226 help
227 ARM 64-bit (AArch64) Linux support.
228
229config 64BIT
230 def_bool y
231
8c2c3df3
CM
232config MMU
233 def_bool y
234
030c4d24
MR
235config ARM64_PAGE_SHIFT
236 int
237 default 16 if ARM64_64K_PAGES
238 default 14 if ARM64_16K_PAGES
239 default 12
240
c0d6de32 241config ARM64_CONT_PTE_SHIFT
030c4d24
MR
242 int
243 default 5 if ARM64_64K_PAGES
244 default 7 if ARM64_16K_PAGES
245 default 4
246
e6765941
GS
247config ARM64_CONT_PMD_SHIFT
248 int
249 default 5 if ARM64_64K_PAGES
250 default 5 if ARM64_16K_PAGES
251 default 4
252
8f0d3aa9
DC
253config ARCH_MMAP_RND_BITS_MIN
254 default 14 if ARM64_64K_PAGES
255 default 16 if ARM64_16K_PAGES
256 default 18
257
258# max bits determined by the following formula:
259# VA_BITS - PAGE_SHIFT - 3
260config ARCH_MMAP_RND_BITS_MAX
261 default 19 if ARM64_VA_BITS=36
262 default 24 if ARM64_VA_BITS=39
263 default 27 if ARM64_VA_BITS=42
264 default 30 if ARM64_VA_BITS=47
265 default 29 if ARM64_VA_BITS=48 && ARM64_64K_PAGES
266 default 31 if ARM64_VA_BITS=48 && ARM64_16K_PAGES
267 default 33 if ARM64_VA_BITS=48
268 default 14 if ARM64_64K_PAGES
269 default 16 if ARM64_16K_PAGES
270 default 18
271
272config ARCH_MMAP_RND_COMPAT_BITS_MIN
273 default 7 if ARM64_64K_PAGES
274 default 9 if ARM64_16K_PAGES
275 default 11
276
277config ARCH_MMAP_RND_COMPAT_BITS_MAX
278 default 16
279
ce816fa8 280config NO_IOPORT_MAP
d1e6dc91 281 def_bool y if !PCI
8c2c3df3
CM
282
283config STACKTRACE_SUPPORT
284 def_bool y
285
bf0c4e04
JVS
286config ILLEGAL_POINTER_VALUE
287 hex
288 default 0xdead000000000000
289
8c2c3df3
CM
290config LOCKDEP_SUPPORT
291 def_bool y
292
9fb7410f
DM
293config GENERIC_BUG
294 def_bool y
295 depends on BUG
296
297config GENERIC_BUG_RELATIVE_POINTERS
298 def_bool y
299 depends on GENERIC_BUG
300
8c2c3df3
CM
301config GENERIC_HWEIGHT
302 def_bool y
303
304config GENERIC_CSUM
305 def_bool y
306
307config GENERIC_CALIBRATE_DELAY
308 def_bool y
309
ca6e51d5
OS
310config ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE
311 def_bool y
312
4b3dc967
WD
313config SMP
314 def_bool y
315
4cfb3613
AB
316config KERNEL_MODE_NEON
317 def_bool y
318
92cc15fc
RH
319config FIX_EARLYCON_MEM
320 def_bool y
321
9f25e6ad
KS
322config PGTABLE_LEVELS
323 int
21539939 324 default 2 if ARM64_16K_PAGES && ARM64_VA_BITS_36
9f25e6ad 325 default 2 if ARM64_64K_PAGES && ARM64_VA_BITS_42
b6d00d47 326 default 3 if ARM64_64K_PAGES && (ARM64_VA_BITS_48 || ARM64_VA_BITS_52)
9f25e6ad 327 default 3 if ARM64_4K_PAGES && ARM64_VA_BITS_39
44eaacf1
SP
328 default 3 if ARM64_16K_PAGES && ARM64_VA_BITS_47
329 default 4 if !ARM64_64K_PAGES && ARM64_VA_BITS_48
9f25e6ad 330
9842ceae
PA
331config ARCH_SUPPORTS_UPROBES
332 def_bool y
333
8f360948
AB
334config ARCH_PROC_KCORE_TEXT
335 def_bool y
336
8bf9284d
VM
337config BROKEN_GAS_INST
338 def_bool !$(as-instr,1:\n.inst 0\n.rept . - 1b\n\nnop\n.endr\n)
339
6bd1d0be
SC
340config KASAN_SHADOW_OFFSET
341 hex
0fea6e9a 342 depends on KASAN_GENERIC || KASAN_SW_TAGS
f4693c27
AB
343 default 0xdfff800000000000 if (ARM64_VA_BITS_48 || ARM64_VA_BITS_52) && !KASAN_SW_TAGS
344 default 0xdfffc00000000000 if ARM64_VA_BITS_47 && !KASAN_SW_TAGS
345 default 0xdffffe0000000000 if ARM64_VA_BITS_42 && !KASAN_SW_TAGS
346 default 0xdfffffc000000000 if ARM64_VA_BITS_39 && !KASAN_SW_TAGS
347 default 0xdffffff800000000 if ARM64_VA_BITS_36 && !KASAN_SW_TAGS
348 default 0xefff800000000000 if (ARM64_VA_BITS_48 || ARM64_VA_BITS_52) && KASAN_SW_TAGS
349 default 0xefffc00000000000 if ARM64_VA_BITS_47 && KASAN_SW_TAGS
350 default 0xeffffe0000000000 if ARM64_VA_BITS_42 && KASAN_SW_TAGS
351 default 0xefffffc000000000 if ARM64_VA_BITS_39 && KASAN_SW_TAGS
352 default 0xeffffff800000000 if ARM64_VA_BITS_36 && KASAN_SW_TAGS
6bd1d0be
SC
353 default 0xffffffffffffffff
354
6a377491 355source "arch/arm64/Kconfig.platforms"
8c2c3df3 356
8c2c3df3
CM
357menu "Kernel Features"
358
c0a01b84
AP
359menu "ARM errata workarounds via the alternatives framework"
360
c9460dcb 361config ARM64_WORKAROUND_CLEAN_CACHE
bc15cf70 362 bool
c9460dcb 363
c0a01b84
AP
364config ARM64_ERRATUM_826319
365 bool "Cortex-A53: 826319: System might deadlock if a write cannot complete until read data is accepted"
366 default y
c9460dcb 367 select ARM64_WORKAROUND_CLEAN_CACHE
c0a01b84
AP
368 help
369 This option adds an alternative code sequence to work around ARM
370 erratum 826319 on Cortex-A53 parts up to r0p2 with an AMBA 4 ACE or
371 AXI master interface and an L2 cache.
372
373 If a Cortex-A53 uses an AMBA AXI4 ACE interface to other processors
374 and is unable to accept a certain write via this interface, it will
375 not progress on read data presented on the read data channel and the
376 system can deadlock.
377
378 The workaround promotes data cache clean instructions to
379 data cache clean-and-invalidate.
380 Please note that this does not necessarily enable the workaround,
381 as it depends on the alternative framework, which will only patch
382 the kernel if an affected CPU is detected.
383
384 If unsure, say Y.
385
386config ARM64_ERRATUM_827319
387 bool "Cortex-A53: 827319: Data cache clean instructions might cause overlapping transactions to the interconnect"
388 default y
c9460dcb 389 select ARM64_WORKAROUND_CLEAN_CACHE
c0a01b84
AP
390 help
391 This option adds an alternative code sequence to work around ARM
392 erratum 827319 on Cortex-A53 parts up to r0p2 with an AMBA 5 CHI
393 master interface and an L2 cache.
394
395 Under certain conditions this erratum can cause a clean line eviction
396 to occur at the same time as another transaction to the same address
397 on the AMBA 5 CHI interface, which can cause data corruption if the
398 interconnect reorders the two transactions.
399
400 The workaround promotes data cache clean instructions to
401 data cache clean-and-invalidate.
402 Please note that this does not necessarily enable the workaround,
403 as it depends on the alternative framework, which will only patch
404 the kernel if an affected CPU is detected.
405
406 If unsure, say Y.
407
408config ARM64_ERRATUM_824069
409 bool "Cortex-A53: 824069: Cache line might not be marked as clean after a CleanShared snoop"
410 default y
c9460dcb 411 select ARM64_WORKAROUND_CLEAN_CACHE
c0a01b84
AP
412 help
413 This option adds an alternative code sequence to work around ARM
414 erratum 824069 on Cortex-A53 parts up to r0p2 when it is connected
415 to a coherent interconnect.
416
417 If a Cortex-A53 processor is executing a store or prefetch for
418 write instruction at the same time as a processor in another
419 cluster is executing a cache maintenance operation to the same
420 address, then this erratum might cause a clean cache line to be
421 incorrectly marked as dirty.
422
423 The workaround promotes data cache clean instructions to
424 data cache clean-and-invalidate.
425 Please note that this option does not necessarily enable the
426 workaround, as it depends on the alternative framework, which will
427 only patch the kernel if an affected CPU is detected.
428
429 If unsure, say Y.
430
431config ARM64_ERRATUM_819472
432 bool "Cortex-A53: 819472: Store exclusive instructions might cause data corruption"
433 default y
c9460dcb 434 select ARM64_WORKAROUND_CLEAN_CACHE
c0a01b84
AP
435 help
436 This option adds an alternative code sequence to work around ARM
437 erratum 819472 on Cortex-A53 parts up to r0p1 with an L2 cache
438 present when it is connected to a coherent interconnect.
439
440 If the processor is executing a load and store exclusive sequence at
441 the same time as a processor in another cluster is executing a cache
442 maintenance operation to the same address, then this erratum might
443 cause data corruption.
444
445 The workaround promotes data cache clean instructions to
446 data cache clean-and-invalidate.
447 Please note that this does not necessarily enable the workaround,
448 as it depends on the alternative framework, which will only patch
449 the kernel if an affected CPU is detected.
450
451 If unsure, say Y.
452
453config ARM64_ERRATUM_832075
454 bool "Cortex-A57: 832075: possible deadlock on mixing exclusive memory accesses with device loads"
455 default y
456 help
457 This option adds an alternative code sequence to work around ARM
458 erratum 832075 on Cortex-A57 parts up to r1p2.
459
460 Affected Cortex-A57 parts might deadlock when exclusive load/store
461 instructions to Write-Back memory are mixed with Device loads.
462
463 The workaround is to promote device loads to use Load-Acquire
464 semantics.
465 Please note that this does not necessarily enable the workaround,
498cd5c3
MZ
466 as it depends on the alternative framework, which will only patch
467 the kernel if an affected CPU is detected.
468
469 If unsure, say Y.
470
471config ARM64_ERRATUM_834220
472 bool "Cortex-A57: 834220: Stage 2 translation fault might be incorrectly reported in presence of a Stage 1 fault"
473 depends on KVM
474 default y
475 help
476 This option adds an alternative code sequence to work around ARM
477 erratum 834220 on Cortex-A57 parts up to r1p2.
478
479 Affected Cortex-A57 parts might report a Stage 2 translation
480 fault as the result of a Stage 1 fault for load crossing a
481 page boundary when there is a permission or device memory
482 alignment fault at Stage 1 and a translation fault at Stage 2.
483
484 The workaround is to verify that the Stage 1 translation
485 doesn't generate a fault before handling the Stage 2 fault.
486 Please note that this does not necessarily enable the workaround,
c0a01b84
AP
487 as it depends on the alternative framework, which will only patch
488 the kernel if an affected CPU is detected.
489
490 If unsure, say Y.
491
905e8c5d
WD
492config ARM64_ERRATUM_845719
493 bool "Cortex-A53: 845719: a load might read incorrect data"
494 depends on COMPAT
495 default y
496 help
497 This option adds an alternative code sequence to work around ARM
498 erratum 845719 on Cortex-A53 parts up to r0p4.
499
500 When running a compat (AArch32) userspace on an affected Cortex-A53
501 part, a load at EL0 from a virtual address that matches the bottom 32
502 bits of the virtual address used by a recent load at (AArch64) EL1
503 might return incorrect data.
504
505 The workaround is to write the contextidr_el1 register on exception
506 return to a 32-bit task.
507 Please note that this does not necessarily enable the workaround,
508 as it depends on the alternative framework, which will only patch
509 the kernel if an affected CPU is detected.
510
511 If unsure, say Y.
512
df057cc7
WD
513config ARM64_ERRATUM_843419
514 bool "Cortex-A53: 843419: A load or store might access an incorrect address"
df057cc7 515 default y
a257e025 516 select ARM64_MODULE_PLTS if MODULES
df057cc7 517 help
6ffe9923 518 This option links the kernel with '--fix-cortex-a53-843419' and
a257e025
AB
519 enables PLT support to replace certain ADRP instructions, which can
520 cause subsequent memory accesses to use an incorrect address on
521 Cortex-A53 parts up to r0p4.
df057cc7
WD
522
523 If unsure, say Y.
524
987fdfec
MY
525config ARM64_LD_HAS_FIX_ERRATUM_843419
526 def_bool $(ld-option,--fix-cortex-a53-843419)
527
ece1397c
SP
528config ARM64_ERRATUM_1024718
529 bool "Cortex-A55: 1024718: Update of DBM/AP bits without break before make might result in incorrect update"
530 default y
531 help
bc15cf70 532 This option adds a workaround for ARM Cortex-A55 Erratum 1024718.
ece1397c 533
c0b15c25 534 Affected Cortex-A55 cores (all revisions) could cause incorrect
ece1397c 535 update of the hardware dirty bit when the DBM/AP bits are updated
bc15cf70 536 without a break-before-make. The workaround is to disable the usage
ece1397c 537 of hardware DBM locally on the affected cores. CPUs not affected by
bc15cf70 538 this erratum will continue to use the feature.
df057cc7
WD
539
540 If unsure, say Y.
541
a5325089 542config ARM64_ERRATUM_1418040
6989303a 543 bool "Cortex-A76/Neoverse-N1: MRC read following MRRC read of specific Generic Timer in AArch32 might give incorrect result"
95b861a4 544 default y
c2b5bba3 545 depends on COMPAT
95b861a4 546 help
24cf262d 547 This option adds a workaround for ARM Cortex-A76/Neoverse-N1
a5325089 548 errata 1188873 and 1418040.
95b861a4 549
a5325089 550 Affected Cortex-A76/Neoverse-N1 cores (r0p0 to r3p1) could
6989303a
MZ
551 cause register corruption when accessing the timer registers
552 from AArch32 userspace.
95b861a4
MZ
553
554 If unsure, say Y.
555
02ab1f50 556config ARM64_WORKAROUND_SPECULATIVE_AT
e85d68fa
SP
557 bool
558
a457b0f7 559config ARM64_ERRATUM_1165522
02ab1f50 560 bool "Cortex-A76: 1165522: Speculative AT instruction using out-of-context translation regime could cause subsequent request to generate an incorrect translation"
a457b0f7 561 default y
02ab1f50 562 select ARM64_WORKAROUND_SPECULATIVE_AT
a457b0f7 563 help
bc15cf70 564 This option adds a workaround for ARM Cortex-A76 erratum 1165522.
a457b0f7
MZ
565
566 Affected Cortex-A76 cores (r0p0, r1p0, r2p0) could end-up with
567 corrupted TLBs by speculating an AT instruction during a guest
568 context switch.
569
570 If unsure, say Y.
571
02ab1f50
AS
572config ARM64_ERRATUM_1319367
573 bool "Cortex-A57/A72: 1319537: Speculative AT instruction using out-of-context translation regime could cause subsequent request to generate an incorrect translation"
574 default y
575 select ARM64_WORKAROUND_SPECULATIVE_AT
576 help
577 This option adds work arounds for ARM Cortex-A57 erratum 1319537
578 and A72 erratum 1319367
579
580 Cortex-A57 and A72 cores could end-up with corrupted TLBs by
581 speculating an AT instruction during a guest context switch.
582
583 If unsure, say Y.
584
275fa0ea 585config ARM64_ERRATUM_1530923
02ab1f50 586 bool "Cortex-A55: 1530923: Speculative AT instruction using out-of-context translation regime could cause subsequent request to generate an incorrect translation"
275fa0ea 587 default y
02ab1f50 588 select ARM64_WORKAROUND_SPECULATIVE_AT
275fa0ea
SP
589 help
590 This option adds a workaround for ARM Cortex-A55 erratum 1530923.
591
592 Affected Cortex-A55 cores (r0p0, r0p1, r1p0, r2p0) could end-up with
593 corrupted TLBs by speculating an AT instruction during a guest
594 context switch.
595
596 If unsure, say Y.
a457b0f7 597
ebcea694
GU
598config ARM64_WORKAROUND_REPEAT_TLBI
599 bool
600
ce8c80c5
CM
601config ARM64_ERRATUM_1286807
602 bool "Cortex-A76: Modification of the translation table for a virtual address might lead to read-after-read ordering violation"
603 default y
604 select ARM64_WORKAROUND_REPEAT_TLBI
605 help
bc15cf70 606 This option adds a workaround for ARM Cortex-A76 erratum 1286807.
ce8c80c5
CM
607
608 On the affected Cortex-A76 cores (r0p0 to r3p0), if a virtual
609 address for a cacheable mapping of a location is being
610 accessed by a core while another core is remapping the virtual
611 address to a new physical page using the recommended
612 break-before-make sequence, then under very rare circumstances
613 TLBI+DSB completes before a read using the translation being
614 invalidated has been observed by other observers. The
615 workaround repeats the TLBI+DSB operation.
616
969f5ea6
WD
617config ARM64_ERRATUM_1463225
618 bool "Cortex-A76: Software Step might prevent interrupt recognition"
619 default y
620 help
621 This option adds a workaround for Arm Cortex-A76 erratum 1463225.
622
623 On the affected Cortex-A76 cores (r0p0 to r3p1), software stepping
624 of a system call instruction (SVC) can prevent recognition of
625 subsequent interrupts when software stepping is disabled in the
626 exception handler of the system call and either kernel debugging
627 is enabled or VHE is in use.
628
629 Work around the erratum by triggering a dummy step exception
630 when handling a system call from a task that is being stepped
631 in a VHE configuration of the kernel.
632
633 If unsure, say Y.
634
05460849
JM
635config ARM64_ERRATUM_1542419
636 bool "Neoverse-N1: workaround mis-ordering of instruction fetches"
637 default y
638 help
639 This option adds a workaround for ARM Neoverse-N1 erratum
640 1542419.
641
642 Affected Neoverse-N1 cores could execute a stale instruction when
643 modified by another CPU. The workaround depends on a firmware
644 counterpart.
645
646 Workaround the issue by hiding the DIC feature from EL0. This
647 forces user-space to perform cache maintenance.
648
649 If unsure, say Y.
650
96d389ca
RH
651config ARM64_ERRATUM_1508412
652 bool "Cortex-A77: 1508412: workaround deadlock on sequence of NC/Device load and store exclusive or PAR read"
653 default y
654 help
655 This option adds a workaround for Arm Cortex-A77 erratum 1508412.
656
657 Affected Cortex-A77 cores (r0p0, r1p0) could deadlock on a sequence
658 of a store-exclusive or read of PAR_EL1 and a load with device or
659 non-cacheable memory attributes. The workaround depends on a firmware
660 counterpart.
661
662 KVM guests must also have the workaround implemented or they can
663 deadlock the system.
664
665 Work around the issue by inserting DMB SY barriers around PAR_EL1
666 register reads and warning KVM users. The DMB barrier is sufficient
667 to prevent a speculative PAR_EL1 read.
668
669 If unsure, say Y.
670
b9d216fc
SP
671config ARM64_WORKAROUND_TRBE_OVERWRITE_FILL_MODE
672 bool
673
297ae1eb
JM
674config ARM64_ERRATUM_2051678
675 bool "Cortex-A510: 2051678: disable Hardware Update of the page table dirty bit"
676 help
677 This options adds the workaround for ARM Cortex-A510 erratum ARM64_ERRATUM_2051678.
678 Affected Coretex-A510 might not respect the ordering rules for
679 hardware update of the page table's dirty bit. The workaround
680 is to not enable the feature on affected CPUs.
681
682 If unsure, say Y.
683
b9d216fc 684config ARM64_ERRATUM_2119858
eb30d838 685 bool "Cortex-A710/X2: 2119858: workaround TRBE overwriting trace data in FILL mode"
b9d216fc 686 default y
b9d216fc
SP
687 depends on CORESIGHT_TRBE
688 select ARM64_WORKAROUND_TRBE_OVERWRITE_FILL_MODE
689 help
eb30d838 690 This option adds the workaround for ARM Cortex-A710/X2 erratum 2119858.
b9d216fc 691
eb30d838 692 Affected Cortex-A710/X2 cores could overwrite up to 3 cache lines of trace
b9d216fc
SP
693 data at the base of the buffer (pointed to by TRBASER_EL1) in FILL mode in
694 the event of a WRAP event.
695
696 Work around the issue by always making sure we move the TRBPTR_EL1 by
697 256 bytes before enabling the buffer and filling the first 256 bytes of
698 the buffer with ETM ignore packets upon disabling.
699
700 If unsure, say Y.
701
702config ARM64_ERRATUM_2139208
703 bool "Neoverse-N2: 2139208: workaround TRBE overwriting trace data in FILL mode"
704 default y
b9d216fc
SP
705 depends on CORESIGHT_TRBE
706 select ARM64_WORKAROUND_TRBE_OVERWRITE_FILL_MODE
707 help
708 This option adds the workaround for ARM Neoverse-N2 erratum 2139208.
709
710 Affected Neoverse-N2 cores could overwrite up to 3 cache lines of trace
711 data at the base of the buffer (pointed to by TRBASER_EL1) in FILL mode in
712 the event of a WRAP event.
713
714 Work around the issue by always making sure we move the TRBPTR_EL1 by
715 256 bytes before enabling the buffer and filling the first 256 bytes of
716 the buffer with ETM ignore packets upon disabling.
717
718 If unsure, say Y.
719
fa82d0b4
SP
720config ARM64_WORKAROUND_TSB_FLUSH_FAILURE
721 bool
722
723config ARM64_ERRATUM_2054223
724 bool "Cortex-A710: 2054223: workaround TSB instruction failing to flush trace"
725 default y
726 select ARM64_WORKAROUND_TSB_FLUSH_FAILURE
727 help
728 Enable workaround for ARM Cortex-A710 erratum 2054223
729
730 Affected cores may fail to flush the trace data on a TSB instruction, when
731 the PE is in trace prohibited state. This will cause losing a few bytes
732 of the trace cached.
733
734 Workaround is to issue two TSB consecutively on affected cores.
735
736 If unsure, say Y.
737
738config ARM64_ERRATUM_2067961
739 bool "Neoverse-N2: 2067961: workaround TSB instruction failing to flush trace"
740 default y
741 select ARM64_WORKAROUND_TSB_FLUSH_FAILURE
742 help
743 Enable workaround for ARM Neoverse-N2 erratum 2067961
744
745 Affected cores may fail to flush the trace data on a TSB instruction, when
746 the PE is in trace prohibited state. This will cause losing a few bytes
747 of the trace cached.
748
749 Workaround is to issue two TSB consecutively on affected cores.
750
751 If unsure, say Y.
752
8d81b2a3
SP
753config ARM64_WORKAROUND_TRBE_WRITE_OUT_OF_RANGE
754 bool
755
756config ARM64_ERRATUM_2253138
757 bool "Neoverse-N2: 2253138: workaround TRBE writing to address out-of-range"
8d81b2a3
SP
758 depends on CORESIGHT_TRBE
759 default y
760 select ARM64_WORKAROUND_TRBE_WRITE_OUT_OF_RANGE
761 help
762 This option adds the workaround for ARM Neoverse-N2 erratum 2253138.
763
764 Affected Neoverse-N2 cores might write to an out-of-range address, not reserved
765 for TRBE. Under some conditions, the TRBE might generate a write to the next
766 virtually addressed page following the last page of the TRBE address space
767 (i.e., the TRBLIMITR_EL1.LIMIT), instead of wrapping around to the base.
768
769 Work around this in the driver by always making sure that there is a
770 page beyond the TRBLIMITR_EL1.LIMIT, within the space allowed for the TRBE.
771
772 If unsure, say Y.
773
774config ARM64_ERRATUM_2224489
eb30d838 775 bool "Cortex-A710/X2: 2224489: workaround TRBE writing to address out-of-range"
8d81b2a3
SP
776 depends on CORESIGHT_TRBE
777 default y
778 select ARM64_WORKAROUND_TRBE_WRITE_OUT_OF_RANGE
779 help
eb30d838 780 This option adds the workaround for ARM Cortex-A710/X2 erratum 2224489.
8d81b2a3 781
eb30d838 782 Affected Cortex-A710/X2 cores might write to an out-of-range address, not reserved
8d81b2a3
SP
783 for TRBE. Under some conditions, the TRBE might generate a write to the next
784 virtually addressed page following the last page of the TRBE address space
785 (i.e., the TRBLIMITR_EL1.LIMIT), instead of wrapping around to the base.
786
787 Work around this in the driver by always making sure that there is a
788 page beyond the TRBLIMITR_EL1.LIMIT, within the space allowed for the TRBE.
789
790 If unsure, say Y.
791
607a9afa
AK
792config ARM64_ERRATUM_2064142
793 bool "Cortex-A510: 2064142: workaround TRBE register writes while disabled"
794 depends on COMPILE_TEST # Until the CoreSight TRBE driver changes are in
795 default y
796 help
797 This option adds the workaround for ARM Cortex-A510 erratum 2064142.
798
799 Affected Cortex-A510 core might fail to write into system registers after the
800 TRBE has been disabled. Under some conditions after the TRBE has been disabled
801 writes into TRBE registers TRBLIMITR_EL1, TRBPTR_EL1, TRBBASER_EL1, TRBSR_EL1,
802 and TRBTRG_EL1 will be ignored and will not be effected.
803
804 Work around this in the driver by executing TSB CSYNC and DSB after collection
805 is stopped and before performing a system register write to one of the affected
806 registers.
807
808 If unsure, say Y.
809
3bd94a87
AK
810config ARM64_ERRATUM_2038923
811 bool "Cortex-A510: 2038923: workaround TRBE corruption with enable"
812 depends on COMPILE_TEST # Until the CoreSight TRBE driver changes are in
813 default y
814 help
815 This option adds the workaround for ARM Cortex-A510 erratum 2038923.
816
817 Affected Cortex-A510 core might cause an inconsistent view on whether trace is
818 prohibited within the CPU. As a result, the trace buffer or trace buffer state
819 might be corrupted. This happens after TRBE buffer has been enabled by setting
820 TRBLIMITR_EL1.E, followed by just a single context synchronization event before
821 execution changes from a context, in which trace is prohibited to one where it
822 isn't, or vice versa. In these mentioned conditions, the view of whether trace
823 is prohibited is inconsistent between parts of the CPU, and the trace buffer or
824 the trace buffer state might be corrupted.
825
826 Work around this in the driver by preventing an inconsistent view of whether the
827 trace is prohibited or not based on TRBLIMITR_EL1.E by immediately following a
828 change to TRBLIMITR_EL1.E with at least one ISB instruction before an ERET, or
829 two ISB instructions if no ERET is to take place.
830
831 If unsure, say Y.
832
708e8af4
AK
833config ARM64_ERRATUM_1902691
834 bool "Cortex-A510: 1902691: workaround TRBE trace corruption"
835 depends on COMPILE_TEST # Until the CoreSight TRBE driver changes are in
836 default y
837 help
838 This option adds the workaround for ARM Cortex-A510 erratum 1902691.
839
840 Affected Cortex-A510 core might cause trace data corruption, when being written
841 into the memory. Effectively TRBE is broken and hence cannot be used to capture
842 trace data.
843
844 Work around this problem in the driver by just preventing TRBE initialization on
845 affected cpus. The firmware must have disabled the access to TRBE for the kernel
846 on such implementations. This will cover the kernel for any firmware that doesn't
847 do this already.
848
849 If unsure, say Y.
850
94100970
RR
851config CAVIUM_ERRATUM_22375
852 bool "Cavium erratum 22375, 24313"
853 default y
854 help
bc15cf70 855 Enable workaround for errata 22375 and 24313.
94100970
RR
856
857 This implements two gicv3-its errata workarounds for ThunderX. Both
bc15cf70 858 with a small impact affecting only ITS table allocation.
94100970
RR
859
860 erratum 22375: only alloc 8MB table size
861 erratum 24313: ignore memory access type
862
863 The fixes are in ITS initialization and basically ignore memory access
864 type and table size provided by the TYPER and BASER registers.
865
866 If unsure, say Y.
867
fbf8f40e
GK
868config CAVIUM_ERRATUM_23144
869 bool "Cavium erratum 23144: ITS SYNC hang on dual socket system"
870 depends on NUMA
871 default y
872 help
873 ITS SYNC command hang for cross node io and collections/cpu mapping.
874
875 If unsure, say Y.
876
6d4e11c5
RR
877config CAVIUM_ERRATUM_23154
878 bool "Cavium erratum 23154: Access to ICC_IAR1_EL1 is not sync'ed"
879 default y
880 help
881 The gicv3 of ThunderX requires a modified version for
882 reading the IAR status to ensure data synchronization
883 (access to icc_iar1_el1 is not sync'ed before and after).
884
885 If unsure, say Y.
886
104a0c02
AP
887config CAVIUM_ERRATUM_27456
888 bool "Cavium erratum 27456: Broadcast TLBI instructions may cause icache corruption"
889 default y
890 help
891 On ThunderX T88 pass 1.x through 2.1 parts, broadcast TLBI
892 instructions may cause the icache to become corrupted if it
893 contains data for a non-current ASID. The fix is to
894 invalidate the icache when changing the mm context.
895
896 If unsure, say Y.
897
690a3415
DD
898config CAVIUM_ERRATUM_30115
899 bool "Cavium erratum 30115: Guest may disable interrupts in host"
900 default y
901 help
902 On ThunderX T88 pass 1.x through 2.2, T81 pass 1.0 through
903 1.2, and T83 Pass 1.0, KVM guest execution may disable
904 interrupts in host. Trapping both GICv3 group-0 and group-1
905 accesses sidesteps the issue.
906
907 If unsure, say Y.
908
603afdc9
MZ
909config CAVIUM_TX2_ERRATUM_219
910 bool "Cavium ThunderX2 erratum 219: PRFM between TTBR change and ISB fails"
911 default y
912 help
913 On Cavium ThunderX2, a load, store or prefetch instruction between a
914 TTBR update and the corresponding context synchronizing operation can
915 cause a spurious Data Abort to be delivered to any hardware thread in
916 the CPU core.
917
918 Work around the issue by avoiding the problematic code sequence and
919 trapping KVM guest TTBRx_EL1 writes to EL2 when SMT is enabled. The
920 trap handler performs the corresponding register access, skips the
921 instruction and ensures context synchronization by virtue of the
922 exception return.
923
924 If unsure, say Y.
925
ebcea694
GU
926config FUJITSU_ERRATUM_010001
927 bool "Fujitsu-A64FX erratum E#010001: Undefined fault may occur wrongly"
928 default y
929 help
930 This option adds a workaround for Fujitsu-A64FX erratum E#010001.
931 On some variants of the Fujitsu-A64FX cores ver(1.0, 1.1), memory
932 accesses may cause undefined fault (Data abort, DFSC=0b111111).
933 This fault occurs under a specific hardware condition when a
934 load/store instruction performs an address translation using:
935 case-1 TTBR0_EL1 with TCR_EL1.NFD0 == 1.
936 case-2 TTBR0_EL2 with TCR_EL2.NFD0 == 1.
937 case-3 TTBR1_EL1 with TCR_EL1.NFD1 == 1.
938 case-4 TTBR1_EL2 with TCR_EL2.NFD1 == 1.
939
940 The workaround is to ensure these bits are clear in TCR_ELx.
941 The workaround only affects the Fujitsu-A64FX.
942
943 If unsure, say Y.
944
945config HISILICON_ERRATUM_161600802
946 bool "Hip07 161600802: Erroneous redistributor VLPI base"
947 default y
948 help
949 The HiSilicon Hip07 SoC uses the wrong redistributor base
950 when issued ITS commands such as VMOVP and VMAPP, and requires
951 a 128kB offset to be applied to the target address in this commands.
952
953 If unsure, say Y.
954
38fd94b0
CC
955config QCOM_FALKOR_ERRATUM_1003
956 bool "Falkor E1003: Incorrect translation due to ASID change"
957 default y
38fd94b0
CC
958 help
959 On Falkor v1, an incorrect ASID may be cached in the TLB when ASID
d1777e68
WD
960 and BADDR are changed together in TTBRx_EL1. Since we keep the ASID
961 in TTBR1_EL1, this situation only occurs in the entry trampoline and
962 then only for entries in the walk cache, since the leaf translation
963 is unchanged. Work around the erratum by invalidating the walk cache
964 entries for the trampoline before entering the kernel proper.
38fd94b0 965
d9ff80f8
CC
966config QCOM_FALKOR_ERRATUM_1009
967 bool "Falkor E1009: Prematurely complete a DSB after a TLBI"
968 default y
ce8c80c5 969 select ARM64_WORKAROUND_REPEAT_TLBI
d9ff80f8
CC
970 help
971 On Falkor v1, the CPU may prematurely complete a DSB following a
972 TLBI xxIS invalidate maintenance operation. Repeat the TLBI operation
973 one more time to fix the issue.
974
975 If unsure, say Y.
976
90922a2d
SD
977config QCOM_QDF2400_ERRATUM_0065
978 bool "QDF2400 E0065: Incorrect GITS_TYPER.ITT_Entry_size"
979 default y
980 help
981 On Qualcomm Datacenter Technologies QDF2400 SoC, ITS hardware reports
982 ITE size incorrectly. The GITS_TYPER.ITT_Entry_size field should have
983 been indicated as 16Bytes (0xf), not 8Bytes (0x7).
984
985 If unsure, say Y.
986
932b50c7
SD
987config QCOM_FALKOR_ERRATUM_E1041
988 bool "Falkor E1041: Speculative instruction fetches might cause errant memory access"
989 default y
990 help
991 Falkor CPU may speculatively fetch instructions from an improper
992 memory location when MMU translation is changed from SCTLR_ELn[M]=1
993 to SCTLR_ELn[M]=0. Prefix an ISB instruction to fix the problem.
994
995 If unsure, say Y.
996
20109a85
RW
997config NVIDIA_CARMEL_CNP_ERRATUM
998 bool "NVIDIA Carmel CNP: CNP on Carmel semantically different than ARM cores"
999 default y
1000 help
1001 If CNP is enabled on Carmel cores, non-sharable TLBIs on a core will not
1002 invalidate shared TLB entries installed by a different core, as it would
1003 on standard ARM cores.
1004
1005 If unsure, say Y.
1006
ebcea694
GU
1007config SOCIONEXT_SYNQUACER_PREITS
1008 bool "Socionext Synquacer: Workaround for GICv3 pre-ITS"
3e32131a
ZL
1009 default y
1010 help
ebcea694
GU
1011 Socionext Synquacer SoCs implement a separate h/w block to generate
1012 MSI doorbell writes with non-zero values for the device ID.
3e32131a
ZL
1013
1014 If unsure, say Y.
1015
c0a01b84
AP
1016endmenu
1017
1018
e41ceed0
JL
1019choice
1020 prompt "Page size"
1021 default ARM64_4K_PAGES
1022 help
1023 Page size (translation granule) configuration.
1024
1025config ARM64_4K_PAGES
1026 bool "4KB"
1027 help
1028 This feature enables 4KB pages support.
1029
44eaacf1
SP
1030config ARM64_16K_PAGES
1031 bool "16KB"
1032 help
1033 The system will use 16KB pages support. AArch32 emulation
1034 requires applications compiled with 16K (or a multiple of 16K)
1035 aligned segments.
1036
8c2c3df3 1037config ARM64_64K_PAGES
e41ceed0 1038 bool "64KB"
8c2c3df3
CM
1039 help
1040 This feature enables 64KB pages support (4KB by default)
1041 allowing only two levels of page tables and faster TLB
db488be3
SP
1042 look-up. AArch32 emulation requires applications compiled
1043 with 64K aligned segments.
8c2c3df3 1044
e41ceed0
JL
1045endchoice
1046
1047choice
1048 prompt "Virtual address space size"
1049 default ARM64_VA_BITS_39 if ARM64_4K_PAGES
44eaacf1 1050 default ARM64_VA_BITS_47 if ARM64_16K_PAGES
e41ceed0
JL
1051 default ARM64_VA_BITS_42 if ARM64_64K_PAGES
1052 help
1053 Allows choosing one of multiple possible virtual address
1054 space sizes. The level of translation table is determined by
1055 a combination of page size and virtual address space size.
1056
21539939 1057config ARM64_VA_BITS_36
56a3f30e 1058 bool "36-bit" if EXPERT
21539939
SP
1059 depends on ARM64_16K_PAGES
1060
e41ceed0
JL
1061config ARM64_VA_BITS_39
1062 bool "39-bit"
1063 depends on ARM64_4K_PAGES
1064
1065config ARM64_VA_BITS_42
1066 bool "42-bit"
1067 depends on ARM64_64K_PAGES
1068
44eaacf1
SP
1069config ARM64_VA_BITS_47
1070 bool "47-bit"
1071 depends on ARM64_16K_PAGES
1072
c79b954b
JL
1073config ARM64_VA_BITS_48
1074 bool "48-bit"
c79b954b 1075
b6d00d47
SC
1076config ARM64_VA_BITS_52
1077 bool "52-bit"
68d23da4
WD
1078 depends on ARM64_64K_PAGES && (ARM64_PAN || !ARM64_SW_TTBR0_PAN)
1079 help
1080 Enable 52-bit virtual addressing for userspace when explicitly
b6d00d47
SC
1081 requested via a hint to mmap(). The kernel will also use 52-bit
1082 virtual addresses for its own mappings (provided HW support for
1083 this feature is available, otherwise it reverts to 48-bit).
68d23da4
WD
1084
1085 NOTE: Enabling 52-bit virtual addressing in conjunction with
1086 ARMv8.3 Pointer Authentication will result in the PAC being
1087 reduced from 7 bits to 3 bits, which may have a significant
1088 impact on its susceptibility to brute-force attacks.
1089
1090 If unsure, select 48-bit virtual addressing instead.
1091
e41ceed0
JL
1092endchoice
1093
68d23da4
WD
1094config ARM64_FORCE_52BIT
1095 bool "Force 52-bit virtual addresses for userspace"
b6d00d47 1096 depends on ARM64_VA_BITS_52 && EXPERT
68d23da4
WD
1097 help
1098 For systems with 52-bit userspace VAs enabled, the kernel will attempt
1099 to maintain compatibility with older software by providing 48-bit VAs
1100 unless a hint is supplied to mmap.
1101
1102 This configuration option disables the 48-bit compatibility logic, and
1103 forces all userspace addresses to be 52-bit on HW that supports it. One
1104 should only enable this configuration option for stress testing userspace
1105 memory management code. If unsure say N here.
1106
e41ceed0
JL
1107config ARM64_VA_BITS
1108 int
21539939 1109 default 36 if ARM64_VA_BITS_36
e41ceed0
JL
1110 default 39 if ARM64_VA_BITS_39
1111 default 42 if ARM64_VA_BITS_42
44eaacf1 1112 default 47 if ARM64_VA_BITS_47
b6d00d47
SC
1113 default 48 if ARM64_VA_BITS_48
1114 default 52 if ARM64_VA_BITS_52
e41ceed0 1115
982aa7c5
KM
1116choice
1117 prompt "Physical address space size"
1118 default ARM64_PA_BITS_48
1119 help
1120 Choose the maximum physical address range that the kernel will
1121 support.
1122
1123config ARM64_PA_BITS_48
1124 bool "48-bit"
1125
f77d2817
KM
1126config ARM64_PA_BITS_52
1127 bool "52-bit (ARMv8.2)"
1128 depends on ARM64_64K_PAGES
1129 depends on ARM64_PAN || !ARM64_SW_TTBR0_PAN
1130 help
1131 Enable support for a 52-bit physical address space, introduced as
1132 part of the ARMv8.2-LPA extension.
1133
1134 With this enabled, the kernel will also continue to work on CPUs that
1135 do not support ARMv8.2-LPA, but with some added memory overhead (and
1136 minor performance overhead).
1137
982aa7c5
KM
1138endchoice
1139
1140config ARM64_PA_BITS
1141 int
1142 default 48 if ARM64_PA_BITS_48
f77d2817 1143 default 52 if ARM64_PA_BITS_52
982aa7c5 1144
d8e85e14
AR
1145choice
1146 prompt "Endianness"
1147 default CPU_LITTLE_ENDIAN
1148 help
1149 Select the endianness of data accesses performed by the CPU. Userspace
1150 applications will need to be compiled and linked for the endianness
1151 that is selected here.
1152
a872013d 1153config CPU_BIG_ENDIAN
e9c6deee
NC
1154 bool "Build big-endian kernel"
1155 depends on !LD_IS_LLD || LLD_VERSION >= 130000
1156 help
d8e85e14
AR
1157 Say Y if you plan on running a kernel with a big-endian userspace.
1158
1159config CPU_LITTLE_ENDIAN
1160 bool "Build little-endian kernel"
1161 help
1162 Say Y if you plan on running a kernel with a little-endian userspace.
1163 This is usually the case for distributions targeting arm64.
1164
1165endchoice
a872013d 1166
f6e763b9
MB
1167config SCHED_MC
1168 bool "Multi-core scheduler support"
f6e763b9
MB
1169 help
1170 Multi-core scheduler support improves the CPU scheduler's decision
1171 making when dealing with multi-core CPU chips at a cost of slightly
1172 increased overhead in some places. If unsure say N here.
1173
778c558f
BS
1174config SCHED_CLUSTER
1175 bool "Cluster scheduler support"
1176 help
1177 Cluster scheduler support improves the CPU scheduler's decision
1178 making when dealing with machines that have clusters of CPUs.
1179 Cluster usually means a couple of CPUs which are placed closely
1180 by sharing mid-level caches, last-level cache tags or internal
1181 busses.
1182
f6e763b9
MB
1183config SCHED_SMT
1184 bool "SMT scheduler support"
f6e763b9
MB
1185 help
1186 Improves the CPU scheduler's decision making when dealing with
1187 MultiThreading at a cost of slightly increased overhead in some
1188 places. If unsure say N here.
1189
8c2c3df3 1190config NR_CPUS
62aa9655
GK
1191 int "Maximum number of CPUs (2-4096)"
1192 range 2 4096
846a415b 1193 default "256"
8c2c3df3 1194
9327e2c6
MR
1195config HOTPLUG_CPU
1196 bool "Support for hot-pluggable CPUs"
217d453d 1197 select GENERIC_IRQ_MIGRATION
9327e2c6
MR
1198 help
1199 Say Y here to experiment with turning CPUs off and on. CPUs
1200 can be controlled through /sys/devices/system/cpu.
1201
1a2db300
GK
1202# Common NUMA Features
1203config NUMA
4399e6cd 1204 bool "NUMA Memory Allocation and Scheduler Support"
ae3c107c 1205 select GENERIC_ARCH_NUMA
0c2a6cce
KW
1206 select ACPI_NUMA if ACPI
1207 select OF_NUMA
7ecd19cf
KW
1208 select HAVE_SETUP_PER_CPU_AREA
1209 select NEED_PER_CPU_EMBED_FIRST_CHUNK
1210 select NEED_PER_CPU_PAGE_FIRST_CHUNK
1211 select USE_PERCPU_NUMA_NODE_ID
1a2db300 1212 help
4399e6cd 1213 Enable NUMA (Non-Uniform Memory Access) support.
1a2db300
GK
1214
1215 The kernel will try to allocate memory used by a CPU on the
1216 local memory of the CPU and add some more
1217 NUMA awareness to the kernel.
1218
1219config NODES_SHIFT
1220 int "Maximum NUMA Nodes (as a power of 2)"
1221 range 1 10
2a13c13b 1222 default "4"
a9ee6cf5 1223 depends on NUMA
1a2db300
GK
1224 help
1225 Specify the maximum number of NUMA Nodes available on the target
1226 system. Increases memory reserved to accommodate various tables.
1227
8636a1f9 1228source "kernel/Kconfig.hz"
8c2c3df3 1229
8c2c3df3
CM
1230config ARCH_SPARSEMEM_ENABLE
1231 def_bool y
1232 select SPARSEMEM_VMEMMAP_ENABLE
782276b4 1233 select SPARSEMEM_VMEMMAP
e7d4bac4 1234
8c2c3df3 1235config HW_PERF_EVENTS
6475b2d8
MR
1236 def_bool y
1237 depends on ARM_PMU
8c2c3df3 1238
18107f8a
VM
1239config ARCH_HAS_FILTER_PGPROT
1240 def_bool y
1241
5287569a
ST
1242# Supported by clang >= 7.0
1243config CC_HAVE_SHADOW_CALL_STACK
1244 def_bool $(cc-option, -fsanitize=shadow-call-stack -ffixed-x18)
1245
dfd57bc3
SS
1246config PARAVIRT
1247 bool "Enable paravirtualization code"
1248 help
1249 This changes the kernel so it can modify itself when it is run
1250 under a hypervisor, potentially improving performance significantly
1251 over full virtualization.
1252
1253config PARAVIRT_TIME_ACCOUNTING
1254 bool "Paravirtual steal time accounting"
1255 select PARAVIRT
dfd57bc3
SS
1256 help
1257 Select this option to enable fine granularity task steal time
1258 accounting. Time spent executing other tasks in parallel with
1259 the current vCPU is discounted from the vCPU power. To account for
1260 that, there can be a small performance impact.
1261
1262 If in doubt, say N here.
1263
d28f6df1
GL
1264config KEXEC
1265 depends on PM_SLEEP_SMP
1266 select KEXEC_CORE
1267 bool "kexec system call"
a7f7f624 1268 help
d28f6df1
GL
1269 kexec is a system call that implements the ability to shutdown your
1270 current kernel, and to start another kernel. It is like a reboot
1271 but it is independent of the system firmware. And like a reboot
1272 you can start any kernel with it, not just Linux.
1273
3ddd9992
AT
1274config KEXEC_FILE
1275 bool "kexec file based system call"
1276 select KEXEC_CORE
dce92f6b 1277 select HAVE_IMA_KEXEC if IMA
3ddd9992
AT
1278 help
1279 This is new version of kexec system call. This system call is
1280 file based and takes file descriptors as system call argument
1281 for kernel and initramfs as opposed to list of segments as
1282 accepted by previous system call.
1283
99d5cadf 1284config KEXEC_SIG
732b7b93
AT
1285 bool "Verify kernel signature during kexec_file_load() syscall"
1286 depends on KEXEC_FILE
1287 help
1288 Select this option to verify a signature with loaded kernel
1289 image. If configured, any attempt of loading a image without
1290 valid signature will fail.
1291
1292 In addition to that option, you need to enable signature
1293 verification for the corresponding kernel image type being
1294 loaded in order for this to work.
1295
1296config KEXEC_IMAGE_VERIFY_SIG
1297 bool "Enable Image signature verification support"
1298 default y
99d5cadf 1299 depends on KEXEC_SIG
732b7b93
AT
1300 depends on EFI && SIGNED_PE_FILE_VERIFICATION
1301 help
1302 Enable Image signature verification support.
1303
1304comment "Support for PE file signature verification disabled"
99d5cadf 1305 depends on KEXEC_SIG
732b7b93
AT
1306 depends on !EFI || !SIGNED_PE_FILE_VERIFICATION
1307
e62aaeac
AT
1308config CRASH_DUMP
1309 bool "Build kdump crash kernel"
1310 help
1311 Generate crash dump after being started by kexec. This should
1312 be normally only set in special crash dump kernels which are
1313 loaded in the main kernel with kexec-tools into a specially
1314 reserved region and then later executed after a crash by
1315 kdump/kexec.
1316
330d4810 1317 For more details see Documentation/admin-guide/kdump/kdump.rst
e62aaeac 1318
072e3d96
PT
1319config TRANS_TABLE
1320 def_bool y
08eae0ef 1321 depends on HIBERNATION || KEXEC_CORE
072e3d96 1322
aa42aa13
SS
1323config XEN_DOM0
1324 def_bool y
1325 depends on XEN
1326
1327config XEN
c2ba1f7d 1328 bool "Xen guest support on ARM64"
aa42aa13 1329 depends on ARM64 && OF
83862ccf 1330 select SWIOTLB_XEN
dfd57bc3 1331 select PARAVIRT
aa42aa13
SS
1332 help
1333 Say Y if you want to run Linux in a Virtual Machine on Xen on ARM64.
1334
d03bb145
SC
1335config FORCE_MAX_ZONEORDER
1336 int
79cc2ed5
AK
1337 default "14" if ARM64_64K_PAGES
1338 default "12" if ARM64_16K_PAGES
d03bb145 1339 default "11"
44eaacf1
SP
1340 help
1341 The kernel memory allocator divides physically contiguous memory
1342 blocks into "zones", where each zone is a power of two number of
1343 pages. This option selects the largest power of two that the kernel
1344 keeps in the memory allocator. If you need to allocate very large
1345 blocks of physically contiguous memory, then you may need to
1346 increase this value.
1347
1348 This config option is actually maximum order plus one. For example,
1349 a value of 11 means that the largest free memory block is 2^10 pages.
1350
1351 We make sure that we can allocate upto a HugePage size for each configuration.
1352 Hence we have :
1353 MAX_ORDER = (PMD_SHIFT - PAGE_SHIFT) + 1 => PAGE_SHIFT - 2
1354
1355 However for 4K, we choose a higher default value, 11 as opposed to 10, giving us
1356 4M allocations matching the default size used by generic code.
d03bb145 1357
084eb77c 1358config UNMAP_KERNEL_AT_EL0
0617052d 1359 bool "Unmap kernel when running in userspace (aka \"KAISER\")" if EXPERT
084eb77c
WD
1360 default y
1361 help
0617052d
WD
1362 Speculation attacks against some high-performance processors can
1363 be used to bypass MMU permission checks and leak kernel data to
1364 userspace. This can be defended against by unmapping the kernel
1365 when running in userspace, mapping it back in on exception entry
1366 via a trampoline page in the vector table.
084eb77c
WD
1367
1368 If unsure, say Y.
1369
c55191e9
AB
1370config RODATA_FULL_DEFAULT_ENABLED
1371 bool "Apply r/o permissions of VM areas also to their linear aliases"
1372 default y
1373 help
1374 Apply read-only attributes of VM areas to the linear alias of
1375 the backing pages as well. This prevents code or read-only data
1376 from being modified (inadvertently or intentionally) via another
1377 mapping of the same memory page. This additional enhancement can
1378 be turned off at runtime by passing rodata=[off|on] (and turned on
1379 with rodata=full if this option is set to 'n')
1380
1381 This requires the linear region to be mapped down to pages,
1382 which may adversely affect performance in some cases.
1383
dd523791
WD
1384config ARM64_SW_TTBR0_PAN
1385 bool "Emulate Privileged Access Never using TTBR0_EL1 switching"
1386 help
1387 Enabling this option prevents the kernel from accessing
1388 user-space memory directly by pointing TTBR0_EL1 to a reserved
1389 zeroed area and reserved ASID. The user access routines
1390 restore the valid TTBR0_EL1 temporarily.
1391
63f0c603
CM
1392config ARM64_TAGGED_ADDR_ABI
1393 bool "Enable the tagged user addresses syscall ABI"
1394 default y
1395 help
1396 When this option is enabled, user applications can opt in to a
1397 relaxed ABI via prctl() allowing tagged addresses to be passed
1398 to system calls as pointer arguments. For details, see
799c8510 1399 Documentation/arm64/tagged-address-abi.rst.
63f0c603 1400
dd523791
WD
1401menuconfig COMPAT
1402 bool "Kernel support for 32-bit EL0"
1403 depends on ARM64_4K_PAGES || EXPERT
dd523791
WD
1404 select HAVE_UID16
1405 select OLD_SIGSUSPEND3
1406 select COMPAT_OLD_SIGACTION
1407 help
1408 This option enables support for a 32-bit EL0 running under a 64-bit
1409 kernel at EL1. AArch32-specific components such as system calls,
1410 the user helper functions, VFP support and the ptrace interface are
1411 handled appropriately by the kernel.
1412
1413 If you use a page size other than 4KB (i.e, 16KB or 64KB), please be aware
1414 that you will only be able to execute AArch32 binaries that were compiled
1415 with page size aligned segments.
1416
1417 If you want to execute 32-bit userspace applications, say Y.
1418
1419if COMPAT
1420
1421config KUSER_HELPERS
7c4791c9 1422 bool "Enable kuser helpers page for 32-bit applications"
dd523791
WD
1423 default y
1424 help
1425 Warning: disabling this option may break 32-bit user programs.
1426
1427 Provide kuser helpers to compat tasks. The kernel provides
1428 helper code to userspace in read only form at a fixed location
1429 to allow userspace to be independent of the CPU type fitted to
1430 the system. This permits binaries to be run on ARMv4 through
1431 to ARMv8 without modification.
1432
dc7a12bd 1433 See Documentation/arm/kernel_user_helpers.rst for details.
dd523791
WD
1434
1435 However, the fixed address nature of these helpers can be used
1436 by ROP (return orientated programming) authors when creating
1437 exploits.
1438
1439 If all of the binaries and libraries which run on your platform
1440 are built specifically for your platform, and make no use of
1441 these helpers, then you can turn this option off to hinder
1442 such exploits. However, in that case, if a binary or library
1443 relying on those helpers is run, it will not function correctly.
1444
1445 Say N here only if you are absolutely certain that you do not
1446 need these helpers; otherwise, the safe option is to say Y.
1447
7c4791c9
WD
1448config COMPAT_VDSO
1449 bool "Enable vDSO for 32-bit applications"
3e6f8d1f
ND
1450 depends on !CPU_BIG_ENDIAN
1451 depends on (CC_IS_CLANG && LD_IS_LLD) || "$(CROSS_COMPILE_COMPAT)" != ""
7c4791c9
WD
1452 select GENERIC_COMPAT_VDSO
1453 default y
1454 help
1455 Place in the process address space of 32-bit applications an
1456 ELF shared object providing fast implementations of gettimeofday
1457 and clock_gettime.
1458
1459 You must have a 32-bit build of glibc 2.22 or later for programs
1460 to seamlessly take advantage of this.
dd523791 1461
625412c2
ND
1462config THUMB2_COMPAT_VDSO
1463 bool "Compile the 32-bit vDSO for Thumb-2 mode" if EXPERT
1464 depends on COMPAT_VDSO
1465 default y
1466 help
1467 Compile the compat vDSO with '-mthumb -fomit-frame-pointer' if y,
1468 otherwise with '-marm'.
1469
1b907f46
WD
1470menuconfig ARMV8_DEPRECATED
1471 bool "Emulate deprecated/obsolete ARMv8 instructions"
6cfa7cc4 1472 depends on SYSCTL
1b907f46
WD
1473 help
1474 Legacy software support may require certain instructions
1475 that have been deprecated or obsoleted in the architecture.
1476
1477 Enable this config to enable selective emulation of these
1478 features.
1479
1480 If unsure, say Y
1481
1482if ARMV8_DEPRECATED
1483
1484config SWP_EMULATION
1485 bool "Emulate SWP/SWPB instructions"
1486 help
1487 ARMv8 obsoletes the use of A32 SWP/SWPB instructions such that
1488 they are always undefined. Say Y here to enable software
1489 emulation of these instructions for userspace using LDXR/STXR.
dd720784
MB
1490 This feature can be controlled at runtime with the abi.swp
1491 sysctl which is disabled by default.
1b907f46
WD
1492
1493 In some older versions of glibc [<=2.8] SWP is used during futex
1494 trylock() operations with the assumption that the code will not
1495 be preempted. This invalid assumption may be more likely to fail
1496 with SWP emulation enabled, leading to deadlock of the user
1497 application.
1498
1499 NOTE: when accessing uncached shared regions, LDXR/STXR rely
1500 on an external transaction monitoring block called a global
1501 monitor to maintain update atomicity. If your system does not
1502 implement a global monitor, this option can cause programs that
1503 perform SWP operations to uncached memory to deadlock.
1504
1505 If unsure, say Y
1506
1507config CP15_BARRIER_EMULATION
1508 bool "Emulate CP15 Barrier instructions"
1509 help
1510 The CP15 barrier instructions - CP15ISB, CP15DSB, and
1511 CP15DMB - are deprecated in ARMv8 (and ARMv7). It is
1512 strongly recommended to use the ISB, DSB, and DMB
1513 instructions instead.
1514
1515 Say Y here to enable software emulation of these
1516 instructions for AArch32 userspace code. When this option is
1517 enabled, CP15 barrier usage is traced which can help
dd720784
MB
1518 identify software that needs updating. This feature can be
1519 controlled at runtime with the abi.cp15_barrier sysctl.
1b907f46
WD
1520
1521 If unsure, say Y
1522
2d888f48
SP
1523config SETEND_EMULATION
1524 bool "Emulate SETEND instruction"
1525 help
1526 The SETEND instruction alters the data-endianness of the
1527 AArch32 EL0, and is deprecated in ARMv8.
1528
1529 Say Y here to enable software emulation of the instruction
dd720784
MB
1530 for AArch32 userspace code. This feature can be controlled
1531 at runtime with the abi.setend sysctl.
2d888f48
SP
1532
1533 Note: All the cpus on the system must have mixed endian support at EL0
1534 for this feature to be enabled. If a new CPU - which doesn't support mixed
1535 endian - is hotplugged in after this feature has been enabled, there could
1536 be unexpected results in the applications.
1537
1538 If unsure, say Y
1b907f46
WD
1539endif
1540
dd523791 1541endif
ba42822a 1542
0e4a0709
WD
1543menu "ARMv8.1 architectural features"
1544
1545config ARM64_HW_AFDBM
1546 bool "Support for hardware updates of the Access and Dirty page flags"
1547 default y
1548 help
1549 The ARMv8.1 architecture extensions introduce support for
1550 hardware updates of the access and dirty information in page
1551 table entries. When enabled in TCR_EL1 (HA and HD bits) on
1552 capable processors, accesses to pages with PTE_AF cleared will
1553 set this bit instead of raising an access flag fault.
1554 Similarly, writes to read-only pages with the DBM bit set will
1555 clear the read-only bit (AP[2]) instead of raising a
1556 permission fault.
1557
1558 Kernels built with this configuration option enabled continue
1559 to work on pre-ARMv8.1 hardware and the performance impact is
1560 minimal. If unsure, say Y.
1561
1562config ARM64_PAN
1563 bool "Enable support for Privileged Access Never (PAN)"
1564 default y
1565 help
1566 Privileged Access Never (PAN; part of the ARMv8.1 Extensions)
1567 prevents the kernel or hypervisor from accessing user-space (EL0)
1568 memory directly.
1569
1570 Choosing this option will cause any unprotected (not using
1571 copy_to_user et al) memory access to fail with a permission fault.
1572
1573 The feature is detected at runtime, and will remain as a 'nop'
1574 instruction if the cpu does not implement the feature.
1575
364a5a8a
WD
1576config AS_HAS_LDAPR
1577 def_bool $(as-instr,.arch_extension rcpc)
1578
2decad92
CM
1579config AS_HAS_LSE_ATOMICS
1580 def_bool $(as-instr,.arch_extension lse)
1581
0e4a0709 1582config ARM64_LSE_ATOMICS
395af861
CM
1583 bool
1584 default ARM64_USE_LSE_ATOMICS
2decad92 1585 depends on AS_HAS_LSE_ATOMICS
395af861
CM
1586
1587config ARM64_USE_LSE_ATOMICS
0e4a0709 1588 bool "Atomic instructions"
b32baf91 1589 depends on JUMP_LABEL
7bd99b40 1590 default y
0e4a0709
WD
1591 help
1592 As part of the Large System Extensions, ARMv8.1 introduces new
1593 atomic instructions that are designed specifically to scale in
1594 very large systems.
1595
1596 Say Y here to make use of these instructions for the in-kernel
1597 atomic routines. This incurs a small overhead on CPUs that do
1598 not support these instructions and requires the kernel to be
7bd99b40
WD
1599 built with binutils >= 2.25 in order for the new instructions
1600 to be used.
0e4a0709
WD
1601
1602endmenu
1603
f993318b
WD
1604menu "ARMv8.2 architectural features"
1605
2c54b423
AB
1606config AS_HAS_ARMV8_2
1607 def_bool $(cc-option,-Wa$(comma)-march=armv8.2-a)
1608
1609config AS_HAS_SHA3
1610 def_bool $(as-instr,.arch armv8.2-a+sha3)
1611
d50e071f
RM
1612config ARM64_PMEM
1613 bool "Enable support for persistent memory"
1614 select ARCH_HAS_PMEM_API
5d7bdeb1 1615 select ARCH_HAS_UACCESS_FLUSHCACHE
d50e071f
RM
1616 help
1617 Say Y to enable support for the persistent memory API based on the
1618 ARMv8.2 DCPoP feature.
1619
1620 The feature is detected at runtime, and the kernel will use DC CVAC
1621 operations if DC CVAP is not supported (following the behaviour of
1622 DC CVAP itself if the system does not define a point of persistence).
1623
64c02720
XX
1624config ARM64_RAS_EXTN
1625 bool "Enable support for RAS CPU Extensions"
1626 default y
1627 help
1628 CPUs that support the Reliability, Availability and Serviceability
1629 (RAS) Extensions, part of ARMv8.2 are able to track faults and
1630 errors, classify them and report them to software.
1631
1632 On CPUs with these extensions system software can use additional
1633 barriers to determine if faults are pending and read the
1634 classification from a new set of registers.
1635
1636 Selecting this feature will allow the kernel to use these barriers
1637 and access the new registers if the system supports the extension.
1638 Platform RAS features may additionally depend on firmware support.
1639
5ffdfaed
VM
1640config ARM64_CNP
1641 bool "Enable support for Common Not Private (CNP) translations"
1642 default y
1643 depends on ARM64_PAN || !ARM64_SW_TTBR0_PAN
1644 help
1645 Common Not Private (CNP) allows translation table entries to
1646 be shared between different PEs in the same inner shareable
1647 domain, so the hardware can use this fact to optimise the
1648 caching of such entries in the TLB.
1649
1650 Selecting this option allows the CNP feature to be detected
1651 at runtime, and does not affect PEs that do not implement
1652 this feature.
1653
f993318b
WD
1654endmenu
1655
04ca3204
MR
1656menu "ARMv8.3 architectural features"
1657
1658config ARM64_PTR_AUTH
1659 bool "Enable support for pointer authentication"
1660 default y
1661 help
1662 Pointer authentication (part of the ARMv8.3 Extensions) provides
1663 instructions for signing and authenticating pointers against secret
1664 keys, which can be used to mitigate Return Oriented Programming (ROP)
1665 and other attacks.
1666
1667 This option enables these instructions at EL0 (i.e. for userspace).
04ca3204
MR
1668 Choosing this option will cause the kernel to initialise secret keys
1669 for each process at exec() time, with these keys being
1670 context-switched along with the process.
1671
1672 The feature is detected at runtime. If the feature is not present in
384b40ca 1673 hardware it will not be advertised to userspace/KVM guest nor will it
dfb0589c 1674 be enabled.
04ca3204 1675
6982934e
KM
1676 If the feature is present on the boot CPU but not on a late CPU, then
1677 the late CPU will be parked. Also, if the boot CPU does not have
1678 address auth and the late CPU has then the late CPU will still boot
1679 but with the feature disabled. On such a system, this option should
1680 not be selected.
1681
b27a9f41 1682config ARM64_PTR_AUTH_KERNEL
d053e71a 1683 bool "Use pointer authentication for kernel"
b27a9f41
DK
1684 default y
1685 depends on ARM64_PTR_AUTH
1686 depends on (CC_HAS_SIGN_RETURN_ADDRESS || CC_HAS_BRANCH_PROT_PAC_RET) && AS_HAS_PAC
1687 # Modern compilers insert a .note.gnu.property section note for PAC
1688 # which is only understood by binutils starting with version 2.33.1.
1689 depends on LD_IS_LLD || LD_VERSION >= 23301 || (CC_IS_GCC && GCC_VERSION < 90100)
1690 depends on !CC_IS_CLANG || AS_HAS_CFI_NEGATE_RA_STATE
1691 depends on (!FUNCTION_GRAPH_TRACER || DYNAMIC_FTRACE_WITH_REGS)
1692 help
1693 If the compiler supports the -mbranch-protection or
1694 -msign-return-address flag (e.g. GCC 7 or later), then this option
1695 will cause the kernel itself to be compiled with return address
1696 protection. In this case, and if the target hardware is known to
1697 support pointer authentication, then CONFIG_STACKPROTECTOR can be
1698 disabled with minimal loss of protection.
1699
74afda40
KM
1700 This feature works with FUNCTION_GRAPH_TRACER option only if
1701 DYNAMIC_FTRACE_WITH_REGS is enabled.
1702
1703config CC_HAS_BRANCH_PROT_PAC_RET
1704 # GCC 9 or later, clang 8 or later
1705 def_bool $(cc-option,-mbranch-protection=pac-ret+leaf)
1706
1707config CC_HAS_SIGN_RETURN_ADDRESS
1708 # GCC 7, 8
1709 def_bool $(cc-option,-msign-return-address=all)
1710
1711config AS_HAS_PAC
4d0831e8 1712 def_bool $(cc-option,-Wa$(comma)-march=armv8.3-a)
74afda40 1713
3b446c7d
ND
1714config AS_HAS_CFI_NEGATE_RA_STATE
1715 def_bool $(as-instr,.cfi_startproc\n.cfi_negate_ra_state\n.cfi_endproc\n)
1716
04ca3204
MR
1717endmenu
1718
2c9d45b4
IV
1719menu "ARMv8.4 architectural features"
1720
1721config ARM64_AMU_EXTN
1722 bool "Enable support for the Activity Monitors Unit CPU extension"
1723 default y
1724 help
1725 The activity monitors extension is an optional extension introduced
1726 by the ARMv8.4 CPU architecture. This enables support for version 1
1727 of the activity monitors architecture, AMUv1.
1728
1729 To enable the use of this extension on CPUs that implement it, say Y.
1730
1731 Note that for architectural reasons, firmware _must_ implement AMU
1732 support when running on CPUs that present the activity monitors
1733 extension. The required support is present in:
1734 * Version 1.5 and later of the ARM Trusted Firmware
1735
1736 For kernels that have this configuration enabled but boot with broken
1737 firmware, you may need to say N here until the firmware is fixed.
1738 Otherwise you may experience firmware panics or lockups when
1739 accessing the counter registers. Even if you are not observing these
1740 symptoms, the values returned by the register reads might not
1741 correctly reflect reality. Most commonly, the value read will be 0,
1742 indicating that the counter is not enabled.
1743
7c78f67e
ZY
1744config AS_HAS_ARMV8_4
1745 def_bool $(cc-option,-Wa$(comma)-march=armv8.4-a)
1746
1747config ARM64_TLB_RANGE
1748 bool "Enable support for tlbi range feature"
1749 default y
1750 depends on AS_HAS_ARMV8_4
1751 help
1752 ARMv8.4-TLBI provides TLBI invalidation instruction that apply to a
1753 range of input addresses.
1754
1755 The feature introduces new assembly instructions, and they were
1756 support when binutils >= 2.30.
1757
04ca3204
MR
1758endmenu
1759
3e6c69a0
MB
1760menu "ARMv8.5 architectural features"
1761
f469c032
VF
1762config AS_HAS_ARMV8_5
1763 def_bool $(cc-option,-Wa$(comma)-march=armv8.5-a)
1764
383499f8
DM
1765config ARM64_BTI
1766 bool "Branch Target Identification support"
1767 default y
1768 help
1769 Branch Target Identification (part of the ARMv8.5 Extensions)
1770 provides a mechanism to limit the set of locations to which computed
1771 branch instructions such as BR or BLR can jump.
1772
1773 To make use of BTI on CPUs that support it, say Y.
1774
1775 BTI is intended to provide complementary protection to other control
1776 flow integrity protection mechanisms, such as the Pointer
1777 authentication mechanism provided as part of the ARMv8.3 Extensions.
1778 For this reason, it does not make sense to enable this option without
1779 also enabling support for pointer authentication. Thus, when
1780 enabling this option you should also select ARM64_PTR_AUTH=y.
1781
1782 Userspace binaries must also be specifically compiled to make use of
1783 this mechanism. If you say N here or the hardware does not support
1784 BTI, such binaries can still run, but you get no additional
1785 enforcement of branch destinations.
1786
97fed779
MB
1787config ARM64_BTI_KERNEL
1788 bool "Use Branch Target Identification for kernel"
1789 default y
1790 depends on ARM64_BTI
b27a9f41 1791 depends on ARM64_PTR_AUTH_KERNEL
97fed779 1792 depends on CC_HAS_BRANCH_PROT_PAC_RET_BTI
3a88d7c5
WD
1793 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94697
1794 depends on !CC_IS_GCC || GCC_VERSION >= 100100
8cdd23c2
NC
1795 # https://github.com/llvm/llvm-project/commit/a88c722e687e6780dcd6a58718350dc76fcc4cc9
1796 depends on !CC_IS_CLANG || CLANG_VERSION >= 120000
97fed779
MB
1797 depends on (!FUNCTION_GRAPH_TRACER || DYNAMIC_FTRACE_WITH_REGS)
1798 help
1799 Build the kernel with Branch Target Identification annotations
1800 and enable enforcement of this for kernel code. When this option
1801 is enabled and the system supports BTI all kernel code including
1802 modular code must have BTI enabled.
1803
1804config CC_HAS_BRANCH_PROT_PAC_RET_BTI
1805 # GCC 9 or later, clang 8 or later
1806 def_bool $(cc-option,-mbranch-protection=pac-ret+leaf+bti)
1807
3e6c69a0
MB
1808config ARM64_E0PD
1809 bool "Enable support for E0PD"
1810 default y
1811 help
e717d93b
WD
1812 E0PD (part of the ARMv8.5 extensions) allows us to ensure
1813 that EL0 accesses made via TTBR1 always fault in constant time,
1814 providing similar benefits to KASLR as those provided by KPTI, but
1815 with lower overhead and without disrupting legitimate access to
1816 kernel memory such as SPE.
3e6c69a0 1817
e717d93b 1818 This option enables E0PD for TTBR1 where available.
3e6c69a0 1819
1a50ec0b
RH
1820config ARCH_RANDOM
1821 bool "Enable support for random number generation"
1822 default y
1823 help
1824 Random number generation (part of the ARMv8.5 Extensions)
1825 provides a high bandwidth, cryptographically secure
1826 hardware random number generator.
1827
89b94df9
VF
1828config ARM64_AS_HAS_MTE
1829 # Initial support for MTE went in binutils 2.32.0, checked with
1830 # ".arch armv8.5-a+memtag" below. However, this was incomplete
1831 # as a late addition to the final architecture spec (LDGM/STGM)
1832 # is only supported in the newer 2.32.x and 2.33 binutils
1833 # versions, hence the extra "stgm" instruction check below.
1834 def_bool $(as-instr,.arch armv8.5-a+memtag\nstgm xzr$(comma)[x0])
1835
1836config ARM64_MTE
1837 bool "Memory Tagging Extension support"
1838 default y
1839 depends on ARM64_AS_HAS_MTE && ARM64_TAGGED_ADDR_ABI
f469c032 1840 depends on AS_HAS_ARMV8_5
2decad92 1841 depends on AS_HAS_LSE_ATOMICS
98c970da
VF
1842 # Required for tag checking in the uaccess routines
1843 depends on ARM64_PAN
89b94df9
VF
1844 select ARCH_USES_HIGH_VMA_FLAGS
1845 help
1846 Memory Tagging (part of the ARMv8.5 Extensions) provides
1847 architectural support for run-time, always-on detection of
1848 various classes of memory error to aid with software debugging
1849 to eliminate vulnerabilities arising from memory-unsafe
1850 languages.
1851
1852 This option enables the support for the Memory Tagging
1853 Extension at EL0 (i.e. for userspace).
1854
1855 Selecting this option allows the feature to be detected at
1856 runtime. Any secondary CPU not implementing this feature will
1857 not be allowed a late bring-up.
1858
1859 Userspace binaries that want to use this feature must
1860 explicitly opt in. The mechanism for the userspace is
1861 described in:
1862
1863 Documentation/arm64/memory-tagging-extension.rst.
1864
3e6c69a0
MB
1865endmenu
1866
18107f8a
VM
1867menu "ARMv8.7 architectural features"
1868
1869config ARM64_EPAN
1870 bool "Enable support for Enhanced Privileged Access Never (EPAN)"
1871 default y
1872 depends on ARM64_PAN
1873 help
1874 Enhanced Privileged Access Never (EPAN) allows Privileged
1875 Access Never to be used with Execute-only mappings.
1876
1877 The feature is detected at runtime, and will remain disabled
1878 if the cpu does not implement the feature.
1879endmenu
1880
ddd25ad1
DM
1881config ARM64_SVE
1882 bool "ARM Scalable Vector Extension support"
1883 default y
1884 help
1885 The Scalable Vector Extension (SVE) is an extension to the AArch64
1886 execution state which complements and extends the SIMD functionality
1887 of the base architecture to support much larger vectors and to enable
1888 additional vectorisation opportunities.
1889
1890 To enable use of this extension on CPUs that implement it, say Y.
1891
06a916fe
DM
1892 On CPUs that support the SVE2 extensions, this option will enable
1893 those too.
1894
5043694e
DM
1895 Note that for architectural reasons, firmware _must_ implement SVE
1896 support when running on SVE capable hardware. The required support
1897 is present in:
1898
1899 * version 1.5 and later of the ARM Trusted Firmware
1900 * the AArch64 boot wrapper since commit 5e1261e08abf
1901 ("bootwrapper: SVE: Enable SVE for EL2 and below").
1902
1903 For other firmware implementations, consult the firmware documentation
1904 or vendor.
1905
1906 If you need the kernel to boot on SVE-capable hardware with broken
1907 firmware, you may need to say N here until you get your firmware
1908 fixed. Otherwise, you may experience firmware panics or lockups when
1909 booting the kernel. If unsure and you are not observing these
1910 symptoms, you should assume that it is safe to say Y.
fd045f6c
AB
1911
1912config ARM64_MODULE_PLTS
58557e48 1913 bool "Use PLTs to allow module memory to spill over into vmalloc area"
faaa73bc 1914 depends on MODULES
fd045f6c 1915 select HAVE_MOD_ARCH_SPECIFIC
58557e48
FF
1916 help
1917 Allocate PLTs when loading modules so that jumps and calls whose
1918 targets are too far away for their relative offsets to be encoded
1919 in the instructions themselves can be bounced via veneers in the
1920 module's PLT. This allows modules to be allocated in the generic
1921 vmalloc area after the dedicated module memory area has been
1922 exhausted.
1923
1924 When running with address space randomization (KASLR), the module
1925 region itself may be too far away for ordinary relative jumps and
1926 calls, and so in that case, module PLTs are required and cannot be
1927 disabled.
1928
1929 Specific errata workaround(s) might also force module PLTs to be
1930 enabled (ARM64_ERRATUM_843419).
fd045f6c 1931
bc3c03cc
JT
1932config ARM64_PSEUDO_NMI
1933 bool "Support for NMI-like interrupts"
3c9c1dcd 1934 select ARM_GIC_V3
bc3c03cc
JT
1935 help
1936 Adds support for mimicking Non-Maskable Interrupts through the use of
1937 GIC interrupt priority. This support requires version 3 or later of
bc15cf70 1938 ARM GIC.
bc3c03cc
JT
1939
1940 This high priority configuration for interrupts needs to be
1941 explicitly enabled by setting the kernel parameter
1942 "irqchip.gicv3_pseudo_nmi" to 1.
1943
1944 If unsure, say N
1945
48ce8f80
JT
1946if ARM64_PSEUDO_NMI
1947config ARM64_DEBUG_PRIORITY_MASKING
1948 bool "Debug interrupt priority masking"
1949 help
1950 This adds runtime checks to functions enabling/disabling
1951 interrupts when using priority masking. The additional checks verify
1952 the validity of ICC_PMR_EL1 when calling concerned functions.
1953
1954 If unsure, say N
1955endif
1956
1e48ef7f 1957config RELOCATABLE
dd4bc607 1958 bool "Build a relocatable kernel image" if EXPERT
5cf896fb 1959 select ARCH_HAS_RELR
dd4bc607 1960 default y
1e48ef7f
AB
1961 help
1962 This builds the kernel as a Position Independent Executable (PIE),
1963 which retains all relocation metadata required to relocate the
1964 kernel binary at runtime to a different virtual address than the
1965 address it was linked at.
1966 Since AArch64 uses the RELA relocation format, this requires a
1967 relocation pass at runtime even if the kernel is loaded at the
1968 same address it was linked at.
1969
f80fb3a3
AB
1970config RANDOMIZE_BASE
1971 bool "Randomize the address of the kernel image"
b9c220b5 1972 select ARM64_MODULE_PLTS if MODULES
f80fb3a3
AB
1973 select RELOCATABLE
1974 help
1975 Randomizes the virtual address at which the kernel image is
1976 loaded, as a security feature that deters exploit attempts
1977 relying on knowledge of the location of kernel internals.
1978
1979 It is the bootloader's job to provide entropy, by passing a
1980 random u64 value in /chosen/kaslr-seed at kernel entry.
1981
2b5fe07a
AB
1982 When booting via the UEFI stub, it will invoke the firmware's
1983 EFI_RNG_PROTOCOL implementation (if available) to supply entropy
1984 to the kernel proper. In addition, it will randomise the physical
1985 location of the kernel Image as well.
1986
f80fb3a3
AB
1987 If unsure, say N.
1988
1989config RANDOMIZE_MODULE_REGION_FULL
f9c4ff2a 1990 bool "Randomize the module region over a 2 GB range"
e71a4e1b 1991 depends on RANDOMIZE_BASE
f80fb3a3
AB
1992 default y
1993 help
f9c4ff2a 1994 Randomizes the location of the module region inside a 2 GB window
f2b9ba87 1995 covering the core kernel. This way, it is less likely for modules
f80fb3a3
AB
1996 to leak information about the location of core kernel data structures
1997 but it does imply that function calls between modules and the core
1998 kernel will need to be resolved via veneers in the module PLT.
1999
2000 When this option is not set, the module region will be randomized over
2001 a limited range that contains the [_stext, _etext] interval of the
f9c4ff2a
BS
2002 core kernel, so branch relocations are almost always in range unless
2003 ARM64_MODULE_PLTS is enabled and the region is exhausted. In this
2004 particular case of region exhaustion, modules might be able to fall
2005 back to a larger 2GB area.
f80fb3a3 2006
0a1213fa
AB
2007config CC_HAVE_STACKPROTECTOR_SYSREG
2008 def_bool $(cc-option,-mstack-protector-guard=sysreg -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=0)
2009
2010config STACKPROTECTOR_PER_TASK
2011 def_bool y
2012 depends on STACKPROTECTOR && CC_HAVE_STACKPROTECTOR_SYSREG
2013
8c2c3df3
CM
2014endmenu
2015
2016menu "Boot options"
2017
5e89c55e
LP
2018config ARM64_ACPI_PARKING_PROTOCOL
2019 bool "Enable support for the ARM64 ACPI parking protocol"
2020 depends on ACPI
2021 help
2022 Enable support for the ARM64 ACPI parking protocol. If disabled
2023 the kernel will not allow booting through the ARM64 ACPI parking
2024 protocol even if the corresponding data is present in the ACPI
2025 MADT table.
2026
8c2c3df3
CM
2027config CMDLINE
2028 string "Default kernel command string"
2029 default ""
2030 help
2031 Provide a set of default command-line options at build time by
2032 entering them here. As a minimum, you should specify the the
2033 root device (e.g. root=/dev/nfs).
2034
1e40d105
TH
2035choice
2036 prompt "Kernel command line type" if CMDLINE != ""
2037 default CMDLINE_FROM_BOOTLOADER
2038 help
2039 Choose how the kernel will handle the provided default kernel
2040 command line string.
2041
2042config CMDLINE_FROM_BOOTLOADER
2043 bool "Use bootloader kernel arguments if available"
2044 help
2045 Uses the command-line options passed by the boot loader. If
2046 the boot loader doesn't provide any, the default kernel command
2047 string provided in CMDLINE will be used.
2048
8c2c3df3
CM
2049config CMDLINE_FORCE
2050 bool "Always use the default kernel command string"
2051 help
2052 Always use the default kernel command string, even if the boot
2053 loader passes other arguments to the kernel.
2054 This is useful if you cannot or don't want to change the
2055 command-line options your boot loader passes to the kernel.
2056
1e40d105
TH
2057endchoice
2058
f4f75ad5
AB
2059config EFI_STUB
2060 bool
2061
f84d0275
MS
2062config EFI
2063 bool "UEFI runtime support"
2064 depends on OF && !CPU_BIG_ENDIAN
b472db6c 2065 depends on KERNEL_MODE_NEON
2c870e61 2066 select ARCH_SUPPORTS_ACPI
f84d0275
MS
2067 select LIBFDT
2068 select UCS2_STRING
2069 select EFI_PARAMS_FROM_FDT
e15dd494 2070 select EFI_RUNTIME_WRAPPERS
f4f75ad5 2071 select EFI_STUB
2e0eb483 2072 select EFI_GENERIC_STUB
8d39cee0 2073 imply IMA_SECURE_AND_OR_TRUSTED_BOOT
f84d0275
MS
2074 default y
2075 help
2076 This option provides support for runtime services provided
2077 by UEFI firmware (such as non-volatile variables, realtime
3c7f2550
MS
2078 clock, and platform reset). A UEFI stub is also provided to
2079 allow the kernel to be booted as an EFI application. This
2080 is only useful on systems that have UEFI firmware.
f84d0275 2081
d1ae8c00
YL
2082config DMI
2083 bool "Enable support for SMBIOS (DMI) tables"
2084 depends on EFI
2085 default y
2086 help
2087 This enables SMBIOS/DMI feature for systems.
2088
2089 This option is only useful on systems that have UEFI firmware.
2090 However, even with this option, the resultant kernel should
2091 continue to boot on existing non-UEFI platforms.
2092
8c2c3df3
CM
2093endmenu
2094
8c2c3df3
CM
2095config SYSVIPC_COMPAT
2096 def_bool y
2097 depends on COMPAT && SYSVIPC
2098
166936ba
LP
2099menu "Power management options"
2100
2101source "kernel/power/Kconfig"
2102
82869ac5
JM
2103config ARCH_HIBERNATION_POSSIBLE
2104 def_bool y
2105 depends on CPU_PM
2106
2107config ARCH_HIBERNATION_HEADER
2108 def_bool y
2109 depends on HIBERNATION
2110
166936ba
LP
2111config ARCH_SUSPEND_POSSIBLE
2112 def_bool y
2113
166936ba
LP
2114endmenu
2115
1307220d
LP
2116menu "CPU Power Management"
2117
2118source "drivers/cpuidle/Kconfig"
2119
52e7e816
RH
2120source "drivers/cpufreq/Kconfig"
2121
2122endmenu
2123
b6a02173
GG
2124source "drivers/acpi/Kconfig"
2125
c3eb5b14
MZ
2126source "arch/arm64/kvm/Kconfig"
2127
2c98833a
AB
2128if CRYPTO
2129source "arch/arm64/crypto/Kconfig"
2130endif