1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 28c2c3df3SCatalin Marinasconfig ARM64 38c2c3df3SCatalin Marinas def_bool y 46251d380SBesar Wicaksono select ACPI_APMT if ACPI 5b6197b93SSuthikulpanit, Suravee select ACPI_CCA_REQUIRED if ACPI 6d8f4f161SLorenzo Pieralisi select ACPI_GENERIC_GSI if ACPI 75f1ae4ebSFu Wei select ACPI_GTDT if ACPI 846800e38SGavin Shan select ACPI_HOTPLUG_CPU if ACPI_PROCESSOR && HOTPLUG_CPU 9c6bb8f89SLorenzo Pieralisi select ACPI_IORT if ACPI 106933de0cSAl Stone select ACPI_REDUCED_HARDWARE_ONLY if ACPI 1152146173SSinan Kaya select ACPI_MCFG if (ACPI && PCI) 12888125a7SAleksey Makarov select ACPI_SPCR_TABLE if ACPI 130ce82232SJeremy Linton select ACPI_PPTT if ACPI 1409587a09SZong Li select ARCH_HAS_DEBUG_WX 156dd8b1a0SCatalin Marinas select ARCH_BINFMT_ELF_EXTRA_PHDRS 16ab7876a9SDave Martin select ARCH_BINFMT_ELF_STATE 17cd9bc2c9SMasami Hiramatsu select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE 181e866974SAnshuman Khandual select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION 1991024b3cSAnshuman Khandual select ARCH_ENABLE_MEMORY_HOTPLUG 2091024b3cSAnshuman Khandual select ARCH_ENABLE_MEMORY_HOTREMOVE 2166f24fa7SAnshuman Khandual select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2 221e866974SAnshuman Khandual select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE 23c2280be8SAnshuman Khandual select ARCH_HAS_CACHE_LINE_SIZE 242792d84eSKees Cook select ARCH_HAS_CURRENT_STACK_POINTER 25ec6d06efSLaura Abbott select ARCH_HAS_DEBUG_VIRTUAL 26399145f9SAnshuman Khandual select ARCH_HAS_DEBUG_VM_PGTABLE 27de6c85bfSChristoph Hellwig select ARCH_HAS_DMA_OPS if XEN 2813bf5cedSChristoph Hellwig select ARCH_HAS_DMA_PREP_COHERENT 2938b04a74SJon Masters select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI 30e75bef2aSRobin Murphy select ARCH_HAS_FAST_MULTIPLIER 316974f0c4SDaniel Micay select ARCH_HAS_FORTIFY_SOURCE 32957e3facSRiku Voipio select ARCH_HAS_GCOV_PROFILE_ALL 334eb0716eSAlexandre Ghiti select ARCH_HAS_GIGANTIC_PAGE 345e4c7549SAlexander Potapenko select ARCH_HAS_KCOV 3571883ae3SSamuel Holland select ARCH_HAS_KERNEL_FPU_SUPPORT if KERNEL_MODE_NEON 36d8ae8a37SChristoph Hellwig select ARCH_HAS_KEEPINITRD 37f1e3a12bSMathieu Desnoyers select ARCH_HAS_MEMBARRIER_SYNC_CORE 38e7bafbf7SWill Deacon select ARCH_HAS_MEM_ENCRYPT 396cc9203bSPaul E. McKenney select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS 400ebeea8cSDaniel Borkmann select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE 4173b20c84SRobin Murphy select ARCH_HAS_PTE_DEVMAP 423010a5eaSLaurent Dufour select ARCH_HAS_PTE_SPECIAL 4371ce1ab5SKinsey Ho select ARCH_HAS_HW_PTE_YOUNG 44347cb6afSChristoph Hellwig select ARCH_HAS_SETUP_DMA_OPS 454739d53fSArd Biesheuvel select ARCH_HAS_SET_DIRECT_MAP 46d2852a22SDaniel Borkmann select ARCH_HAS_SET_MEMORY 475fc57df2SMark Brown select ARCH_STACKWALK 48ad21fc4fSLaura Abbott select ARCH_HAS_STRICT_KERNEL_RWX 49ad21fc4fSLaura Abbott select ARCH_HAS_STRICT_MODULE_RWX 50886643b7SChristoph Hellwig select ARCH_HAS_SYNC_DMA_FOR_DEVICE 51886643b7SChristoph Hellwig select ARCH_HAS_SYNC_DMA_FOR_CPU 524378a7d4SMark Rutland select ARCH_HAS_SYSCALL_WRAPPER 531f85008eSLorenzo Pieralisi select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST 5463703f37SKefeng Wang select ARCH_HAS_ZONE_DMA_SET if EXPERT 55ab7876a9SDave Martin select ARCH_HAVE_ELF_PROT 56396a5d4aSStephen Boyd select ARCH_HAVE_NMI_SAFE_CMPXCHG 57d593d64fSPrasad Sodagudi select ARCH_HAVE_TRACE_MMIO_ACCESS 587ef858daSThomas Gleixner select ARCH_INLINE_READ_LOCK if !PREEMPTION 597ef858daSThomas Gleixner select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION 607ef858daSThomas Gleixner select ARCH_INLINE_READ_LOCK_IRQ if !PREEMPTION 617ef858daSThomas Gleixner select ARCH_INLINE_READ_LOCK_IRQSAVE if !PREEMPTION 627ef858daSThomas Gleixner select ARCH_INLINE_READ_UNLOCK if !PREEMPTION 637ef858daSThomas Gleixner select ARCH_INLINE_READ_UNLOCK_BH if !PREEMPTION 647ef858daSThomas Gleixner select ARCH_INLINE_READ_UNLOCK_IRQ if !PREEMPTION 657ef858daSThomas Gleixner select ARCH_INLINE_READ_UNLOCK_IRQRESTORE if !PREEMPTION 667ef858daSThomas Gleixner select ARCH_INLINE_WRITE_LOCK if !PREEMPTION 677ef858daSThomas Gleixner select ARCH_INLINE_WRITE_LOCK_BH if !PREEMPTION 687ef858daSThomas Gleixner select ARCH_INLINE_WRITE_LOCK_IRQ if !PREEMPTION 697ef858daSThomas Gleixner select ARCH_INLINE_WRITE_LOCK_IRQSAVE if !PREEMPTION 707ef858daSThomas Gleixner select ARCH_INLINE_WRITE_UNLOCK if !PREEMPTION 717ef858daSThomas Gleixner select ARCH_INLINE_WRITE_UNLOCK_BH if !PREEMPTION 727ef858daSThomas Gleixner select ARCH_INLINE_WRITE_UNLOCK_IRQ if !PREEMPTION 737ef858daSThomas Gleixner select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE if !PREEMPTION 747ef858daSThomas Gleixner select ARCH_INLINE_SPIN_TRYLOCK if !PREEMPTION 757ef858daSThomas Gleixner select ARCH_INLINE_SPIN_TRYLOCK_BH if !PREEMPTION 767ef858daSThomas Gleixner select ARCH_INLINE_SPIN_LOCK if !PREEMPTION 777ef858daSThomas Gleixner select ARCH_INLINE_SPIN_LOCK_BH if !PREEMPTION 787ef858daSThomas Gleixner select ARCH_INLINE_SPIN_LOCK_IRQ if !PREEMPTION 797ef858daSThomas Gleixner select ARCH_INLINE_SPIN_LOCK_IRQSAVE if !PREEMPTION 807ef858daSThomas Gleixner select ARCH_INLINE_SPIN_UNLOCK if !PREEMPTION 817ef858daSThomas Gleixner select ARCH_INLINE_SPIN_UNLOCK_BH if !PREEMPTION 827ef858daSThomas Gleixner select ARCH_INLINE_SPIN_UNLOCK_IRQ if !PREEMPTION 837ef858daSThomas Gleixner select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE if !PREEMPTION 84350e88baSMike Rapoport select ARCH_KEEP_MEMBLOCK 8504d5ea46SAneesh Kumar K.V select ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE 86c63c8700SSudeep Holla select ARCH_USE_CMPXCHG_LOCKREF 87bf7f15c5SWill Deacon select ARCH_USE_GNU_PROPERTY 88dce44566SAnshuman Khandual select ARCH_USE_MEMTEST 89087133acSWill Deacon select ARCH_USE_QUEUED_RWLOCKS 90c1109047SWill Deacon select ARCH_USE_QUEUED_SPINLOCKS 9150479d58SMark Brown select ARCH_USE_SYM_ANNOTATIONS 925d6ad668SMike Rapoport select ARCH_SUPPORTS_DEBUG_PAGEALLOC 93855f9a8eSAnshuman Khandual select ARCH_SUPPORTS_HUGETLBFS 94c484f256SJonathan (Zhixiong) Zhang select ARCH_SUPPORTS_MEMORY_FAILURE 955287569aSSami Tolvanen select ARCH_SUPPORTS_SHADOW_CALL_STACK if CC_HAVE_SHADOW_CALL_STACK 96112b6a8eSSami Tolvanen select ARCH_SUPPORTS_LTO_CLANG if CPU_LITTLE_ENDIAN 97112b6a8eSSami Tolvanen select ARCH_SUPPORTS_LTO_CLANG_THIN 989186ad8eSSami Tolvanen select ARCH_SUPPORTS_CFI_CLANG 994badad35SPeter Zijlstra select ARCH_SUPPORTS_ATOMIC_RMW 10042a7ba16SNick Desaulniers select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 10156166230SGanapatrao Kulkarni select ARCH_SUPPORTS_NUMA_BALANCING 10242b25471SKefeng Wang select ARCH_SUPPORTS_PAGE_TABLE_CHECK 103cd7f176aSSuren Baghdasaryan select ARCH_SUPPORTS_PER_VMA_LOCK 1043e509c9bSPeter Xu select ARCH_SUPPORTS_HUGE_PFNMAP if TRANSPARENT_HUGEPAGE 105d8fccd9cSSebastian Andrzej Siewior select ARCH_SUPPORTS_RT 10643b3dfddSBarry Song select ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH 10784c187afSYury Norov select ARCH_WANT_COMPAT_IPC_PARSE_VERSION if COMPAT 10881c22041SDaniel Borkmann select ARCH_WANT_DEFAULT_BPF_JIT 10967f3977fSAlexandre Ghiti select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT 110b6f35981SCatalin Marinas select ARCH_WANT_FRAME_POINTERS 1113876d4a3SAlexandre Ghiti select ARCH_WANT_HUGE_PMD_SHARE if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36) 11259612b24SNathan Chancellor select ARCH_WANT_LD_ORPHAN_WARN 113223b5e57SMike Rapoport (IBM) select ARCH_WANTS_EXECMEM_LATE if EXECMEM 11451c2ee6dSNick Desaulniers select ARCH_WANTS_NO_INSTR 115d0637c50SBarry Song select ARCH_WANTS_THP_SWAP if ARM64_4K_PAGES 116918327e9SKees Cook select ARCH_HAS_UBSAN 11725c92a37SCatalin Marinas select ARM_AMBA 1181aee5d7aSMark Rutland select ARM_ARCH_TIMER 119c4188edcSCatalin Marinas select ARM_GIC 120875cbf3eSAKASHI Takahiro select AUDIT_ARCH_COMPAT_GENERIC 1213ee80364SArnd Bergmann select ARM_GIC_V2M if PCI 122021f6537SMarc Zyngier select ARM_GIC_V3 1233ee80364SArnd Bergmann select ARM_GIC_V3_ITS if PCI 124bff60792SMark Rutland select ARM_PSCI_FW 12510916706SShile Zhang select BUILDTIME_TABLE_SORT 126db2789b5SCatalin Marinas select CLONE_BACKWARDS 1277ca2ef33SDeepak Saxena select COMMON_CLK 128166936baSLorenzo Pieralisi select CPU_PM if (SUSPEND || CPU_IDLE) 1293fbd56f0SChristoph Lameter (Ampere) select CPUMASK_OFFSTACK if NR_CPUS > 256 1307481cddfSArd Biesheuvel select CRC32 1317bc13fd3SWill Deacon select DCACHE_WORD_ACCESS 132cfce092dSMark Rutland select DYNAMIC_FTRACE if FUNCTION_TRACER 1331c1a429eSCatalin Marinas select DMA_BOUNCE_UNALIGNED_KMALLOC 1340c3b3171SChristoph Hellwig select DMA_DIRECT_REMAP 135ef37566cSCatalin Marinas select EDAC_SUPPORT 1362f34f173SYang Shi select FRAME_POINTER 13747a15aa5SMark Rutland select FUNCTION_ALIGNMENT_4B 138baaf553dSMark Rutland select FUNCTION_ALIGNMENT_8B if DYNAMIC_FTRACE_WITH_CALL_OPS 139d4932f9eSLaura Abbott select GENERIC_ALLOCATOR 1402ef7a295SJuri Lelli select GENERIC_ARCH_TOPOLOGY 1414b3dc967SWill Deacon select GENERIC_CLOCKEVENTS_BROADCAST 1423be1a5c4SArd Biesheuvel select GENERIC_CPU_AUTOPROBE 143d127db1aSJames Morse select GENERIC_CPU_DEVICES 14461ae1321SMian Yousaf Kaukab select GENERIC_CPU_VULNERABILITIES 145bf4b558eSMark Salter select GENERIC_EARLY_IOREMAP 1462314ee4dSLeo Yan select GENERIC_IDLE_POLL_SETUP 147f23eab0bSKefeng Wang select GENERIC_IOREMAP 148d3afc7f1SMarc Zyngier select GENERIC_IRQ_IPI 1498c2c3df3SCatalin Marinas select GENERIC_IRQ_PROBE 1508c2c3df3SCatalin Marinas select GENERIC_IRQ_SHOW 1516544e67bSSudeep Holla select GENERIC_IRQ_SHOW_LEVEL 1526585bd82SPalmer Dabbelt select GENERIC_LIB_DEVMEM_IS_ALLOWED 153cb61f676SArnd Bergmann select GENERIC_PCI_IOMAP 154102f45fdSSteven Price select GENERIC_PTDUMP 15565cd4f6cSStephen Boyd select GENERIC_SCHED_CLOCK 1568c2c3df3SCatalin Marinas select GENERIC_SMP_IDLE_THREAD 1578c2c3df3SCatalin Marinas select GENERIC_TIME_VSYSCALL 15828b1a824SVincenzo Frascino select GENERIC_GETTIMEOFDAY 1599614cc57SAndrei Vagin select GENERIC_VDSO_TIME_NS 1608c2c3df3SCatalin Marinas select HARDIRQS_SW_RESEND 161fcbfe812SNiklas Schnelle select HAS_IOPORT 16245544eeeSKalesh Singh select HAVE_MOVE_PMD 163f5308c89SKalesh Singh select HAVE_MOVE_PUD 164eb01d42aSChristoph Hellwig select HAVE_PCI 1659f9a35a7STomasz Nowicki select HAVE_ACPI_APEI if (ACPI && EFI) 1662a19be61SVlastimil Babka select HAVE_ALIGNED_STRUCT_PAGE 167875cbf3eSAKASHI Takahiro select HAVE_ARCH_AUDITSYSCALL 1688e7a4cefSYalin Wang select HAVE_ARCH_BITREVERSE 169689eae42SAmit Daniel Kachhap select HAVE_ARCH_COMPILER_H 170e9207223SKefeng Wang select HAVE_ARCH_HUGE_VMALLOC 171324420bfSArd Biesheuvel select HAVE_ARCH_HUGE_VMAP 1729732cafdSJiang Liu select HAVE_ARCH_JUMP_LABEL 173c296146cSArd Biesheuvel select HAVE_ARCH_JUMP_LABEL_RELATIVE 1740383808eSArd Biesheuvel select HAVE_ARCH_KASAN 17562e2397cSMasahiro Yamada select HAVE_ARCH_KASAN_VMALLOC 17662e2397cSMasahiro Yamada select HAVE_ARCH_KASAN_SW_TAGS 17762e2397cSMasahiro Yamada select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE 178dd03762aSKefeng Wang # Some instrumentation may be unsound, hence EXPERT 179dd03762aSKefeng Wang select HAVE_ARCH_KCSAN if EXPERT 180840b2398SMarco Elver select HAVE_ARCH_KFENCE 1819529247dSVijaya Kumar K select HAVE_ARCH_KGDB 1828f0d3aa9SDaniel Cashman select HAVE_ARCH_MMAP_RND_BITS 1838f0d3aa9SDaniel Cashman select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT 184271ca788SArd Biesheuvel select HAVE_ARCH_PREL32_RELOCATIONS 18570918779SKees Cook select HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET 186a1ae65b2SAKASHI Takahiro select HAVE_ARCH_SECCOMP_FILTER 1870b3e3366SLaura Abbott select HAVE_ARCH_STACKLEAK 1889e8084d3SKees Cook select HAVE_ARCH_THREAD_STRUCT_WHITELIST 1898c2c3df3SCatalin Marinas select HAVE_ARCH_TRACEHOOK 1908ee70879SYang Shi select HAVE_ARCH_TRANSPARENT_HUGEPAGE 191e3067861SMark Rutland select HAVE_ARCH_VMAP_STACK 1928ee70879SYang Shi select HAVE_ARM_SMCCC 1932ff2b7ecSMasahiro Yamada select HAVE_ASM_MODVERSIONS 1946077776bSDaniel Borkmann select HAVE_EBPF_JIT 195af64d2aaSAKASHI Takahiro select HAVE_C_RECORDMCOUNT 1965284e1b4SSteve Capper select HAVE_CMPXCHG_DOUBLE 19795eff6b2SWill Deacon select HAVE_CMPXCHG_LOCAL 19824a9c541SFrederic Weisbecker select HAVE_CONTEXT_TRACKING_USER 199b69ec42bSCatalin Marinas select HAVE_DEBUG_KMEMLEAK 2006ac2104dSLaura Abbott select HAVE_DMA_CONTIGUOUS 201bd7d38dbSAKASHI Takahiro select HAVE_DYNAMIC_FTRACE 2022aa6ac03SFlorent Revest select HAVE_DYNAMIC_FTRACE_WITH_ARGS \ 203b3d6121eSMark Rutland if (GCC_SUPPORTS_DYNAMIC_FTRACE_WITH_ARGS || \ 204b3d6121eSMark Rutland CLANG_SUPPORTS_DYNAMIC_FTRACE_WITH_ARGS) 2052aa6ac03SFlorent Revest select HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS \ 2062aa6ac03SFlorent Revest if DYNAMIC_FTRACE_WITH_ARGS && DYNAMIC_FTRACE_WITH_CALL_OPS 207baaf553dSMark Rutland select HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS \ 208b3f11af9SMark Rutland if (DYNAMIC_FTRACE_WITH_ARGS && !CFI_CLANG && \ 209a743f26dSStephen Boyd (CC_IS_CLANG || !CC_OPTIMIZE_FOR_SIZE)) 210a31d793dSSami Tolvanen select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY \ 21126299b3fSMark Rutland if DYNAMIC_FTRACE_WITH_ARGS 2128c3526fbSFlorent Revest select HAVE_SAMPLE_FTRACE_DIRECT 2138c3526fbSFlorent Revest select HAVE_SAMPLE_FTRACE_DIRECT_MULTI 21450afc33aSWill Deacon select HAVE_EFFICIENT_UNALIGNED_ACCESS 21525176ad0SDavid Hildenbrand select HAVE_GUP_FAST 216af64d2aaSAKASHI Takahiro select HAVE_FTRACE_MCOUNT_RECORD 217819e50e2SAKASHI Takahiro select HAVE_FUNCTION_TRACER 21842d038c4SLeo Yan select HAVE_FUNCTION_ERROR_INJECTION 219819e50e2SAKASHI Takahiro select HAVE_FUNCTION_GRAPH_TRACER 220add6128fSAnshuman Khandual select HAVE_FUNCTION_GRAPH_RETVAL 2216b90bd4bSEmese Revfy select HAVE_GCC_PLUGINS 222d7a0fe9eSDouglas Anderson select HAVE_HARDLOCKUP_DETECTOR_PERF if PERF_EVENTS && \ 223d7a0fe9eSDouglas Anderson HW_PERF_EVENTS && HAVE_PERF_EVENTS_NMI 2248c2c3df3SCatalin Marinas select HAVE_HW_BREAKPOINT if PERF_EVENTS 225893dea9cSKefeng Wang select HAVE_IOREMAP_PROT 22624da208dSWill Deacon select HAVE_IRQ_TIME_ACCOUNTING 227ea3752baSMark Rutland select HAVE_MOD_ARCH_SPECIFIC 228396a5d4aSStephen Boyd select HAVE_NMI 2298c2c3df3SCatalin Marinas select HAVE_PERF_EVENTS 230d7a0fe9eSDouglas Anderson select HAVE_PERF_EVENTS_NMI if ARM64_PSEUDO_NMI 2312ee0d7fdSJean Pihet select HAVE_PERF_REGS 2322ee0d7fdSJean Pihet select HAVE_PERF_USER_STACK_DUMP 2331b2d3451SMark Rutland select HAVE_PREEMPT_DYNAMIC_KEY 2340a8ea52cSDavid A. Long select HAVE_REGS_AND_STACK_ACCESS_API 235a68773bdSNicolas Saenz Julienne select HAVE_POSIX_CPU_TIMERS_TASK_WORK 236a823c35fSMasami Hiramatsu select HAVE_FUNCTION_ARG_ACCESS_API 237ff2e6d72SPeter Zijlstra select MMU_GATHER_RCU_TABLE_FREE 238409d5db4SWill Deacon select HAVE_RSEQ 239d077242dSAlice Ryhl select HAVE_RUST if RUSTC_SUPPORTS_ARM64 240d148eac0SMasahiro Yamada select HAVE_STACKPROTECTOR 241055b1212SAKASHI Takahiro select HAVE_SYSCALL_TRACEPOINTS 2422dd0e8d2SSandeepa Prabhu select HAVE_KPROBES 243cd1ee3b1SMasami Hiramatsu select HAVE_KRETPROBES 24428b1a824SVincenzo Frascino select HAVE_GENERIC_VDSO 245b3091f17SThomas Gleixner select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU 2468c2c3df3SCatalin Marinas select IRQ_DOMAIN 247e8557d1fSAnders Roxell select IRQ_FORCED_THREADING 248f6f37d93SAndrey Konovalov select KASAN_VMALLOC if KASAN 249ae870a68SLinus Torvalds select LOCK_MM_AND_FIND_VMA 250fea2acaaSCatalin Marinas select MODULES_USE_ELF_RELA 251f616ab59SChristoph Hellwig select NEED_DMA_MAP_STATE 25286596f0aSChristoph Hellwig select NEED_SG_DMA_LENGTH 2538c2c3df3SCatalin Marinas select OF 2548c2c3df3SCatalin Marinas select OF_EARLY_FLATTREE 2552eac9c2dSChristoph Hellwig select PCI_DOMAINS_GENERIC if PCI 25652146173SSinan Kaya select PCI_ECAM if (ACPI && PCI) 25720f1b79dSChristoph Hellwig select PCI_SYSCALL if PCI 258aa1e8ec1SCatalin Marinas select POWER_RESET 259aa1e8ec1SCatalin Marinas select POWER_SUPPLY 2608c2c3df3SCatalin Marinas select SPARSE_IRQ 26109230cbcSChristoph Hellwig select SWIOTLB 2627ac57a89SCatalin Marinas select SYSCTL_EXCEPTION_TRACE 263c02433ddSMark Rutland select THREAD_INFO_IN_TASK 2647677f7fdSAxel Rasmussen select HAVE_ARCH_USERFAULTFD_MINOR if USERFAULTFD 2655b32510aSRyan Roberts select HAVE_ARCH_USERFAULTFD_WP if USERFAULTFD 2664aae683fSMasahiro Yamada select TRACE_IRQFLAGS_SUPPORT 2673381da25SMark Rutland select TRACE_IRQFLAGS_NMI_SUPPORT 2688eb858c4SQi Zheng select HAVE_SOFTIRQ_ON_OWN_STACK 269410e471fSchenqiwu select USER_STACKTRACE_SUPPORT 270712676eaSAdhemerval Zanella select VDSO_GETRANDOM 2718c2c3df3SCatalin Marinas help 2728c2c3df3SCatalin Marinas ARM 64-bit (AArch64) Linux support. 2738c2c3df3SCatalin Marinas 274d077242dSAlice Ryhlconfig RUSTC_SUPPORTS_ARM64 275d077242dSAlice Ryhl def_bool y 276d077242dSAlice Ryhl depends on CPU_LITTLE_ENDIAN 277d077242dSAlice Ryhl # Shadow call stack is only supported on certain rustc versions. 278d077242dSAlice Ryhl # 279d077242dSAlice Ryhl # When using the UNWIND_PATCH_PAC_INTO_SCS option, rustc version 1.80+ is 280d077242dSAlice Ryhl # required due to use of the -Zfixed-x18 flag. 281d077242dSAlice Ryhl # 282d077242dSAlice Ryhl # Otherwise, rustc version 1.82+ is required due to use of the 283d077242dSAlice Ryhl # -Zsanitizer=shadow-call-stack flag. 284d077242dSAlice Ryhl depends on !SHADOW_CALL_STACK || RUSTC_VERSION >= 108200 || RUSTC_VERSION >= 108000 && UNWIND_PATCH_PAC_INTO_SCS 285d077242dSAlice Ryhl 28626299b3fSMark Rutlandconfig CLANG_SUPPORTS_DYNAMIC_FTRACE_WITH_ARGS 28745bd8951SNathan Chancellor def_bool CC_IS_CLANG 28845bd8951SNathan Chancellor # https://github.com/ClangBuiltLinux/linux/issues/1507 28945bd8951SNathan Chancellor depends on AS_IS_GNU || (AS_IS_LLVM && (LD_IS_LLD || LD_VERSION >= 23600)) 29045bd8951SNathan Chancellor 29126299b3fSMark Rutlandconfig GCC_SUPPORTS_DYNAMIC_FTRACE_WITH_ARGS 29245bd8951SNathan Chancellor def_bool CC_IS_GCC 29345bd8951SNathan Chancellor depends on $(cc-option,-fpatchable-function-entry=2) 29445bd8951SNathan Chancellor 2958c2c3df3SCatalin Marinasconfig 64BIT 2968c2c3df3SCatalin Marinas def_bool y 2978c2c3df3SCatalin Marinas 2988c2c3df3SCatalin Marinasconfig MMU 2998c2c3df3SCatalin Marinas def_bool y 3008c2c3df3SCatalin Marinas 301c0d6de32SGavin Shanconfig ARM64_CONT_PTE_SHIFT 302030c4d24SMark Rutland int 303d3e5bab9SArnd Bergmann default 5 if PAGE_SIZE_64KB 304d3e5bab9SArnd Bergmann default 7 if PAGE_SIZE_16KB 305030c4d24SMark Rutland default 4 306030c4d24SMark Rutland 307e6765941SGavin Shanconfig ARM64_CONT_PMD_SHIFT 308e6765941SGavin Shan int 309d3e5bab9SArnd Bergmann default 5 if PAGE_SIZE_64KB 310d3e5bab9SArnd Bergmann default 5 if PAGE_SIZE_16KB 311e6765941SGavin Shan default 4 312e6765941SGavin Shan 3138f0d3aa9SDaniel Cashmanconfig ARCH_MMAP_RND_BITS_MIN 314d3e5bab9SArnd Bergmann default 14 if PAGE_SIZE_64KB 315d3e5bab9SArnd Bergmann default 16 if PAGE_SIZE_16KB 3168f0d3aa9SDaniel Cashman default 18 3178f0d3aa9SDaniel Cashman 3188f0d3aa9SDaniel Cashman# max bits determined by the following formula: 3198f0d3aa9SDaniel Cashman# VA_BITS - PAGE_SHIFT - 3 3208f0d3aa9SDaniel Cashmanconfig ARCH_MMAP_RND_BITS_MAX 3218f0d3aa9SDaniel Cashman default 19 if ARM64_VA_BITS=36 3228f0d3aa9SDaniel Cashman default 24 if ARM64_VA_BITS=39 3238f0d3aa9SDaniel Cashman default 27 if ARM64_VA_BITS=42 3248f0d3aa9SDaniel Cashman default 30 if ARM64_VA_BITS=47 3258f0d3aa9SDaniel Cashman default 29 if ARM64_VA_BITS=48 && ARM64_64K_PAGES 3268f0d3aa9SDaniel Cashman default 31 if ARM64_VA_BITS=48 && ARM64_16K_PAGES 3278f0d3aa9SDaniel Cashman default 33 if ARM64_VA_BITS=48 3288f0d3aa9SDaniel Cashman default 14 if ARM64_64K_PAGES 3298f0d3aa9SDaniel Cashman default 16 if ARM64_16K_PAGES 3308f0d3aa9SDaniel Cashman default 18 3318f0d3aa9SDaniel Cashman 3328f0d3aa9SDaniel Cashmanconfig ARCH_MMAP_RND_COMPAT_BITS_MIN 3338f0d3aa9SDaniel Cashman default 7 if ARM64_64K_PAGES 3348f0d3aa9SDaniel Cashman default 9 if ARM64_16K_PAGES 3358f0d3aa9SDaniel Cashman default 11 3368f0d3aa9SDaniel Cashman 3378f0d3aa9SDaniel Cashmanconfig ARCH_MMAP_RND_COMPAT_BITS_MAX 3388f0d3aa9SDaniel Cashman default 16 3398f0d3aa9SDaniel Cashman 340ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP 341d1e6dc91SLiviu Dudau def_bool y if !PCI 3428c2c3df3SCatalin Marinas 3438c2c3df3SCatalin Marinasconfig STACKTRACE_SUPPORT 3448c2c3df3SCatalin Marinas def_bool y 3458c2c3df3SCatalin Marinas 346bf0c4e04SJeff Vander Stoepconfig ILLEGAL_POINTER_VALUE 347bf0c4e04SJeff Vander Stoep hex 348bf0c4e04SJeff Vander Stoep default 0xdead000000000000 349bf0c4e04SJeff Vander Stoep 3508c2c3df3SCatalin Marinasconfig LOCKDEP_SUPPORT 3518c2c3df3SCatalin Marinas def_bool y 3528c2c3df3SCatalin Marinas 3539fb7410fSDave P Martinconfig GENERIC_BUG 3549fb7410fSDave P Martin def_bool y 3559fb7410fSDave P Martin depends on BUG 3569fb7410fSDave P Martin 3579fb7410fSDave P Martinconfig GENERIC_BUG_RELATIVE_POINTERS 3589fb7410fSDave P Martin def_bool y 3599fb7410fSDave P Martin depends on GENERIC_BUG 3609fb7410fSDave P Martin 3618c2c3df3SCatalin Marinasconfig GENERIC_HWEIGHT 3628c2c3df3SCatalin Marinas def_bool y 3638c2c3df3SCatalin Marinas 3648c2c3df3SCatalin Marinasconfig GENERIC_CSUM 3658c2c3df3SCatalin Marinas def_bool y 3668c2c3df3SCatalin Marinas 3678c2c3df3SCatalin Marinasconfig GENERIC_CALIBRATE_DELAY 3688c2c3df3SCatalin Marinas def_bool y 3698c2c3df3SCatalin Marinas 3704b3dc967SWill Deaconconfig SMP 3714b3dc967SWill Deacon def_bool y 3724b3dc967SWill Deacon 3734cfb3613SArd Biesheuvelconfig KERNEL_MODE_NEON 3744cfb3613SArd Biesheuvel def_bool y 3754cfb3613SArd Biesheuvel 37692cc15fcSRob Herringconfig FIX_EARLYCON_MEM 37792cc15fcSRob Herring def_bool y 37892cc15fcSRob Herring 3799f25e6adSKirill A. Shutemovconfig PGTABLE_LEVELS 3809f25e6adSKirill A. Shutemov int 38121539939SSuzuki K. Poulose default 2 if ARM64_16K_PAGES && ARM64_VA_BITS_36 3829f25e6adSKirill A. Shutemov default 2 if ARM64_64K_PAGES && ARM64_VA_BITS_42 383b6d00d47SSteve Capper default 3 if ARM64_64K_PAGES && (ARM64_VA_BITS_48 || ARM64_VA_BITS_52) 3849f25e6adSKirill A. Shutemov default 3 if ARM64_4K_PAGES && ARM64_VA_BITS_39 38544eaacf1SSuzuki K. Poulose default 3 if ARM64_16K_PAGES && ARM64_VA_BITS_47 386352b0395SArd Biesheuvel default 4 if ARM64_16K_PAGES && (ARM64_VA_BITS_48 || ARM64_VA_BITS_52) 38744eaacf1SSuzuki K. Poulose default 4 if !ARM64_64K_PAGES && ARM64_VA_BITS_48 388352b0395SArd Biesheuvel default 5 if ARM64_4K_PAGES && ARM64_VA_BITS_52 3899f25e6adSKirill A. Shutemov 3909842ceaeSPratyush Anandconfig ARCH_SUPPORTS_UPROBES 3919842ceaeSPratyush Anand def_bool y 3929842ceaeSPratyush Anand 3938f360948SArd Biesheuvelconfig ARCH_PROC_KCORE_TEXT 3948f360948SArd Biesheuvel def_bool y 3958f360948SArd Biesheuvel 3968bf9284dSVladimir Murzinconfig BROKEN_GAS_INST 3978bf9284dSVladimir Murzin def_bool !$(as-instr,1:\n.inst 0\n.rept . - 1b\n\nnop\n.endr\n) 3988bf9284dSVladimir Murzin 3999df3f508SMark Rutlandconfig BUILTIN_RETURN_ADDRESS_STRIPS_PAC 4009df3f508SMark Rutland bool 401cf63fe35SMike Rapoport (IBM) # Clang's __builtin_return_address() strips the PAC since 12.0.0 402fafdea34SNathan Chancellor # https://github.com/llvm/llvm-project/commit/2a96f47c5ffca84cd774ad402cacd137f4bf45e2 403634e4ff9SNathan Chancellor default y if CC_IS_CLANG 4049df3f508SMark Rutland # GCC's __builtin_return_address() strips the PAC since 11.1.0, 4059df3f508SMark Rutland # and this was backported to 10.2.0, 9.4.0, 8.5.0, but not earlier 4069df3f508SMark Rutland # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94891 4079df3f508SMark Rutland default y if CC_IS_GCC && (GCC_VERSION >= 110100) 4089df3f508SMark Rutland default y if CC_IS_GCC && (GCC_VERSION >= 100200) && (GCC_VERSION < 110000) 4099df3f508SMark Rutland default y if CC_IS_GCC && (GCC_VERSION >= 90400) && (GCC_VERSION < 100000) 4109df3f508SMark Rutland default y if CC_IS_GCC && (GCC_VERSION >= 80500) && (GCC_VERSION < 90000) 4119df3f508SMark Rutland default n 4129df3f508SMark Rutland 4136bd1d0beSSteve Capperconfig KASAN_SHADOW_OFFSET 4146bd1d0beSSteve Capper hex 4150fea6e9aSAndrey Konovalov depends on KASAN_GENERIC || KASAN_SW_TAGS 416352b0395SArd Biesheuvel default 0xdfff800000000000 if (ARM64_VA_BITS_48 || (ARM64_VA_BITS_52 && !ARM64_16K_PAGES)) && !KASAN_SW_TAGS 417352b0395SArd Biesheuvel default 0xdfffc00000000000 if (ARM64_VA_BITS_47 || ARM64_VA_BITS_52) && ARM64_16K_PAGES && !KASAN_SW_TAGS 418f4693c27SArd Biesheuvel default 0xdffffe0000000000 if ARM64_VA_BITS_42 && !KASAN_SW_TAGS 419f4693c27SArd Biesheuvel default 0xdfffffc000000000 if ARM64_VA_BITS_39 && !KASAN_SW_TAGS 420f4693c27SArd Biesheuvel default 0xdffffff800000000 if ARM64_VA_BITS_36 && !KASAN_SW_TAGS 421352b0395SArd Biesheuvel default 0xefff800000000000 if (ARM64_VA_BITS_48 || (ARM64_VA_BITS_52 && !ARM64_16K_PAGES)) && KASAN_SW_TAGS 422352b0395SArd Biesheuvel default 0xefffc00000000000 if (ARM64_VA_BITS_47 || ARM64_VA_BITS_52) && ARM64_16K_PAGES && KASAN_SW_TAGS 423f4693c27SArd Biesheuvel default 0xeffffe0000000000 if ARM64_VA_BITS_42 && KASAN_SW_TAGS 424f4693c27SArd Biesheuvel default 0xefffffc000000000 if ARM64_VA_BITS_39 && KASAN_SW_TAGS 425f4693c27SArd Biesheuvel default 0xeffffff800000000 if ARM64_VA_BITS_36 && KASAN_SW_TAGS 4266bd1d0beSSteve Capper default 0xffffffffffffffff 4276bd1d0beSSteve Capper 42868c76ad4SArd Biesheuvelconfig UNWIND_TABLES 42968c76ad4SArd Biesheuvel bool 43068c76ad4SArd Biesheuvel 4316a377491SOlof Johanssonsource "arch/arm64/Kconfig.platforms" 4328c2c3df3SCatalin Marinas 4338c2c3df3SCatalin Marinasmenu "Kernel Features" 4348c2c3df3SCatalin Marinas 435c0a01b84SAndre Przywaramenu "ARM errata workarounds via the alternatives framework" 436c0a01b84SAndre Przywara 4376df696cdSOliver Uptonconfig AMPERE_ERRATUM_AC03_CPU_38 4386df696cdSOliver Upton bool "AmpereOne: AC03_CPU_38: Certain bits in the Virtualization Translation Control Register and Translation Control Registers do not follow RES0 semantics" 4396df696cdSOliver Upton default y 4406df696cdSOliver Upton help 4416df696cdSOliver Upton This option adds an alternative code sequence to work around Ampere 442db0d8a84SD Scott Phillips errata AC03_CPU_38 and AC04_CPU_10 on AmpereOne. 4436df696cdSOliver Upton 4446df696cdSOliver Upton The affected design reports FEAT_HAFDBS as not implemented in 4456df696cdSOliver Upton ID_AA64MMFR1_EL1.HAFDBS, but (V)TCR_ELx.{HA,HD} are not RES0 4466df696cdSOliver Upton as required by the architecture. The unadvertised HAFDBS 4476df696cdSOliver Upton implementation suffers from an additional erratum where hardware 4486df696cdSOliver Upton A/D updates can occur after a PTE has been marked invalid. 4496df696cdSOliver Upton 4506df696cdSOliver Upton The workaround forces KVM to explicitly set VTCR_EL2.HA to 0, 4516df696cdSOliver Upton which avoids enabling unadvertised hardware Access Flag management 4526df696cdSOliver Upton at stage-2. 4536df696cdSOliver Upton 4546df696cdSOliver Upton If unsure, say Y. 4556df696cdSOliver Upton 456c9460dcbSSuzuki K Pouloseconfig ARM64_WORKAROUND_CLEAN_CACHE 457bc15cf70SWill Deacon bool 458c9460dcbSSuzuki K Poulose 459c0a01b84SAndre Przywaraconfig ARM64_ERRATUM_826319 460c0a01b84SAndre Przywara bool "Cortex-A53: 826319: System might deadlock if a write cannot complete until read data is accepted" 461c0a01b84SAndre Przywara default y 462c9460dcbSSuzuki K Poulose select ARM64_WORKAROUND_CLEAN_CACHE 463c0a01b84SAndre Przywara help 464c0a01b84SAndre Przywara This option adds an alternative code sequence to work around ARM 465c0a01b84SAndre Przywara erratum 826319 on Cortex-A53 parts up to r0p2 with an AMBA 4 ACE or 466c0a01b84SAndre Przywara AXI master interface and an L2 cache. 467c0a01b84SAndre Przywara 468c0a01b84SAndre Przywara If a Cortex-A53 uses an AMBA AXI4 ACE interface to other processors 469c0a01b84SAndre Przywara and is unable to accept a certain write via this interface, it will 470c0a01b84SAndre Przywara not progress on read data presented on the read data channel and the 471c0a01b84SAndre Przywara system can deadlock. 472c0a01b84SAndre Przywara 473c0a01b84SAndre Przywara The workaround promotes data cache clean instructions to 474c0a01b84SAndre Przywara data cache clean-and-invalidate. 475c0a01b84SAndre Przywara Please note that this does not necessarily enable the workaround, 476c0a01b84SAndre Przywara as it depends on the alternative framework, which will only patch 477c0a01b84SAndre Przywara the kernel if an affected CPU is detected. 478c0a01b84SAndre Przywara 479c0a01b84SAndre Przywara If unsure, say Y. 480c0a01b84SAndre Przywara 481c0a01b84SAndre Przywaraconfig ARM64_ERRATUM_827319 482c0a01b84SAndre Przywara bool "Cortex-A53: 827319: Data cache clean instructions might cause overlapping transactions to the interconnect" 483c0a01b84SAndre Przywara default y 484c9460dcbSSuzuki K Poulose select ARM64_WORKAROUND_CLEAN_CACHE 485c0a01b84SAndre Przywara help 486c0a01b84SAndre Przywara This option adds an alternative code sequence to work around ARM 487c0a01b84SAndre Przywara erratum 827319 on Cortex-A53 parts up to r0p2 with an AMBA 5 CHI 488c0a01b84SAndre Przywara master interface and an L2 cache. 489c0a01b84SAndre Przywara 490c0a01b84SAndre Przywara Under certain conditions this erratum can cause a clean line eviction 491c0a01b84SAndre Przywara to occur at the same time as another transaction to the same address 492c0a01b84SAndre Przywara on the AMBA 5 CHI interface, which can cause data corruption if the 493c0a01b84SAndre Przywara interconnect reorders the two transactions. 494c0a01b84SAndre Przywara 495c0a01b84SAndre Przywara The workaround promotes data cache clean instructions to 496c0a01b84SAndre Przywara data cache clean-and-invalidate. 497c0a01b84SAndre Przywara Please note that this does not necessarily enable the workaround, 498c0a01b84SAndre Przywara as it depends on the alternative framework, which will only patch 499c0a01b84SAndre Przywara the kernel if an affected CPU is detected. 500c0a01b84SAndre Przywara 501c0a01b84SAndre Przywara If unsure, say Y. 502c0a01b84SAndre Przywara 503c0a01b84SAndre Przywaraconfig ARM64_ERRATUM_824069 504c0a01b84SAndre Przywara bool "Cortex-A53: 824069: Cache line might not be marked as clean after a CleanShared snoop" 505c0a01b84SAndre Przywara default y 506c9460dcbSSuzuki K Poulose select ARM64_WORKAROUND_CLEAN_CACHE 507c0a01b84SAndre Przywara help 508c0a01b84SAndre Przywara This option adds an alternative code sequence to work around ARM 509c0a01b84SAndre Przywara erratum 824069 on Cortex-A53 parts up to r0p2 when it is connected 510c0a01b84SAndre Przywara to a coherent interconnect. 511c0a01b84SAndre Przywara 512c0a01b84SAndre Przywara If a Cortex-A53 processor is executing a store or prefetch for 513c0a01b84SAndre Przywara write instruction at the same time as a processor in another 514c0a01b84SAndre Przywara cluster is executing a cache maintenance operation to the same 515c0a01b84SAndre Przywara address, then this erratum might cause a clean cache line to be 516c0a01b84SAndre Przywara incorrectly marked as dirty. 517c0a01b84SAndre Przywara 518c0a01b84SAndre Przywara The workaround promotes data cache clean instructions to 519c0a01b84SAndre Przywara data cache clean-and-invalidate. 520c0a01b84SAndre Przywara Please note that this option does not necessarily enable the 521c0a01b84SAndre Przywara workaround, as it depends on the alternative framework, which will 522c0a01b84SAndre Przywara only patch the kernel if an affected CPU is detected. 523c0a01b84SAndre Przywara 524c0a01b84SAndre Przywara If unsure, say Y. 525c0a01b84SAndre Przywara 526c0a01b84SAndre Przywaraconfig ARM64_ERRATUM_819472 527c0a01b84SAndre Przywara bool "Cortex-A53: 819472: Store exclusive instructions might cause data corruption" 528c0a01b84SAndre Przywara default y 529c9460dcbSSuzuki K Poulose select ARM64_WORKAROUND_CLEAN_CACHE 530c0a01b84SAndre Przywara help 531c0a01b84SAndre Przywara This option adds an alternative code sequence to work around ARM 532c0a01b84SAndre Przywara erratum 819472 on Cortex-A53 parts up to r0p1 with an L2 cache 533c0a01b84SAndre Przywara present when it is connected to a coherent interconnect. 534c0a01b84SAndre Przywara 535c0a01b84SAndre Przywara If the processor is executing a load and store exclusive sequence at 536c0a01b84SAndre Przywara the same time as a processor in another cluster is executing a cache 537c0a01b84SAndre Przywara maintenance operation to the same address, then this erratum might 538c0a01b84SAndre Przywara cause data corruption. 539c0a01b84SAndre Przywara 540c0a01b84SAndre Przywara The workaround promotes data cache clean instructions to 541c0a01b84SAndre Przywara data cache clean-and-invalidate. 542c0a01b84SAndre Przywara Please note that this does not necessarily enable the workaround, 543c0a01b84SAndre Przywara as it depends on the alternative framework, which will only patch 544c0a01b84SAndre Przywara the kernel if an affected CPU is detected. 545c0a01b84SAndre Przywara 546c0a01b84SAndre Przywara If unsure, say Y. 547c0a01b84SAndre Przywara 548c0a01b84SAndre Przywaraconfig ARM64_ERRATUM_832075 549c0a01b84SAndre Przywara bool "Cortex-A57: 832075: possible deadlock on mixing exclusive memory accesses with device loads" 550c0a01b84SAndre Przywara default y 551c0a01b84SAndre Przywara help 552c0a01b84SAndre Przywara This option adds an alternative code sequence to work around ARM 553c0a01b84SAndre Przywara erratum 832075 on Cortex-A57 parts up to r1p2. 554c0a01b84SAndre Przywara 555c0a01b84SAndre Przywara Affected Cortex-A57 parts might deadlock when exclusive load/store 556c0a01b84SAndre Przywara instructions to Write-Back memory are mixed with Device loads. 557c0a01b84SAndre Przywara 558c0a01b84SAndre Przywara The workaround is to promote device loads to use Load-Acquire 559c0a01b84SAndre Przywara semantics. 560c0a01b84SAndre Przywara Please note that this does not necessarily enable the workaround, 561c0a01b84SAndre Przywara as it depends on the alternative framework, which will only patch 562c0a01b84SAndre Przywara the kernel if an affected CPU is detected. 563c0a01b84SAndre Przywara 564c0a01b84SAndre Przywara If unsure, say Y. 565c0a01b84SAndre Przywara 566498cd5c3SMarc Zyngierconfig ARM64_ERRATUM_834220 5678c10cc10SWill Deacon bool "Cortex-A57: 834220: Stage 2 translation fault might be incorrectly reported in presence of a Stage 1 fault (rare)" 568498cd5c3SMarc Zyngier depends on KVM 569498cd5c3SMarc Zyngier help 570498cd5c3SMarc Zyngier This option adds an alternative code sequence to work around ARM 571498cd5c3SMarc Zyngier erratum 834220 on Cortex-A57 parts up to r1p2. 572498cd5c3SMarc Zyngier 573498cd5c3SMarc Zyngier Affected Cortex-A57 parts might report a Stage 2 translation 574498cd5c3SMarc Zyngier fault as the result of a Stage 1 fault for load crossing a 575498cd5c3SMarc Zyngier page boundary when there is a permission or device memory 576498cd5c3SMarc Zyngier alignment fault at Stage 1 and a translation fault at Stage 2. 577498cd5c3SMarc Zyngier 578498cd5c3SMarc Zyngier The workaround is to verify that the Stage 1 translation 579498cd5c3SMarc Zyngier doesn't generate a fault before handling the Stage 2 fault. 580498cd5c3SMarc Zyngier Please note that this does not necessarily enable the workaround, 581498cd5c3SMarc Zyngier as it depends on the alternative framework, which will only patch 582498cd5c3SMarc Zyngier the kernel if an affected CPU is detected. 583498cd5c3SMarc Zyngier 5848c10cc10SWill Deacon If unsure, say N. 585498cd5c3SMarc Zyngier 58644b3834bSJames Morseconfig ARM64_ERRATUM_1742098 58744b3834bSJames Morse bool "Cortex-A57/A72: 1742098: ELR recorded incorrectly on interrupt taken between cryptographic instructions in a sequence" 58844b3834bSJames Morse depends on COMPAT 58944b3834bSJames Morse default y 59044b3834bSJames Morse help 59144b3834bSJames Morse This option removes the AES hwcap for aarch32 user-space to 59244b3834bSJames Morse workaround erratum 1742098 on Cortex-A57 and Cortex-A72. 59344b3834bSJames Morse 59444b3834bSJames Morse Affected parts may corrupt the AES state if an interrupt is 59544b3834bSJames Morse taken between a pair of AES instructions. These instructions 59644b3834bSJames Morse are only present if the cryptography extensions are present. 59744b3834bSJames Morse All software should have a fallback implementation for CPUs 59844b3834bSJames Morse that don't implement the cryptography extensions. 59944b3834bSJames Morse 60044b3834bSJames Morse If unsure, say Y. 60144b3834bSJames Morse 602905e8c5dSWill Deaconconfig ARM64_ERRATUM_845719 603905e8c5dSWill Deacon bool "Cortex-A53: 845719: a load might read incorrect data" 604905e8c5dSWill Deacon depends on COMPAT 605905e8c5dSWill Deacon default y 606905e8c5dSWill Deacon help 607905e8c5dSWill Deacon This option adds an alternative code sequence to work around ARM 608905e8c5dSWill Deacon erratum 845719 on Cortex-A53 parts up to r0p4. 609905e8c5dSWill Deacon 610905e8c5dSWill Deacon When running a compat (AArch32) userspace on an affected Cortex-A53 611905e8c5dSWill Deacon part, a load at EL0 from a virtual address that matches the bottom 32 612905e8c5dSWill Deacon bits of the virtual address used by a recent load at (AArch64) EL1 613905e8c5dSWill Deacon might return incorrect data. 614905e8c5dSWill Deacon 615905e8c5dSWill Deacon The workaround is to write the contextidr_el1 register on exception 616905e8c5dSWill Deacon return to a 32-bit task. 617905e8c5dSWill Deacon Please note that this does not necessarily enable the workaround, 618905e8c5dSWill Deacon as it depends on the alternative framework, which will only patch 619905e8c5dSWill Deacon the kernel if an affected CPU is detected. 620905e8c5dSWill Deacon 621905e8c5dSWill Deacon If unsure, say Y. 622905e8c5dSWill Deacon 623df057cc7SWill Deaconconfig ARM64_ERRATUM_843419 624df057cc7SWill Deacon bool "Cortex-A53: 843419: A load or store might access an incorrect address" 625df057cc7SWill Deacon default y 626df057cc7SWill Deacon help 6276ffe9923SWill Deacon This option links the kernel with '--fix-cortex-a53-843419' and 628a257e025SArd Biesheuvel enables PLT support to replace certain ADRP instructions, which can 629a257e025SArd Biesheuvel cause subsequent memory accesses to use an incorrect address on 630a257e025SArd Biesheuvel Cortex-A53 parts up to r0p4. 631df057cc7SWill Deacon 632df057cc7SWill Deacon If unsure, say Y. 633df057cc7SWill Deacon 634987fdfecSMasahiro Yamadaconfig ARM64_LD_HAS_FIX_ERRATUM_843419 635987fdfecSMasahiro Yamada def_bool $(ld-option,--fix-cortex-a53-843419) 636987fdfecSMasahiro Yamada 637ece1397cSSuzuki K Pouloseconfig ARM64_ERRATUM_1024718 638ece1397cSSuzuki K Poulose bool "Cortex-A55: 1024718: Update of DBM/AP bits without break before make might result in incorrect update" 639ece1397cSSuzuki K Poulose default y 640ece1397cSSuzuki K Poulose help 641bc15cf70SWill Deacon This option adds a workaround for ARM Cortex-A55 Erratum 1024718. 642ece1397cSSuzuki K Poulose 643c0b15c25SSuzuki K Poulose Affected Cortex-A55 cores (all revisions) could cause incorrect 644ece1397cSSuzuki K Poulose update of the hardware dirty bit when the DBM/AP bits are updated 645ece1397cSSuzuki K Poulose without a break-before-make. The workaround is to disable the usage 646ece1397cSSuzuki K Poulose of hardware DBM locally on the affected cores. CPUs not affected by 647bc15cf70SWill Deacon this erratum will continue to use the feature. 648e41ceed0SJungseok Lee 6498c2c3df3SCatalin Marinas If unsure, say Y. 650e41ceed0SJungseok Lee 651a5325089SMarc Zyngierconfig ARM64_ERRATUM_1418040 6526989303aSMarc Zyngier bool "Cortex-A76/Neoverse-N1: MRC read following MRRC read of specific Generic Timer in AArch32 might give incorrect result" 65395b861a4SMarc Zyngier default y 654c2b5bba3SMarc Zyngier depends on COMPAT 65595b861a4SMarc Zyngier help 65624cf262dSWill Deacon This option adds a workaround for ARM Cortex-A76/Neoverse-N1 657a5325089SMarc Zyngier errata 1188873 and 1418040. 65895b861a4SMarc Zyngier 659a5325089SMarc Zyngier Affected Cortex-A76/Neoverse-N1 cores (r0p0 to r3p1) could 6606989303aSMarc Zyngier cause register corruption when accessing the timer registers 6616989303aSMarc Zyngier from AArch32 userspace. 66295b861a4SMarc Zyngier 66395b861a4SMarc Zyngier If unsure, say Y. 66495b861a4SMarc Zyngier 66502ab1f50SAndrew Scullconfig ARM64_WORKAROUND_SPECULATIVE_AT 666e85d68faSSteven Price bool 667e85d68faSSteven Price 668a457b0f7SMarc Zyngierconfig ARM64_ERRATUM_1165522 66902ab1f50SAndrew Scull bool "Cortex-A76: 1165522: Speculative AT instruction using out-of-context translation regime could cause subsequent request to generate an incorrect translation" 670a457b0f7SMarc Zyngier default y 67102ab1f50SAndrew Scull select ARM64_WORKAROUND_SPECULATIVE_AT 672a457b0f7SMarc Zyngier help 673bc15cf70SWill Deacon This option adds a workaround for ARM Cortex-A76 erratum 1165522. 674a457b0f7SMarc Zyngier 675a457b0f7SMarc Zyngier Affected Cortex-A76 cores (r0p0, r1p0, r2p0) could end-up with 676a457b0f7SMarc Zyngier corrupted TLBs by speculating an AT instruction during a guest 677a457b0f7SMarc Zyngier context switch. 678a457b0f7SMarc Zyngier 679a457b0f7SMarc Zyngier If unsure, say Y. 680a457b0f7SMarc Zyngier 68102ab1f50SAndrew Scullconfig ARM64_ERRATUM_1319367 68202ab1f50SAndrew Scull bool "Cortex-A57/A72: 1319537: Speculative AT instruction using out-of-context translation regime could cause subsequent request to generate an incorrect translation" 683275fa0eaSSteven Price default y 68402ab1f50SAndrew Scull select ARM64_WORKAROUND_SPECULATIVE_AT 68502ab1f50SAndrew Scull help 68602ab1f50SAndrew Scull This option adds work arounds for ARM Cortex-A57 erratum 1319537 68702ab1f50SAndrew Scull and A72 erratum 1319367 68802ab1f50SAndrew Scull 68902ab1f50SAndrew Scull Cortex-A57 and A72 cores could end-up with corrupted TLBs by 69002ab1f50SAndrew Scull speculating an AT instruction during a guest context switch. 69102ab1f50SAndrew Scull 69202ab1f50SAndrew Scull If unsure, say Y. 69302ab1f50SAndrew Scull 69402ab1f50SAndrew Scullconfig ARM64_ERRATUM_1530923 69502ab1f50SAndrew Scull bool "Cortex-A55: 1530923: Speculative AT instruction using out-of-context translation regime could cause subsequent request to generate an incorrect translation" 69602ab1f50SAndrew Scull default y 69702ab1f50SAndrew Scull select ARM64_WORKAROUND_SPECULATIVE_AT 698275fa0eaSSteven Price help 699275fa0eaSSteven Price This option adds a workaround for ARM Cortex-A55 erratum 1530923. 700275fa0eaSSteven Price 701275fa0eaSSteven Price Affected Cortex-A55 cores (r0p0, r0p1, r1p0, r2p0) could end-up with 702275fa0eaSSteven Price corrupted TLBs by speculating an AT instruction during a guest 703275fa0eaSSteven Price context switch. 704275fa0eaSSteven Price 705275fa0eaSSteven Price If unsure, say Y. 706275fa0eaSSteven Price 707ebcea694SGeert Uytterhoevenconfig ARM64_WORKAROUND_REPEAT_TLBI 708ebcea694SGeert Uytterhoeven bool 709ebcea694SGeert Uytterhoeven 710171df580SJames Morseconfig ARM64_ERRATUM_2441007 7118c10cc10SWill Deacon bool "Cortex-A55: Completion of affected memory accesses might not be guaranteed by completion of a TLBI (rare)" 712171df580SJames Morse select ARM64_WORKAROUND_REPEAT_TLBI 713171df580SJames Morse help 714171df580SJames Morse This option adds a workaround for ARM Cortex-A55 erratum #2441007. 715171df580SJames Morse 716171df580SJames Morse Under very rare circumstances, affected Cortex-A55 CPUs 717171df580SJames Morse may not handle a race between a break-before-make sequence on one 718171df580SJames Morse CPU, and another CPU accessing the same page. This could allow a 719171df580SJames Morse store to a page that has been unmapped. 720171df580SJames Morse 721171df580SJames Morse Work around this by adding the affected CPUs to the list that needs 722171df580SJames Morse TLB sequences to be done twice. 723171df580SJames Morse 7248c10cc10SWill Deacon If unsure, say N. 725171df580SJames Morse 726ce8c80c5SCatalin Marinasconfig ARM64_ERRATUM_1286807 7278c10cc10SWill Deacon bool "Cortex-A76: Modification of the translation table for a virtual address might lead to read-after-read ordering violation (rare)" 728ce8c80c5SCatalin Marinas select ARM64_WORKAROUND_REPEAT_TLBI 729ce8c80c5SCatalin Marinas help 730bc15cf70SWill Deacon This option adds a workaround for ARM Cortex-A76 erratum 1286807. 731ce8c80c5SCatalin Marinas 732ce8c80c5SCatalin Marinas On the affected Cortex-A76 cores (r0p0 to r3p0), if a virtual 733ce8c80c5SCatalin Marinas address for a cacheable mapping of a location is being 734ce8c80c5SCatalin Marinas accessed by a core while another core is remapping the virtual 735ce8c80c5SCatalin Marinas address to a new physical page using the recommended 736ce8c80c5SCatalin Marinas break-before-make sequence, then under very rare circumstances 737ce8c80c5SCatalin Marinas TLBI+DSB completes before a read using the translation being 738ce8c80c5SCatalin Marinas invalidated has been observed by other observers. The 739ce8c80c5SCatalin Marinas workaround repeats the TLBI+DSB operation. 740ce8c80c5SCatalin Marinas 7418c10cc10SWill Deacon If unsure, say N. 7428c10cc10SWill Deacon 743969f5ea6SWill Deaconconfig ARM64_ERRATUM_1463225 744969f5ea6SWill Deacon bool "Cortex-A76: Software Step might prevent interrupt recognition" 745969f5ea6SWill Deacon default y 746969f5ea6SWill Deacon help 747969f5ea6SWill Deacon This option adds a workaround for Arm Cortex-A76 erratum 1463225. 748969f5ea6SWill Deacon 749969f5ea6SWill Deacon On the affected Cortex-A76 cores (r0p0 to r3p1), software stepping 750969f5ea6SWill Deacon of a system call instruction (SVC) can prevent recognition of 751969f5ea6SWill Deacon subsequent interrupts when software stepping is disabled in the 752969f5ea6SWill Deacon exception handler of the system call and either kernel debugging 753969f5ea6SWill Deacon is enabled or VHE is in use. 754969f5ea6SWill Deacon 755969f5ea6SWill Deacon Work around the erratum by triggering a dummy step exception 756969f5ea6SWill Deacon when handling a system call from a task that is being stepped 757969f5ea6SWill Deacon in a VHE configuration of the kernel. 758969f5ea6SWill Deacon 759969f5ea6SWill Deacon If unsure, say Y. 760969f5ea6SWill Deacon 76105460849SJames Morseconfig ARM64_ERRATUM_1542419 7628c10cc10SWill Deacon bool "Neoverse-N1: workaround mis-ordering of instruction fetches (rare)" 76305460849SJames Morse help 76405460849SJames Morse This option adds a workaround for ARM Neoverse-N1 erratum 76505460849SJames Morse 1542419. 76605460849SJames Morse 76705460849SJames Morse Affected Neoverse-N1 cores could execute a stale instruction when 76805460849SJames Morse modified by another CPU. The workaround depends on a firmware 76905460849SJames Morse counterpart. 77005460849SJames Morse 77105460849SJames Morse Workaround the issue by hiding the DIC feature from EL0. This 77205460849SJames Morse forces user-space to perform cache maintenance. 77305460849SJames Morse 7748c10cc10SWill Deacon If unsure, say N. 77505460849SJames Morse 77696d389caSRob Herringconfig ARM64_ERRATUM_1508412 77796d389caSRob Herring bool "Cortex-A77: 1508412: workaround deadlock on sequence of NC/Device load and store exclusive or PAR read" 77896d389caSRob Herring default y 77996d389caSRob Herring help 78096d389caSRob Herring This option adds a workaround for Arm Cortex-A77 erratum 1508412. 78196d389caSRob Herring 78296d389caSRob Herring Affected Cortex-A77 cores (r0p0, r1p0) could deadlock on a sequence 78396d389caSRob Herring of a store-exclusive or read of PAR_EL1 and a load with device or 78496d389caSRob Herring non-cacheable memory attributes. The workaround depends on a firmware 78596d389caSRob Herring counterpart. 78696d389caSRob Herring 78796d389caSRob Herring KVM guests must also have the workaround implemented or they can 78896d389caSRob Herring deadlock the system. 78996d389caSRob Herring 79096d389caSRob Herring Work around the issue by inserting DMB SY barriers around PAR_EL1 79196d389caSRob Herring register reads and warning KVM users. The DMB barrier is sufficient 79296d389caSRob Herring to prevent a speculative PAR_EL1 read. 79396d389caSRob Herring 79496d389caSRob Herring If unsure, say Y. 79596d389caSRob Herring 796b9d216fcSSuzuki K Pouloseconfig ARM64_WORKAROUND_TRBE_OVERWRITE_FILL_MODE 797b9d216fcSSuzuki K Poulose bool 798b9d216fcSSuzuki K Poulose 799297ae1ebSJames Morseconfig ARM64_ERRATUM_2051678 800297ae1ebSJames Morse bool "Cortex-A510: 2051678: disable Hardware Update of the page table dirty bit" 801a4b92cebSMark Brown default y 802297ae1ebSJames Morse help 803297ae1ebSJames Morse This options adds the workaround for ARM Cortex-A510 erratum ARM64_ERRATUM_2051678. 8040ff74a23SKen Kurematsu Affected Cortex-A510 might not respect the ordering rules for 805297ae1ebSJames Morse hardware update of the page table's dirty bit. The workaround 806297ae1ebSJames Morse is to not enable the feature on affected CPUs. 807297ae1ebSJames Morse 808297ae1ebSJames Morse If unsure, say Y. 809297ae1ebSJames Morse 8101dd498e5SJames Morseconfig ARM64_ERRATUM_2077057 8111dd498e5SJames Morse bool "Cortex-A510: 2077057: workaround software-step corrupting SPSR_EL2" 8124c11113cSMark Brown default y 8131dd498e5SJames Morse help 8141dd498e5SJames Morse This option adds the workaround for ARM Cortex-A510 erratum 2077057. 8151dd498e5SJames Morse Affected Cortex-A510 may corrupt SPSR_EL2 when the a step exception is 8161dd498e5SJames Morse expected, but a Pointer Authentication trap is taken instead. The 8171dd498e5SJames Morse erratum causes SPSR_EL1 to be copied to SPSR_EL2, which could allow 8181dd498e5SJames Morse EL1 to cause a return to EL2 with a guest controlled ELR_EL2. 8191dd498e5SJames Morse 8201dd498e5SJames Morse This can only happen when EL2 is stepping EL1. 8211dd498e5SJames Morse 8221dd498e5SJames Morse When these conditions occur, the SPSR_EL2 value is unchanged from the 8231dd498e5SJames Morse previous guest entry, and can be restored from the in-memory copy. 8241dd498e5SJames Morse 8251dd498e5SJames Morse If unsure, say Y. 8261dd498e5SJames Morse 8271bdb0fbbSJames Morseconfig ARM64_ERRATUM_2658417 8281bdb0fbbSJames Morse bool "Cortex-A510: 2658417: remove BF16 support due to incorrect result" 8291bdb0fbbSJames Morse default y 8301bdb0fbbSJames Morse help 8311bdb0fbbSJames Morse This option adds the workaround for ARM Cortex-A510 erratum 2658417. 8321bdb0fbbSJames Morse Affected Cortex-A510 (r0p0 to r1p1) may produce the wrong result for 8331bdb0fbbSJames Morse BFMMLA or VMMLA instructions in rare circumstances when a pair of 8341bdb0fbbSJames Morse A510 CPUs are using shared neon hardware. As the sharing is not 8351bdb0fbbSJames Morse discoverable by the kernel, hide the BF16 HWCAP to indicate that 8361bdb0fbbSJames Morse user-space should not be using these instructions. 8371bdb0fbbSJames Morse 8381bdb0fbbSJames Morse If unsure, say Y. 8391bdb0fbbSJames Morse 840b9d216fcSSuzuki K Pouloseconfig ARM64_ERRATUM_2119858 841eb30d838SAnshuman Khandual bool "Cortex-A710/X2: 2119858: workaround TRBE overwriting trace data in FILL mode" 842b9d216fcSSuzuki K Poulose default y 843b9d216fcSSuzuki K Poulose depends on CORESIGHT_TRBE 844b9d216fcSSuzuki K Poulose select ARM64_WORKAROUND_TRBE_OVERWRITE_FILL_MODE 845b9d216fcSSuzuki K Poulose help 846eb30d838SAnshuman Khandual This option adds the workaround for ARM Cortex-A710/X2 erratum 2119858. 847b9d216fcSSuzuki K Poulose 848eb30d838SAnshuman Khandual Affected Cortex-A710/X2 cores could overwrite up to 3 cache lines of trace 849b9d216fcSSuzuki K Poulose data at the base of the buffer (pointed to by TRBASER_EL1) in FILL mode in 850b9d216fcSSuzuki K Poulose the event of a WRAP event. 851b9d216fcSSuzuki K Poulose 852b9d216fcSSuzuki K Poulose Work around the issue by always making sure we move the TRBPTR_EL1 by 853b9d216fcSSuzuki K Poulose 256 bytes before enabling the buffer and filling the first 256 bytes of 854b9d216fcSSuzuki K Poulose the buffer with ETM ignore packets upon disabling. 855b9d216fcSSuzuki K Poulose 856b9d216fcSSuzuki K Poulose If unsure, say Y. 857b9d216fcSSuzuki K Poulose 858b9d216fcSSuzuki K Pouloseconfig ARM64_ERRATUM_2139208 859b9d216fcSSuzuki K Poulose bool "Neoverse-N2: 2139208: workaround TRBE overwriting trace data in FILL mode" 860b9d216fcSSuzuki K Poulose default y 861b9d216fcSSuzuki K Poulose depends on CORESIGHT_TRBE 862b9d216fcSSuzuki K Poulose select ARM64_WORKAROUND_TRBE_OVERWRITE_FILL_MODE 863b9d216fcSSuzuki K Poulose help 864b9d216fcSSuzuki K Poulose This option adds the workaround for ARM Neoverse-N2 erratum 2139208. 865b9d216fcSSuzuki K Poulose 866b9d216fcSSuzuki K Poulose Affected Neoverse-N2 cores could overwrite up to 3 cache lines of trace 867b9d216fcSSuzuki K Poulose data at the base of the buffer (pointed to by TRBASER_EL1) in FILL mode in 868b9d216fcSSuzuki K Poulose the event of a WRAP event. 869b9d216fcSSuzuki K Poulose 870b9d216fcSSuzuki K Poulose Work around the issue by always making sure we move the TRBPTR_EL1 by 871b9d216fcSSuzuki K Poulose 256 bytes before enabling the buffer and filling the first 256 bytes of 872b9d216fcSSuzuki K Poulose the buffer with ETM ignore packets upon disabling. 873b9d216fcSSuzuki K Poulose 874b9d216fcSSuzuki K Poulose If unsure, say Y. 875b9d216fcSSuzuki K Poulose 876fa82d0b4SSuzuki K Pouloseconfig ARM64_WORKAROUND_TSB_FLUSH_FAILURE 877fa82d0b4SSuzuki K Poulose bool 878fa82d0b4SSuzuki K Poulose 879fa82d0b4SSuzuki K Pouloseconfig ARM64_ERRATUM_2054223 880fa82d0b4SSuzuki K Poulose bool "Cortex-A710: 2054223: workaround TSB instruction failing to flush trace" 881fa82d0b4SSuzuki K Poulose default y 882fa82d0b4SSuzuki K Poulose select ARM64_WORKAROUND_TSB_FLUSH_FAILURE 883fa82d0b4SSuzuki K Poulose help 884fa82d0b4SSuzuki K Poulose Enable workaround for ARM Cortex-A710 erratum 2054223 885fa82d0b4SSuzuki K Poulose 886fa82d0b4SSuzuki K Poulose Affected cores may fail to flush the trace data on a TSB instruction, when 887fa82d0b4SSuzuki K Poulose the PE is in trace prohibited state. This will cause losing a few bytes 888fa82d0b4SSuzuki K Poulose of the trace cached. 889fa82d0b4SSuzuki K Poulose 890fa82d0b4SSuzuki K Poulose Workaround is to issue two TSB consecutively on affected cores. 891fa82d0b4SSuzuki K Poulose 892fa82d0b4SSuzuki K Poulose If unsure, say Y. 893fa82d0b4SSuzuki K Poulose 894fa82d0b4SSuzuki K Pouloseconfig ARM64_ERRATUM_2067961 895fa82d0b4SSuzuki K Poulose bool "Neoverse-N2: 2067961: workaround TSB instruction failing to flush trace" 896fa82d0b4SSuzuki K Poulose default y 897fa82d0b4SSuzuki K Poulose select ARM64_WORKAROUND_TSB_FLUSH_FAILURE 898fa82d0b4SSuzuki K Poulose help 899fa82d0b4SSuzuki K Poulose Enable workaround for ARM Neoverse-N2 erratum 2067961 900fa82d0b4SSuzuki K Poulose 901fa82d0b4SSuzuki K Poulose Affected cores may fail to flush the trace data on a TSB instruction, when 902fa82d0b4SSuzuki K Poulose the PE is in trace prohibited state. This will cause losing a few bytes 903fa82d0b4SSuzuki K Poulose of the trace cached. 904fa82d0b4SSuzuki K Poulose 905fa82d0b4SSuzuki K Poulose Workaround is to issue two TSB consecutively on affected cores. 906fa82d0b4SSuzuki K Poulose 907fa82d0b4SSuzuki K Poulose If unsure, say Y. 908fa82d0b4SSuzuki K Poulose 9098d81b2a3SSuzuki K Pouloseconfig ARM64_WORKAROUND_TRBE_WRITE_OUT_OF_RANGE 9108d81b2a3SSuzuki K Poulose bool 9118d81b2a3SSuzuki K Poulose 9128d81b2a3SSuzuki K Pouloseconfig ARM64_ERRATUM_2253138 9138d81b2a3SSuzuki K Poulose bool "Neoverse-N2: 2253138: workaround TRBE writing to address out-of-range" 9148d81b2a3SSuzuki K Poulose depends on CORESIGHT_TRBE 9158d81b2a3SSuzuki K Poulose default y 9168d81b2a3SSuzuki K Poulose select ARM64_WORKAROUND_TRBE_WRITE_OUT_OF_RANGE 9178d81b2a3SSuzuki K Poulose help 9188d81b2a3SSuzuki K Poulose This option adds the workaround for ARM Neoverse-N2 erratum 2253138. 9198d81b2a3SSuzuki K Poulose 9208d81b2a3SSuzuki K Poulose Affected Neoverse-N2 cores might write to an out-of-range address, not reserved 9218d81b2a3SSuzuki K Poulose for TRBE. Under some conditions, the TRBE might generate a write to the next 9228d81b2a3SSuzuki K Poulose virtually addressed page following the last page of the TRBE address space 9238d81b2a3SSuzuki K Poulose (i.e., the TRBLIMITR_EL1.LIMIT), instead of wrapping around to the base. 9248d81b2a3SSuzuki K Poulose 9258d81b2a3SSuzuki K Poulose Work around this in the driver by always making sure that there is a 9268d81b2a3SSuzuki K Poulose page beyond the TRBLIMITR_EL1.LIMIT, within the space allowed for the TRBE. 9278d81b2a3SSuzuki K Poulose 9288d81b2a3SSuzuki K Poulose If unsure, say Y. 9298d81b2a3SSuzuki K Poulose 9308d81b2a3SSuzuki K Pouloseconfig ARM64_ERRATUM_2224489 931eb30d838SAnshuman Khandual bool "Cortex-A710/X2: 2224489: workaround TRBE writing to address out-of-range" 9328d81b2a3SSuzuki K Poulose depends on CORESIGHT_TRBE 9338d81b2a3SSuzuki K Poulose default y 9348d81b2a3SSuzuki K Poulose select ARM64_WORKAROUND_TRBE_WRITE_OUT_OF_RANGE 9358d81b2a3SSuzuki K Poulose help 936eb30d838SAnshuman Khandual This option adds the workaround for ARM Cortex-A710/X2 erratum 2224489. 9378d81b2a3SSuzuki K Poulose 938eb30d838SAnshuman Khandual Affected Cortex-A710/X2 cores might write to an out-of-range address, not reserved 9398d81b2a3SSuzuki K Poulose for TRBE. Under some conditions, the TRBE might generate a write to the next 9408d81b2a3SSuzuki K Poulose virtually addressed page following the last page of the TRBE address space 9418d81b2a3SSuzuki K Poulose (i.e., the TRBLIMITR_EL1.LIMIT), instead of wrapping around to the base. 9428d81b2a3SSuzuki K Poulose 9438d81b2a3SSuzuki K Poulose Work around this in the driver by always making sure that there is a 9448d81b2a3SSuzuki K Poulose page beyond the TRBLIMITR_EL1.LIMIT, within the space allowed for the TRBE. 9458d81b2a3SSuzuki K Poulose 9468d81b2a3SSuzuki K Poulose If unsure, say Y. 9478d81b2a3SSuzuki K Poulose 94839fdb65fSJames Morseconfig ARM64_ERRATUM_2441009 9498c10cc10SWill Deacon bool "Cortex-A510: Completion of affected memory accesses might not be guaranteed by completion of a TLBI (rare)" 95039fdb65fSJames Morse select ARM64_WORKAROUND_REPEAT_TLBI 95139fdb65fSJames Morse help 95239fdb65fSJames Morse This option adds a workaround for ARM Cortex-A510 erratum #2441009. 95339fdb65fSJames Morse 95439fdb65fSJames Morse Under very rare circumstances, affected Cortex-A510 CPUs 95539fdb65fSJames Morse may not handle a race between a break-before-make sequence on one 95639fdb65fSJames Morse CPU, and another CPU accessing the same page. This could allow a 95739fdb65fSJames Morse store to a page that has been unmapped. 95839fdb65fSJames Morse 95939fdb65fSJames Morse Work around this by adding the affected CPUs to the list that needs 96039fdb65fSJames Morse TLB sequences to be done twice. 96139fdb65fSJames Morse 9628c10cc10SWill Deacon If unsure, say N. 96339fdb65fSJames Morse 964607a9afaSAnshuman Khandualconfig ARM64_ERRATUM_2064142 965607a9afaSAnshuman Khandual bool "Cortex-A510: 2064142: workaround TRBE register writes while disabled" 966ac0ba210SAnshuman Khandual depends on CORESIGHT_TRBE 967607a9afaSAnshuman Khandual default y 968607a9afaSAnshuman Khandual help 969607a9afaSAnshuman Khandual This option adds the workaround for ARM Cortex-A510 erratum 2064142. 970607a9afaSAnshuman Khandual 971607a9afaSAnshuman Khandual Affected Cortex-A510 core might fail to write into system registers after the 972607a9afaSAnshuman Khandual TRBE has been disabled. Under some conditions after the TRBE has been disabled 973607a9afaSAnshuman Khandual writes into TRBE registers TRBLIMITR_EL1, TRBPTR_EL1, TRBBASER_EL1, TRBSR_EL1, 974607a9afaSAnshuman Khandual and TRBTRG_EL1 will be ignored and will not be effected. 975607a9afaSAnshuman Khandual 976607a9afaSAnshuman Khandual Work around this in the driver by executing TSB CSYNC and DSB after collection 977607a9afaSAnshuman Khandual is stopped and before performing a system register write to one of the affected 978607a9afaSAnshuman Khandual registers. 979607a9afaSAnshuman Khandual 980607a9afaSAnshuman Khandual If unsure, say Y. 981607a9afaSAnshuman Khandual 9823bd94a87SAnshuman Khandualconfig ARM64_ERRATUM_2038923 9833bd94a87SAnshuman Khandual bool "Cortex-A510: 2038923: workaround TRBE corruption with enable" 984f209e9feSAnshuman Khandual depends on CORESIGHT_TRBE 9853bd94a87SAnshuman Khandual default y 9863bd94a87SAnshuman Khandual help 9873bd94a87SAnshuman Khandual This option adds the workaround for ARM Cortex-A510 erratum 2038923. 9883bd94a87SAnshuman Khandual 9893bd94a87SAnshuman Khandual Affected Cortex-A510 core might cause an inconsistent view on whether trace is 9903bd94a87SAnshuman Khandual prohibited within the CPU. As a result, the trace buffer or trace buffer state 9913bd94a87SAnshuman Khandual might be corrupted. This happens after TRBE buffer has been enabled by setting 9923bd94a87SAnshuman Khandual TRBLIMITR_EL1.E, followed by just a single context synchronization event before 9933bd94a87SAnshuman Khandual execution changes from a context, in which trace is prohibited to one where it 9943bd94a87SAnshuman Khandual isn't, or vice versa. In these mentioned conditions, the view of whether trace 9953bd94a87SAnshuman Khandual is prohibited is inconsistent between parts of the CPU, and the trace buffer or 9963bd94a87SAnshuman Khandual the trace buffer state might be corrupted. 9973bd94a87SAnshuman Khandual 9983bd94a87SAnshuman Khandual Work around this in the driver by preventing an inconsistent view of whether the 9993bd94a87SAnshuman Khandual trace is prohibited or not based on TRBLIMITR_EL1.E by immediately following a 10003bd94a87SAnshuman Khandual change to TRBLIMITR_EL1.E with at least one ISB instruction before an ERET, or 10013bd94a87SAnshuman Khandual two ISB instructions if no ERET is to take place. 10023bd94a87SAnshuman Khandual 10033bd94a87SAnshuman Khandual If unsure, say Y. 10043bd94a87SAnshuman Khandual 1005708e8af4SAnshuman Khandualconfig ARM64_ERRATUM_1902691 1006708e8af4SAnshuman Khandual bool "Cortex-A510: 1902691: workaround TRBE trace corruption" 10073a828845SAnshuman Khandual depends on CORESIGHT_TRBE 1008708e8af4SAnshuman Khandual default y 1009708e8af4SAnshuman Khandual help 1010708e8af4SAnshuman Khandual This option adds the workaround for ARM Cortex-A510 erratum 1902691. 1011708e8af4SAnshuman Khandual 1012708e8af4SAnshuman Khandual Affected Cortex-A510 core might cause trace data corruption, when being written 1013708e8af4SAnshuman Khandual into the memory. Effectively TRBE is broken and hence cannot be used to capture 1014708e8af4SAnshuman Khandual trace data. 1015708e8af4SAnshuman Khandual 1016708e8af4SAnshuman Khandual Work around this problem in the driver by just preventing TRBE initialization on 1017708e8af4SAnshuman Khandual affected cpus. The firmware must have disabled the access to TRBE for the kernel 1018708e8af4SAnshuman Khandual on such implementations. This will cover the kernel for any firmware that doesn't 1019708e8af4SAnshuman Khandual do this already. 1020708e8af4SAnshuman Khandual 1021708e8af4SAnshuman Khandual If unsure, say Y. 1022708e8af4SAnshuman Khandual 1023e89d120cSIonela Voinescuconfig ARM64_ERRATUM_2457168 1024e89d120cSIonela Voinescu bool "Cortex-A510: 2457168: workaround for AMEVCNTR01 incrementing incorrectly" 1025e89d120cSIonela Voinescu depends on ARM64_AMU_EXTN 1026e89d120cSIonela Voinescu default y 1027e89d120cSIonela Voinescu help 1028e89d120cSIonela Voinescu This option adds the workaround for ARM Cortex-A510 erratum 2457168. 1029e89d120cSIonela Voinescu 1030e89d120cSIonela Voinescu The AMU counter AMEVCNTR01 (constant counter) should increment at the same rate 1031e89d120cSIonela Voinescu as the system counter. On affected Cortex-A510 cores AMEVCNTR01 increments 1032e89d120cSIonela Voinescu incorrectly giving a significantly higher output value. 1033e89d120cSIonela Voinescu 1034e89d120cSIonela Voinescu Work around this problem by returning 0 when reading the affected counter in 1035e89d120cSIonela Voinescu key locations that results in disabling all users of this counter. This effect 1036e89d120cSIonela Voinescu is the same to firmware disabling affected counters. 1037e89d120cSIonela Voinescu 1038e89d120cSIonela Voinescu If unsure, say Y. 1039e89d120cSIonela Voinescu 10405db568e7SAnshuman Khandualconfig ARM64_ERRATUM_2645198 10415db568e7SAnshuman Khandual bool "Cortex-A715: 2645198: Workaround possible [ESR|FAR]_ELx corruption" 10425db568e7SAnshuman Khandual default y 10435db568e7SAnshuman Khandual help 10445db568e7SAnshuman Khandual This option adds the workaround for ARM Cortex-A715 erratum 2645198. 10455db568e7SAnshuman Khandual 10465db568e7SAnshuman Khandual If a Cortex-A715 cpu sees a page mapping permissions change from executable 10475db568e7SAnshuman Khandual to non-executable, it may corrupt the ESR_ELx and FAR_ELx registers on the 10485db568e7SAnshuman Khandual next instruction abort caused by permission fault. 10495db568e7SAnshuman Khandual 10505db568e7SAnshuman Khandual Only user-space does executable to non-executable permission transition via 10515db568e7SAnshuman Khandual mprotect() system call. Workaround the problem by doing a break-before-make 10525db568e7SAnshuman Khandual TLB invalidation, for all changes to executable user space mappings. 10535db568e7SAnshuman Khandual 10545db568e7SAnshuman Khandual If unsure, say Y. 10555db568e7SAnshuman Khandual 1056546b7cdeSRob Herringconfig ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD 1057546b7cdeSRob Herring bool 1058546b7cdeSRob Herring 1059471470bcSRob Herringconfig ARM64_ERRATUM_2966298 1060471470bcSRob Herring bool "Cortex-A520: 2966298: workaround for speculatively executed unprivileged load" 1061546b7cdeSRob Herring select ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD 1062471470bcSRob Herring default y 1063471470bcSRob Herring help 1064471470bcSRob Herring This option adds the workaround for ARM Cortex-A520 erratum 2966298. 1065471470bcSRob Herring 1066471470bcSRob Herring On an affected Cortex-A520 core, a speculatively executed unprivileged 1067471470bcSRob Herring load might leak data from a privileged level via a cache side channel. 1068471470bcSRob Herring 1069471470bcSRob Herring Work around this problem by executing a TLBI before returning to EL0. 1070471470bcSRob Herring 1071471470bcSRob Herring If unsure, say Y. 1072471470bcSRob Herring 1073f827bcdaSRob Herringconfig ARM64_ERRATUM_3117295 1074f827bcdaSRob Herring bool "Cortex-A510: 3117295: workaround for speculatively executed unprivileged load" 1075f827bcdaSRob Herring select ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD 1076f827bcdaSRob Herring default y 1077f827bcdaSRob Herring help 1078f827bcdaSRob Herring This option adds the workaround for ARM Cortex-A510 erratum 3117295. 1079f827bcdaSRob Herring 1080f827bcdaSRob Herring On an affected Cortex-A510 core, a speculatively executed unprivileged 1081f827bcdaSRob Herring load might leak data from a privileged level via a cache side channel. 1082f827bcdaSRob Herring 1083f827bcdaSRob Herring Work around this problem by executing a TLBI before returning to EL0. 1084f827bcdaSRob Herring 1085f827bcdaSRob Herring If unsure, say Y. 1086f827bcdaSRob Herring 10877187bb7dSMark Rutlandconfig ARM64_ERRATUM_3194386 1088adeec61aSMark Rutland bool "Cortex-*/Neoverse-*: workaround for MSR SSBS not self-synchronizing" 10897187bb7dSMark Rutland default y 10907187bb7dSMark Rutland help 1091ec768766SMark Rutland This option adds the workaround for the following errata: 1092ec768766SMark Rutland 1093adeec61aSMark Rutland * ARM Cortex-A76 erratum 3324349 1094adeec61aSMark Rutland * ARM Cortex-A77 erratum 3324348 1095adeec61aSMark Rutland * ARM Cortex-A78 erratum 3324344 1096adeec61aSMark Rutland * ARM Cortex-A78C erratum 3324346 1097adeec61aSMark Rutland * ARM Cortex-A78C erratum 3324347 109875b3c43eSMark Rutland * ARM Cortex-A710 erratam 3324338 1099081eb793SMark Rutland * ARM Cortex-A715 errartum 3456084 110075b3c43eSMark Rutland * ARM Cortex-A720 erratum 3456091 1101adeec61aSMark Rutland * ARM Cortex-A725 erratum 3456106 1102adeec61aSMark Rutland * ARM Cortex-X1 erratum 3324344 1103adeec61aSMark Rutland * ARM Cortex-X1C erratum 3324346 110475b3c43eSMark Rutland * ARM Cortex-X2 erratum 3324338 110575b3c43eSMark Rutland * ARM Cortex-X3 erratum 3324335 1106ec768766SMark Rutland * ARM Cortex-X4 erratum 3194386 110775b3c43eSMark Rutland * ARM Cortex-X925 erratum 3324334 1108adeec61aSMark Rutland * ARM Neoverse-N1 erratum 3324349 110975b3c43eSMark Rutland * ARM Neoverse N2 erratum 3324339 1110081eb793SMark Rutland * ARM Neoverse-N3 erratum 3456111 1111adeec61aSMark Rutland * ARM Neoverse-V1 erratum 3324341 111275b3c43eSMark Rutland * ARM Neoverse V2 erratum 3324336 1113ec768766SMark Rutland * ARM Neoverse-V3 erratum 3312417 11147187bb7dSMark Rutland 11157187bb7dSMark Rutland On affected cores "MSR SSBS, #0" instructions may not affect 11167187bb7dSMark Rutland subsequent speculative instructions, which may permit unexepected 11177187bb7dSMark Rutland speculative store bypassing. 11187187bb7dSMark Rutland 1119adeec61aSMark Rutland Work around this problem by placing a Speculation Barrier (SB) or 1120adeec61aSMark Rutland Instruction Synchronization Barrier (ISB) after kernel changes to 1121adeec61aSMark Rutland SSBS. The presence of the SSBS special-purpose register is hidden 1122adeec61aSMark Rutland from hwcaps and EL0 reads of ID_AA64PFR1_EL1, such that userspace 1123adeec61aSMark Rutland will use the PR_SPEC_STORE_BYPASS prctl to change SSBS. 11247187bb7dSMark Rutland 11257187bb7dSMark Rutland If unsure, say Y. 11267187bb7dSMark Rutland 112794100970SRobert Richterconfig CAVIUM_ERRATUM_22375 112894100970SRobert Richter bool "Cavium erratum 22375, 24313" 112994100970SRobert Richter default y 113094100970SRobert Richter help 1131bc15cf70SWill Deacon Enable workaround for errata 22375 and 24313. 113294100970SRobert Richter 113394100970SRobert Richter This implements two gicv3-its errata workarounds for ThunderX. Both 1134bc15cf70SWill Deacon with a small impact affecting only ITS table allocation. 113594100970SRobert Richter 113694100970SRobert Richter erratum 22375: only alloc 8MB table size 113794100970SRobert Richter erratum 24313: ignore memory access type 113894100970SRobert Richter 113994100970SRobert Richter The fixes are in ITS initialization and basically ignore memory access 114094100970SRobert Richter type and table size provided by the TYPER and BASER registers. 114194100970SRobert Richter 114294100970SRobert Richter If unsure, say Y. 114394100970SRobert Richter 1144fbf8f40eSGanapatrao Kulkarniconfig CAVIUM_ERRATUM_23144 1145fbf8f40eSGanapatrao Kulkarni bool "Cavium erratum 23144: ITS SYNC hang on dual socket system" 1146fbf8f40eSGanapatrao Kulkarni depends on NUMA 1147fbf8f40eSGanapatrao Kulkarni default y 1148fbf8f40eSGanapatrao Kulkarni help 1149fbf8f40eSGanapatrao Kulkarni ITS SYNC command hang for cross node io and collections/cpu mapping. 1150fbf8f40eSGanapatrao Kulkarni 1151fbf8f40eSGanapatrao Kulkarni If unsure, say Y. 1152fbf8f40eSGanapatrao Kulkarni 11536d4e11c5SRobert Richterconfig CAVIUM_ERRATUM_23154 115424a147bcSLinu Cherian bool "Cavium errata 23154 and 38545: GICv3 lacks HW synchronisation" 11556d4e11c5SRobert Richter default y 11566d4e11c5SRobert Richter help 115724a147bcSLinu Cherian The ThunderX GICv3 implementation requires a modified version for 11586d4e11c5SRobert Richter reading the IAR status to ensure data synchronization 11596d4e11c5SRobert Richter (access to icc_iar1_el1 is not sync'ed before and after). 11606d4e11c5SRobert Richter 116124a147bcSLinu Cherian It also suffers from erratum 38545 (also present on Marvell's 116224a147bcSLinu Cherian OcteonTX and OcteonTX2), resulting in deactivated interrupts being 116324a147bcSLinu Cherian spuriously presented to the CPU interface. 116424a147bcSLinu Cherian 11656d4e11c5SRobert Richter If unsure, say Y. 11666d4e11c5SRobert Richter 1167104a0c02SAndrew Pinskiconfig CAVIUM_ERRATUM_27456 1168104a0c02SAndrew Pinski bool "Cavium erratum 27456: Broadcast TLBI instructions may cause icache corruption" 1169104a0c02SAndrew Pinski default y 1170104a0c02SAndrew Pinski help 1171104a0c02SAndrew Pinski On ThunderX T88 pass 1.x through 2.1 parts, broadcast TLBI 1172104a0c02SAndrew Pinski instructions may cause the icache to become corrupted if it 1173104a0c02SAndrew Pinski contains data for a non-current ASID. The fix is to 1174104a0c02SAndrew Pinski invalidate the icache when changing the mm context. 1175104a0c02SAndrew Pinski 1176104a0c02SAndrew Pinski If unsure, say Y. 1177104a0c02SAndrew Pinski 1178690a3415SDavid Daneyconfig CAVIUM_ERRATUM_30115 1179690a3415SDavid Daney bool "Cavium erratum 30115: Guest may disable interrupts in host" 1180690a3415SDavid Daney default y 1181690a3415SDavid Daney help 1182690a3415SDavid Daney On ThunderX T88 pass 1.x through 2.2, T81 pass 1.0 through 1183690a3415SDavid Daney 1.2, and T83 Pass 1.0, KVM guest execution may disable 1184690a3415SDavid Daney interrupts in host. Trapping both GICv3 group-0 and group-1 1185690a3415SDavid Daney accesses sidesteps the issue. 1186690a3415SDavid Daney 1187690a3415SDavid Daney If unsure, say Y. 1188690a3415SDavid Daney 1189603afdc9SMarc Zyngierconfig CAVIUM_TX2_ERRATUM_219 1190603afdc9SMarc Zyngier bool "Cavium ThunderX2 erratum 219: PRFM between TTBR change and ISB fails" 1191603afdc9SMarc Zyngier default y 1192603afdc9SMarc Zyngier help 1193603afdc9SMarc Zyngier On Cavium ThunderX2, a load, store or prefetch instruction between a 1194603afdc9SMarc Zyngier TTBR update and the corresponding context synchronizing operation can 1195603afdc9SMarc Zyngier cause a spurious Data Abort to be delivered to any hardware thread in 1196603afdc9SMarc Zyngier the CPU core. 1197603afdc9SMarc Zyngier 1198603afdc9SMarc Zyngier Work around the issue by avoiding the problematic code sequence and 1199603afdc9SMarc Zyngier trapping KVM guest TTBRx_EL1 writes to EL2 when SMT is enabled. The 1200603afdc9SMarc Zyngier trap handler performs the corresponding register access, skips the 1201603afdc9SMarc Zyngier instruction and ensures context synchronization by virtue of the 1202603afdc9SMarc Zyngier exception return. 1203603afdc9SMarc Zyngier 1204603afdc9SMarc Zyngier If unsure, say Y. 1205603afdc9SMarc Zyngier 1206ebcea694SGeert Uytterhoevenconfig FUJITSU_ERRATUM_010001 1207ebcea694SGeert Uytterhoeven bool "Fujitsu-A64FX erratum E#010001: Undefined fault may occur wrongly" 1208ebcea694SGeert Uytterhoeven default y 1209ebcea694SGeert Uytterhoeven help 1210ebcea694SGeert Uytterhoeven This option adds a workaround for Fujitsu-A64FX erratum E#010001. 1211ebcea694SGeert Uytterhoeven On some variants of the Fujitsu-A64FX cores ver(1.0, 1.1), memory 1212ebcea694SGeert Uytterhoeven accesses may cause undefined fault (Data abort, DFSC=0b111111). 1213ebcea694SGeert Uytterhoeven This fault occurs under a specific hardware condition when a 1214ebcea694SGeert Uytterhoeven load/store instruction performs an address translation using: 1215ebcea694SGeert Uytterhoeven case-1 TTBR0_EL1 with TCR_EL1.NFD0 == 1. 1216ebcea694SGeert Uytterhoeven case-2 TTBR0_EL2 with TCR_EL2.NFD0 == 1. 1217ebcea694SGeert Uytterhoeven case-3 TTBR1_EL1 with TCR_EL1.NFD1 == 1. 1218ebcea694SGeert Uytterhoeven case-4 TTBR1_EL2 with TCR_EL2.NFD1 == 1. 1219ebcea694SGeert Uytterhoeven 1220ebcea694SGeert Uytterhoeven The workaround is to ensure these bits are clear in TCR_ELx. 1221ebcea694SGeert Uytterhoeven The workaround only affects the Fujitsu-A64FX. 1222ebcea694SGeert Uytterhoeven 1223ebcea694SGeert Uytterhoeven If unsure, say Y. 1224ebcea694SGeert Uytterhoeven 1225ebcea694SGeert Uytterhoevenconfig HISILICON_ERRATUM_161600802 1226ebcea694SGeert Uytterhoeven bool "Hip07 161600802: Erroneous redistributor VLPI base" 1227ebcea694SGeert Uytterhoeven default y 1228ebcea694SGeert Uytterhoeven help 1229ebcea694SGeert Uytterhoeven The HiSilicon Hip07 SoC uses the wrong redistributor base 1230ebcea694SGeert Uytterhoeven when issued ITS commands such as VMOVP and VMAPP, and requires 1231ebcea694SGeert Uytterhoeven a 128kB offset to be applied to the target address in this commands. 1232ebcea694SGeert Uytterhoeven 1233ebcea694SGeert Uytterhoeven If unsure, say Y. 1234ebcea694SGeert Uytterhoeven 123538fd94b0SChristopher Covingtonconfig QCOM_FALKOR_ERRATUM_1003 123638fd94b0SChristopher Covington bool "Falkor E1003: Incorrect translation due to ASID change" 123738fd94b0SChristopher Covington default y 123838fd94b0SChristopher Covington help 123938fd94b0SChristopher Covington On Falkor v1, an incorrect ASID may be cached in the TLB when ASID 1240d1777e68SWill Deacon and BADDR are changed together in TTBRx_EL1. Since we keep the ASID 1241d1777e68SWill Deacon in TTBR1_EL1, this situation only occurs in the entry trampoline and 1242d1777e68SWill Deacon then only for entries in the walk cache, since the leaf translation 1243d1777e68SWill Deacon is unchanged. Work around the erratum by invalidating the walk cache 1244d1777e68SWill Deacon entries for the trampoline before entering the kernel proper. 124538fd94b0SChristopher Covington 1246d9ff80f8SChristopher Covingtonconfig QCOM_FALKOR_ERRATUM_1009 1247d9ff80f8SChristopher Covington bool "Falkor E1009: Prematurely complete a DSB after a TLBI" 1248d9ff80f8SChristopher Covington default y 1249ce8c80c5SCatalin Marinas select ARM64_WORKAROUND_REPEAT_TLBI 1250d9ff80f8SChristopher Covington help 1251d9ff80f8SChristopher Covington On Falkor v1, the CPU may prematurely complete a DSB following a 1252d9ff80f8SChristopher Covington TLBI xxIS invalidate maintenance operation. Repeat the TLBI operation 1253d9ff80f8SChristopher Covington one more time to fix the issue. 1254d9ff80f8SChristopher Covington 1255d9ff80f8SChristopher Covington If unsure, say Y. 1256d9ff80f8SChristopher Covington 125790922a2dSShanker Donthineniconfig QCOM_QDF2400_ERRATUM_0065 125890922a2dSShanker Donthineni bool "QDF2400 E0065: Incorrect GITS_TYPER.ITT_Entry_size" 125990922a2dSShanker Donthineni default y 126090922a2dSShanker Donthineni help 126190922a2dSShanker Donthineni On Qualcomm Datacenter Technologies QDF2400 SoC, ITS hardware reports 126290922a2dSShanker Donthineni ITE size incorrectly. The GITS_TYPER.ITT_Entry_size field should have 126390922a2dSShanker Donthineni been indicated as 16Bytes (0xf), not 8Bytes (0x7). 126490922a2dSShanker Donthineni 126590922a2dSShanker Donthineni If unsure, say Y. 126690922a2dSShanker Donthineni 1267932b50c7SShanker Donthineniconfig QCOM_FALKOR_ERRATUM_E1041 1268932b50c7SShanker Donthineni bool "Falkor E1041: Speculative instruction fetches might cause errant memory access" 1269932b50c7SShanker Donthineni default y 1270932b50c7SShanker Donthineni help 1271932b50c7SShanker Donthineni Falkor CPU may speculatively fetch instructions from an improper 1272932b50c7SShanker Donthineni memory location when MMU translation is changed from SCTLR_ELn[M]=1 1273932b50c7SShanker Donthineni to SCTLR_ELn[M]=0. Prefix an ISB instruction to fix the problem. 1274932b50c7SShanker Donthineni 1275932b50c7SShanker Donthineni If unsure, say Y. 1276932b50c7SShanker Donthineni 127720109a85SRich Wileyconfig NVIDIA_CARMEL_CNP_ERRATUM 127820109a85SRich Wiley bool "NVIDIA Carmel CNP: CNP on Carmel semantically different than ARM cores" 127920109a85SRich Wiley default y 128020109a85SRich Wiley help 128120109a85SRich Wiley If CNP is enabled on Carmel cores, non-sharable TLBIs on a core will not 128220109a85SRich Wiley invalidate shared TLB entries installed by a different core, as it would 128320109a85SRich Wiley on standard ARM cores. 128420109a85SRich Wiley 128520109a85SRich Wiley If unsure, say Y. 128620109a85SRich Wiley 1287a8707f55SSebastian Reichelconfig ROCKCHIP_ERRATUM_3588001 1288a8707f55SSebastian Reichel bool "Rockchip 3588001: GIC600 can not support shareability attributes" 1289a8707f55SSebastian Reichel default y 1290a8707f55SSebastian Reichel help 1291a8707f55SSebastian Reichel The Rockchip RK3588 GIC600 SoC integration does not support ACE/ACE-lite. 1292a8707f55SSebastian Reichel This means, that its sharability feature may not be used, even though it 1293a8707f55SSebastian Reichel is supported by the IP itself. 1294a8707f55SSebastian Reichel 1295a8707f55SSebastian Reichel If unsure, say Y. 1296a8707f55SSebastian Reichel 1297ebcea694SGeert Uytterhoevenconfig SOCIONEXT_SYNQUACER_PREITS 1298ebcea694SGeert Uytterhoeven bool "Socionext Synquacer: Workaround for GICv3 pre-ITS" 12993e32131aSZhang Lei default y 13003e32131aSZhang Lei help 1301ebcea694SGeert Uytterhoeven Socionext Synquacer SoCs implement a separate h/w block to generate 1302ebcea694SGeert Uytterhoeven MSI doorbell writes with non-zero values for the device ID. 13033e32131aSZhang Lei 13043e32131aSZhang Lei If unsure, say Y. 13053e32131aSZhang Lei 13063cb7e662SJuerg Haefligerendmenu # "ARM errata workarounds via the alternatives framework" 13078c2c3df3SCatalin Marinas 13088c2c3df3SCatalin Marinaschoice 13098c2c3df3SCatalin Marinas prompt "Page size" 13108c2c3df3SCatalin Marinas default ARM64_4K_PAGES 13118c2c3df3SCatalin Marinas help 13128c2c3df3SCatalin Marinas Page size (translation granule) configuration. 13138c2c3df3SCatalin Marinas 13148c2c3df3SCatalin Marinasconfig ARM64_4K_PAGES 13158c2c3df3SCatalin Marinas bool "4KB" 1316d3e5bab9SArnd Bergmann select HAVE_PAGE_SIZE_4KB 13178c2c3df3SCatalin Marinas help 13188c2c3df3SCatalin Marinas This feature enables 4KB pages support. 13198c2c3df3SCatalin Marinas 132044eaacf1SSuzuki K. Pouloseconfig ARM64_16K_PAGES 132144eaacf1SSuzuki K. Poulose bool "16KB" 1322d3e5bab9SArnd Bergmann select HAVE_PAGE_SIZE_16KB 132344eaacf1SSuzuki K. Poulose help 132444eaacf1SSuzuki K. Poulose The system will use 16KB pages support. AArch32 emulation 132544eaacf1SSuzuki K. Poulose requires applications compiled with 16K (or a multiple of 16K) 132644eaacf1SSuzuki K. Poulose aligned segments. 132744eaacf1SSuzuki K. Poulose 13288c2c3df3SCatalin Marinasconfig ARM64_64K_PAGES 13298c2c3df3SCatalin Marinas bool "64KB" 1330d3e5bab9SArnd Bergmann select HAVE_PAGE_SIZE_64KB 13318c2c3df3SCatalin Marinas help 13328c2c3df3SCatalin Marinas This feature enables 64KB pages support (4KB by default) 13338c2c3df3SCatalin Marinas allowing only two levels of page tables and faster TLB 1334db488be3SSuzuki K. Poulose look-up. AArch32 emulation requires applications compiled 1335db488be3SSuzuki K. Poulose with 64K aligned segments. 13368c2c3df3SCatalin Marinas 13378c2c3df3SCatalin Marinasendchoice 13388c2c3df3SCatalin Marinas 13398c2c3df3SCatalin Marinaschoice 13408c2c3df3SCatalin Marinas prompt "Virtual address space size" 13415d101654SArd Biesheuvel default ARM64_VA_BITS_52 13428c2c3df3SCatalin Marinas help 13438c2c3df3SCatalin Marinas Allows choosing one of multiple possible virtual address 13448c2c3df3SCatalin Marinas space sizes. The level of translation table is determined by 13458c2c3df3SCatalin Marinas a combination of page size and virtual address space size. 13468c2c3df3SCatalin Marinas 134721539939SSuzuki K. Pouloseconfig ARM64_VA_BITS_36 134856a3f30eSCatalin Marinas bool "36-bit" if EXPERT 1349d3e5bab9SArnd Bergmann depends on PAGE_SIZE_16KB 135021539939SSuzuki K. Poulose 13518c2c3df3SCatalin Marinasconfig ARM64_VA_BITS_39 13528c2c3df3SCatalin Marinas bool "39-bit" 1353d3e5bab9SArnd Bergmann depends on PAGE_SIZE_4KB 13548c2c3df3SCatalin Marinas 13558c2c3df3SCatalin Marinasconfig ARM64_VA_BITS_42 13568c2c3df3SCatalin Marinas bool "42-bit" 1357d3e5bab9SArnd Bergmann depends on PAGE_SIZE_64KB 13588c2c3df3SCatalin Marinas 135944eaacf1SSuzuki K. Pouloseconfig ARM64_VA_BITS_47 136044eaacf1SSuzuki K. Poulose bool "47-bit" 1361d3e5bab9SArnd Bergmann depends on PAGE_SIZE_16KB 136244eaacf1SSuzuki K. Poulose 13638c2c3df3SCatalin Marinasconfig ARM64_VA_BITS_48 13648c2c3df3SCatalin Marinas bool "48-bit" 13658c2c3df3SCatalin Marinas 1366b6d00d47SSteve Capperconfig ARM64_VA_BITS_52 1367b6d00d47SSteve Capper bool "52-bit" 1368352b0395SArd Biesheuvel depends on ARM64_PAN || !ARM64_SW_TTBR0_PAN 136968d23da4SWill Deacon help 137068d23da4SWill Deacon Enable 52-bit virtual addressing for userspace when explicitly 1371b6d00d47SSteve Capper requested via a hint to mmap(). The kernel will also use 52-bit 1372b6d00d47SSteve Capper virtual addresses for its own mappings (provided HW support for 1373b6d00d47SSteve Capper this feature is available, otherwise it reverts to 48-bit). 137468d23da4SWill Deacon 137568d23da4SWill Deacon NOTE: Enabling 52-bit virtual addressing in conjunction with 137668d23da4SWill Deacon ARMv8.3 Pointer Authentication will result in the PAC being 137768d23da4SWill Deacon reduced from 7 bits to 3 bits, which may have a significant 137868d23da4SWill Deacon impact on its susceptibility to brute-force attacks. 137968d23da4SWill Deacon 138068d23da4SWill Deacon If unsure, select 48-bit virtual addressing instead. 138168d23da4SWill Deacon 13828c2c3df3SCatalin Marinasendchoice 13838c2c3df3SCatalin Marinas 138468d23da4SWill Deaconconfig ARM64_FORCE_52BIT 138568d23da4SWill Deacon bool "Force 52-bit virtual addresses for userspace" 1386b6d00d47SSteve Capper depends on ARM64_VA_BITS_52 && EXPERT 138768d23da4SWill Deacon help 138868d23da4SWill Deacon For systems with 52-bit userspace VAs enabled, the kernel will attempt 138968d23da4SWill Deacon to maintain compatibility with older software by providing 48-bit VAs 139068d23da4SWill Deacon unless a hint is supplied to mmap. 139168d23da4SWill Deacon 139268d23da4SWill Deacon This configuration option disables the 48-bit compatibility logic, and 139368d23da4SWill Deacon forces all userspace addresses to be 52-bit on HW that supports it. One 139468d23da4SWill Deacon should only enable this configuration option for stress testing userspace 139568d23da4SWill Deacon memory management code. If unsure say N here. 139668d23da4SWill Deacon 13978c2c3df3SCatalin Marinasconfig ARM64_VA_BITS 13988c2c3df3SCatalin Marinas int 139921539939SSuzuki K. Poulose default 36 if ARM64_VA_BITS_36 14008c2c3df3SCatalin Marinas default 39 if ARM64_VA_BITS_39 14018c2c3df3SCatalin Marinas default 42 if ARM64_VA_BITS_42 140244eaacf1SSuzuki K. Poulose default 47 if ARM64_VA_BITS_47 1403b6d00d47SSteve Capper default 48 if ARM64_VA_BITS_48 1404b6d00d47SSteve Capper default 52 if ARM64_VA_BITS_52 14058c2c3df3SCatalin Marinas 1406982aa7c5SKristina Martsenkochoice 1407982aa7c5SKristina Martsenko prompt "Physical address space size" 1408982aa7c5SKristina Martsenko default ARM64_PA_BITS_48 1409982aa7c5SKristina Martsenko help 1410982aa7c5SKristina Martsenko Choose the maximum physical address range that the kernel will 1411982aa7c5SKristina Martsenko support. 1412982aa7c5SKristina Martsenko 1413982aa7c5SKristina Martsenkoconfig ARM64_PA_BITS_48 1414982aa7c5SKristina Martsenko bool "48-bit" 1415352b0395SArd Biesheuvel depends on ARM64_64K_PAGES || !ARM64_VA_BITS_52 1416982aa7c5SKristina Martsenko 1417f77d2817SKristina Martsenkoconfig ARM64_PA_BITS_52 1418352b0395SArd Biesheuvel bool "52-bit" 1419352b0395SArd Biesheuvel depends on ARM64_64K_PAGES || ARM64_VA_BITS_52 1420f77d2817SKristina Martsenko depends on ARM64_PAN || !ARM64_SW_TTBR0_PAN 1421f77d2817SKristina Martsenko help 1422f77d2817SKristina Martsenko Enable support for a 52-bit physical address space, introduced as 1423f77d2817SKristina Martsenko part of the ARMv8.2-LPA extension. 1424f77d2817SKristina Martsenko 1425f77d2817SKristina Martsenko With this enabled, the kernel will also continue to work on CPUs that 1426f77d2817SKristina Martsenko do not support ARMv8.2-LPA, but with some added memory overhead (and 1427f77d2817SKristina Martsenko minor performance overhead). 1428f77d2817SKristina Martsenko 1429982aa7c5SKristina Martsenkoendchoice 1430982aa7c5SKristina Martsenko 1431982aa7c5SKristina Martsenkoconfig ARM64_PA_BITS 1432982aa7c5SKristina Martsenko int 1433982aa7c5SKristina Martsenko default 48 if ARM64_PA_BITS_48 1434f77d2817SKristina Martsenko default 52 if ARM64_PA_BITS_52 1435982aa7c5SKristina Martsenko 1436db95ea78SArd Biesheuvelconfig ARM64_LPA2 1437db95ea78SArd Biesheuvel def_bool y 1438db95ea78SArd Biesheuvel depends on ARM64_PA_BITS_52 && !ARM64_64K_PAGES 1439db95ea78SArd Biesheuvel 1440d8e85e14SAnders Roxellchoice 1441d8e85e14SAnders Roxell prompt "Endianness" 1442d8e85e14SAnders Roxell default CPU_LITTLE_ENDIAN 1443d8e85e14SAnders Roxell help 1444d8e85e14SAnders Roxell Select the endianness of data accesses performed by the CPU. Userspace 1445d8e85e14SAnders Roxell applications will need to be compiled and linked for the endianness 1446d8e85e14SAnders Roxell that is selected here. 1447d8e85e14SAnders Roxell 14488c2c3df3SCatalin Marinasconfig CPU_BIG_ENDIAN 14498c2c3df3SCatalin Marinas bool "Build big-endian kernel" 1450146a15b8SNathan Chancellor # https://github.com/llvm/llvm-project/commit/1379b150991f70a5782e9a143c2ba5308da1161c 1451146a15b8SNathan Chancellor depends on AS_IS_GNU || AS_VERSION >= 150000 14528c2c3df3SCatalin Marinas help 1453d8e85e14SAnders Roxell Say Y if you plan on running a kernel with a big-endian userspace. 1454d8e85e14SAnders Roxell 1455d8e85e14SAnders Roxellconfig CPU_LITTLE_ENDIAN 1456d8e85e14SAnders Roxell bool "Build little-endian kernel" 1457d8e85e14SAnders Roxell help 1458d8e85e14SAnders Roxell Say Y if you plan on running a kernel with a little-endian userspace. 1459d8e85e14SAnders Roxell This is usually the case for distributions targeting arm64. 1460d8e85e14SAnders Roxell 1461d8e85e14SAnders Roxellendchoice 14628c2c3df3SCatalin Marinas 14638c2c3df3SCatalin Marinasconfig SCHED_MC 14648c2c3df3SCatalin Marinas bool "Multi-core scheduler support" 14658c2c3df3SCatalin Marinas help 14668c2c3df3SCatalin Marinas Multi-core scheduler support improves the CPU scheduler's decision 14678c2c3df3SCatalin Marinas making when dealing with multi-core CPU chips at a cost of slightly 14688c2c3df3SCatalin Marinas increased overhead in some places. If unsure say N here. 14698c2c3df3SCatalin Marinas 1470778c558fSBarry Songconfig SCHED_CLUSTER 1471778c558fSBarry Song bool "Cluster scheduler support" 1472778c558fSBarry Song help 1473778c558fSBarry Song Cluster scheduler support improves the CPU scheduler's decision 1474778c558fSBarry Song making when dealing with machines that have clusters of CPUs. 1475778c558fSBarry Song Cluster usually means a couple of CPUs which are placed closely 1476778c558fSBarry Song by sharing mid-level caches, last-level cache tags or internal 1477778c558fSBarry Song busses. 1478778c558fSBarry Song 14798c2c3df3SCatalin Marinasconfig SCHED_SMT 14808c2c3df3SCatalin Marinas bool "SMT scheduler support" 14818c2c3df3SCatalin Marinas help 14828c2c3df3SCatalin Marinas Improves the CPU scheduler's decision making when dealing with 14838c2c3df3SCatalin Marinas MultiThreading at a cost of slightly increased overhead in some 14848c2c3df3SCatalin Marinas places. If unsure say N here. 14858c2c3df3SCatalin Marinas 14868c2c3df3SCatalin Marinasconfig NR_CPUS 148762aa9655SGanapatrao Kulkarni int "Maximum number of CPUs (2-4096)" 148862aa9655SGanapatrao Kulkarni range 2 4096 14893fbd56f0SChristoph Lameter (Ampere) default "512" 14908c2c3df3SCatalin Marinas 14918c2c3df3SCatalin Marinasconfig HOTPLUG_CPU 14928c2c3df3SCatalin Marinas bool "Support for hot-pluggable CPUs" 1493217d453dSYang Yingliang select GENERIC_IRQ_MIGRATION 14948c2c3df3SCatalin Marinas help 14958c2c3df3SCatalin Marinas Say Y here to experiment with turning CPUs off and on. CPUs 14968c2c3df3SCatalin Marinas can be controlled through /sys/devices/system/cpu. 14978c2c3df3SCatalin Marinas 14981a2db300SGanapatrao Kulkarni# Common NUMA Features 14991a2db300SGanapatrao Kulkarniconfig NUMA 15004399e6cdSRandy Dunlap bool "NUMA Memory Allocation and Scheduler Support" 1501ae3c107cSAtish Patra select GENERIC_ARCH_NUMA 15020c2a6cceSKefeng Wang select OF_NUMA 15037ecd19cfSKefeng Wang select HAVE_SETUP_PER_CPU_AREA 15047ecd19cfSKefeng Wang select NEED_PER_CPU_EMBED_FIRST_CHUNK 15057ecd19cfSKefeng Wang select NEED_PER_CPU_PAGE_FIRST_CHUNK 15067ecd19cfSKefeng Wang select USE_PERCPU_NUMA_NODE_ID 15071a2db300SGanapatrao Kulkarni help 15084399e6cdSRandy Dunlap Enable NUMA (Non-Uniform Memory Access) support. 15091a2db300SGanapatrao Kulkarni 15101a2db300SGanapatrao Kulkarni The kernel will try to allocate memory used by a CPU on the 15111a2db300SGanapatrao Kulkarni local memory of the CPU and add some more 15121a2db300SGanapatrao Kulkarni NUMA awareness to the kernel. 15131a2db300SGanapatrao Kulkarni 15141a2db300SGanapatrao Kulkarniconfig NODES_SHIFT 15151a2db300SGanapatrao Kulkarni int "Maximum NUMA Nodes (as a power of 2)" 15161a2db300SGanapatrao Kulkarni range 1 10 15172a13c13bSVanshidhar Konda default "4" 1518a9ee6cf5SMike Rapoport depends on NUMA 15191a2db300SGanapatrao Kulkarni help 15201a2db300SGanapatrao Kulkarni Specify the maximum number of NUMA Nodes available on the target 15211a2db300SGanapatrao Kulkarni system. Increases memory reserved to accommodate various tables. 15221a2db300SGanapatrao Kulkarni 15238636a1f9SMasahiro Yamadasource "kernel/Kconfig.hz" 15248c2c3df3SCatalin Marinas 15258c2c3df3SCatalin Marinasconfig ARCH_SPARSEMEM_ENABLE 15268c2c3df3SCatalin Marinas def_bool y 15278c2c3df3SCatalin Marinas select SPARSEMEM_VMEMMAP_ENABLE 1528782276b4SCatalin Marinas select SPARSEMEM_VMEMMAP 1529e7d4bac4SNikunj Kela 15308c2c3df3SCatalin Marinasconfig HW_PERF_EVENTS 15316475b2d8SMark Rutland def_bool y 15326475b2d8SMark Rutland depends on ARM_PMU 15338c2c3df3SCatalin Marinas 1534afcf5441SDan Li# Supported by clang >= 7.0 or GCC >= 12.0.0 15355287569aSSami Tolvanenconfig CC_HAVE_SHADOW_CALL_STACK 15365287569aSSami Tolvanen def_bool $(cc-option, -fsanitize=shadow-call-stack -ffixed-x18) 15375287569aSSami Tolvanen 1538dfd57bc3SStefano Stabelliniconfig PARAVIRT 1539dfd57bc3SStefano Stabellini bool "Enable paravirtualization code" 1540dfd57bc3SStefano Stabellini help 1541dfd57bc3SStefano Stabellini This changes the kernel so it can modify itself when it is run 1542dfd57bc3SStefano Stabellini under a hypervisor, potentially improving performance significantly 1543dfd57bc3SStefano Stabellini over full virtualization. 1544dfd57bc3SStefano Stabellini 1545dfd57bc3SStefano Stabelliniconfig PARAVIRT_TIME_ACCOUNTING 1546dfd57bc3SStefano Stabellini bool "Paravirtual steal time accounting" 1547dfd57bc3SStefano Stabellini select PARAVIRT 1548dfd57bc3SStefano Stabellini help 1549dfd57bc3SStefano Stabellini Select this option to enable fine granularity task steal time 1550dfd57bc3SStefano Stabellini accounting. Time spent executing other tasks in parallel with 1551dfd57bc3SStefano Stabellini the current vCPU is discounted from the vCPU power. To account for 1552dfd57bc3SStefano Stabellini that, there can be a small performance impact. 1553dfd57bc3SStefano Stabellini 1554dfd57bc3SStefano Stabellini If in doubt, say N here. 1555dfd57bc3SStefano Stabellini 155691506f7eSEric DeVolderconfig ARCH_SUPPORTS_KEXEC 155791506f7eSEric DeVolder def_bool PM_SLEEP_SMP 1558d28f6df1SGeoff Levand 155991506f7eSEric DeVolderconfig ARCH_SUPPORTS_KEXEC_FILE 156091506f7eSEric DeVolder def_bool y 15613ddd9992SAKASHI Takahiro 156291506f7eSEric DeVolderconfig ARCH_SELECTS_KEXEC_FILE 156391506f7eSEric DeVolder def_bool y 1564732b7b93SAKASHI Takahiro depends on KEXEC_FILE 156591506f7eSEric DeVolder select HAVE_IMA_KEXEC if IMA 1566732b7b93SAKASHI Takahiro 156791506f7eSEric DeVolderconfig ARCH_SUPPORTS_KEXEC_SIG 156891506f7eSEric DeVolder def_bool y 1569732b7b93SAKASHI Takahiro 157091506f7eSEric DeVolderconfig ARCH_SUPPORTS_KEXEC_IMAGE_VERIFY_SIG 157191506f7eSEric DeVolder def_bool y 1572732b7b93SAKASHI Takahiro 157391506f7eSEric DeVolderconfig ARCH_DEFAULT_KEXEC_IMAGE_VERIFY_SIG 157491506f7eSEric DeVolder def_bool y 1575732b7b93SAKASHI Takahiro 157691506f7eSEric DeVolderconfig ARCH_SUPPORTS_CRASH_DUMP 157791506f7eSEric DeVolder def_bool y 1578e62aaeacSAKASHI Takahiro 1579fdc26823SBaoquan Heconfig ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION 158085fcde40SBaoquan He def_bool CRASH_RESERVE 1581fdc26823SBaoquan He 1582072e3d96SPavel Tatashinconfig TRANS_TABLE 1583072e3d96SPavel Tatashin def_bool y 158408eae0efSPasha Tatashin depends on HIBERNATION || KEXEC_CORE 1585072e3d96SPavel Tatashin 1586aa42aa13SStefano Stabelliniconfig XEN_DOM0 1587aa42aa13SStefano Stabellini def_bool y 1588aa42aa13SStefano Stabellini depends on XEN 1589aa42aa13SStefano Stabellini 1590aa42aa13SStefano Stabelliniconfig XEN 1591c2ba1f7dSJulien Grall bool "Xen guest support on ARM64" 1592aa42aa13SStefano Stabellini depends on ARM64 && OF 159383862ccfSStefano Stabellini select SWIOTLB_XEN 1594dfd57bc3SStefano Stabellini select PARAVIRT 1595aa42aa13SStefano Stabellini help 1596aa42aa13SStefano Stabellini Say Y if you want to run Linux in a Virtual Machine on Xen on ARM64. 1597aa42aa13SStefano Stabellini 15985a4c2a31SKefeng Wang# include/linux/mmzone.h requires the following to be true: 15995a4c2a31SKefeng Wang# 16005e0a760bSKirill A. Shutemov# MAX_PAGE_ORDER + PAGE_SHIFT <= SECTION_SIZE_BITS 16015a4c2a31SKefeng Wang# 16025e0a760bSKirill A. Shutemov# so the maximum value of MAX_PAGE_ORDER is SECTION_SIZE_BITS - PAGE_SHIFT: 16035a4c2a31SKefeng Wang# 16045e0a760bSKirill A. Shutemov# | SECTION_SIZE_BITS | PAGE_SHIFT | max MAX_PAGE_ORDER | default MAX_PAGE_ORDER | 16055e0a760bSKirill A. Shutemov# ----+-------------------+--------------+----------------------+-------------------------+ 160623baf831SKirill A. Shutemov# 4K | 27 | 12 | 15 | 10 | 160723baf831SKirill A. Shutemov# 16K | 27 | 14 | 13 | 11 | 160823baf831SKirill A. Shutemov# 64K | 29 | 16 | 13 | 13 | 16090192445cSZi Yanconfig ARCH_FORCE_MAX_ORDER 1610f3c37621SCatalin Marinas int 161123baf831SKirill A. Shutemov default "13" if ARM64_64K_PAGES 161223baf831SKirill A. Shutemov default "11" if ARM64_16K_PAGES 161323baf831SKirill A. Shutemov default "10" 161444eaacf1SSuzuki K. Poulose help 16154632cb22SMike Rapoport (IBM) The kernel page allocator limits the size of maximal physically 16165e0a760bSKirill A. Shutemov contiguous allocations. The limit is called MAX_PAGE_ORDER and it 16174632cb22SMike Rapoport (IBM) defines the maximal power of two of number of pages that can be 16184632cb22SMike Rapoport (IBM) allocated as a single contiguous block. This option allows 16194632cb22SMike Rapoport (IBM) overriding the default setting when ability to allocate very 16204632cb22SMike Rapoport (IBM) large blocks of physically contiguous memory is required. 162144eaacf1SSuzuki K. Poulose 16224632cb22SMike Rapoport (IBM) The maximal size of allocation cannot exceed the size of the 16235e0a760bSKirill A. Shutemov section, so the value of MAX_PAGE_ORDER should satisfy 162444eaacf1SSuzuki K. Poulose 16255e0a760bSKirill A. Shutemov MAX_PAGE_ORDER + PAGE_SHIFT <= SECTION_SIZE_BITS 162644eaacf1SSuzuki K. Poulose 16274632cb22SMike Rapoport (IBM) Don't change if unsure. 1628d03bb145SSteve Capper 1629084eb77cSWill Deaconconfig UNMAP_KERNEL_AT_EL0 16307540f70dSArd Biesheuvel bool "Unmap kernel when running in userspace (KPTI)" if EXPERT 1631084eb77cSWill Deacon default y 1632084eb77cSWill Deacon help 16330617052dSWill Deacon Speculation attacks against some high-performance processors can 16340617052dSWill Deacon be used to bypass MMU permission checks and leak kernel data to 16350617052dSWill Deacon userspace. This can be defended against by unmapping the kernel 16360617052dSWill Deacon when running in userspace, mapping it back in on exception entry 16370617052dSWill Deacon via a trampoline page in the vector table. 1638084eb77cSWill Deacon 1639084eb77cSWill Deacon If unsure, say Y. 1640084eb77cSWill Deacon 1641558c303cSJames Morseconfig MITIGATE_SPECTRE_BRANCH_HISTORY 1642558c303cSJames Morse bool "Mitigate Spectre style attacks against branch history" if EXPERT 1643558c303cSJames Morse default y 1644558c303cSJames Morse help 1645558c303cSJames Morse Speculation attacks against some high-performance processors can 1646558c303cSJames Morse make use of branch history to influence future speculation. 1647558c303cSJames Morse When taking an exception from user-space, a sequence of branches 1648558c303cSJames Morse or a firmware call overwrites the branch history. 1649558c303cSJames Morse 1650c55191e9SArd Biesheuvelconfig RODATA_FULL_DEFAULT_ENABLED 1651c55191e9SArd Biesheuvel bool "Apply r/o permissions of VM areas also to their linear aliases" 1652c55191e9SArd Biesheuvel default y 1653c55191e9SArd Biesheuvel help 1654c55191e9SArd Biesheuvel Apply read-only attributes of VM areas to the linear alias of 1655c55191e9SArd Biesheuvel the backing pages as well. This prevents code or read-only data 1656c55191e9SArd Biesheuvel from being modified (inadvertently or intentionally) via another 1657c55191e9SArd Biesheuvel mapping of the same memory page. This additional enhancement can 1658c55191e9SArd Biesheuvel be turned off at runtime by passing rodata=[off|on] (and turned on 1659c55191e9SArd Biesheuvel with rodata=full if this option is set to 'n') 1660c55191e9SArd Biesheuvel 1661c55191e9SArd Biesheuvel This requires the linear region to be mapped down to pages, 1662c55191e9SArd Biesheuvel which may adversely affect performance in some cases. 1663c55191e9SArd Biesheuvel 1664dd523791SWill Deaconconfig ARM64_SW_TTBR0_PAN 1665dd523791SWill Deacon bool "Emulate Privileged Access Never using TTBR0_EL1 switching" 166686a6a68fSLinus Torvalds depends on !KCSAN 1667dd523791SWill Deacon help 1668dd523791SWill Deacon Enabling this option prevents the kernel from accessing 1669dd523791SWill Deacon user-space memory directly by pointing TTBR0_EL1 to a reserved 1670dd523791SWill Deacon zeroed area and reserved ASID. The user access routines 1671dd523791SWill Deacon restore the valid TTBR0_EL1 temporarily. 1672dd523791SWill Deacon 167363f0c603SCatalin Marinasconfig ARM64_TAGGED_ADDR_ABI 167463f0c603SCatalin Marinas bool "Enable the tagged user addresses syscall ABI" 167563f0c603SCatalin Marinas default y 167663f0c603SCatalin Marinas help 167763f0c603SCatalin Marinas When this option is enabled, user applications can opt in to a 167863f0c603SCatalin Marinas relaxed ABI via prctl() allowing tagged addresses to be passed 167963f0c603SCatalin Marinas to system calls as pointer arguments. For details, see 16806e4596c4SJonathan Corbet Documentation/arch/arm64/tagged-address-abi.rst. 168163f0c603SCatalin Marinas 1682dd523791SWill Deaconmenuconfig COMPAT 1683dd523791SWill Deacon bool "Kernel support for 32-bit EL0" 1684dd523791SWill Deacon depends on ARM64_4K_PAGES || EXPERT 1685dd523791SWill Deacon select HAVE_UID16 1686dd523791SWill Deacon select OLD_SIGSUSPEND3 1687dd523791SWill Deacon select COMPAT_OLD_SIGACTION 1688dd523791SWill Deacon help 1689dd523791SWill Deacon This option enables support for a 32-bit EL0 running under a 64-bit 1690dd523791SWill Deacon kernel at EL1. AArch32-specific components such as system calls, 1691dd523791SWill Deacon the user helper functions, VFP support and the ptrace interface are 1692dd523791SWill Deacon handled appropriately by the kernel. 1693dd523791SWill Deacon 1694dd523791SWill Deacon If you use a page size other than 4KB (i.e, 16KB or 64KB), please be aware 1695dd523791SWill Deacon that you will only be able to execute AArch32 binaries that were compiled 1696dd523791SWill Deacon with page size aligned segments. 1697dd523791SWill Deacon 1698dd523791SWill Deacon If you want to execute 32-bit userspace applications, say Y. 1699dd523791SWill Deacon 1700dd523791SWill Deaconif COMPAT 1701dd523791SWill Deacon 1702dd523791SWill Deaconconfig KUSER_HELPERS 17037c4791c9SWill Deacon bool "Enable kuser helpers page for 32-bit applications" 1704dd523791SWill Deacon default y 1705dd523791SWill Deacon help 1706dd523791SWill Deacon Warning: disabling this option may break 32-bit user programs. 1707dd523791SWill Deacon 1708dd523791SWill Deacon Provide kuser helpers to compat tasks. The kernel provides 1709dd523791SWill Deacon helper code to userspace in read only form at a fixed location 1710dd523791SWill Deacon to allow userspace to be independent of the CPU type fitted to 1711dd523791SWill Deacon the system. This permits binaries to be run on ARMv4 through 1712dd523791SWill Deacon to ARMv8 without modification. 1713dd523791SWill Deacon 1714263638dcSJonathan Corbet See Documentation/arch/arm/kernel_user_helpers.rst for details. 1715dd523791SWill Deacon 1716dd523791SWill Deacon However, the fixed address nature of these helpers can be used 1717dd523791SWill Deacon by ROP (return orientated programming) authors when creating 1718dd523791SWill Deacon exploits. 1719dd523791SWill Deacon 1720dd523791SWill Deacon If all of the binaries and libraries which run on your platform 1721dd523791SWill Deacon are built specifically for your platform, and make no use of 1722dd523791SWill Deacon these helpers, then you can turn this option off to hinder 1723dd523791SWill Deacon such exploits. However, in that case, if a binary or library 1724dd523791SWill Deacon relying on those helpers is run, it will not function correctly. 1725dd523791SWill Deacon 1726dd523791SWill Deacon Say N here only if you are absolutely certain that you do not 1727dd523791SWill Deacon need these helpers; otherwise, the safe option is to say Y. 1728dd523791SWill Deacon 17297c4791c9SWill Deaconconfig COMPAT_VDSO 17307c4791c9SWill Deacon bool "Enable vDSO for 32-bit applications" 17313e6f8d1fSNick Desaulniers depends on !CPU_BIG_ENDIAN 17323e6f8d1fSNick Desaulniers depends on (CC_IS_CLANG && LD_IS_LLD) || "$(CROSS_COMPILE_COMPAT)" != "" 17337c4791c9SWill Deacon select GENERIC_COMPAT_VDSO 17347c4791c9SWill Deacon default y 17357c4791c9SWill Deacon help 17367c4791c9SWill Deacon Place in the process address space of 32-bit applications an 17377c4791c9SWill Deacon ELF shared object providing fast implementations of gettimeofday 17387c4791c9SWill Deacon and clock_gettime. 17397c4791c9SWill Deacon 17407c4791c9SWill Deacon You must have a 32-bit build of glibc 2.22 or later for programs 17417c4791c9SWill Deacon to seamlessly take advantage of this. 1742dd523791SWill Deacon 1743625412c2SNick Desaulniersconfig THUMB2_COMPAT_VDSO 1744625412c2SNick Desaulniers bool "Compile the 32-bit vDSO for Thumb-2 mode" if EXPERT 1745625412c2SNick Desaulniers depends on COMPAT_VDSO 1746625412c2SNick Desaulniers default y 1747625412c2SNick Desaulniers help 1748625412c2SNick Desaulniers Compile the compat vDSO with '-mthumb -fomit-frame-pointer' if y, 1749625412c2SNick Desaulniers otherwise with '-marm'. 1750625412c2SNick Desaulniers 17513fc24ef3SArd Biesheuvelconfig COMPAT_ALIGNMENT_FIXUPS 17523fc24ef3SArd Biesheuvel bool "Fix up misaligned multi-word loads and stores in user space" 17533fc24ef3SArd Biesheuvel 17541b907f46SWill Deaconmenuconfig ARMV8_DEPRECATED 17551b907f46SWill Deacon bool "Emulate deprecated/obsolete ARMv8 instructions" 17566cfa7cc4SDave Martin depends on SYSCTL 17571b907f46SWill Deacon help 17581b907f46SWill Deacon Legacy software support may require certain instructions 17591b907f46SWill Deacon that have been deprecated or obsoleted in the architecture. 17601b907f46SWill Deacon 17611b907f46SWill Deacon Enable this config to enable selective emulation of these 17621b907f46SWill Deacon features. 17631b907f46SWill Deacon 17641b907f46SWill Deacon If unsure, say Y 17651b907f46SWill Deacon 17661b907f46SWill Deaconif ARMV8_DEPRECATED 17671b907f46SWill Deacon 17681b907f46SWill Deaconconfig SWP_EMULATION 17691b907f46SWill Deacon bool "Emulate SWP/SWPB instructions" 17701b907f46SWill Deacon help 17711b907f46SWill Deacon ARMv8 obsoletes the use of A32 SWP/SWPB instructions such that 17721b907f46SWill Deacon they are always undefined. Say Y here to enable software 17731b907f46SWill Deacon emulation of these instructions for userspace using LDXR/STXR. 1774dd720784SMark Brown This feature can be controlled at runtime with the abi.swp 1775dd720784SMark Brown sysctl which is disabled by default. 17761b907f46SWill Deacon 17771b907f46SWill Deacon In some older versions of glibc [<=2.8] SWP is used during futex 17781b907f46SWill Deacon trylock() operations with the assumption that the code will not 17791b907f46SWill Deacon be preempted. This invalid assumption may be more likely to fail 17801b907f46SWill Deacon with SWP emulation enabled, leading to deadlock of the user 17811b907f46SWill Deacon application. 17821b907f46SWill Deacon 17831b907f46SWill Deacon NOTE: when accessing uncached shared regions, LDXR/STXR rely 17841b907f46SWill Deacon on an external transaction monitoring block called a global 17851b907f46SWill Deacon monitor to maintain update atomicity. If your system does not 17861b907f46SWill Deacon implement a global monitor, this option can cause programs that 17871b907f46SWill Deacon perform SWP operations to uncached memory to deadlock. 17881b907f46SWill Deacon 17891b907f46SWill Deacon If unsure, say Y 17901b907f46SWill Deacon 17911b907f46SWill Deaconconfig CP15_BARRIER_EMULATION 17921b907f46SWill Deacon bool "Emulate CP15 Barrier instructions" 17931b907f46SWill Deacon help 17941b907f46SWill Deacon The CP15 barrier instructions - CP15ISB, CP15DSB, and 17951b907f46SWill Deacon CP15DMB - are deprecated in ARMv8 (and ARMv7). It is 17961b907f46SWill Deacon strongly recommended to use the ISB, DSB, and DMB 17971b907f46SWill Deacon instructions instead. 17981b907f46SWill Deacon 17991b907f46SWill Deacon Say Y here to enable software emulation of these 18001b907f46SWill Deacon instructions for AArch32 userspace code. When this option is 18011b907f46SWill Deacon enabled, CP15 barrier usage is traced which can help 1802dd720784SMark Brown identify software that needs updating. This feature can be 1803dd720784SMark Brown controlled at runtime with the abi.cp15_barrier sysctl. 18041b907f46SWill Deacon 18051b907f46SWill Deacon If unsure, say Y 18061b907f46SWill Deacon 18072d888f48SSuzuki K. Pouloseconfig SETEND_EMULATION 18082d888f48SSuzuki K. Poulose bool "Emulate SETEND instruction" 18092d888f48SSuzuki K. Poulose help 18102d888f48SSuzuki K. Poulose The SETEND instruction alters the data-endianness of the 18112d888f48SSuzuki K. Poulose AArch32 EL0, and is deprecated in ARMv8. 18122d888f48SSuzuki K. Poulose 18132d888f48SSuzuki K. Poulose Say Y here to enable software emulation of the instruction 1814dd720784SMark Brown for AArch32 userspace code. This feature can be controlled 1815dd720784SMark Brown at runtime with the abi.setend sysctl. 18162d888f48SSuzuki K. Poulose 18172d888f48SSuzuki K. Poulose Note: All the cpus on the system must have mixed endian support at EL0 18182d888f48SSuzuki K. Poulose for this feature to be enabled. If a new CPU - which doesn't support mixed 18192d888f48SSuzuki K. Poulose endian - is hotplugged in after this feature has been enabled, there could 18202d888f48SSuzuki K. Poulose be unexpected results in the applications. 18212d888f48SSuzuki K. Poulose 18222d888f48SSuzuki K. Poulose If unsure, say Y 18233cb7e662SJuerg Haefligerendif # ARMV8_DEPRECATED 18241b907f46SWill Deacon 18253cb7e662SJuerg Haefligerendif # COMPAT 1826ba42822aSCatalin Marinas 18270e4a0709SWill Deaconmenu "ARMv8.1 architectural features" 18280e4a0709SWill Deacon 18290e4a0709SWill Deaconconfig ARM64_HW_AFDBM 18300e4a0709SWill Deacon bool "Support for hardware updates of the Access and Dirty page flags" 18310e4a0709SWill Deacon default y 18320e4a0709SWill Deacon help 18330e4a0709SWill Deacon The ARMv8.1 architecture extensions introduce support for 18340e4a0709SWill Deacon hardware updates of the access and dirty information in page 18350e4a0709SWill Deacon table entries. When enabled in TCR_EL1 (HA and HD bits) on 18360e4a0709SWill Deacon capable processors, accesses to pages with PTE_AF cleared will 18370e4a0709SWill Deacon set this bit instead of raising an access flag fault. 18380e4a0709SWill Deacon Similarly, writes to read-only pages with the DBM bit set will 18390e4a0709SWill Deacon clear the read-only bit (AP[2]) instead of raising a 18400e4a0709SWill Deacon permission fault. 18410e4a0709SWill Deacon 18420e4a0709SWill Deacon Kernels built with this configuration option enabled continue 18430e4a0709SWill Deacon to work on pre-ARMv8.1 hardware and the performance impact is 18440e4a0709SWill Deacon minimal. If unsure, say Y. 18450e4a0709SWill Deacon 18460e4a0709SWill Deaconconfig ARM64_PAN 18470e4a0709SWill Deacon bool "Enable support for Privileged Access Never (PAN)" 18480e4a0709SWill Deacon default y 18490e4a0709SWill Deacon help 18500e4a0709SWill Deacon Privileged Access Never (PAN; part of the ARMv8.1 Extensions) 18510e4a0709SWill Deacon prevents the kernel or hypervisor from accessing user-space (EL0) 18520e4a0709SWill Deacon memory directly. 18530e4a0709SWill Deacon 18540e4a0709SWill Deacon Choosing this option will cause any unprotected (not using 18550e4a0709SWill Deacon copy_to_user et al) memory access to fail with a permission fault. 18560e4a0709SWill Deacon 18570e4a0709SWill Deacon The feature is detected at runtime, and will remain as a 'nop' 18580e4a0709SWill Deacon instruction if the cpu does not implement the feature. 18590e4a0709SWill Deacon 18602decad92SCatalin Marinasconfig AS_HAS_LSE_ATOMICS 18612decad92SCatalin Marinas def_bool $(as-instr,.arch_extension lse) 18622decad92SCatalin Marinas 18630e4a0709SWill Deaconconfig ARM64_LSE_ATOMICS 1864395af861SCatalin Marinas bool 1865395af861SCatalin Marinas default ARM64_USE_LSE_ATOMICS 18662decad92SCatalin Marinas depends on AS_HAS_LSE_ATOMICS 1867395af861SCatalin Marinas 1868395af861SCatalin Marinasconfig ARM64_USE_LSE_ATOMICS 18690e4a0709SWill Deacon bool "Atomic instructions" 18707bd99b40SWill Deacon default y 18710e4a0709SWill Deacon help 18720e4a0709SWill Deacon As part of the Large System Extensions, ARMv8.1 introduces new 18730e4a0709SWill Deacon atomic instructions that are designed specifically to scale in 18740e4a0709SWill Deacon very large systems. 18750e4a0709SWill Deacon 18760e4a0709SWill Deacon Say Y here to make use of these instructions for the in-kernel 18770e4a0709SWill Deacon atomic routines. This incurs a small overhead on CPUs that do 18780e4a0709SWill Deacon not support these instructions and requires the kernel to be 18797bd99b40SWill Deacon built with binutils >= 2.25 in order for the new instructions 18807bd99b40SWill Deacon to be used. 18810e4a0709SWill Deacon 18823cb7e662SJuerg Haefligerendmenu # "ARMv8.1 architectural features" 18830e4a0709SWill Deacon 1884f993318bSWill Deaconmenu "ARMv8.2 architectural features" 1885f993318bSWill Deacon 18862c54b423SArd Biesheuvelconfig AS_HAS_ARMV8_2 18872c54b423SArd Biesheuvel def_bool $(cc-option,-Wa$(comma)-march=armv8.2-a) 18882c54b423SArd Biesheuvel 18892c54b423SArd Biesheuvelconfig AS_HAS_SHA3 18902c54b423SArd Biesheuvel def_bool $(as-instr,.arch armv8.2-a+sha3) 18912c54b423SArd Biesheuvel 1892d50e071fSRobin Murphyconfig ARM64_PMEM 1893d50e071fSRobin Murphy bool "Enable support for persistent memory" 1894d50e071fSRobin Murphy select ARCH_HAS_PMEM_API 18955d7bdeb1SRobin Murphy select ARCH_HAS_UACCESS_FLUSHCACHE 1896d50e071fSRobin Murphy help 1897d50e071fSRobin Murphy Say Y to enable support for the persistent memory API based on the 1898d50e071fSRobin Murphy ARMv8.2 DCPoP feature. 1899d50e071fSRobin Murphy 1900d50e071fSRobin Murphy The feature is detected at runtime, and the kernel will use DC CVAC 1901d50e071fSRobin Murphy operations if DC CVAP is not supported (following the behaviour of 1902d50e071fSRobin Murphy DC CVAP itself if the system does not define a point of persistence). 1903d50e071fSRobin Murphy 190464c02720SXie XiuQiconfig ARM64_RAS_EXTN 190564c02720SXie XiuQi bool "Enable support for RAS CPU Extensions" 190664c02720SXie XiuQi default y 190764c02720SXie XiuQi help 190864c02720SXie XiuQi CPUs that support the Reliability, Availability and Serviceability 190964c02720SXie XiuQi (RAS) Extensions, part of ARMv8.2 are able to track faults and 191064c02720SXie XiuQi errors, classify them and report them to software. 191164c02720SXie XiuQi 191264c02720SXie XiuQi On CPUs with these extensions system software can use additional 191364c02720SXie XiuQi barriers to determine if faults are pending and read the 191464c02720SXie XiuQi classification from a new set of registers. 191564c02720SXie XiuQi 191664c02720SXie XiuQi Selecting this feature will allow the kernel to use these barriers 191764c02720SXie XiuQi and access the new registers if the system supports the extension. 191864c02720SXie XiuQi Platform RAS features may additionally depend on firmware support. 191964c02720SXie XiuQi 19205ffdfaedSVladimir Murzinconfig ARM64_CNP 19215ffdfaedSVladimir Murzin bool "Enable support for Common Not Private (CNP) translations" 19225ffdfaedSVladimir Murzin default y 19235ffdfaedSVladimir Murzin depends on ARM64_PAN || !ARM64_SW_TTBR0_PAN 19245ffdfaedSVladimir Murzin help 19255ffdfaedSVladimir Murzin Common Not Private (CNP) allows translation table entries to 19265ffdfaedSVladimir Murzin be shared between different PEs in the same inner shareable 19275ffdfaedSVladimir Murzin domain, so the hardware can use this fact to optimise the 19285ffdfaedSVladimir Murzin caching of such entries in the TLB. 19295ffdfaedSVladimir Murzin 19305ffdfaedSVladimir Murzin Selecting this option allows the CNP feature to be detected 19315ffdfaedSVladimir Murzin at runtime, and does not affect PEs that do not implement 19325ffdfaedSVladimir Murzin this feature. 19335ffdfaedSVladimir Murzin 19343cb7e662SJuerg Haefligerendmenu # "ARMv8.2 architectural features" 1935f993318bSWill Deacon 193604ca3204SMark Rutlandmenu "ARMv8.3 architectural features" 193704ca3204SMark Rutland 193804ca3204SMark Rutlandconfig ARM64_PTR_AUTH 193904ca3204SMark Rutland bool "Enable support for pointer authentication" 194004ca3204SMark Rutland default y 194104ca3204SMark Rutland help 194204ca3204SMark Rutland Pointer authentication (part of the ARMv8.3 Extensions) provides 194304ca3204SMark Rutland instructions for signing and authenticating pointers against secret 194404ca3204SMark Rutland keys, which can be used to mitigate Return Oriented Programming (ROP) 194504ca3204SMark Rutland and other attacks. 194604ca3204SMark Rutland 194704ca3204SMark Rutland This option enables these instructions at EL0 (i.e. for userspace). 194804ca3204SMark Rutland Choosing this option will cause the kernel to initialise secret keys 194904ca3204SMark Rutland for each process at exec() time, with these keys being 195004ca3204SMark Rutland context-switched along with the process. 195104ca3204SMark Rutland 195204ca3204SMark Rutland The feature is detected at runtime. If the feature is not present in 1953384b40caSMark Rutland hardware it will not be advertised to userspace/KVM guest nor will it 1954dfb0589cSMarc Zyngier be enabled. 195504ca3204SMark Rutland 19566982934eSKristina Martsenko If the feature is present on the boot CPU but not on a late CPU, then 19576982934eSKristina Martsenko the late CPU will be parked. Also, if the boot CPU does not have 19586982934eSKristina Martsenko address auth and the late CPU has then the late CPU will still boot 19596982934eSKristina Martsenko but with the feature disabled. On such a system, this option should 19606982934eSKristina Martsenko not be selected. 19616982934eSKristina Martsenko 1962b27a9f41SDaniel Kissconfig ARM64_PTR_AUTH_KERNEL 1963d053e71aSDaniel Kiss bool "Use pointer authentication for kernel" 1964b27a9f41SDaniel Kiss default y 1965b27a9f41SDaniel Kiss depends on ARM64_PTR_AUTH 19661e249c41SMark Rutland depends on (CC_HAS_SIGN_RETURN_ADDRESS || CC_HAS_BRANCH_PROT_PAC_RET) && AS_HAS_ARMV8_3 1967b27a9f41SDaniel Kiss # Modern compilers insert a .note.gnu.property section note for PAC 1968b27a9f41SDaniel Kiss # which is only understood by binutils starting with version 2.33.1. 1969b27a9f41SDaniel Kiss depends on LD_IS_LLD || LD_VERSION >= 23301 || (CC_IS_GCC && GCC_VERSION < 90100) 1970b27a9f41SDaniel Kiss depends on !CC_IS_CLANG || AS_HAS_CFI_NEGATE_RA_STATE 197126299b3fSMark Rutland depends on (!FUNCTION_GRAPH_TRACER || DYNAMIC_FTRACE_WITH_ARGS) 1972b27a9f41SDaniel Kiss help 1973b27a9f41SDaniel Kiss If the compiler supports the -mbranch-protection or 1974b27a9f41SDaniel Kiss -msign-return-address flag (e.g. GCC 7 or later), then this option 1975b27a9f41SDaniel Kiss will cause the kernel itself to be compiled with return address 1976b27a9f41SDaniel Kiss protection. In this case, and if the target hardware is known to 1977b27a9f41SDaniel Kiss support pointer authentication, then CONFIG_STACKPROTECTOR can be 1978b27a9f41SDaniel Kiss disabled with minimal loss of protection. 1979b27a9f41SDaniel Kiss 198074afda40SKristina Martsenko This feature works with FUNCTION_GRAPH_TRACER option only if 198126299b3fSMark Rutland DYNAMIC_FTRACE_WITH_ARGS is enabled. 198274afda40SKristina Martsenko 198374afda40SKristina Martsenkoconfig CC_HAS_BRANCH_PROT_PAC_RET 198474afda40SKristina Martsenko # GCC 9 or later, clang 8 or later 198574afda40SKristina Martsenko def_bool $(cc-option,-mbranch-protection=pac-ret+leaf) 198674afda40SKristina Martsenko 198774afda40SKristina Martsenkoconfig CC_HAS_SIGN_RETURN_ADDRESS 198874afda40SKristina Martsenko # GCC 7, 8 198974afda40SKristina Martsenko def_bool $(cc-option,-msign-return-address=all) 199074afda40SKristina Martsenko 19911e249c41SMark Rutlandconfig AS_HAS_ARMV8_3 19924d0831e8SMasahiro Yamada def_bool $(cc-option,-Wa$(comma)-march=armv8.3-a) 199374afda40SKristina Martsenko 19943b446c7dSNick Desaulniersconfig AS_HAS_CFI_NEGATE_RA_STATE 19953b446c7dSNick Desaulniers def_bool $(as-instr,.cfi_startproc\n.cfi_negate_ra_state\n.cfi_endproc\n) 19963b446c7dSNick Desaulniers 199764a0b90aSZeng Hengconfig AS_HAS_LDAPR 199864a0b90aSZeng Heng def_bool $(as-instr,.arch_extension rcpc) 199964a0b90aSZeng Heng 20003cb7e662SJuerg Haefligerendmenu # "ARMv8.3 architectural features" 200104ca3204SMark Rutland 20022c9d45b4SIonela Voinescumenu "ARMv8.4 architectural features" 20032c9d45b4SIonela Voinescu 20042c9d45b4SIonela Voinescuconfig ARM64_AMU_EXTN 20052c9d45b4SIonela Voinescu bool "Enable support for the Activity Monitors Unit CPU extension" 20062c9d45b4SIonela Voinescu default y 20072c9d45b4SIonela Voinescu help 20082c9d45b4SIonela Voinescu The activity monitors extension is an optional extension introduced 20092c9d45b4SIonela Voinescu by the ARMv8.4 CPU architecture. This enables support for version 1 20102c9d45b4SIonela Voinescu of the activity monitors architecture, AMUv1. 20112c9d45b4SIonela Voinescu 20122c9d45b4SIonela Voinescu To enable the use of this extension on CPUs that implement it, say Y. 20132c9d45b4SIonela Voinescu 20142c9d45b4SIonela Voinescu Note that for architectural reasons, firmware _must_ implement AMU 20152c9d45b4SIonela Voinescu support when running on CPUs that present the activity monitors 20162c9d45b4SIonela Voinescu extension. The required support is present in: 20172c9d45b4SIonela Voinescu * Version 1.5 and later of the ARM Trusted Firmware 20182c9d45b4SIonela Voinescu 20192c9d45b4SIonela Voinescu For kernels that have this configuration enabled but boot with broken 20202c9d45b4SIonela Voinescu firmware, you may need to say N here until the firmware is fixed. 20212c9d45b4SIonela Voinescu Otherwise you may experience firmware panics or lockups when 20222c9d45b4SIonela Voinescu accessing the counter registers. Even if you are not observing these 20232c9d45b4SIonela Voinescu symptoms, the values returned by the register reads might not 20242c9d45b4SIonela Voinescu correctly reflect reality. Most commonly, the value read will be 0, 20252c9d45b4SIonela Voinescu indicating that the counter is not enabled. 20262c9d45b4SIonela Voinescu 20277c78f67eSZhenyu Yeconfig AS_HAS_ARMV8_4 20287c78f67eSZhenyu Ye def_bool $(cc-option,-Wa$(comma)-march=armv8.4-a) 20297c78f67eSZhenyu Ye 20307c78f67eSZhenyu Yeconfig ARM64_TLB_RANGE 20317c78f67eSZhenyu Ye bool "Enable support for tlbi range feature" 20327c78f67eSZhenyu Ye default y 20337c78f67eSZhenyu Ye depends on AS_HAS_ARMV8_4 20347c78f67eSZhenyu Ye help 20357c78f67eSZhenyu Ye ARMv8.4-TLBI provides TLBI invalidation instruction that apply to a 20367c78f67eSZhenyu Ye range of input addresses. 20377c78f67eSZhenyu Ye 20387c78f67eSZhenyu Ye The feature introduces new assembly instructions, and they were 20397c78f67eSZhenyu Ye support when binutils >= 2.30. 20407c78f67eSZhenyu Ye 20413cb7e662SJuerg Haefligerendmenu # "ARMv8.4 architectural features" 2042fd045f6cSArd Biesheuvel 20433e6c69a0SMark Brownmenu "ARMv8.5 architectural features" 20443e6c69a0SMark Brown 2045f469c032SVincenzo Frascinoconfig AS_HAS_ARMV8_5 2046f469c032SVincenzo Frascino def_bool $(cc-option,-Wa$(comma)-march=armv8.5-a) 2047f469c032SVincenzo Frascino 2048383499f8SDave Martinconfig ARM64_BTI 2049383499f8SDave Martin bool "Branch Target Identification support" 2050383499f8SDave Martin default y 2051383499f8SDave Martin help 2052383499f8SDave Martin Branch Target Identification (part of the ARMv8.5 Extensions) 2053383499f8SDave Martin provides a mechanism to limit the set of locations to which computed 2054383499f8SDave Martin branch instructions such as BR or BLR can jump. 2055383499f8SDave Martin 2056383499f8SDave Martin To make use of BTI on CPUs that support it, say Y. 2057383499f8SDave Martin 2058383499f8SDave Martin BTI is intended to provide complementary protection to other control 2059383499f8SDave Martin flow integrity protection mechanisms, such as the Pointer 2060383499f8SDave Martin authentication mechanism provided as part of the ARMv8.3 Extensions. 2061383499f8SDave Martin For this reason, it does not make sense to enable this option without 2062383499f8SDave Martin also enabling support for pointer authentication. Thus, when 2063383499f8SDave Martin enabling this option you should also select ARM64_PTR_AUTH=y. 2064383499f8SDave Martin 2065383499f8SDave Martin Userspace binaries must also be specifically compiled to make use of 2066383499f8SDave Martin this mechanism. If you say N here or the hardware does not support 2067383499f8SDave Martin BTI, such binaries can still run, but you get no additional 2068383499f8SDave Martin enforcement of branch destinations. 2069383499f8SDave Martin 207097fed779SMark Brownconfig ARM64_BTI_KERNEL 207197fed779SMark Brown bool "Use Branch Target Identification for kernel" 207297fed779SMark Brown default y 207397fed779SMark Brown depends on ARM64_BTI 2074b27a9f41SDaniel Kiss depends on ARM64_PTR_AUTH_KERNEL 207597fed779SMark Brown depends on CC_HAS_BRANCH_PROT_PAC_RET_BTI 20763a88d7c5SWill Deacon # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94697 20773a88d7c5SWill Deacon depends on !CC_IS_GCC || GCC_VERSION >= 100100 2078c0a454b9SMark Brown # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106671 2079c0a454b9SMark Brown depends on !CC_IS_GCC 208026299b3fSMark Rutland depends on (!FUNCTION_GRAPH_TRACER || DYNAMIC_FTRACE_WITH_ARGS) 208197fed779SMark Brown help 208297fed779SMark Brown Build the kernel with Branch Target Identification annotations 208397fed779SMark Brown and enable enforcement of this for kernel code. When this option 208497fed779SMark Brown is enabled and the system supports BTI all kernel code including 208597fed779SMark Brown modular code must have BTI enabled. 208697fed779SMark Brown 208797fed779SMark Brownconfig CC_HAS_BRANCH_PROT_PAC_RET_BTI 208897fed779SMark Brown # GCC 9 or later, clang 8 or later 208997fed779SMark Brown def_bool $(cc-option,-mbranch-protection=pac-ret+leaf+bti) 209097fed779SMark Brown 20913e6c69a0SMark Brownconfig ARM64_E0PD 20923e6c69a0SMark Brown bool "Enable support for E0PD" 20933e6c69a0SMark Brown default y 20943e6c69a0SMark Brown help 20953e6c69a0SMark Brown E0PD (part of the ARMv8.5 extensions) allows us to ensure 20963e6c69a0SMark Brown that EL0 accesses made via TTBR1 always fault in constant time, 20973e6c69a0SMark Brown providing similar benefits to KASLR as those provided by KPTI, but 20983e6c69a0SMark Brown with lower overhead and without disrupting legitimate access to 20993e6c69a0SMark Brown kernel memory such as SPE. 21003e6c69a0SMark Brown 21013e6c69a0SMark Brown This option enables E0PD for TTBR1 where available. 21023e6c69a0SMark Brown 210389b94df9SVincenzo Frascinoconfig ARM64_AS_HAS_MTE 210489b94df9SVincenzo Frascino # Initial support for MTE went in binutils 2.32.0, checked with 210589b94df9SVincenzo Frascino # ".arch armv8.5-a+memtag" below. However, this was incomplete 210689b94df9SVincenzo Frascino # as a late addition to the final architecture spec (LDGM/STGM) 210789b94df9SVincenzo Frascino # is only supported in the newer 2.32.x and 2.33 binutils 210889b94df9SVincenzo Frascino # versions, hence the extra "stgm" instruction check below. 210989b94df9SVincenzo Frascino def_bool $(as-instr,.arch armv8.5-a+memtag\nstgm xzr$(comma)[x0]) 211089b94df9SVincenzo Frascino 211189b94df9SVincenzo Frascinoconfig ARM64_MTE 211289b94df9SVincenzo Frascino bool "Memory Tagging Extension support" 211389b94df9SVincenzo Frascino default y 211489b94df9SVincenzo Frascino depends on ARM64_AS_HAS_MTE && ARM64_TAGGED_ADDR_ABI 2115f469c032SVincenzo Frascino depends on AS_HAS_ARMV8_5 21162decad92SCatalin Marinas depends on AS_HAS_LSE_ATOMICS 211798c970daSVincenzo Frascino # Required for tag checking in the uaccess routines 211898c970daSVincenzo Frascino depends on ARM64_PAN 2119f3ba50a7SCatalin Marinas select ARCH_HAS_SUBPAGE_FAULTS 212089b94df9SVincenzo Frascino select ARCH_USES_HIGH_VMA_FLAGS 21217a87225aSMatthew Wilcox (Oracle) select ARCH_USES_PG_ARCH_2 21227a87225aSMatthew Wilcox (Oracle) select ARCH_USES_PG_ARCH_3 212389b94df9SVincenzo Frascino help 212489b94df9SVincenzo Frascino Memory Tagging (part of the ARMv8.5 Extensions) provides 212589b94df9SVincenzo Frascino architectural support for run-time, always-on detection of 212689b94df9SVincenzo Frascino various classes of memory error to aid with software debugging 212789b94df9SVincenzo Frascino to eliminate vulnerabilities arising from memory-unsafe 212889b94df9SVincenzo Frascino languages. 212989b94df9SVincenzo Frascino 213089b94df9SVincenzo Frascino This option enables the support for the Memory Tagging 213189b94df9SVincenzo Frascino Extension at EL0 (i.e. for userspace). 213289b94df9SVincenzo Frascino 213389b94df9SVincenzo Frascino Selecting this option allows the feature to be detected at 213489b94df9SVincenzo Frascino runtime. Any secondary CPU not implementing this feature will 213589b94df9SVincenzo Frascino not be allowed a late bring-up. 213689b94df9SVincenzo Frascino 213789b94df9SVincenzo Frascino Userspace binaries that want to use this feature must 213889b94df9SVincenzo Frascino explicitly opt in. The mechanism for the userspace is 213989b94df9SVincenzo Frascino described in: 214089b94df9SVincenzo Frascino 21416e4596c4SJonathan Corbet Documentation/arch/arm64/memory-tagging-extension.rst. 214289b94df9SVincenzo Frascino 21433cb7e662SJuerg Haefligerendmenu # "ARMv8.5 architectural features" 21443e6c69a0SMark Brown 214518107f8aSVladimir Murzinmenu "ARMv8.7 architectural features" 214618107f8aSVladimir Murzin 214718107f8aSVladimir Murzinconfig ARM64_EPAN 214818107f8aSVladimir Murzin bool "Enable support for Enhanced Privileged Access Never (EPAN)" 214918107f8aSVladimir Murzin default y 215018107f8aSVladimir Murzin depends on ARM64_PAN 215118107f8aSVladimir Murzin help 215218107f8aSVladimir Murzin Enhanced Privileged Access Never (EPAN) allows Privileged 215318107f8aSVladimir Murzin Access Never to be used with Execute-only mappings. 215418107f8aSVladimir Murzin 215518107f8aSVladimir Murzin The feature is detected at runtime, and will remain disabled 215618107f8aSVladimir Murzin if the cpu does not implement the feature. 21573cb7e662SJuerg Haefligerendmenu # "ARMv8.7 architectural features" 215818107f8aSVladimir Murzin 2159b9b9d72dSJoey Goulymenu "ARMv8.9 architectural features" 2160b9b9d72dSJoey Gouly 2161b9b9d72dSJoey Goulyconfig ARM64_POE 2162b9b9d72dSJoey Gouly prompt "Permission Overlay Extension" 2163b9b9d72dSJoey Gouly def_bool y 2164b9b9d72dSJoey Gouly select ARCH_USES_HIGH_VMA_FLAGS 2165b9b9d72dSJoey Gouly select ARCH_HAS_PKEYS 2166b9b9d72dSJoey Gouly help 2167b9b9d72dSJoey Gouly The Permission Overlay Extension is used to implement Memory 2168b9b9d72dSJoey Gouly Protection Keys. Memory Protection Keys provides a mechanism for 2169b9b9d72dSJoey Gouly enforcing page-based protections, but without requiring modification 2170b9b9d72dSJoey Gouly of the page tables when an application changes protection domains. 2171b9b9d72dSJoey Gouly 2172b9b9d72dSJoey Gouly For details, see Documentation/core-api/protection-keys.rst 2173b9b9d72dSJoey Gouly 2174b9b9d72dSJoey Gouly If unsure, say y. 2175b9b9d72dSJoey Gouly 2176b9b9d72dSJoey Goulyconfig ARCH_PKEY_BITS 2177b9b9d72dSJoey Gouly int 2178b9b9d72dSJoey Gouly default 3 2179b9b9d72dSJoey Gouly 2180b9b9d72dSJoey Goulyendmenu # "ARMv8.9 architectural features" 2181b9b9d72dSJoey Gouly 2182ddd25ad1SDave Martinconfig ARM64_SVE 2183ddd25ad1SDave Martin bool "ARM Scalable Vector Extension support" 2184ddd25ad1SDave Martin default y 2185ddd25ad1SDave Martin help 2186ddd25ad1SDave Martin The Scalable Vector Extension (SVE) is an extension to the AArch64 2187ddd25ad1SDave Martin execution state which complements and extends the SIMD functionality 2188ddd25ad1SDave Martin of the base architecture to support much larger vectors and to enable 2189ddd25ad1SDave Martin additional vectorisation opportunities. 2190ddd25ad1SDave Martin 2191ddd25ad1SDave Martin To enable use of this extension on CPUs that implement it, say Y. 2192ddd25ad1SDave Martin 219306a916feSDave Martin On CPUs that support the SVE2 extensions, this option will enable 219406a916feSDave Martin those too. 219506a916feSDave Martin 21965043694eSDave Martin Note that for architectural reasons, firmware _must_ implement SVE 21975043694eSDave Martin support when running on SVE capable hardware. The required support 21985043694eSDave Martin is present in: 21995043694eSDave Martin 22005043694eSDave Martin * version 1.5 and later of the ARM Trusted Firmware 22015043694eSDave Martin * the AArch64 boot wrapper since commit 5e1261e08abf 22025043694eSDave Martin ("bootwrapper: SVE: Enable SVE for EL2 and below"). 22035043694eSDave Martin 22045043694eSDave Martin For other firmware implementations, consult the firmware documentation 22055043694eSDave Martin or vendor. 22065043694eSDave Martin 22075043694eSDave Martin If you need the kernel to boot on SVE-capable hardware with broken 22085043694eSDave Martin firmware, you may need to say N here until you get your firmware 22095043694eSDave Martin fixed. Otherwise, you may experience firmware panics or lockups when 22105043694eSDave Martin booting the kernel. If unsure and you are not observing these 22115043694eSDave Martin symptoms, you should assume that it is safe to say Y. 2212fd045f6cSArd Biesheuvel 2213a1f4ccd2SMark Brownconfig ARM64_SME 2214a1f4ccd2SMark Brown bool "ARM Scalable Matrix Extension support" 2215a1f4ccd2SMark Brown default y 2216a1f4ccd2SMark Brown depends on ARM64_SVE 2217*81235ae0SMark Rutland depends on BROKEN 2218a1f4ccd2SMark Brown help 2219a1f4ccd2SMark Brown The Scalable Matrix Extension (SME) is an extension to the AArch64 2220a1f4ccd2SMark Brown execution state which utilises a substantial subset of the SVE 2221a1f4ccd2SMark Brown instruction set, together with the addition of new architectural 2222a1f4ccd2SMark Brown register state capable of holding two dimensional matrix tiles to 2223a1f4ccd2SMark Brown enable various matrix operations. 2224a1f4ccd2SMark Brown 2225bc3c03ccSJulien Thierryconfig ARM64_PSEUDO_NMI 2226bc3c03ccSJulien Thierry bool "Support for NMI-like interrupts" 22273c9c1dcdSJoe Perches select ARM_GIC_V3 2228bc3c03ccSJulien Thierry help 2229bc3c03ccSJulien Thierry Adds support for mimicking Non-Maskable Interrupts through the use of 2230bc3c03ccSJulien Thierry GIC interrupt priority. This support requires version 3 or later of 2231bc15cf70SWill Deacon ARM GIC. 2232bc3c03ccSJulien Thierry 2233bc3c03ccSJulien Thierry This high priority configuration for interrupts needs to be 2234bc3c03ccSJulien Thierry explicitly enabled by setting the kernel parameter 2235bc3c03ccSJulien Thierry "irqchip.gicv3_pseudo_nmi" to 1. 2236bc3c03ccSJulien Thierry 2237bc3c03ccSJulien Thierry If unsure, say N 2238bc3c03ccSJulien Thierry 223948ce8f80SJulien Thierryif ARM64_PSEUDO_NMI 224048ce8f80SJulien Thierryconfig ARM64_DEBUG_PRIORITY_MASKING 224148ce8f80SJulien Thierry bool "Debug interrupt priority masking" 224248ce8f80SJulien Thierry help 224348ce8f80SJulien Thierry This adds runtime checks to functions enabling/disabling 224448ce8f80SJulien Thierry interrupts when using priority masking. The additional checks verify 224548ce8f80SJulien Thierry the validity of ICC_PMR_EL1 when calling concerned functions. 224648ce8f80SJulien Thierry 224748ce8f80SJulien Thierry If unsure, say N 22483cb7e662SJuerg Haefligerendif # ARM64_PSEUDO_NMI 224948ce8f80SJulien Thierry 22501e48ef7fSArd Biesheuvelconfig RELOCATABLE 2251dd4bc607SArd Biesheuvel bool "Build a relocatable kernel image" if EXPERT 22525cf896fbSPeter Collingbourne select ARCH_HAS_RELR 2253dd4bc607SArd Biesheuvel default y 22541e48ef7fSArd Biesheuvel help 22551e48ef7fSArd Biesheuvel This builds the kernel as a Position Independent Executable (PIE), 22561e48ef7fSArd Biesheuvel which retains all relocation metadata required to relocate the 22571e48ef7fSArd Biesheuvel kernel binary at runtime to a different virtual address than the 22581e48ef7fSArd Biesheuvel address it was linked at. 22591e48ef7fSArd Biesheuvel Since AArch64 uses the RELA relocation format, this requires a 22601e48ef7fSArd Biesheuvel relocation pass at runtime even if the kernel is loaded at the 22611e48ef7fSArd Biesheuvel same address it was linked at. 22621e48ef7fSArd Biesheuvel 2263f80fb3a3SArd Biesheuvelconfig RANDOMIZE_BASE 2264f80fb3a3SArd Biesheuvel bool "Randomize the address of the kernel image" 2265f80fb3a3SArd Biesheuvel select RELOCATABLE 2266f80fb3a3SArd Biesheuvel help 2267f80fb3a3SArd Biesheuvel Randomizes the virtual address at which the kernel image is 2268f80fb3a3SArd Biesheuvel loaded, as a security feature that deters exploit attempts 2269f80fb3a3SArd Biesheuvel relying on knowledge of the location of kernel internals. 2270f80fb3a3SArd Biesheuvel 2271f80fb3a3SArd Biesheuvel It is the bootloader's job to provide entropy, by passing a 2272f80fb3a3SArd Biesheuvel random u64 value in /chosen/kaslr-seed at kernel entry. 2273f80fb3a3SArd Biesheuvel 22742b5fe07aSArd Biesheuvel When booting via the UEFI stub, it will invoke the firmware's 22752b5fe07aSArd Biesheuvel EFI_RNG_PROTOCOL implementation (if available) to supply entropy 22762b5fe07aSArd Biesheuvel to the kernel proper. In addition, it will randomise the physical 22772b5fe07aSArd Biesheuvel location of the kernel Image as well. 22782b5fe07aSArd Biesheuvel 2279f80fb3a3SArd Biesheuvel If unsure, say N. 2280f80fb3a3SArd Biesheuvel 2281f80fb3a3SArd Biesheuvelconfig RANDOMIZE_MODULE_REGION_FULL 2282f9c4ff2aSBarry Song bool "Randomize the module region over a 2 GB range" 2283e71a4e1bSArd Biesheuvel depends on RANDOMIZE_BASE 2284f80fb3a3SArd Biesheuvel default y 2285f80fb3a3SArd Biesheuvel help 2286f9c4ff2aSBarry Song Randomizes the location of the module region inside a 2 GB window 2287f2b9ba87SArd Biesheuvel covering the core kernel. This way, it is less likely for modules 2288f80fb3a3SArd Biesheuvel to leak information about the location of core kernel data structures 2289f80fb3a3SArd Biesheuvel but it does imply that function calls between modules and the core 2290f80fb3a3SArd Biesheuvel kernel will need to be resolved via veneers in the module PLT. 2291f80fb3a3SArd Biesheuvel 2292f80fb3a3SArd Biesheuvel When this option is not set, the module region will be randomized over 2293f80fb3a3SArd Biesheuvel a limited range that contains the [_stext, _etext] interval of the 2294f9c4ff2aSBarry Song core kernel, so branch relocations are almost always in range unless 2295ea3752baSMark Rutland the region is exhausted. In this particular case of region 2296ea3752baSMark Rutland exhaustion, modules might be able to fall back to a larger 2GB area. 2297f80fb3a3SArd Biesheuvel 22980a1213faSArd Biesheuvelconfig CC_HAVE_STACKPROTECTOR_SYSREG 22990a1213faSArd Biesheuvel def_bool $(cc-option,-mstack-protector-guard=sysreg -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=0) 23000a1213faSArd Biesheuvel 23010a1213faSArd Biesheuvelconfig STACKPROTECTOR_PER_TASK 23020a1213faSArd Biesheuvel def_bool y 23030a1213faSArd Biesheuvel depends on STACKPROTECTOR && CC_HAVE_STACKPROTECTOR_SYSREG 23040a1213faSArd Biesheuvel 23053b619e22SArd Biesheuvelconfig UNWIND_PATCH_PAC_INTO_SCS 23063b619e22SArd Biesheuvel bool "Enable shadow call stack dynamically using code patching" 2307fafdea34SNathan Chancellor # needs Clang with https://github.com/llvm/llvm-project/commit/de07cde67b5d205d58690be012106022aea6d2b3 incorporated 23083b619e22SArd Biesheuvel depends on CC_IS_CLANG && CLANG_VERSION >= 150000 23093b619e22SArd Biesheuvel depends on ARM64_PTR_AUTH_KERNEL && CC_HAS_BRANCH_PROT_PAC_RET 23103b619e22SArd Biesheuvel depends on SHADOW_CALL_STACK 23113b619e22SArd Biesheuvel select UNWIND_TABLES 23123b619e22SArd Biesheuvel select DYNAMIC_SCS 23133b619e22SArd Biesheuvel 23144602e575SRyan Robertsconfig ARM64_CONTPTE 23154602e575SRyan Roberts bool "Contiguous PTE mappings for user memory" if EXPERT 23164602e575SRyan Roberts depends on TRANSPARENT_HUGEPAGE 23174602e575SRyan Roberts default y 23184602e575SRyan Roberts help 23194602e575SRyan Roberts When enabled, user mappings are configured using the PTE contiguous 23204602e575SRyan Roberts bit, for any mappings that meet the size and alignment requirements. 23214602e575SRyan Roberts This reduces TLB pressure and improves performance. 23224602e575SRyan Roberts 23233cb7e662SJuerg Haefligerendmenu # "Kernel Features" 23248c2c3df3SCatalin Marinas 23258c2c3df3SCatalin Marinasmenu "Boot options" 23268c2c3df3SCatalin Marinas 23275e89c55eSLorenzo Pieralisiconfig ARM64_ACPI_PARKING_PROTOCOL 23285e89c55eSLorenzo Pieralisi bool "Enable support for the ARM64 ACPI parking protocol" 23295e89c55eSLorenzo Pieralisi depends on ACPI 23305e89c55eSLorenzo Pieralisi help 23315e89c55eSLorenzo Pieralisi Enable support for the ARM64 ACPI parking protocol. If disabled 23325e89c55eSLorenzo Pieralisi the kernel will not allow booting through the ARM64 ACPI parking 23335e89c55eSLorenzo Pieralisi protocol even if the corresponding data is present in the ACPI 23345e89c55eSLorenzo Pieralisi MADT table. 23355e89c55eSLorenzo Pieralisi 23368c2c3df3SCatalin Marinasconfig CMDLINE 23378c2c3df3SCatalin Marinas string "Default kernel command string" 23388c2c3df3SCatalin Marinas default "" 23398c2c3df3SCatalin Marinas help 23408c2c3df3SCatalin Marinas Provide a set of default command-line options at build time by 23418c2c3df3SCatalin Marinas entering them here. As a minimum, you should specify the the 23428c2c3df3SCatalin Marinas root device (e.g. root=/dev/nfs). 23438c2c3df3SCatalin Marinas 23441e40d105STyler Hickschoice 2345b9d73218SMasahiro Yamada prompt "Kernel command line type" 2346b9d73218SMasahiro Yamada depends on CMDLINE != "" 23471e40d105STyler Hicks default CMDLINE_FROM_BOOTLOADER 23481e40d105STyler Hicks help 23491e40d105STyler Hicks Choose how the kernel will handle the provided default kernel 23501e40d105STyler Hicks command line string. 23511e40d105STyler Hicks 23521e40d105STyler Hicksconfig CMDLINE_FROM_BOOTLOADER 23531e40d105STyler Hicks bool "Use bootloader kernel arguments if available" 23541e40d105STyler Hicks help 23551e40d105STyler Hicks Uses the command-line options passed by the boot loader. If 23561e40d105STyler Hicks the boot loader doesn't provide any, the default kernel command 23571e40d105STyler Hicks string provided in CMDLINE will be used. 23581e40d105STyler Hicks 23598c2c3df3SCatalin Marinasconfig CMDLINE_FORCE 23608c2c3df3SCatalin Marinas bool "Always use the default kernel command string" 23618c2c3df3SCatalin Marinas help 23628c2c3df3SCatalin Marinas Always use the default kernel command string, even if the boot 23638c2c3df3SCatalin Marinas loader passes other arguments to the kernel. 23648c2c3df3SCatalin Marinas This is useful if you cannot or don't want to change the 23658c2c3df3SCatalin Marinas command-line options your boot loader passes to the kernel. 23668c2c3df3SCatalin Marinas 23671e40d105STyler Hicksendchoice 23681e40d105STyler Hicks 2369f4f75ad5SArd Biesheuvelconfig EFI_STUB 2370f4f75ad5SArd Biesheuvel bool 2371f4f75ad5SArd Biesheuvel 2372f84d0275SMark Salterconfig EFI 2373f84d0275SMark Salter bool "UEFI runtime support" 2374f84d0275SMark Salter depends on OF && !CPU_BIG_ENDIAN 2375b472db6cSDave Martin depends on KERNEL_MODE_NEON 23762c870e61SArnd Bergmann select ARCH_SUPPORTS_ACPI 2377f84d0275SMark Salter select LIBFDT 2378f84d0275SMark Salter select UCS2_STRING 2379f84d0275SMark Salter select EFI_PARAMS_FROM_FDT 2380e15dd494SArd Biesheuvel select EFI_RUNTIME_WRAPPERS 2381f4f75ad5SArd Biesheuvel select EFI_STUB 23822e0eb483SAtish Patra select EFI_GENERIC_STUB 23838d39cee0SChester Lin imply IMA_SECURE_AND_OR_TRUSTED_BOOT 2384f84d0275SMark Salter default y 2385f84d0275SMark Salter help 2386f84d0275SMark Salter This option provides support for runtime services provided 2387f84d0275SMark Salter by UEFI firmware (such as non-volatile variables, realtime 23883c7f2550SMark Salter clock, and platform reset). A UEFI stub is also provided to 23893c7f2550SMark Salter allow the kernel to be booted as an EFI application. This 23903c7f2550SMark Salter is only useful on systems that have UEFI firmware. 2391f84d0275SMark Salter 23924c7be57fSLinus Torvaldsconfig COMPRESSED_INSTALL 23934c7be57fSLinus Torvalds bool "Install compressed image by default" 23944c7be57fSLinus Torvalds help 23954c7be57fSLinus Torvalds This makes the regular "make install" install the compressed 23964c7be57fSLinus Torvalds image we built, not the legacy uncompressed one. 23974c7be57fSLinus Torvalds 23984c7be57fSLinus Torvalds You can check that a compressed image works for you by doing 23994c7be57fSLinus Torvalds "make zinstall" first, and verifying that everything is fine 24004c7be57fSLinus Torvalds in your environment before making "make install" do this for 24014c7be57fSLinus Torvalds you. 24024c7be57fSLinus Torvalds 2403d1ae8c00SYi Liconfig DMI 2404d1ae8c00SYi Li bool "Enable support for SMBIOS (DMI) tables" 2405d1ae8c00SYi Li depends on EFI 2406d1ae8c00SYi Li default y 2407d1ae8c00SYi Li help 2408d1ae8c00SYi Li This enables SMBIOS/DMI feature for systems. 2409d1ae8c00SYi Li 2410d1ae8c00SYi Li This option is only useful on systems that have UEFI firmware. 2411d1ae8c00SYi Li However, even with this option, the resultant kernel should 2412d1ae8c00SYi Li continue to boot on existing non-UEFI platforms. 2413d1ae8c00SYi Li 24143cb7e662SJuerg Haefligerendmenu # "Boot options" 24158c2c3df3SCatalin Marinas 2416166936baSLorenzo Pieralisimenu "Power management options" 2417166936baSLorenzo Pieralisi 2418166936baSLorenzo Pieralisisource "kernel/power/Kconfig" 2419166936baSLorenzo Pieralisi 242082869ac5SJames Morseconfig ARCH_HIBERNATION_POSSIBLE 242182869ac5SJames Morse def_bool y 242282869ac5SJames Morse depends on CPU_PM 242382869ac5SJames Morse 242482869ac5SJames Morseconfig ARCH_HIBERNATION_HEADER 242582869ac5SJames Morse def_bool y 242682869ac5SJames Morse depends on HIBERNATION 242782869ac5SJames Morse 2428166936baSLorenzo Pieralisiconfig ARCH_SUSPEND_POSSIBLE 2429166936baSLorenzo Pieralisi def_bool y 2430166936baSLorenzo Pieralisi 24313cb7e662SJuerg Haefligerendmenu # "Power management options" 2432166936baSLorenzo Pieralisi 24331307220dSLorenzo Pieralisimenu "CPU Power Management" 24341307220dSLorenzo Pieralisi 24351307220dSLorenzo Pieralisisource "drivers/cpuidle/Kconfig" 24361307220dSLorenzo Pieralisi 243752e7e816SRob Herringsource "drivers/cpufreq/Kconfig" 243852e7e816SRob Herring 24393cb7e662SJuerg Haefligerendmenu # "CPU Power Management" 244052e7e816SRob Herring 2441b6a02173SGraeme Gregorysource "drivers/acpi/Kconfig" 2442b6a02173SGraeme Gregory 2443c3eb5b14SMarc Zyngiersource "arch/arm64/kvm/Kconfig" 2444c3eb5b14SMarc Zyngier 2445