xref: /linux/arch/arm/Kconfig (revision 0fe792fa9b616b790f03cbeed067b83eeaae7e7e)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvaldsconfig ARM
31da177e4SLinus Torvalds	bool
41da177e4SLinus Torvalds	default y
5942fa985SYury Norov	select ARCH_32BIT_OFF_T
6fed240d9SMasami Hiramatsu	select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE if HAVE_KRETPROBES && FRAME_POINTER && !ARM_UNWIND
7aef0f78eSChristoph Hellwig	select ARCH_HAS_BINFMT_FLAT
8a9ff9447SDmitry Baryshkov	select ARCH_HAS_CACHE_LINE_SIZE if OF
93df8585aSThomas Weissschuh	select ARCH_HAS_CC_CAN_LINK
108690bbcfSMathieu Desnoyers	select ARCH_HAS_CPU_CACHE_ALIASING
11ee31bb05SThomas Gleixner	select ARCH_HAS_CPU_FINALIZE_INIT if MMU
122792d84eSKees Cook	select ARCH_HAS_CURRENT_STACK_POINTER
13c7780ab5SVladimir Murzin	select ARCH_HAS_DEBUG_VIRTUAL if MMU
14dfc256daSThomas Gleixner	select ARCH_HAS_DELAY_TIMER
152c8ed1b9SChristoph Hellwig	select ARCH_HAS_DMA_ALLOC if MMU
16de6c85bfSChristoph Hellwig	select ARCH_HAS_DMA_OPS
17419e2f18SChristoph Hellwig	select ARCH_HAS_DMA_WRITE_COMBINE if !ARM_DMA_MEM_BUFFERABLE
182b68f6caSKees Cook	select ARCH_HAS_ELF_RANDOMIZE
19ee333554SJinbum Park	select ARCH_HAS_FORTIFY_SOURCE
20d8ae8a37SChristoph Hellwig	select ARCH_HAS_KEEPINITRD
2175851720SDmitry Vyukov	select ARCH_HAS_KCOV
22e69244d2SWill Deacon	select ARCH_HAS_MEMBARRIER_SYNC_CORE
230ebeea8cSDaniel Borkmann	select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
243010a5eaSLaurent Dufour	select ARCH_HAS_PTE_SPECIAL if ARM_LPAE
25347cb6afSChristoph Hellwig	select ARCH_HAS_SETUP_DMA_OPS
2675851720SDmitry Vyukov	select ARCH_HAS_SET_MEMORY
279fbed16cSLi Huafei	select ARCH_STACKWALK
28ad21fc4fSLaura Abbott	select ARCH_HAS_STRICT_KERNEL_RWX if MMU && !XIP_KERNEL
29ad21fc4fSLaura Abbott	select ARCH_HAS_STRICT_MODULE_RWX if MMU
30ae626eb9SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
31ae626eb9SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU
32dc2acdedSChristoph Hellwig	select ARCH_HAS_TEARDOWN_DMA_OPS if MMU
333d06770eSMark Rutland	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
349aaf9bb7SDaniel Thompson	select ARCH_HAVE_NMI_SAFE_CMPXCHG if CPU_V7 || CPU_V7M || CPU_V6K
35957e3facSRiku Voipio	select ARCH_HAS_GCOV_PROFILE_ALL
365e545df3SMike Rapoport	select ARCH_KEEP_MEMBLOCK
37918327e9SKees Cook	select ARCH_HAS_UBSAN
38d7018848SMark Salter	select ARCH_MIGHT_HAVE_PC_PARPORT
39ad21fc4fSLaura Abbott	select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX
40ad21fc4fSLaura Abbott	select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT if CPU_V7
41f1b56448SPaul E. McKenney	select ARCH_NEED_CMPXCHG_1_EMU if CPU_V6
424badad35SPeter Zijlstra	select ARCH_SUPPORTS_ATOMIC_RMW
4323ef9d43SKees Cook	select ARCH_SUPPORTS_CFI
44855f9a8eSAnshuman Khandual	select ARCH_SUPPORTS_HUGETLBFS if ARM_LPAE
45c16af121SWang Kefeng	select ARCH_SUPPORTS_PER_VMA_LOCK
46c6e61c06SSebastian Andrzej Siewior	select ARCH_SUPPORTS_RT
47017f161aSKim Phillips	select ARCH_USE_BUILTIN_BSWAP
480cbad9c9SWill Deacon	select ARCH_USE_CMPXCHG_LOCKREF
49dce44566SAnshuman Khandual	select ARCH_USE_MEMTEST
501ed9e6b1SNathan Chancellor	# https://github.com/llvm/llvm-project/commit/d130f402642fba3d065aacb506cb061c899558de
511ed9e6b1SNathan Chancellor	select ARCH_USES_CFI_GENERIC_LLVM_PASS if CLANG_VERSION < 220000
52dba79c3dSAlexandre Ghiti	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
5307431506SAnshuman Khandual	select ARCH_WANT_GENERAL_HUGETLB
54b1b3f49cSRussell King	select ARCH_WANT_IPC_PARSE_VERSION
5559612b24SNathan Chancellor	select ARCH_WANT_LD_ORPHAN_WARN
56bdd15a28SChristoph Hellwig	select BINFMT_FLAT_ARGVP_ENVP_ON_STACK
5710916706SShile Zhang	select BUILDTIME_TABLE_SORT if MMU
586fd09c9aSArnd Bergmann	select COMMON_CLK if !(ARCH_RPC || ARCH_FOOTBRIDGE)
59171b3f0dSRussell King	select CLONE_BACKWARDS
60f00790aaSRussell King	select CPU_PM if SUSPEND || CPU_IDLE
61dce5c9e3SWill Deacon	select DCACHE_WORD_ACCESS if HAVE_EFFICIENT_UNALIGNED_ACCESS
62ff4c25f2SChristoph Hellwig	select DMA_DECLARE_COHERENT
6331b089bbSChristoph Hellwig	select DMA_GLOBAL_POOL if !MMU
64f5ff79fdSChristoph Hellwig	select DMA_NONCOHERENT_MMAP if MMU
65b01aec9bSBorislav Petkov	select EDAC_SUPPORT
66b01aec9bSBorislav Petkov	select EDAC_ATOMIC_SCRUB
6736d0fd21SLaura Abbott	select GENERIC_ALLOCATOR
682ef7a295SJuri Lelli	select GENERIC_ARCH_TOPOLOGY if ARM_CPU_TOPOLOGY
69f00790aaSRussell King	select GENERIC_ATOMIC64 if CPU_V7M || CPU_V6 || !CPU_32v6K || !AEABI
70b1b3f49cSRussell King	select GENERIC_CLOCKEVENTS_BROADCAST if SMP
7156afcd3dSMarc Zyngier	select GENERIC_IRQ_IPI if SMP
72ea2d9a96SArd Biesheuvel	select GENERIC_CPU_AUTOPROBE
73609face0SJinjie Ruan	select GENERIC_CPU_DEVICES
742937367bSArd Biesheuvel	select GENERIC_EARLY_IOREMAP
75171b3f0dSRussell King	select GENERIC_IDLE_POLL_SETUP
76234a0f20SArnd Bergmann	select GENERIC_IRQ_MULTI_HANDLER
77b1b3f49cSRussell King	select GENERIC_IRQ_PROBE
78b1b3f49cSRussell King	select GENERIC_IRQ_SHOW
797c07005eSGeert Uytterhoeven	select GENERIC_IRQ_SHOW_LEVEL
80914ee966SPalmer Dabbelt	select GENERIC_LIB_DEVMEM_IS_ALLOWED
81b1b3f49cSRussell King	select GENERIC_PCI_IOMAP
8238ff87f7SStephen Boyd	select GENERIC_SCHED_CLOCK
83b1b3f49cSRussell King	select GENERIC_SMP_IDLE_THREAD
84b1b3f49cSRussell King	select HARDIRQS_SW_RESEND
85fcbfe812SNiklas Schnelle	select HAS_IOPORT
86f00790aaSRussell King	select HAVE_ARCH_AUDITSYSCALL if AEABI && !OABI_COMPAT
8742d9c75eSYury Norov	select HAVE_ARCH_BITREVERSE if (CPU_32v7M || CPU_32v7) && !CPU_32v6 && BITREVERSE
88256d97d3SThomas Gleixner	select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL && !CPU_ENDIAN_BE32 && MMU && (!PREEMPT_RT || !SMP)
8975969686SWang Kefeng	select HAVE_ARCH_KFENCE if MMU && !XIP_KERNEL
90437682eeSArnd Bergmann	select HAVE_ARCH_KGDB if !CPU_ENDIAN_BE32 && MMU
9142101571SLinus Walleij	select HAVE_ARCH_KASAN if MMU && !XIP_KERNEL
92565cbaadSLecopzer Chen	select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
9357fbad15SKees Cook	select HAVE_ARCH_KSTACK_ERASE
94e0c25d95SDaniel Cashman	select HAVE_ARCH_MMAP_RND_BITS if MMU
954f5b0c17SMike Rapoport	select HAVE_ARCH_PFN_VALID
96282a181bSYiFei Zhu	select HAVE_ARCH_SECCOMP
97f00790aaSRussell King	select HAVE_ARCH_SECCOMP_FILTER if AEABI && !OABI_COMPAT
9808626a60SKees Cook	select HAVE_ARCH_THREAD_STRUCT_WHITELIST
990693bf68SWade Farnsworth	select HAVE_ARCH_TRACEHOOK
100e8003bf6SAnshuman Khandual	select HAVE_ARCH_TRANSPARENT_HUGEPAGE if ARM_LPAE
101b329f95dSJens Wiklander	select HAVE_ARM_SMCCC if CPU_V7
1027e8ee82eSEthan Nelson-Moore	select HAVE_EBPF_JIT if !CPU_ENDIAN_BE32 && !CPU_32v3
10324a9c541SFrederic Weisbecker	select HAVE_CONTEXT_TRACKING_USER
104b1b3f49cSRussell King	select HAVE_C_RECORDMCOUNT
1054ed308c4SSteven Rostedt (Google)	select HAVE_BUILDTIME_MCOUNT_SORT
106bc420c6cSVincenzo Frascino	select HAVE_DEBUG_KMEMLEAK if !XIP_KERNEL
107b1b3f49cSRussell King	select HAVE_DMA_CONTIGUOUS if MMU
1089f0cb917SSteven Rostedt	select HAVE_EXTRA_IPI_TRACEPOINTS
109f00790aaSRussell King	select HAVE_DYNAMIC_FTRACE if !XIP_KERNEL && !CPU_ENDIAN_BE32 && MMU
110620176f3SAbel Vesa	select HAVE_DYNAMIC_FTRACE_WITH_REGS if HAVE_DYNAMIC_FTRACE
111dce5c9e3SWill Deacon	select HAVE_EFFICIENT_UNALIGNED_ACCESS if (CPU_V6 || CPU_V6K || CPU_V7) && MMU
1125f56a5dfSJiri Slaby	select HAVE_EXIT_THREAD
11325176ad0SDavid Hildenbrand	select HAVE_GUP_FAST if ARM_LPAE
114aaa4dd1bSWang Kefeng	select HAVE_FUNCTION_ERROR_INJECTION
11541918ec8SArd Biesheuvel	select HAVE_FUNCTION_GRAPH_TRACER
1169aa791c8SRichard Weinberger	select HAVE_FUNCTION_GRAPH_FREGS
117d6800ca7SArd Biesheuvel	select HAVE_FUNCTION_TRACER if !XIP_KERNEL
1186b90bd4bSEmese Revfy	select HAVE_GCC_PLUGINS
119f00790aaSRussell King	select HAVE_HW_BREAKPOINT if PERF_EVENTS && (CPU_V6 || CPU_V6K || CPU_V7)
12087c46b6cSRussell King	select HAVE_IRQ_TIME_ACCOUNTING
121b1b3f49cSRussell King	select HAVE_KERNEL_GZIP
122f9b493acSKyungsik Lee	select HAVE_KERNEL_LZ4
123b1b3f49cSRussell King	select HAVE_KERNEL_LZMA
124b1b3f49cSRussell King	select HAVE_KERNEL_LZO
125b1b3f49cSRussell King	select HAVE_KERNEL_XZ
126cb1293e2SArnd Bergmann	select HAVE_KPROBES if !XIP_KERNEL && !CPU_ENDIAN_BE32 && !CPU_V7M
127f00790aaSRussell King	select HAVE_KRETPROBES if HAVE_KPROBES
12853e7e1fbSNathan Chancellor	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if (LD_VERSION >= 23600 || LD_IS_LLD) && LD_CAN_USE_KEEP_IN_OVERLAY
1297d485f64SArd Biesheuvel	select HAVE_MOD_ARCH_SPECIFIC
13042a0bb3fSPetr Mladek	select HAVE_NMI
1310dc016dbSWang Nan	select HAVE_OPTPROBES if !THUMB2_KERNEL
1325394f1e9SArnd Bergmann	select HAVE_PAGE_SIZE_4KB
13347723de8SArnd Bergmann	select HAVE_PCI if MMU
1347ada189fSJamie Iles	select HAVE_PERF_EVENTS
13549863894SWill Deacon	select HAVE_PERF_REGS
13649863894SWill Deacon	select HAVE_PERF_USER_STACK_DUMP
137*8a58a411SKarl Mehltretter	select HAVE_POSIX_CPU_TIMERS_TASK_WORK
138ff2e6d72SPeter Zijlstra	select MMU_GATHER_RCU_TABLE_FREE if SMP && ARM_LPAE
139e513f8bfSWill Deacon	select HAVE_REGS_AND_STACK_ACCESS_API
1409800b9dcSMathieu Desnoyers	select HAVE_RSEQ
14184a0f7caSNathan Chancellor	select HAVE_RUST if CPU_LITTLE_ENDIAN && CPU_32v7 && !KASAN
142d148eac0SMasahiro Yamada	select HAVE_STACKPROTECTOR
143b1b3f49cSRussell King	select HAVE_SYSCALL_TRACEPOINTS
144af1839ebSCatalin Marinas	select HAVE_UID16
14531c1fc81SKevin Hilman	select HAVE_VIRT_CPU_ACCOUNTING_GEN
1465490e769SThomas Gleixner	select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
147da0ec6f7SThomas Gleixner	select IRQ_FORCED_THREADING
1488b35ca3eSBen Hutchings	select LOCK_MM_AND_FIND_VMA
149171b3f0dSRussell King	select MODULES_USE_ELF_REL
150f616ab59SChristoph Hellwig	select NEED_DMA_MAP_STATE
151aa7d5f18SArnd Bergmann	select OF_EARLY_FLATTREE if OF
152171b3f0dSRussell King	select OLD_SIGACTION
153171b3f0dSRussell King	select OLD_SIGSUSPEND3
1546fd09c9aSArnd Bergmann	select PCI_DOMAINS_GENERIC if PCI
15520f1b79dSChristoph Hellwig	select PCI_SYSCALL if PCI
156b1b3f49cSRussell King	select PERF_USE_VMALLOC
157b1b3f49cSRussell King	select RTC_LIB
1586fd09c9aSArnd Bergmann	select SPARSE_IRQ if !(ARCH_FOOTBRIDGE || ARCH_RPC)
159b1b3f49cSRussell King	select SYS_SUPPORTS_APM_EMULATION
1609c46929eSArd Biesheuvel	select THREAD_INFO_IN_TASK
1616fd09c9aSArnd Bergmann	select TIMER_OF if OF
162d6905849SArd Biesheuvel	select HAVE_ARCH_VMAP_STACK if MMU && ARM_HAS_GROUP_RELOCS
1634aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT if !CPU_V7M
1646fd09c9aSArnd Bergmann	select USE_OF if !(ARCH_FOOTBRIDGE || ARCH_RPC || ARCH_SA1100)
165171b3f0dSRussell King	# Above selects are sorted alphabetically; please add new ones
166171b3f0dSRussell King	# according to that.  Thanks.
1671da177e4SLinus Torvalds	help
1681da177e4SLinus Torvalds	  The ARM series is a line of low-power-consumption RISC chip designs
169f6c8965aSMartin Michlmayr	  licensed by ARM Ltd and targeted at embedded applications and
1701da177e4SLinus Torvalds	  handhelds such as the Compaq IPAQ.  ARM-based PCs are no longer
1711da177e4SLinus Torvalds	  manufactured, but legacy ARM-based PC hardware remains popular in
1721da177e4SLinus Torvalds	  Europe.  There is an ARM Linux project with a web page at
1731da177e4SLinus Torvalds	  <http://www.arm.linux.org.uk/>.
1741da177e4SLinus Torvalds
175d6905849SArd Biesheuvelconfig ARM_HAS_GROUP_RELOCS
17602aba266SNathan Chancellor	def_bool !COMPILE_TEST
177d6905849SArd Biesheuvel	help
178d6905849SArd Biesheuvel	  Whether or not to use R_ARM_ALU_PC_Gn or R_ARM_LDR_PC_Gn group
17902aba266SNathan Chancellor	  relocations. The combined range is -/+ 256 MiB, which is usually
18002aba266SNathan Chancellor	  sufficient, but not for allyesconfig, so we disable this feature
18102aba266SNathan Chancellor	  when doing compile testing.
182d6905849SArd Biesheuvel
1834ce63fcdSMarek Szyprowskiconfig ARM_DMA_USE_IOMMU
1844ce63fcdSMarek Szyprowski	bool
185b1b3f49cSRussell King	select NEED_SG_DMA_LENGTH
1864ce63fcdSMarek Szyprowski
18760460abfSSeung-Woo Kimif ARM_DMA_USE_IOMMU
18860460abfSSeung-Woo Kim
18960460abfSSeung-Woo Kimconfig ARM_DMA_IOMMU_ALIGNMENT
19060460abfSSeung-Woo Kim	int "Maximum PAGE_SIZE order of alignment for DMA IOMMU buffers"
19160460abfSSeung-Woo Kim	range 4 9
19260460abfSSeung-Woo Kim	default 8
19360460abfSSeung-Woo Kim	help
19460460abfSSeung-Woo Kim	  DMA mapping framework by default aligns all buffers to the smallest
19560460abfSSeung-Woo Kim	  PAGE_SIZE order which is greater than or equal to the requested buffer
19660460abfSSeung-Woo Kim	  size. This works well for buffers up to a few hundreds kilobytes, but
19760460abfSSeung-Woo Kim	  for larger buffers it just a waste of address space. Drivers which has
19860460abfSSeung-Woo Kim	  relatively small addressing window (like 64Mib) might run out of
19960460abfSSeung-Woo Kim	  virtual space with just a few allocations.
20060460abfSSeung-Woo Kim
20160460abfSSeung-Woo Kim	  With this parameter you can specify the maximum PAGE_SIZE order for
20260460abfSSeung-Woo Kim	  DMA IOMMU buffers. Larger buffers will be aligned only to this
20360460abfSSeung-Woo Kim	  specified order. The order is expressed as a power of two multiplied
20460460abfSSeung-Woo Kim	  by the PAGE_SIZE.
20560460abfSSeung-Woo Kim
20660460abfSSeung-Woo Kimendif
20760460abfSSeung-Woo Kim
20875e7153aSRalf Baechleconfig SYS_SUPPORTS_APM_EMULATION
20975e7153aSRalf Baechle	bool
21075e7153aSRalf Baechle
211bc581770SLinus Walleijconfig HAVE_TCM
212bc581770SLinus Walleij	bool
213bc581770SLinus Walleij	select GENERIC_ALLOCATOR
214bc581770SLinus Walleij
215e119bfffSRussell Kingconfig HAVE_PROC_CPU
216e119bfffSRussell King	bool
217e119bfffSRussell King
218ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP
2195ea81769SAl Viro	bool
2205ea81769SAl Viro
2211da177e4SLinus Torvaldsconfig SBUS
2221da177e4SLinus Torvalds	bool
2231da177e4SLinus Torvalds
224f16fb1ecSRussell Kingconfig STACKTRACE_SUPPORT
225f16fb1ecSRussell King	bool
226f16fb1ecSRussell King	default y
227f16fb1ecSRussell King
228f16fb1ecSRussell Kingconfig LOCKDEP_SUPPORT
229f16fb1ecSRussell King	bool
230f16fb1ecSRussell King	default y
231f16fb1ecSRussell King
232f0d1b0b3SDavid Howellsconfig ARCH_HAS_ILOG2_U32
233f0d1b0b3SDavid Howells	bool
234f0d1b0b3SDavid Howells
235f0d1b0b3SDavid Howellsconfig ARCH_HAS_ILOG2_U64
236f0d1b0b3SDavid Howells	bool
237f0d1b0b3SDavid Howells
2384a1b5733SEduardo Valentinconfig ARCH_HAS_BANDGAP
2394a1b5733SEduardo Valentin	bool
2404a1b5733SEduardo Valentin
241a5f4c561SStefan Agnerconfig FIX_EARLYCON_MEM
242a5f4c561SStefan Agner	def_bool y if MMU
243a5f4c561SStefan Agner
244b89c3b16SAkinobu Mitaconfig GENERIC_HWEIGHT
245b89c3b16SAkinobu Mita	bool
246b89c3b16SAkinobu Mita	default y
247b89c3b16SAkinobu Mita
2481da177e4SLinus Torvaldsconfig GENERIC_CALIBRATE_DELAY
2491da177e4SLinus Torvalds	bool
2501da177e4SLinus Torvalds	default y
2511da177e4SLinus Torvalds
252a08b6b79Sviro@ZenIV.linux.org.ukconfig ARCH_MAY_HAVE_PC_FDC
253a08b6b79Sviro@ZenIV.linux.org.uk	bool
254a08b6b79Sviro@ZenIV.linux.org.uk
255c7edc9e3SDavid A. Longconfig ARCH_SUPPORTS_UPROBES
256c7edc9e3SDavid A. Long	def_bool y
257c7edc9e3SDavid A. Long
2581da177e4SLinus Torvaldsconfig GENERIC_ISA_DMA
2591da177e4SLinus Torvalds	bool
2601da177e4SLinus Torvalds
2611da177e4SLinus Torvaldsconfig FIQ
2621da177e4SLinus Torvalds	bool
2631da177e4SLinus Torvalds
264034d2f5aSAl Viroconfig ARCH_MTD_XIP
265034d2f5aSAl Viro	bool
266034d2f5aSAl Viro
267dc21af99SRussell Kingconfig ARM_PATCH_PHYS_VIRT
268ef815d2cSRandy Dunlap	bool "Patch physical to virtual translations at runtime" if !ARCH_MULTIPLATFORM
269c1becedcSRussell King	default y
2705408445bSArnd Bergmann	depends on MMU
271dc21af99SRussell King	help
272111e9a5cSRussell King	  Patch phys-to-virt and virt-to-phys translation functions at
273111e9a5cSRussell King	  boot and module load time according to the position of the
274111e9a5cSRussell King	  kernel in system memory.
275dc21af99SRussell King
276111e9a5cSRussell King	  This can only be used with non-XIP MMU kernels where the base
2779443076eSArd Biesheuvel	  of physical memory is at a 2 MiB boundary.
278dc21af99SRussell King
279c1becedcSRussell King	  Only disable this option if you know that you do not require
280c1becedcSRussell King	  this feature (eg, building a kernel for a single machine) and
281c1becedcSRussell King	  you need to shrink the kernel to the minimal size.
282c1becedcSRussell King
283c334bc15SRob Herringconfig NEED_MACH_IO_H
284c334bc15SRob Herring	bool
285c334bc15SRob Herring	help
286c334bc15SRob Herring	  Select this when mach/io.h is required to provide special
287c334bc15SRob Herring	  definitions for this platform.  The need for mach/io.h should
288c334bc15SRob Herring	  be avoided when possible.
289c334bc15SRob Herring
2900cdc8b92SNicolas Pitreconfig NEED_MACH_MEMORY_H
2911b9f95f8SNicolas Pitre	bool
292111e9a5cSRussell King	help
2930cdc8b92SNicolas Pitre	  Select this when mach/memory.h is required to provide special
2940cdc8b92SNicolas Pitre	  definitions for this platform.  The need for mach/memory.h should
2950cdc8b92SNicolas Pitre	  be avoided when possible.
2961b9f95f8SNicolas Pitre
2971b9f95f8SNicolas Pitreconfig PHYS_OFFSET
298974c0724SNicolas Pitre	hex "Physical address of main memory" if MMU
29992481c7dSArnd Bergmann	depends on !ARM_PATCH_PHYS_VIRT || !AUTO_ZRELADDR
300974c0724SNicolas Pitre	default DRAM_BASE if !MMU
30106954b6aSLinus Walleij	default 0x00000000 if ARCH_FOOTBRIDGE
302c6f54a9bSUwe Kleine-König	default 0x10000000 if ARCH_OMAP1 || ARCH_RPC
303b91a69d1SArnd Bergmann	default 0xa0000000 if ARCH_PXA
304c6e77bb6SArnd Bergmann	default 0xc0000000 if ARCH_EP93XX || ARCH_SA1100
305c6e77bb6SArnd Bergmann	default 0
3061b9f95f8SNicolas Pitre	help
3071b9f95f8SNicolas Pitre	  Please provide the physical address corresponding to the
3081b9f95f8SNicolas Pitre	  location of main memory in your system.
309cada3c08SRussell King
31087e040b6SSimon Glassconfig GENERIC_BUG
31187e040b6SSimon Glass	def_bool y
31287e040b6SSimon Glass	depends on BUG
31387e040b6SSimon Glass
3141bcad26eSKirill A. Shutemovconfig PGTABLE_LEVELS
3151bcad26eSKirill A. Shutemov	int
3161bcad26eSKirill A. Shutemov	default 3 if ARM_LPAE
3171bcad26eSKirill A. Shutemov	default 2
3181bcad26eSKirill A. Shutemov
3191da177e4SLinus Torvaldsmenu "System Type"
3201da177e4SLinus Torvalds
3213c427975SHyok S. Choiconfig MMU
3223c427975SHyok S. Choi	bool "MMU-based Paged Memory Management Support"
3233c427975SHyok S. Choi	default y
3243c427975SHyok S. Choi	help
3253c427975SHyok S. Choi	  Select if you want MMU-based virtualised addressing space
3263c427975SHyok S. Choi	  support by paged memory management. If unsure, say 'Y'.
3273c427975SHyok S. Choi
3282f618d5eSArnd Bergmannconfig ARM_SINGLE_ARMV7M
3292f618d5eSArnd Bergmann	def_bool !MMU
3302f618d5eSArnd Bergmann	select ARM_NVIC
3312f618d5eSArnd Bergmann	select CPU_V7M
3322f618d5eSArnd Bergmann	select NO_IOPORT_MAP
3332f618d5eSArnd Bergmann
334e0c25d95SDaniel Cashmanconfig ARCH_MMAP_RND_BITS_MIN
335e0c25d95SDaniel Cashman	default 8
336e0c25d95SDaniel Cashman
337e0c25d95SDaniel Cashmanconfig ARCH_MMAP_RND_BITS_MAX
338e0c25d95SDaniel Cashman	default 14 if PAGE_OFFSET=0x40000000
339e0c25d95SDaniel Cashman	default 15 if PAGE_OFFSET=0x80000000
340e0c25d95SDaniel Cashman	default 16
341e0c25d95SDaniel Cashman
342387798b3SRob Herringconfig ARCH_MULTIPLATFORM
34384fc8636SArnd Bergmann	bool "Require kernel to be portable to multiple machines" if EXPERT
34484fc8636SArnd Bergmann	depends on MMU && !(ARCH_FOOTBRIDGE || ARCH_RPC || ARCH_SA1100)
34584fc8636SArnd Bergmann	default y
346f999b8bdSMartin Michlmayr	help
34784fc8636SArnd Bergmann	  In general, all Arm machines can be supported in a single
34884fc8636SArnd Bergmann	  kernel image, covering either Armv4/v5 or Armv6/v7.
3491da177e4SLinus Torvalds
35084fc8636SArnd Bergmann	  However, some configuration options require hardcoding machine
35184fc8636SArnd Bergmann	  specific physical addresses or enable errata workarounds that may
35284fc8636SArnd Bergmann	  break other machines.
3531da177e4SLinus Torvalds
35484fc8636SArnd Bergmann	  Selecting N here allows using those options, including
35584fc8636SArnd Bergmann	  DEBUG_UNCOMPRESS, XIP_KERNEL and ZBOOT_ROM. If unsure, say Y.
3561da177e4SLinus Torvalds
35720e3ab9eSAndrew Davissource "arch/arm/Kconfig.platforms"
3582cf1c348SJohn Crispin
359ccf50e23SRussell King#
360ccf50e23SRussell King# This is sorted alphabetically by mach-* pathname.  However, plat-*
361ccf50e23SRussell King# Kconfigs may be included either alphabetically (according to the
362ccf50e23SRussell King# plat- suffix) or along side the corresponding mach-* source.
363ccf50e23SRussell King#
3646bb8536cSAndreas Färbersource "arch/arm/mach-actions/Kconfig"
3656bb8536cSAndreas Färber
366445d9b30STsahee Zidenbergsource "arch/arm/mach-alpine/Kconfig"
367445d9b30STsahee Zidenberg
368590b460cSLars Perssonsource "arch/arm/mach-artpec/Kconfig"
369590b460cSLars Persson
370a66c51f9SAlexandre Bellonisource "arch/arm/mach-aspeed/Kconfig"
371a66c51f9SAlexandre Belloni
37295b8f20fSRussell Kingsource "arch/arm/mach-at91/Kconfig"
37395b8f20fSRussell King
3741d22924eSAnders Bergsource "arch/arm/mach-axxia/Kconfig"
3751d22924eSAnders Berg
3768ac49e04SChristian Daudtsource "arch/arm/mach-bcm/Kconfig"
3778ac49e04SChristian Daudt
3781c37fa10SSebastian Hesselbarthsource "arch/arm/mach-berlin/Kconfig"
3791c37fa10SSebastian Hesselbarth
3801da177e4SLinus Torvaldssource "arch/arm/mach-clps711x/Kconfig"
3811da177e4SLinus Torvalds
38295b8f20fSRussell Kingsource "arch/arm/mach-davinci/Kconfig"
38395b8f20fSRussell King
384df8d742eSBaruch Siachsource "arch/arm/mach-digicolor/Kconfig"
385df8d742eSBaruch Siach
38695b8f20fSRussell Kingsource "arch/arm/mach-dove/Kconfig"
38795b8f20fSRussell King
388e7736d47SLennert Buytenheksource "arch/arm/mach-ep93xx/Kconfig"
389e7736d47SLennert Buytenhek
390a66c51f9SAlexandre Bellonisource "arch/arm/mach-exynos/Kconfig"
391a66c51f9SAlexandre Belloni
3921da177e4SLinus Torvaldssource "arch/arm/mach-footbridge/Kconfig"
3931da177e4SLinus Torvalds
39459d3a193SPaulius Zaleckassource "arch/arm/mach-gemini/Kconfig"
39559d3a193SPaulius Zaleckas
396387798b3SRob Herringsource "arch/arm/mach-highbank/Kconfig"
397387798b3SRob Herring
398389ee0c2SHaojian Zhuangsource "arch/arm/mach-hisi/Kconfig"
399389ee0c2SHaojian Zhuang
400a66c51f9SAlexandre Bellonisource "arch/arm/mach-imx/Kconfig"
401a66c51f9SAlexandre Belloni
4021da177e4SLinus Torvaldssource "arch/arm/mach-ixp4xx/Kconfig"
4031da177e4SLinus Torvalds
404828989adSSantosh Shilimkarsource "arch/arm/mach-keystone/Kconfig"
405828989adSSantosh Shilimkar
40675bf1bd7SArnd Bergmannsource "arch/arm/mach-lpc32xx/Kconfig"
40795b8f20fSRussell King
408a66c51f9SAlexandre Bellonisource "arch/arm/mach-mediatek/Kconfig"
409a66c51f9SAlexandre Belloni
4103b8f5030SCarlo Caionesource "arch/arm/mach-meson/Kconfig"
4113b8f5030SCarlo Caione
4129fb29c73SSugaya Taichisource "arch/arm/mach-milbeaut/Kconfig"
4139fb29c73SSugaya Taichi
414a66c51f9SAlexandre Bellonisource "arch/arm/mach-mmp/Kconfig"
415a66c51f9SAlexandre Belloni
416312b62b6SDaniel Palmersource "arch/arm/mach-mstar/Kconfig"
417312b62b6SDaniel Palmer
418794d15b2SStanislav Samsonovsource "arch/arm/mach-mv78xx0/Kconfig"
419794d15b2SStanislav Samsonov
420a66c51f9SAlexandre Bellonisource "arch/arm/mach-mvebu/Kconfig"
421f682a218SMatthias Brugger
4221d3f33d5SShawn Guosource "arch/arm/mach-mxs/Kconfig"
4231d3f33d5SShawn Guo
42495b8f20fSRussell Kingsource "arch/arm/mach-nomadik/Kconfig"
42595b8f20fSRussell King
4267bffa14cSBrendan Higginssource "arch/arm/mach-npcm/Kconfig"
4277bffa14cSBrendan Higgins
428d48af15eSTony Lindgrensource "arch/arm/mach-omap1/Kconfig"
4291da177e4SLinus Torvalds
4301dbae815STony Lindgrensource "arch/arm/mach-omap2/Kconfig"
4311dbae815STony Lindgren
4329dd0b194SLennert Buytenheksource "arch/arm/mach-orion5x/Kconfig"
433585cf175STzachi Perelstein
43495b8f20fSRussell Kingsource "arch/arm/mach-pxa/Kconfig"
4351da177e4SLinus Torvalds
4368fc1b0f8SKumar Galasource "arch/arm/mach-qcom/Kconfig"
4378fc1b0f8SKumar Gala
43886aeee4dSAndreas Färbersource "arch/arm/mach-realtek/Kconfig"
43986aeee4dSAndreas Färber
4406fd09c9aSArnd Bergmannsource "arch/arm/mach-rpc/Kconfig"
4416fd09c9aSArnd Bergmann
442d63dc051SHeiko Stuebnersource "arch/arm/mach-rockchip/Kconfig"
443d63dc051SHeiko Stuebner
44471b9114dSArnd Bergmannsource "arch/arm/mach-s3c/Kconfig"
445a66c51f9SAlexandre Belloni
446a66c51f9SAlexandre Bellonisource "arch/arm/mach-s5pv210/Kconfig"
447a66c51f9SAlexandre Belloni
44895b8f20fSRussell Kingsource "arch/arm/mach-sa1100/Kconfig"
449edabd38eSSaeed Bishara
450a66c51f9SAlexandre Bellonisource "arch/arm/mach-shmobile/Kconfig"
451a66c51f9SAlexandre Belloni
452387798b3SRob Herringsource "arch/arm/mach-socfpga/Kconfig"
453387798b3SRob Herring
454a7ed099fSArnd Bergmannsource "arch/arm/mach-spear/Kconfig"
455a21765a7SBen Dooks
45665ebcc11SSrinivas Kandagatlasource "arch/arm/mach-sti/Kconfig"
45765ebcc11SSrinivas Kandagatla
458bcb84fb4SAlexandre TORGUEsource "arch/arm/mach-stm32/Kconfig"
459bcb84fb4SAlexandre TORGUE
4603b52634fSMaxime Ripardsource "arch/arm/mach-sunxi/Kconfig"
4613b52634fSMaxime Ripard
462c5f80065SErik Gillingsource "arch/arm/mach-tegra/Kconfig"
463c5f80065SErik Gilling
46495b8f20fSRussell Kingsource "arch/arm/mach-ux500/Kconfig"
4651da177e4SLinus Torvalds
4661da177e4SLinus Torvaldssource "arch/arm/mach-versatile/Kconfig"
4671da177e4SLinus Torvalds
4686f35f9a9STony Prisksource "arch/arm/mach-vt8500/Kconfig"
4696f35f9a9STony Prisk
470220ae5d3SStefan Dösingersource "arch/arm/mach-zte/Kconfig"
471220ae5d3SStefan Dösinger
4729a45eb69SJosh Cartwrightsource "arch/arm/mach-zynq/Kconfig"
4739a45eb69SJosh Cartwright
474499f1640SStefan Agner# ARMv7-M architecture
475499f1640SStefan Agnerconfig ARCH_LPC18XX
476f70425caSArnd Bergmann	bool "NXP LPC18xx/LPC43xx (DEPRECATED)"
477499f1640SStefan Agner	depends on ARM_SINGLE_ARMV7M
478499f1640SStefan Agner	select ARCH_HAS_RESET_CONTROLLER
479499f1640SStefan Agner	select ARM_AMBA
480499f1640SStefan Agner	select CLKSRC_LPC32XX
481499f1640SStefan Agner	select PINCTRL
482499f1640SStefan Agner	help
483499f1640SStefan Agner	  Support for NXP's LPC18xx Cortex-M3 and LPC43xx Cortex-M4
484499f1640SStefan Agner	  high performance microcontrollers.
485499f1640SStefan Agner
486f70425caSArnd Bergmann	  This platform is scheduled for removal in early 2027
487f70425caSArnd Bergmann
4881847119dSVladimir Murzinconfig ARCH_MPS2
489f70425caSArnd Bergmann	bool "ARM MPS2 platform (DEPRECATED)"
4901847119dSVladimir Murzin	depends on ARM_SINGLE_ARMV7M
4911847119dSVladimir Murzin	select ARM_AMBA
4921847119dSVladimir Murzin	select CLKSRC_MPS2
4931847119dSVladimir Murzin	help
4941847119dSVladimir Murzin	  Support for Cortex-M Prototyping System (or V2M-MPS2) which comes
4951847119dSVladimir Murzin	  with a range of available cores like Cortex-M3/M4/M7.
4961847119dSVladimir Murzin
4971847119dSVladimir Murzin	  Please, note that depends which Application Note is used memory map
4981847119dSVladimir Murzin	  for the platform may vary, so adjustment of RAM base might be needed.
4991847119dSVladimir Murzin
500f70425caSArnd Bergmann	  This platform is scheduled for removal in early 2027
501f70425caSArnd Bergmann
5021da177e4SLinus Torvalds# Definitions to make life easier
5031da177e4SLinus Torvaldsconfig ARCH_ACORN
5041da177e4SLinus Torvalds	bool
5051da177e4SLinus Torvalds
50669b02f6aSLennert Buytenhekconfig PLAT_ORION
50769b02f6aSLennert Buytenhek	bool
508bfe45e0bSRussell King	select CLKSRC_MMIO
509dc7ad3b3SRussell King	select GENERIC_IRQ_CHIP
510278b45b0SAndrew Lunn	select IRQ_DOMAIN
51169b02f6aSLennert Buytenhek
512abcda1dcSThomas Petazzoniconfig PLAT_ORION_LEGACY
513abcda1dcSThomas Petazzoni	bool
514abcda1dcSThomas Petazzoni	select PLAT_ORION
515abcda1dcSThomas Petazzoni
516f4b8b319SRussell Kingconfig PLAT_VERSATILE
517f4b8b319SRussell King	bool
518f4b8b319SRussell King
5198636a1f9SMasahiro Yamadasource "arch/arm/mm/Kconfig"
5201da177e4SLinus Torvalds
521afe4b25eSLennert Buytenhekconfig IWMMXT
5224486f020SArnd Bergmann	bool "Enable iWMMXt support (DEPRECATED)"
5234486f020SArnd Bergmann	depends on PXA27x || PXA3xx || ARCH_MMP
524afe4b25eSLennert Buytenhek	help
525afe4b25eSLennert Buytenhek	  Enable support for iWMMXt context switching at run time if
526afe4b25eSLennert Buytenhek	  running on a CPU that supports it.
527afe4b25eSLennert Buytenhek
5284486f020SArnd Bergmann	  Machines that actually support this feature are very rare,
5294486f020SArnd Bergmann	  and support is deprecated in new gcc-14.  While there were a
5304486f020SArnd Bergmann	  few applications that used this in the past, none are known
5314486f020SArnd Bergmann	  to still do so.
5324486f020SArnd Bergmann
5334486f020SArnd Bergmann	  If you use this, please send a patch to remove the
5344486f020SArnd Bergmann	  deprecation, otherwise this will be removed in early
5354486f020SArnd Bergmann	  2027.
5364486f020SArnd Bergmann
5373b93e7b0SHyok S. Choiif !MMU
5383b93e7b0SHyok S. Choisource "arch/arm/Kconfig-nommu"
5393b93e7b0SHyok S. Choiendif
5403b93e7b0SHyok S. Choi
5413e0a07f8SGregory CLEMENTconfig PJ4B_ERRATA_4742
5423e0a07f8SGregory CLEMENT	bool "PJ4B Errata 4742: IDLE Wake Up Commands can Cause the CPU Core to Cease Operation"
5433e0a07f8SGregory CLEMENT	depends on CPU_PJ4B && MACH_ARMADA_370
5443e0a07f8SGregory CLEMENT	default y
5453e0a07f8SGregory CLEMENT	help
5463e0a07f8SGregory CLEMENT	  When coming out of either a Wait for Interrupt (WFI) or a Wait for
5473e0a07f8SGregory CLEMENT	  Event (WFE) IDLE states, a specific timing sensitivity exists between
5483e0a07f8SGregory CLEMENT	  the retiring WFI/WFE instructions and the newly issued subsequent
5493e0a07f8SGregory CLEMENT	  instructions.  This sensitivity can result in a CPU hang scenario.
5503e0a07f8SGregory CLEMENT	  Workaround:
5513e0a07f8SGregory CLEMENT	  The software must insert either a Data Synchronization Barrier (DSB)
5523e0a07f8SGregory CLEMENT	  or Data Memory Barrier (DMB) command immediately after the WFI/WFE
5533e0a07f8SGregory CLEMENT	  instruction
5543e0a07f8SGregory CLEMENT
555f0c4b8d6SWill Deaconconfig ARM_ERRATA_326103
556f0c4b8d6SWill Deacon	bool "ARM errata: FSR write bit incorrect on a SWP to read-only memory"
557f0c4b8d6SWill Deacon	depends on CPU_V6
558f0c4b8d6SWill Deacon	help
559f0c4b8d6SWill Deacon	  Executing a SWP instruction to read-only memory does not set bit 11
560f0c4b8d6SWill Deacon	  of the FSR on the ARM 1136 prior to r1p0. This causes the kernel to
561f0c4b8d6SWill Deacon	  treat the access as a read, preventing a COW from occurring and
562f0c4b8d6SWill Deacon	  causing the faulting task to livelock.
563f0c4b8d6SWill Deacon
5649cba3cccSCatalin Marinasconfig ARM_ERRATA_411920
5659cba3cccSCatalin Marinas	bool "ARM errata: Invalidation of the Instruction Cache operation can fail"
566e399b1a4SRussell King	depends on CPU_V6 || CPU_V6K
5679cba3cccSCatalin Marinas	help
5689cba3cccSCatalin Marinas	  Invalidation of the Instruction Cache operation can
5699cba3cccSCatalin Marinas	  fail. This erratum is present in 1136 (before r1p4), 1156 and 1176.
5709cba3cccSCatalin Marinas	  It does not affect the MPCore. This option enables the ARM Ltd.
5719cba3cccSCatalin Marinas	  recommended workaround.
5729cba3cccSCatalin Marinas
5737ce236fcSCatalin Marinasconfig ARM_ERRATA_430973
5747ce236fcSCatalin Marinas	bool "ARM errata: Stale prediction on replaced interworking branch"
5757ce236fcSCatalin Marinas	depends on CPU_V7
5767ce236fcSCatalin Marinas	help
5777ce236fcSCatalin Marinas	  This option enables the workaround for the 430973 Cortex-A8
57879403cdaSRussell King	  r1p* erratum. If a code sequence containing an ARM/Thumb
5797ce236fcSCatalin Marinas	  interworking branch is replaced with another code sequence at the
5807ce236fcSCatalin Marinas	  same virtual address, whether due to self-modifying code or virtual
5817ce236fcSCatalin Marinas	  to physical address re-mapping, Cortex-A8 does not recover from the
5827ce236fcSCatalin Marinas	  stale interworking branch prediction. This results in Cortex-A8
5837ce236fcSCatalin Marinas	  executing the new code sequence in the incorrect ARM or Thumb state.
5847ce236fcSCatalin Marinas	  The workaround enables the BTB/BTAC operations by setting ACTLR.IBE
5857ce236fcSCatalin Marinas	  and also flushes the branch target cache at every context switch.
5867ce236fcSCatalin Marinas	  Note that setting specific bits in the ACTLR register may not be
5877ce236fcSCatalin Marinas	  available in non-secure mode.
5887ce236fcSCatalin Marinas
589855c551fSCatalin Marinasconfig ARM_ERRATA_458693
590855c551fSCatalin Marinas	bool "ARM errata: Processor deadlock when a false hazard is created"
591855c551fSCatalin Marinas	depends on CPU_V7
59262e4d357SRob Herring	depends on !ARCH_MULTIPLATFORM
593855c551fSCatalin Marinas	help
594855c551fSCatalin Marinas	  This option enables the workaround for the 458693 Cortex-A8 (r2p0)
595855c551fSCatalin Marinas	  erratum. For very specific sequences of memory operations, it is
596855c551fSCatalin Marinas	  possible for a hazard condition intended for a cache line to instead
597855c551fSCatalin Marinas	  be incorrectly associated with a different cache line. This false
598855c551fSCatalin Marinas	  hazard might then cause a processor deadlock. The workaround enables
599855c551fSCatalin Marinas	  the L1 caching of the NEON accesses and disables the PLD instruction
600855c551fSCatalin Marinas	  in the ACTLR register. Note that setting specific bits in the ACTLR
601368ccecdSSebastian Reichel	  register may not be available in non-secure mode and thus is not
602368ccecdSSebastian Reichel	  available on a multiplatform kernel. This should be applied by the
603368ccecdSSebastian Reichel	  bootloader instead.
604855c551fSCatalin Marinas
6050516e464SCatalin Marinasconfig ARM_ERRATA_460075
6060516e464SCatalin Marinas	bool "ARM errata: Data written to the L2 cache can be overwritten with stale data"
6070516e464SCatalin Marinas	depends on CPU_V7
60862e4d357SRob Herring	depends on !ARCH_MULTIPLATFORM
6090516e464SCatalin Marinas	help
6100516e464SCatalin Marinas	  This option enables the workaround for the 460075 Cortex-A8 (r2p0)
6110516e464SCatalin Marinas	  erratum. Any asynchronous access to the L2 cache may encounter a
6120516e464SCatalin Marinas	  situation in which recent store transactions to the L2 cache are lost
6130516e464SCatalin Marinas	  and overwritten with stale memory contents from external memory. The
6140516e464SCatalin Marinas	  workaround disables the write-allocate mode for the L2 cache via the
6150516e464SCatalin Marinas	  ACTLR register. Note that setting specific bits in the ACTLR register
616368ccecdSSebastian Reichel	  may not be available in non-secure mode and thus is not available on
617368ccecdSSebastian Reichel	  a multiplatform kernel. This should be applied by the bootloader
618368ccecdSSebastian Reichel	  instead.
6190516e464SCatalin Marinas
6209f05027cSWill Deaconconfig ARM_ERRATA_742230
6219f05027cSWill Deacon	bool "ARM errata: DMB operation may be faulty"
6229f05027cSWill Deacon	depends on CPU_V7 && SMP
62362e4d357SRob Herring	depends on !ARCH_MULTIPLATFORM
6249f05027cSWill Deacon	help
6259f05027cSWill Deacon	  This option enables the workaround for the 742230 Cortex-A9
6269f05027cSWill Deacon	  (r1p0..r2p2) erratum. Under rare circumstances, a DMB instruction
6279f05027cSWill Deacon	  between two write operations may not ensure the correct visibility
6289f05027cSWill Deacon	  ordering of the two writes. This workaround sets a specific bit in
6299f05027cSWill Deacon	  the diagnostic register of the Cortex-A9 which causes the DMB
6309f05027cSWill Deacon	  instruction to behave as a DSB, ensuring the correct behaviour of
631368ccecdSSebastian Reichel	  the two writes. Note that setting specific bits in the diagnostics
632368ccecdSSebastian Reichel	  register may not be available in non-secure mode and thus is not
633368ccecdSSebastian Reichel	  available on a multiplatform kernel. This should be applied by the
634368ccecdSSebastian Reichel	  bootloader instead.
6359f05027cSWill Deacon
636a672e99bSWill Deaconconfig ARM_ERRATA_742231
637a672e99bSWill Deacon	bool "ARM errata: Incorrect hazard handling in the SCU may lead to data corruption"
638a672e99bSWill Deacon	depends on CPU_V7 && SMP
63962e4d357SRob Herring	depends on !ARCH_MULTIPLATFORM
640a672e99bSWill Deacon	help
641a672e99bSWill Deacon	  This option enables the workaround for the 742231 Cortex-A9
642a672e99bSWill Deacon	  (r2p0..r2p2) erratum. Under certain conditions, specific to the
643a672e99bSWill Deacon	  Cortex-A9 MPCore micro-architecture, two CPUs working in SMP mode,
644a672e99bSWill Deacon	  accessing some data located in the same cache line, may get corrupted
645a672e99bSWill Deacon	  data due to bad handling of the address hazard when the line gets
646a672e99bSWill Deacon	  replaced from one of the CPUs at the same time as another CPU is
647a672e99bSWill Deacon	  accessing it. This workaround sets specific bits in the diagnostic
648a672e99bSWill Deacon	  register of the Cortex-A9 which reduces the linefill issuing
649368ccecdSSebastian Reichel	  capabilities of the processor. Note that setting specific bits in the
650368ccecdSSebastian Reichel	  diagnostics register may not be available in non-secure mode and thus
651368ccecdSSebastian Reichel	  is not available on a multiplatform kernel. This should be applied by
652368ccecdSSebastian Reichel	  the bootloader instead.
653a672e99bSWill Deacon
65469155794SJon Medhurstconfig ARM_ERRATA_643719
65569155794SJon Medhurst	bool "ARM errata: LoUIS bit field in CLIDR register is incorrect"
65669155794SJon Medhurst	depends on CPU_V7 && SMP
657e5a5de44SRussell King	default y
65869155794SJon Medhurst	help
65969155794SJon Medhurst	  This option enables the workaround for the 643719 Cortex-A9 (prior to
66069155794SJon Medhurst	  r1p0) erratum. On affected cores the LoUIS bit field of the CLIDR
66169155794SJon Medhurst	  register returns zero when it should return one. The workaround
66269155794SJon Medhurst	  corrects this value, ensuring cache maintenance operations which use
66369155794SJon Medhurst	  it behave as intended and avoiding data corruption.
66469155794SJon Medhurst
665cdf357f1SWill Deaconconfig ARM_ERRATA_720789
666cdf357f1SWill Deacon	bool "ARM errata: TLBIASIDIS and TLBIMVAIS operations can broadcast a faulty ASID"
667e66dc745SDave Martin	depends on CPU_V7
668cdf357f1SWill Deacon	help
669cdf357f1SWill Deacon	  This option enables the workaround for the 720789 Cortex-A9 (prior to
670cdf357f1SWill Deacon	  r2p0) erratum. A faulty ASID can be sent to the other CPUs for the
671cdf357f1SWill Deacon	  broadcasted CP15 TLB maintenance operations TLBIASIDIS and TLBIMVAIS.
672cdf357f1SWill Deacon	  As a consequence of this erratum, some TLB entries which should be
673cdf357f1SWill Deacon	  invalidated are not, resulting in an incoherency in the system page
674cdf357f1SWill Deacon	  tables. The workaround changes the TLB flushing routines to invalidate
675cdf357f1SWill Deacon	  entries regardless of the ASID.
676475d92fcSWill Deacon
677475d92fcSWill Deaconconfig ARM_ERRATA_743622
678475d92fcSWill Deacon	bool "ARM errata: Faulty hazard checking in the Store Buffer may lead to data corruption"
679475d92fcSWill Deacon	depends on CPU_V7
68062e4d357SRob Herring	depends on !ARCH_MULTIPLATFORM
681475d92fcSWill Deacon	help
682475d92fcSWill Deacon	  This option enables the workaround for the 743622 Cortex-A9
683efbc74acSWill Deacon	  (r2p*) erratum. Under very rare conditions, a faulty
684475d92fcSWill Deacon	  optimisation in the Cortex-A9 Store Buffer may lead to data
685475d92fcSWill Deacon	  corruption. This workaround sets a specific bit in the diagnostic
686475d92fcSWill Deacon	  register of the Cortex-A9 which disables the Store Buffer
687475d92fcSWill Deacon	  optimisation, preventing the defect from occurring. This has no
688475d92fcSWill Deacon	  visible impact on the overall performance or power consumption of the
689368ccecdSSebastian Reichel	  processor. Note that setting specific bits in the diagnostics register
690368ccecdSSebastian Reichel	  may not be available in non-secure mode and thus is not available on a
691368ccecdSSebastian Reichel	  multiplatform kernel. This should be applied by the bootloader instead.
692475d92fcSWill Deacon
6939a27c27cSWill Deaconconfig ARM_ERRATA_751472
6949a27c27cSWill Deacon	bool "ARM errata: Interrupted ICIALLUIS may prevent completion of broadcasted operation"
695ba90c516SDave Martin	depends on CPU_V7
69662e4d357SRob Herring	depends on !ARCH_MULTIPLATFORM
6979a27c27cSWill Deacon	help
6989a27c27cSWill Deacon	  This option enables the workaround for the 751472 Cortex-A9 (prior
6999a27c27cSWill Deacon	  to r3p0) erratum. An interrupted ICIALLUIS operation may prevent the
7009a27c27cSWill Deacon	  completion of a following broadcasted operation if the second
7019a27c27cSWill Deacon	  operation is received by a CPU before the ICIALLUIS has completed,
7029a27c27cSWill Deacon	  potentially leading to corrupted entries in the cache or TLB.
703368ccecdSSebastian Reichel	  Note that setting specific bits in the diagnostics register may
704368ccecdSSebastian Reichel	  not be available in non-secure mode and thus is not available on
705368ccecdSSebastian Reichel	  a multiplatform kernel. This should be applied by the bootloader
706368ccecdSSebastian Reichel	  instead.
7079a27c27cSWill Deacon
708fcbdc5feSWill Deaconconfig ARM_ERRATA_754322
709fcbdc5feSWill Deacon	bool "ARM errata: possible faulty MMU translations following an ASID switch"
710fcbdc5feSWill Deacon	depends on CPU_V7
711fcbdc5feSWill Deacon	help
712fcbdc5feSWill Deacon	  This option enables the workaround for the 754322 Cortex-A9 (r2p*,
713fcbdc5feSWill Deacon	  r3p*) erratum. A speculative memory access may cause a page table walk
714fcbdc5feSWill Deacon	  which starts prior to an ASID switch but completes afterwards. This
715fcbdc5feSWill Deacon	  can populate the micro-TLB with a stale entry which may be hit with
716fcbdc5feSWill Deacon	  the new ASID. This workaround places two dsb instructions in the mm
717fcbdc5feSWill Deacon	  switching code so that no page table walks can cross the ASID switch.
718fcbdc5feSWill Deacon
7195dab26afSWill Deaconconfig ARM_ERRATA_754327
7205dab26afSWill Deacon	bool "ARM errata: no automatic Store Buffer drain"
7215dab26afSWill Deacon	depends on CPU_V7 && SMP
7225dab26afSWill Deacon	help
7235dab26afSWill Deacon	  This option enables the workaround for the 754327 Cortex-A9 (prior to
7245dab26afSWill Deacon	  r2p0) erratum. The Store Buffer does not have any automatic draining
7255dab26afSWill Deacon	  mechanism and therefore a livelock may occur if an external agent
7265dab26afSWill Deacon	  continuously polls a memory location waiting to observe an update.
7275dab26afSWill Deacon	  This workaround defines cpu_relax() as smp_mb(), preventing correctly
7285dab26afSWill Deacon	  written polling loops from denying visibility of updates to memory.
7295dab26afSWill Deacon
730145e10e1SCatalin Marinasconfig ARM_ERRATA_364296
731145e10e1SCatalin Marinas	bool "ARM errata: Possible cache data corruption with hit-under-miss enabled"
732fd832478SFabio Estevam	depends on CPU_V6
733145e10e1SCatalin Marinas	help
734145e10e1SCatalin Marinas	  This options enables the workaround for the 364296 ARM1136
735145e10e1SCatalin Marinas	  r0p2 erratum (possible cache data corruption with
736145e10e1SCatalin Marinas	  hit-under-miss enabled). It sets the undocumented bit 31 in
737145e10e1SCatalin Marinas	  the auxiliary control register and the FI bit in the control
738145e10e1SCatalin Marinas	  register, thus disabling hit-under-miss without putting the
739145e10e1SCatalin Marinas	  processor into full low interrupt latency mode. ARM11MPCore
740145e10e1SCatalin Marinas	  is not affected.
741145e10e1SCatalin Marinas
742f630c1bdSWill Deaconconfig ARM_ERRATA_764369
743f630c1bdSWill Deacon	bool "ARM errata: Data cache line maintenance operation by MVA may not succeed"
744f630c1bdSWill Deacon	depends on CPU_V7 && SMP
745f630c1bdSWill Deacon	help
746f630c1bdSWill Deacon	  This option enables the workaround for erratum 764369
747f630c1bdSWill Deacon	  affecting Cortex-A9 MPCore with two or more processors (all
748f630c1bdSWill Deacon	  current revisions). Under certain timing circumstances, a data
749f630c1bdSWill Deacon	  cache line maintenance operation by MVA targeting an Inner
750f630c1bdSWill Deacon	  Shareable memory region may fail to proceed up to either the
751f630c1bdSWill Deacon	  Point of Coherency or to the Point of Unification of the
752f630c1bdSWill Deacon	  system. This workaround adds a DSB instruction before the
753f630c1bdSWill Deacon	  relevant cache maintenance functions and sets a specific bit
754f630c1bdSWill Deacon	  in the diagnostic control register of the SCU.
755f630c1bdSWill Deacon
7568294fec1SNick Hawkinsconfig ARM_ERRATA_764319
7578294fec1SNick Hawkins	bool "ARM errata: Read to DBGPRSR and DBGOSLSR may generate Undefined instruction"
7588294fec1SNick Hawkins	depends on CPU_V7
7598294fec1SNick Hawkins	help
7608ede71e1SGeert Uytterhoeven	  This option enables the workaround for the 764319 Cortex-A9 erratum.
7618294fec1SNick Hawkins	  CP14 read accesses to the DBGPRSR and DBGOSLSR registers generate an
7628294fec1SNick Hawkins	  unexpected Undefined Instruction exception when the DBGSWENABLE
7638294fec1SNick Hawkins	  external pin is set to 0, even when the CP14 accesses are performed
7648294fec1SNick Hawkins	  from a privileged mode. This work around catches the exception in a
7658294fec1SNick Hawkins	  way the kernel does not stop execution.
7668294fec1SNick Hawkins
7677253b85cSSimon Hormanconfig ARM_ERRATA_775420
7687253b85cSSimon Horman       bool "ARM errata: A data cache maintenance operation which aborts, might lead to deadlock"
7697253b85cSSimon Horman       depends on CPU_V7
7707253b85cSSimon Horman       help
7717253b85cSSimon Horman	 This option enables the workaround for the 775420 Cortex-A9 (r2p2,
772cb73737eSGeert Uytterhoeven	 r2p6,r2p8,r2p10,r3p0) erratum. In case a data cache maintenance
7737253b85cSSimon Horman	 operation aborts with MMU exception, it might cause the processor
7747253b85cSSimon Horman	 to deadlock. This workaround puts DSB before executing ISB if
7757253b85cSSimon Horman	 an abort may occur on cache maintenance.
7767253b85cSSimon Horman
77793dc6887SCatalin Marinasconfig ARM_ERRATA_798181
77893dc6887SCatalin Marinas	bool "ARM errata: TLBI/DSB failure on Cortex-A15"
77993dc6887SCatalin Marinas	depends on CPU_V7 && SMP
78093dc6887SCatalin Marinas	help
78193dc6887SCatalin Marinas	  On Cortex-A15 (r0p0..r3p2) the TLBI*IS/DSB operations are not
78293dc6887SCatalin Marinas	  adequately shooting down all use of the old entries. This
78393dc6887SCatalin Marinas	  option enables the Linux kernel workaround for this erratum
78493dc6887SCatalin Marinas	  which sends an IPI to the CPUs that are running the same ASID
78593dc6887SCatalin Marinas	  as the one being invalidated.
78693dc6887SCatalin Marinas
78784b6504fSWill Deaconconfig ARM_ERRATA_773022
78884b6504fSWill Deacon	bool "ARM errata: incorrect instructions may be executed from loop buffer"
78984b6504fSWill Deacon	depends on CPU_V7
79084b6504fSWill Deacon	help
79184b6504fSWill Deacon	  This option enables the workaround for the 773022 Cortex-A15
79284b6504fSWill Deacon	  (up to r0p4) erratum. In certain rare sequences of code, the
79384b6504fSWill Deacon	  loop buffer may deliver incorrect instructions. This
79484b6504fSWill Deacon	  workaround disables the loop buffer to avoid the erratum.
79584b6504fSWill Deacon
79662c0f4a5SDoug Andersonconfig ARM_ERRATA_818325_852422
79762c0f4a5SDoug Anderson	bool "ARM errata: A12: some seqs of opposed cond code instrs => deadlock or corruption"
79862c0f4a5SDoug Anderson	depends on CPU_V7
79962c0f4a5SDoug Anderson	help
80062c0f4a5SDoug Anderson	  This option enables the workaround for:
80162c0f4a5SDoug Anderson	  - Cortex-A12 818325: Execution of an UNPREDICTABLE STR or STM
80262c0f4a5SDoug Anderson	    instruction might deadlock.  Fixed in r0p1.
80362c0f4a5SDoug Anderson	  - Cortex-A12 852422: Execution of a sequence of instructions might
80462c0f4a5SDoug Anderson	    lead to either a data corruption or a CPU deadlock.  Not fixed in
80562c0f4a5SDoug Anderson	    any Cortex-A12 cores yet.
80662c0f4a5SDoug Anderson	  This workaround for all both errata involves setting bit[12] of the
80762c0f4a5SDoug Anderson	  Feature Register. This bit disables an optimisation applied to a
80862c0f4a5SDoug Anderson	  sequence of 2 instructions that use opposing condition codes.
80962c0f4a5SDoug Anderson
810416bcf21SDoug Andersonconfig ARM_ERRATA_821420
811416bcf21SDoug Anderson	bool "ARM errata: A12: sequence of VMOV to core registers might lead to a dead lock"
812416bcf21SDoug Anderson	depends on CPU_V7
813416bcf21SDoug Anderson	help
814416bcf21SDoug Anderson	  This option enables the workaround for the 821420 Cortex-A12
815416bcf21SDoug Anderson	  (all revs) erratum. In very rare timing conditions, a sequence
816416bcf21SDoug Anderson	  of VMOV to Core registers instructions, for which the second
817416bcf21SDoug Anderson	  one is in the shadow of a branch or abort, can lead to a
818416bcf21SDoug Anderson	  deadlock when the VMOV instructions are issued out-of-order.
819416bcf21SDoug Anderson
8209f6f9354SDoug Andersonconfig ARM_ERRATA_825619
8219f6f9354SDoug Anderson	bool "ARM errata: A12: DMB NSHST/ISHST mixed ... might cause deadlock"
8229f6f9354SDoug Anderson	depends on CPU_V7
8239f6f9354SDoug Anderson	help
8249f6f9354SDoug Anderson	  This option enables the workaround for the 825619 Cortex-A12
8259f6f9354SDoug Anderson	  (all revs) erratum. Within rare timing constraints, executing a
8269f6f9354SDoug Anderson	  DMB NSHST or DMB ISHST instruction followed by a mix of Cacheable
8279f6f9354SDoug Anderson	  and Device/Strongly-Ordered loads and stores might cause deadlock
8289f6f9354SDoug Anderson
829304009a1SDoug Andersonconfig ARM_ERRATA_857271
830304009a1SDoug Anderson	bool "ARM errata: A12: CPU might deadlock under some very rare internal conditions"
831304009a1SDoug Anderson	depends on CPU_V7
832304009a1SDoug Anderson	help
833304009a1SDoug Anderson	  This option enables the workaround for the 857271 Cortex-A12
834304009a1SDoug Anderson	  (all revs) erratum. Under very rare timing conditions, the CPU might
835304009a1SDoug Anderson	  hang. The workaround is expected to have a < 1% performance impact.
836304009a1SDoug Anderson
8379f6f9354SDoug Andersonconfig ARM_ERRATA_852421
8389f6f9354SDoug Anderson	bool "ARM errata: A17: DMB ST might fail to create order between stores"
8399f6f9354SDoug Anderson	depends on CPU_V7
8409f6f9354SDoug Anderson	help
8419f6f9354SDoug Anderson	  This option enables the workaround for the 852421 Cortex-A17
8429f6f9354SDoug Anderson	  (r1p0, r1p1, r1p2) erratum. Under very rare timing conditions,
8439f6f9354SDoug Anderson	  execution of a DMB ST instruction might fail to properly order
8449f6f9354SDoug Anderson	  stores from GroupA and stores from GroupB.
8459f6f9354SDoug Anderson
84662c0f4a5SDoug Andersonconfig ARM_ERRATA_852423
84762c0f4a5SDoug Anderson	bool "ARM errata: A17: some seqs of opposed cond code instrs => deadlock or corruption"
84862c0f4a5SDoug Anderson	depends on CPU_V7
84962c0f4a5SDoug Anderson	help
85062c0f4a5SDoug Anderson	  This option enables the workaround for:
85162c0f4a5SDoug Anderson	  - Cortex-A17 852423: Execution of a sequence of instructions might
85262c0f4a5SDoug Anderson	    lead to either a data corruption or a CPU deadlock.  Not fixed in
85362c0f4a5SDoug Anderson	    any Cortex-A17 cores yet.
85462c0f4a5SDoug Anderson	  This is identical to Cortex-A12 erratum 852422.  It is a separate
85562c0f4a5SDoug Anderson	  config option from the A12 erratum due to the way errata are checked
85662c0f4a5SDoug Anderson	  for and handled.
85762c0f4a5SDoug Anderson
858304009a1SDoug Andersonconfig ARM_ERRATA_857272
859304009a1SDoug Anderson	bool "ARM errata: A17: CPU might deadlock under some very rare internal conditions"
860304009a1SDoug Anderson	depends on CPU_V7
861304009a1SDoug Anderson	help
862304009a1SDoug Anderson	  This option enables the workaround for the 857272 Cortex-A17 erratum.
863304009a1SDoug Anderson	  This erratum is not known to be fixed in any A17 revision.
864304009a1SDoug Anderson	  This is identical to Cortex-A12 erratum 857271.  It is a separate
865304009a1SDoug Anderson	  config option from the A12 erratum due to the way errata are checked
866304009a1SDoug Anderson	  for and handled.
867304009a1SDoug Anderson
8681da177e4SLinus Torvaldsendmenu
8691da177e4SLinus Torvalds
8701da177e4SLinus Torvaldssource "arch/arm/common/Kconfig"
8711da177e4SLinus Torvalds
8721da177e4SLinus Torvaldsmenu "Bus support"
8731da177e4SLinus Torvalds
8741da177e4SLinus Torvaldsconfig ISA
8751da177e4SLinus Torvalds	bool
8761da177e4SLinus Torvalds	help
8771da177e4SLinus Torvalds	  Find out whether you have ISA slots on your motherboard.  ISA is the
8781da177e4SLinus Torvalds	  name of a bus system, i.e. the way the CPU talks to the other stuff
8791da177e4SLinus Torvalds	  inside your box.  Other bus systems are PCI, EISA, MicroChannel
8801da177e4SLinus Torvalds	  (MCA) or VESA.  ISA is an older system, now being displaced by PCI;
8811da177e4SLinus Torvalds	  newer boards don't support it.  If you have ISA, say Y, otherwise N.
8821da177e4SLinus Torvalds
883065909b9SRussell King# Select ISA DMA interface
8845cae841bSAl Viroconfig ISA_DMA_API
8855cae841bSAl Viro	bool
8865cae841bSAl Viro
887779eb41cSBenjamin Gaignardconfig ARM_ERRATA_814220
888779eb41cSBenjamin Gaignard	bool "ARM errata: Cache maintenance by set/way operations can execute out of order"
889779eb41cSBenjamin Gaignard	depends on CPU_V7
890779eb41cSBenjamin Gaignard	help
891779eb41cSBenjamin Gaignard	  The v7 ARM states that all cache and branch predictor maintenance
892779eb41cSBenjamin Gaignard	  operations that do not specify an address execute, relative to
893779eb41cSBenjamin Gaignard	  each other, in program order.
894779eb41cSBenjamin Gaignard	  However, because of this erratum, an L2 set/way cache maintenance
895779eb41cSBenjamin Gaignard	  operation can overtake an L1 set/way cache maintenance operation.
896779eb41cSBenjamin Gaignard	  This ERRATA only affected the Cortex-A7 and present in r0p2, r0p3,
897779eb41cSBenjamin Gaignard	  r0p4, r0p5.
898779eb41cSBenjamin Gaignard
8991da177e4SLinus Torvaldsendmenu
9001da177e4SLinus Torvalds
9011da177e4SLinus Torvaldsmenu "Kernel Features"
9021da177e4SLinus Torvalds
9033b55658aSDave Martinconfig HAVE_SMP
9043b55658aSDave Martin	bool
9053b55658aSDave Martin	help
9063b55658aSDave Martin	  This option should be selected by machines which have an SMP-
9073b55658aSDave Martin	  capable CPU.
9083b55658aSDave Martin
9093b55658aSDave Martin	  The only effect of this option is to make the SMP-related
9103b55658aSDave Martin	  options available to the user for configuration.
9113b55658aSDave Martin
9121da177e4SLinus Torvaldsconfig SMP
913bb2d8130SRussell King	bool "Symmetric Multi-Processing"
914fbb4ddacSRussell King	depends on CPU_V6K || CPU_V7
9153b55658aSDave Martin	depends on HAVE_SMP
916801bb21cSJonathan Austin	depends on MMU || ARM_MPU
9170361748fSArnd Bergmann	select IRQ_WORK
9181da177e4SLinus Torvalds	help
9191da177e4SLinus Torvalds	  This enables support for systems with more than one CPU. If you have
9204a474157SRobert Graffham	  a system with only one CPU, say N. If you have a system with more
9214a474157SRobert Graffham	  than one CPU, say Y.
9221da177e4SLinus Torvalds
9234a474157SRobert Graffham	  If you say N here, the kernel will run on uni- and multiprocessor
9241da177e4SLinus Torvalds	  machines, but will use only one CPU of a multiprocessor machine. If
9254a474157SRobert Graffham	  you say Y here, the kernel will run on many, but not all,
9264a474157SRobert Graffham	  uniprocessor machines. On a uniprocessor machine, the kernel
9274a474157SRobert Graffham	  will run faster if you say N here.
9281da177e4SLinus Torvalds
929ff61f079SJonathan Corbet	  See also <file:Documentation/arch/x86/i386/IO-APIC.rst>,
9304f4cfa6cSMauro Carvalho Chehab	  <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO available at
93150a23e6eSJustin P. Mattock	  <http://tldp.org/HOWTO/SMP-HOWTO.html>.
9321da177e4SLinus Torvalds
9331da177e4SLinus Torvalds	  If you don't know what to do here, say N.
9341da177e4SLinus Torvalds
935f00ec48fSRussell Kingconfig SMP_ON_UP
9365744ff43SRussell King	bool "Allow booting SMP kernel on uniprocessor systems"
9375408445bSArnd Bergmann	depends on SMP && MMU
938f00ec48fSRussell King	default y
939f00ec48fSRussell King	help
940f00ec48fSRussell King	  SMP kernels contain instructions which fail on non-SMP processors.
941f00ec48fSRussell King	  Enabling this option allows the kernel to modify itself to make
942f00ec48fSRussell King	  these instructions safe.  Disabling it allows about 1K of space
943f00ec48fSRussell King	  savings.
944f00ec48fSRussell King
945f00ec48fSRussell King	  If you don't know what to do here, say Y.
946f00ec48fSRussell King
94750596b75SArd Biesheuvel
94850596b75SArd Biesheuvelconfig CURRENT_POINTER_IN_TPIDRURO
94950596b75SArd Biesheuvel	def_bool y
950b87cf911SArd Biesheuvel	depends on CPU_32v6K && !CPU_V6
95150596b75SArd Biesheuvel
952d4664b6cSArd Biesheuvelconfig IRQSTACKS
953d4664b6cSArd Biesheuvel	def_bool y
9549974f857SArd Biesheuvel	select HAVE_IRQ_EXIT_ON_IRQ_STACK
9559974f857SArd Biesheuvel	select HAVE_SOFTIRQ_ON_OWN_STACK
9561da177e4SLinus Torvalds
957c9018aabSVincent Guittotconfig ARM_CPU_TOPOLOGY
958c9018aabSVincent Guittot	bool "Support cpu topology definition"
959c9018aabSVincent Guittot	depends on SMP && CPU_V7
9607bd291abSPeter Zijlstra	select ARCH_SUPPORTS_SCHED_MC
9617bd291abSPeter Zijlstra	select ARCH_SUPPORTS_SCHED_SMT
962c9018aabSVincent Guittot	default y
963c9018aabSVincent Guittot	help
964c9018aabSVincent Guittot	  Support ARM cpu topology definition. The MPIDR register defines
965c9018aabSVincent Guittot	  affinity between processors which is then used to describe the cpu
966c9018aabSVincent Guittot	  topology of an ARM System.
967c9018aabSVincent Guittot
968a8cbcd92SRussell Kingconfig HAVE_ARM_SCU
969a8cbcd92SRussell King	bool
970a8cbcd92SRussell King	help
9718f433ec4SGeert Uytterhoeven	  This option enables support for the ARM snoop control unit
972a8cbcd92SRussell King
9738a4da6e3SMark Rutlandconfig HAVE_ARM_ARCH_TIMER
974022c03a2SMarc Zyngier	bool "Architected timer support"
975022c03a2SMarc Zyngier	depends on CPU_V7
9768a4da6e3SMark Rutland	select ARM_ARCH_TIMER
977022c03a2SMarc Zyngier	help
978022c03a2SMarc Zyngier	  This option enables support for the ARM architected timer
979022c03a2SMarc Zyngier
980f32f4ce2SRussell Kingconfig HAVE_ARM_TWD
981f32f4ce2SRussell King	bool
982f32f4ce2SRussell King	help
983f32f4ce2SRussell King	  This options enables support for the ARM timer and watchdog unit
984f32f4ce2SRussell King
985e8db288eSNicolas Pitreconfig MCPM
986e8db288eSNicolas Pitre	bool "Multi-Cluster Power Management"
987e8db288eSNicolas Pitre	depends on CPU_V7 && SMP
988e8db288eSNicolas Pitre	help
989e8db288eSNicolas Pitre	  This option provides the common power management infrastructure
990e8db288eSNicolas Pitre	  for (multi-)cluster based systems, such as big.LITTLE based
991e8db288eSNicolas Pitre	  systems.
992e8db288eSNicolas Pitre
993ebf4a5c5SHaojian Zhuangconfig MCPM_QUAD_CLUSTER
994ebf4a5c5SHaojian Zhuang	bool
995ebf4a5c5SHaojian Zhuang	depends on MCPM
996ebf4a5c5SHaojian Zhuang	help
997ebf4a5c5SHaojian Zhuang	  To avoid wasting resources unnecessarily, MCPM only supports up
998ebf4a5c5SHaojian Zhuang	  to 2 clusters by default.
999ebf4a5c5SHaojian Zhuang	  Platforms with 3 or 4 clusters that use MCPM must select this
1000ebf4a5c5SHaojian Zhuang	  option to allow the additional clusters to be managed.
1001ebf4a5c5SHaojian Zhuang
10021c33be57SNicolas Pitreconfig BIG_LITTLE
10031c33be57SNicolas Pitre	bool "big.LITTLE support (Experimental)"
10041c33be57SNicolas Pitre	depends on CPU_V7 && SMP
10051c33be57SNicolas Pitre	select MCPM
10061c33be57SNicolas Pitre	help
10071c33be57SNicolas Pitre	  This option enables support selections for the big.LITTLE
10081c33be57SNicolas Pitre	  system architecture.
10091c33be57SNicolas Pitre
10101c33be57SNicolas Pitreconfig BL_SWITCHER
10111c33be57SNicolas Pitre	bool "big.LITTLE switcher support"
10126c044fecSArnd Bergmann	depends on BIG_LITTLE && MCPM && HOTPLUG_CPU && ARM_GIC
101351aaf81fSRussell King	select CPU_PM
10141c33be57SNicolas Pitre	help
10151c33be57SNicolas Pitre	  The big.LITTLE "switcher" provides the core functionality to
10161c33be57SNicolas Pitre	  transparently handle transition between a cluster of A15's
10171c33be57SNicolas Pitre	  and a cluster of A7's in a big.LITTLE system.
10181c33be57SNicolas Pitre
1019b22537c6SNicolas Pitreconfig BL_SWITCHER_DUMMY_IF
1020b22537c6SNicolas Pitre	tristate "Simple big.LITTLE switcher user interface"
1021b22537c6SNicolas Pitre	depends on BL_SWITCHER && DEBUG_KERNEL
1022b22537c6SNicolas Pitre	help
1023b22537c6SNicolas Pitre	  This is a simple and dummy char dev interface to control
1024b22537c6SNicolas Pitre	  the big.LITTLE switcher core code.  It is meant for
1025b22537c6SNicolas Pitre	  debugging purposes only.
1026b22537c6SNicolas Pitre
10278d5796d2SLennert Buytenhekchoice
10288d5796d2SLennert Buytenhek	prompt "Memory split"
1029006fa259SRussell King	depends on MMU
10308d5796d2SLennert Buytenhek	default VMSPLIT_3G
10318d5796d2SLennert Buytenhek	help
10328d5796d2SLennert Buytenhek	  Select the desired split between kernel and user memory.
10338d5796d2SLennert Buytenhek
10348d5796d2SLennert Buytenhek	  If you are not absolutely sure what you are doing, leave this
10358d5796d2SLennert Buytenhek	  option alone!
10368d5796d2SLennert Buytenhek
10378d5796d2SLennert Buytenhek	config VMSPLIT_3G
10388d5796d2SLennert Buytenhek		bool "3G/1G user/kernel split"
103963ce446cSNicolas Pitre	config VMSPLIT_3G_OPT
1040bbeedfdaSYisheng Xie		depends on !ARM_LPAE
104163ce446cSNicolas Pitre		bool "3G/1G user/kernel split (for full 1G low memory)"
10428d5796d2SLennert Buytenhek	config VMSPLIT_2G
10438d5796d2SLennert Buytenhek		bool "2G/2G user/kernel split"
10448d5796d2SLennert Buytenhek	config VMSPLIT_1G
10458d5796d2SLennert Buytenhek		bool "1G/3G user/kernel split"
10468d5796d2SLennert Buytenhekendchoice
10478d5796d2SLennert Buytenhek
10488d5796d2SLennert Buytenhekconfig PAGE_OFFSET
10498d5796d2SLennert Buytenhek	hex
1050006fa259SRussell King	default PHYS_OFFSET if !MMU
10518d5796d2SLennert Buytenhek	default 0x40000000 if VMSPLIT_1G
10528d5796d2SLennert Buytenhek	default 0x80000000 if VMSPLIT_2G
105363ce446cSNicolas Pitre	default 0xB0000000 if VMSPLIT_3G_OPT
10548d5796d2SLennert Buytenhek	default 0xC0000000
10558d5796d2SLennert Buytenhek
1056c12366baSLinus Walleijconfig KASAN_SHADOW_OFFSET
1057c12366baSLinus Walleij	hex
1058c12366baSLinus Walleij	depends on KASAN
1059c12366baSLinus Walleij	default 0x1f000000 if PAGE_OFFSET=0x40000000
1060c12366baSLinus Walleij	default 0x5f000000 if PAGE_OFFSET=0x80000000
1061c12366baSLinus Walleij	default 0x9f000000 if PAGE_OFFSET=0xC0000000
1062c12366baSLinus Walleij	default 0x8f000000 if PAGE_OFFSET=0xB0000000
1063c12366baSLinus Walleij	default 0xffffffff
1064c12366baSLinus Walleij
10651da177e4SLinus Torvaldsconfig NR_CPUS
10661da177e4SLinus Torvalds	int "Maximum number of CPUs (2-32)"
1067d624833fSArd Biesheuvel	range 2 16 if DEBUG_KMAP_LOCAL
1068d624833fSArd Biesheuvel	range 2 32 if !DEBUG_KMAP_LOCAL
10691da177e4SLinus Torvalds	depends on SMP
10701da177e4SLinus Torvalds	default "4"
1071d624833fSArd Biesheuvel	help
1072d624833fSArd Biesheuvel	  The maximum number of CPUs that the kernel can support.
1073d624833fSArd Biesheuvel	  Up to 32 CPUs can be supported, or up to 16 if kmap_local()
1074d624833fSArd Biesheuvel	  debugging is enabled, which uses half of the per-CPU fixmap
1075d624833fSArd Biesheuvel	  slots as guard regions.
10761da177e4SLinus Torvalds
1077a054a811SRussell Kingconfig HOTPLUG_CPU
107800b7dedeSRussell King	bool "Support for hot-pluggable CPUs"
107940b31360SStephen Rothwell	depends on SMP
10801b5ba350SDietmar Eggemann	select GENERIC_IRQ_MIGRATION
1081a054a811SRussell King	help
1082a054a811SRussell King	  Say Y here to experiment with turning CPUs off and on.  CPUs
1083a054a811SRussell King	  can be controlled through /sys/devices/system/cpu.
1084a054a811SRussell King
10852bdd424fSWill Deaconconfig ARM_PSCI
10862bdd424fSWill Deacon	bool "Support for the ARM Power State Coordination Interface (PSCI)"
1087e679660dSJens Wiklander	depends on HAVE_ARM_SMCCC
1088be120397SMark Rutland	select ARM_PSCI_FW
10892bdd424fSWill Deacon	help
10902bdd424fSWill Deacon	  Say Y here if you want Linux to communicate with system firmware
10912bdd424fSWill Deacon	  implementing the PSCI specification for CPU-centric power
10922bdd424fSWill Deacon	  management operations described in ARM document number ARM DEN
10932bdd424fSWill Deacon	  0022A ("Power State Coordination Interface System Software on
10942bdd424fSWill Deacon	  ARM processors").
10952bdd424fSWill Deacon
1096c9218b16SRussell Kingconfig HZ_FIXED
1097f8065813SRussell King	int
10981164f672SAlexandre Belloni	default 128 if SOC_AT91RM9200
109947d84682SRussell King	default 0
1100c9218b16SRussell King
1101c9218b16SRussell Kingchoice
110247d84682SRussell King	depends on HZ_FIXED = 0
1103c9218b16SRussell King	prompt "Timer frequency"
1104c9218b16SRussell King
1105c9218b16SRussell Kingconfig HZ_100
1106c9218b16SRussell King	bool "100 Hz"
1107c9218b16SRussell King
1108c9218b16SRussell Kingconfig HZ_200
1109c9218b16SRussell King	bool "200 Hz"
1110c9218b16SRussell King
1111c9218b16SRussell Kingconfig HZ_250
1112c9218b16SRussell King	bool "250 Hz"
1113c9218b16SRussell King
1114c9218b16SRussell Kingconfig HZ_300
1115c9218b16SRussell King	bool "300 Hz"
1116c9218b16SRussell King
1117c9218b16SRussell Kingconfig HZ_500
1118c9218b16SRussell King	bool "500 Hz"
1119c9218b16SRussell King
1120c9218b16SRussell Kingconfig HZ_1000
1121c9218b16SRussell King	bool "1000 Hz"
1122c9218b16SRussell King
1123c9218b16SRussell Kingendchoice
1124c9218b16SRussell King
1125c9218b16SRussell Kingconfig HZ
1126c9218b16SRussell King	int
112747d84682SRussell King	default HZ_FIXED if HZ_FIXED != 0
1128c9218b16SRussell King	default 100 if HZ_100
1129c9218b16SRussell King	default 200 if HZ_200
1130c9218b16SRussell King	default 250 if HZ_250
1131c9218b16SRussell King	default 300 if HZ_300
1132c9218b16SRussell King	default 500 if HZ_500
1133c9218b16SRussell King	default 1000
1134c9218b16SRussell King
1135c9218b16SRussell Kingconfig SCHED_HRTICK
1136c9218b16SRussell King	def_bool HIGH_RES_TIMERS
1137f8065813SRussell King
113816c79651SCatalin Marinasconfig THUMB2_KERNEL
1139bc7dea00SUwe Kleine-König	bool "Compile the kernel in Thumb-2 mode" if !CPU_THUMBONLY
11404477ca45SUwe Kleine-König	depends on (CPU_V7 || CPU_V7M) && !CPU_V6 && !CPU_V6K
1141bc7dea00SUwe Kleine-König	default y if CPU_THUMBONLY
114289bace65SArnd Bergmann	select ARM_UNWIND
114316c79651SCatalin Marinas	help
114416c79651SCatalin Marinas	  By enabling this option, the kernel will be compiled in
114575fea300SNicolas Pitre	  Thumb-2 mode.
114616c79651SCatalin Marinas
114716c79651SCatalin Marinas	  If unsure, say N.
114816c79651SCatalin Marinas
114942f25bddSNicolas Pitreconfig ARM_PATCH_IDIV
115042f25bddSNicolas Pitre	bool "Runtime patch udiv/sdiv instructions into __aeabi_{u}idiv()"
11515408445bSArnd Bergmann	depends on CPU_32v7
115242f25bddSNicolas Pitre	default y
115342f25bddSNicolas Pitre	help
115442f25bddSNicolas Pitre	  The ARM compiler inserts calls to __aeabi_idiv() and
115542f25bddSNicolas Pitre	  __aeabi_uidiv() when it needs to perform division on signed
115642f25bddSNicolas Pitre	  and unsigned integers. Some v7 CPUs have support for the sdiv
115742f25bddSNicolas Pitre	  and udiv instructions that can be used to implement those
115842f25bddSNicolas Pitre	  functions.
115942f25bddSNicolas Pitre
116042f25bddSNicolas Pitre	  Enabling this option allows the kernel to modify itself to
116142f25bddSNicolas Pitre	  replace the first two instructions of these library functions
116242f25bddSNicolas Pitre	  with the sdiv or udiv plus "bx lr" instructions when the CPU
116342f25bddSNicolas Pitre	  it is running on supports them. Typically this will be faster
116442f25bddSNicolas Pitre	  and less power intensive than running the original library
116542f25bddSNicolas Pitre	  code to do integer division.
116642f25bddSNicolas Pitre
1167704bdda0SNicolas Pitreconfig AEABI
116825900bd9SArnd Bergmann	bool "Use the ARM EABI to compile the kernel" if CPU_SA110 || CPU_SA1100
116930b1c4a3SArnd Bergmann	default y
1170704bdda0SNicolas Pitre	help
117130b1c4a3SArnd Bergmann	  The Arm EABI is the default ABI on all modern Linux
117230b1c4a3SArnd Bergmann	  distributions, replacing the obsolete and "OABI" that was
117330b1c4a3SArnd Bergmann	  commonly used on ARMv4 distributions before ca. 2013.
1174704bdda0SNicolas Pitre
117530b1c4a3SArnd Bergmann	  Everyone should enable this, as support for OABI user space
117630b1c4a3SArnd Bergmann	  was dropped in gcc-4.8 and most distributions after ca. 2013.
1177704bdda0SNicolas Pitre
117825900bd9SArnd Bergmann	  Support for OABI mode will be removed from the kernel
117925900bd9SArnd Bergmann	  once Intel StrongARM CPUs are phased out.
1180704bdda0SNicolas Pitre
11816c90c872SNicolas Pitreconfig OABI_COMPAT
1182a73a3ff1SRussell King	bool "Allow old ABI binaries to run with this kernel (EXPERIMENTAL)"
1183d6f94fa0SKees Cook	depends on AEABI && !THUMB2_KERNEL
118425900bd9SArnd Bergmann	depends on CPU_SA110 || CPU_SA1100
11856c90c872SNicolas Pitre	help
11866c90c872SNicolas Pitre	  This option preserves the old syscall interface along with the
11876c90c872SNicolas Pitre	  new (ARM EABI) one. It also provides a compatibility layer to
11886c90c872SNicolas Pitre	  intercept syscalls that have structure arguments which layout
11896c90c872SNicolas Pitre	  in memory differs between the legacy ABI and the new ARM EABI
11906c90c872SNicolas Pitre	  (only for non "thumb" binaries). This option adds a tiny
11916c90c872SNicolas Pitre	  overhead to all syscalls and produces a slightly larger kernel.
119291702175SKees Cook
119391702175SKees Cook	  The seccomp filter system will not be available when this is
119491702175SKees Cook	  selected, since there is no way yet to sensibly distinguish
119591702175SKees Cook	  between calling conventions during filtering.
119691702175SKees Cook
119725900bd9SArnd Bergmann	  Support for OABI_COMPAT will be removed from the kernel
119825900bd9SArnd Bergmann	  once Intel StrongARM CPUs are phased out.
11996c90c872SNicolas Pitre
1200fb597f2aSGregory Fongconfig ARCH_SELECT_MEMORY_MODEL
12016fd09c9aSArnd Bergmann	def_bool y
120205944d74SRussell King
1203fb597f2aSGregory Fongconfig ARCH_FLATMEM_ENABLE
12046fd09c9aSArnd Bergmann	def_bool !(ARCH_RPC || ARCH_SA1100)
1205fb597f2aSGregory Fong
120605944d74SRussell Kingconfig ARCH_SPARSEMEM_ENABLE
12076fd09c9aSArnd Bergmann	def_bool !ARCH_FOOTBRIDGE
1208fb597f2aSGregory Fong	select SPARSEMEM_STATIC if SPARSEMEM
120907a2f737SRussell King
1210053a96caSNicolas Pitreconfig HIGHMEM
1211e8db89a2SRussell King	bool "High Memory Support"
1212e8db89a2SRussell King	depends on MMU
12132a15ba82SThomas Gleixner	select KMAP_LOCAL
1214825c43f5SArd Biesheuvel	select KMAP_LOCAL_NON_LINEAR_PTE_ARRAY
1215053a96caSNicolas Pitre	help
1216053a96caSNicolas Pitre	  The address space of ARM processors is only 4 Gigabytes large
1217053a96caSNicolas Pitre	  and it has to accommodate user address space, kernel address
1218053a96caSNicolas Pitre	  space as well as some memory mapped IO. That means that, if you
1219053a96caSNicolas Pitre	  have a large amount of physical memory and/or IO, not all of the
1220053a96caSNicolas Pitre	  memory can be "permanently mapped" by the kernel. The physical
1221053a96caSNicolas Pitre	  memory that is not permanently mapped is called "high memory".
1222053a96caSNicolas Pitre
1223053a96caSNicolas Pitre	  Depending on the selected kernel/user memory split, minimum
1224053a96caSNicolas Pitre	  vmalloc space and actual amount of RAM, you may not need this
1225053a96caSNicolas Pitre	  option which should result in a slightly faster kernel.
1226053a96caSNicolas Pitre
1227053a96caSNicolas Pitre	  If unsure, say n.
1228053a96caSNicolas Pitre
122965cec8e3SRussell Kingconfig HIGHPTE
12309a431bd5SRussell King	bool "Allocate 2nd-level pagetables from highmem" if EXPERT
1231fedadc41SSebastian Andrzej Siewior	depends on HIGHMEM && !PREEMPT_RT
12329a431bd5SRussell King	default y
1233b4d103d1SRussell King	help
1234b4d103d1SRussell King	  The VM uses one page of physical memory for each page table.
1235b4d103d1SRussell King	  For systems with a lot of processes, this can use a lot of
1236b4d103d1SRussell King	  precious low memory, eventually leading to low memory being
1237b4d103d1SRussell King	  consumed by page tables.  Setting this option will allow
1238b4d103d1SRussell King	  user-space 2nd level page tables to reside in high memory.
123965cec8e3SRussell King
12407af5b901SLinus Walleijconfig ARM_PAN
12417af5b901SLinus Walleij	bool "Enable privileged no-access"
12427af5b901SLinus Walleij	depends on MMU
12431b8873a0SJamie Iles	default y
12441b8873a0SJamie Iles	help
1245a5e090acSRussell King	  Increase kernel security by ensuring that normal kernel accesses
1246a5e090acSRussell King	  are unable to access userspace addresses.  This can help prevent
1247a5e090acSRussell King	  use-after-free bugs becoming an exploitable privilege escalation
1248a5e090acSRussell King	  by ensuring that magic values (such as LIST_POISON) will always
1249a5e090acSRussell King	  fault when dereferenced.
1250a5e090acSRussell King
12517af5b901SLinus Walleij	  The implementation uses CPU domains when !CONFIG_ARM_LPAE and
12527af5b901SLinus Walleij	  disabling of TTBR0 page table walks with CONFIG_ARM_LPAE.
12537af5b901SLinus Walleij
12547af5b901SLinus Walleijconfig CPU_SW_DOMAIN_PAN
12557af5b901SLinus Walleij	def_bool y
12567af5b901SLinus Walleij	depends on ARM_PAN && !ARM_LPAE
12577af5b901SLinus Walleij	help
12587af5b901SLinus Walleij	  Enable use of CPU domains to implement privileged no-access.
12597af5b901SLinus Walleij
1260a5e090acSRussell King	  CPUs with low-vector mappings use a best-efforts implementation.
1261a5e090acSRussell King	  Their lower 1MB needs to remain accessible for the vectors, but
1262a5e090acSRussell King	  the remainder of userspace will become appropriately inaccessible.
1263c80d79d7SYasunori Goto
12647af5b901SLinus Walleijconfig CPU_TTBR0_PAN
12657af5b901SLinus Walleij	def_bool y
12667af5b901SLinus Walleij	depends on ARM_PAN && ARM_LPAE
12677af5b901SLinus Walleij	help
12687af5b901SLinus Walleij	  Enable privileged no-access by disabling TTBR0 page table walks when
12697af5b901SLinus Walleij	  running in kernel mode.
12707af5b901SLinus Walleij
1271c80d79d7SYasunori Gotoconfig HW_PERF_EVENTS
1272fa8ad788SMark Rutland	def_bool y
1273fa8ad788SMark Rutland	depends on ARM_PMU
12741b8873a0SJamie Iles
12757d485f64SArd Biesheuvelconfig ARM_MODULE_PLTS
12767d485f64SArd Biesheuvel	bool "Use PLTs to allow module memory to spill over into vmalloc area"
12777d485f64SArd Biesheuvel	depends on MODULES
12788fa7ea40SLecopzer Chen	select KASAN_VMALLOC if KASAN
1279e7229f7dSAnders Roxell	default y
12807d485f64SArd Biesheuvel	help
12817d485f64SArd Biesheuvel	  Allocate PLTs when loading modules so that jumps and calls whose
12827d485f64SArd Biesheuvel	  targets are too far away for their relative offsets to be encoded
12837d485f64SArd Biesheuvel	  in the instructions themselves can be bounced via veneers in the
12847d485f64SArd Biesheuvel	  module's PLT. This allows modules to be allocated in the generic
12857d485f64SArd Biesheuvel	  vmalloc area after the dedicated module memory area has been
12867d485f64SArd Biesheuvel	  exhausted. The modules will use slightly more memory, but after
12877d485f64SArd Biesheuvel	  rounding up to page size, the actual memory footprint is usually
12887d485f64SArd Biesheuvel	  the same.
12897d485f64SArd Biesheuvel
1290e7229f7dSAnders Roxell	  Disabling this is usually safe for small single-platform
1291e7229f7dSAnders Roxell	  configurations. If unsure, say y.
12927d485f64SArd Biesheuvel
12930192445cSZi Yanconfig ARCH_FORCE_MAX_ORDER
12948c907785SMike Rapoport (IBM)	int "Order of maximal physically contiguous allocations"
129523baf831SKirill A. Shutemov	default "11" if SOC_AM33XX
129623baf831SKirill A. Shutemov	default "8" if SA1111
129723baf831SKirill A. Shutemov	default "10"
1298c1b2d970SMagnus Damm	help
12998c907785SMike Rapoport (IBM)	  The kernel page allocator limits the size of maximal physically
13005e0a760bSKirill A. Shutemov	  contiguous allocations. The limit is called MAX_PAGE_ORDER and it
13018c907785SMike Rapoport (IBM)	  defines the maximal power of two of number of pages that can be
13028c907785SMike Rapoport (IBM)	  allocated as a single contiguous block. This option allows
13038c907785SMike Rapoport (IBM)	  overriding the default setting when ability to allocate very
13048c907785SMike Rapoport (IBM)	  large blocks of physically contiguous memory is required.
1305c1b2d970SMagnus Damm
13068c907785SMike Rapoport (IBM)	  Don't change if unsure.
1307c1b2d970SMagnus Damm
13081da177e4SLinus Torvaldsconfig ALIGNMENT_TRAP
13093e3f354bSArnd Bergmann	def_bool CPU_CP15_MMU
1310e119bfffSRussell King	select HAVE_PROC_CPU if PROC_FS
13111da177e4SLinus Torvalds	help
13121da177e4SLinus Torvalds	  ARM processors cannot fetch/store information which is not
13131da177e4SLinus Torvalds	  naturally aligned on the bus, i.e., a 4 byte fetch must start at an
13141da177e4SLinus Torvalds	  address divisible by 4. On 32-bit ARM processors, these non-aligned
13151da177e4SLinus Torvalds	  fetch/store instructions will be emulated in software if you say
13161da177e4SLinus Torvalds	  here, which has a severe performance impact. This is necessary for
13171da177e4SLinus Torvalds	  correct operation of some network protocols. With an IP-only
13181da177e4SLinus Torvalds	  configuration it is safe to say N, otherwise say Y.
13191da177e4SLinus Torvalds
132039ec58f3SLennert Buytenhekconfig UACCESS_WITH_MEMCPY
132138ef2ad5SLinus Walleij	bool "Use kernel mem{cpy,set}() for {copy_to,clear}_user()"
132238ef2ad5SLinus Walleij	depends on MMU
132339ec58f3SLennert Buytenhek	default y if CPU_FEROCEON
132439ec58f3SLennert Buytenhek	help
132539ec58f3SLennert Buytenhek	  Implement faster copy_to_user and clear_user methods for CPU
132639ec58f3SLennert Buytenhek	  cores where a 8-word STM instruction give significantly higher
132739ec58f3SLennert Buytenhek	  memory write throughput than a sequence of individual 32bit stores.
132839ec58f3SLennert Buytenhek
132939ec58f3SLennert Buytenhek	  A possible side effect is a slight increase in scheduling latency
133039ec58f3SLennert Buytenhek	  between threads sharing the same address space if they invoke
133139ec58f3SLennert Buytenhek	  such copy operations with large buffers.
133239ec58f3SLennert Buytenhek
133339ec58f3SLennert Buytenhek	  However, if the CPU data cache is using a write-allocate mode,
133439ec58f3SLennert Buytenhek	  this option is unlikely to provide any performance gain.
133539ec58f3SLennert Buytenhek
133602c2433bSStefano Stabelliniconfig PARAVIRT
133702c2433bSStefano Stabellini	bool "Enable paravirtualization code"
133815518e63SJuergen Gross	select HAVE_PV_STEAL_CLOCK_GEN
133902c2433bSStefano Stabellini	help
134002c2433bSStefano Stabellini	  This changes the kernel so it can modify itself when it is run
134102c2433bSStefano Stabellini	  under a hypervisor, potentially improving performance significantly
134202c2433bSStefano Stabellini	  over full virtualization.
134302c2433bSStefano Stabellini
134402c2433bSStefano Stabelliniconfig PARAVIRT_TIME_ACCOUNTING
134502c2433bSStefano Stabellini	bool "Paravirtual steal time accounting"
134602c2433bSStefano Stabellini	select PARAVIRT
134702c2433bSStefano Stabellini	help
134802c2433bSStefano Stabellini	  Select this option to enable fine granularity task steal time
134902c2433bSStefano Stabellini	  accounting. Time spent executing other tasks in parallel with
135002c2433bSStefano Stabellini	  the current vCPU is discounted from the vCPU power. To account for
135102c2433bSStefano Stabellini	  that, there can be a small performance impact.
135202c2433bSStefano Stabellini
135302c2433bSStefano Stabellini	  If in doubt, say N here.
135402c2433bSStefano Stabellini
1355eff8d644SStefano Stabelliniconfig XEN_DOM0
1356eff8d644SStefano Stabellini	def_bool y
1357eff8d644SStefano Stabellini	depends on XEN
1358eff8d644SStefano Stabellini
1359eff8d644SStefano Stabelliniconfig XEN
1360c2ba1f7dSJulien Grall	bool "Xen guest support on ARM"
136185323a99SIan Campbell	depends on ARM && AEABI && OF
1362f880b67dSArnd Bergmann	depends on CPU_V7 && !CPU_V6
136385323a99SIan Campbell	depends on !GENERIC_ATOMIC64
13647693deccSUwe Kleine-König	depends on MMU
136551aaf81fSRussell King	select ARCH_DMA_ADDR_T_64BIT
136617b7ab80SStefano Stabellini	select ARM_PSCI
1367f21254cdSChristoph Hellwig	select SWIOTLB
136883862ccfSStefano Stabellini	select SWIOTLB_XEN
136902c2433bSStefano Stabellini	select PARAVIRT
1370eff8d644SStefano Stabellini	help
1371eff8d644SStefano Stabellini	  Say Y if you want to run Linux in a Virtual Machine on Xen on ARM.
1372eff8d644SStefano Stabellini
1373f05eb1d2SArd Biesheuvelconfig CC_HAVE_STACKPROTECTOR_TLS
1374f05eb1d2SArd Biesheuvel	def_bool $(cc-option,-mtp=cp15 -mstack-protector-guard=tls -mstack-protector-guard-offset=0)
1375f05eb1d2SArd Biesheuvel
1376189af465SArd Biesheuvelconfig STACKPROTECTOR_PER_TASK
1377189af465SArd Biesheuvel	bool "Use a unique stack canary value for each task"
13789c46929eSArd Biesheuvel	depends on STACKPROTECTOR && CURRENT_POINTER_IN_TPIDRURO && !XIP_DEFLATED_DATA
1379b8e14797SKees Cook	depends on CC_HAVE_STACKPROTECTOR_TLS
1380189af465SArd Biesheuvel	default y
1381189af465SArd Biesheuvel	help
1382189af465SArd Biesheuvel	  Due to the fact that GCC uses an ordinary symbol reference from
1383189af465SArd Biesheuvel	  which to load the value of the stack canary, this value can only
1384189af465SArd Biesheuvel	  change at reboot time on SMP systems, and all tasks running in the
1385189af465SArd Biesheuvel	  kernel's address space are forced to use the same canary value for
1386189af465SArd Biesheuvel	  the entire duration that the system is up.
1387189af465SArd Biesheuvel
1388189af465SArd Biesheuvel	  Enable this option to switch to a different method that uses a
1389189af465SArd Biesheuvel	  different canary value for each task.
1390189af465SArd Biesheuvel
13911da177e4SLinus Torvaldsendmenu
13921da177e4SLinus Torvalds
13931da177e4SLinus Torvaldsmenu "Boot options"
13941da177e4SLinus Torvalds
13959eb8f674SGrant Likelyconfig USE_OF
13969eb8f674SGrant Likely	bool "Flattened Device Tree support"
1397b1b3f49cSRussell King	select IRQ_DOMAIN
13989eb8f674SGrant Likely	select OF
13999eb8f674SGrant Likely	help
14009eb8f674SGrant Likely	  Include support for flattened device tree machine descriptions.
14019eb8f674SGrant Likely
14026a1d798fSRob Herringconfig ARCH_WANT_FLAT_DTB_INSTALL
14036a1d798fSRob Herring	def_bool y
14046a1d798fSRob Herring
1405bd51e2f5SNicolas Pitreconfig ATAGS
140696a4ce30SArnd Bergmann	bool "Support for the traditional ATAGS boot data passing"
1407db75f163SArnd Bergmann	depends on EXPERT
1408bd51e2f5SNicolas Pitre	help
1409db75f163SArnd Bergmann	  This is the traditional way of passing data to the kernel at
1410db75f163SArnd Bergmann	  boot but is now only used by a few of the oldest ARMv4 and
1411db75f163SArnd Bergmann	  ARMv5 machines.  Users that still rely on ATAGS should plan
1412db75f163SArnd Bergmann	  on migrating to devicetree based booting.
1413db75f163SArnd Bergmann
1414db75f163SArnd Bergmann	  Support for ATAGS will be removed when the last machine using
1415db75f163SArnd Bergmann	  it is either converted to DT or removed.
1416acb926d6SArnd Bergmann
1417bd51e2f5SNicolas Pitreconfig DEPRECATED_PARAM_STRUCT
1418949b2df5SArnd Bergmann	bool "Provide old way to pass kernel parameters (DEPRECATED)"
1419bd51e2f5SNicolas Pitre	depends on ATAGS
1420bd51e2f5SNicolas Pitre	help
1421bd51e2f5SNicolas Pitre	  This was deprecated in 2001 and announced to live on for 5 years.
1422949b2df5SArnd Bergmann	  It is now scheduled for removal in early 2027.
1423bd51e2f5SNicolas Pitre
14241da177e4SLinus Torvalds# Compressed boot loader in ROM.  Yes, we really want to ask about
14251da177e4SLinus Torvalds# TEXT and BSS so we preserve their values in the config files.
14261da177e4SLinus Torvaldsconfig ZBOOT_ROM_TEXT
14271da177e4SLinus Torvalds	hex "Compressed ROM boot loader base address"
142839c3e304SChris Packham	default 0x0
14291da177e4SLinus Torvalds	help
14301da177e4SLinus Torvalds	  The physical address at which the ROM-able zImage is to be
14311da177e4SLinus Torvalds	  placed in the target.  Platforms which normally make use of
14321da177e4SLinus Torvalds	  ROM-able zImage formats normally set this to a suitable
14331da177e4SLinus Torvalds	  value in their defconfig file.
14341da177e4SLinus Torvalds
14351da177e4SLinus Torvalds	  If ZBOOT_ROM is not enabled, this has no effect.
14361da177e4SLinus Torvalds
14371da177e4SLinus Torvaldsconfig ZBOOT_ROM_BSS
14381da177e4SLinus Torvalds	hex "Compressed ROM boot loader BSS address"
143939c3e304SChris Packham	default 0x0
14401da177e4SLinus Torvalds	help
1441f8c440b2SDan Fandrich	  The base address of an area of read/write memory in the target
1442f8c440b2SDan Fandrich	  for the ROM-able zImage which must be available while the
1443f8c440b2SDan Fandrich	  decompressor is running. It must be large enough to hold the
1444f8c440b2SDan Fandrich	  entire decompressed kernel plus an additional 128 KiB.
1445f8c440b2SDan Fandrich	  Platforms which normally make use of ROM-able zImage formats
1446f8c440b2SDan Fandrich	  normally set this to a suitable value in their defconfig file.
14471da177e4SLinus Torvalds
14481da177e4SLinus Torvalds	  If ZBOOT_ROM is not enabled, this has no effect.
14491da177e4SLinus Torvalds
14501da177e4SLinus Torvaldsconfig ZBOOT_ROM
14511da177e4SLinus Torvalds	bool "Compressed boot loader in ROM/flash"
14521da177e4SLinus Torvalds	depends on ZBOOT_ROM_TEXT != ZBOOT_ROM_BSS
145310968131SRussell King	depends on !ARM_APPENDED_DTB && !XIP_KERNEL && !AUTO_ZRELADDR
14541da177e4SLinus Torvalds	help
14551da177e4SLinus Torvalds	  Say Y here if you intend to execute your compressed kernel image
14561da177e4SLinus Torvalds	  (zImage) directly from ROM or flash.  If unsure, say N.
14571da177e4SLinus Torvalds
1458e2a6a3aaSJohn Bonesioconfig ARM_APPENDED_DTB
1459e2a6a3aaSJohn Bonesio	bool "Use appended device tree blob to zImage (EXPERIMENTAL)"
146010968131SRussell King	depends on OF
1461e2a6a3aaSJohn Bonesio	help
1462e2a6a3aaSJohn Bonesio	  With this option, the boot code will look for a device tree binary
1463e2a6a3aaSJohn Bonesio	  (DTB) appended to zImage
1464e2a6a3aaSJohn Bonesio	  (e.g. cat zImage <filename>.dtb > zImage_w_dtb).
1465e2a6a3aaSJohn Bonesio
1466e2a6a3aaSJohn Bonesio	  This is meant as a backward compatibility convenience for those
1467e2a6a3aaSJohn Bonesio	  systems with a bootloader that can't be upgraded to accommodate
1468e2a6a3aaSJohn Bonesio	  the documented boot protocol using a device tree.
1469e2a6a3aaSJohn Bonesio
1470e2a6a3aaSJohn Bonesio	  Beware that there is very little in terms of protection against
1471e2a6a3aaSJohn Bonesio	  this option being confused by leftover garbage in memory that might
1472e2a6a3aaSJohn Bonesio	  look like a DTB header after a reboot if no actual DTB is appended
1473e2a6a3aaSJohn Bonesio	  to zImage.  Do not leave this option active in a production kernel
1474e2a6a3aaSJohn Bonesio	  if you don't intend to always append a DTB.  Proper passing of the
1475e2a6a3aaSJohn Bonesio	  location into r2 of a bootloader provided DTB is always preferable
1476e2a6a3aaSJohn Bonesio	  to this option.
1477e2a6a3aaSJohn Bonesio
1478b90b9a38SNicolas Pitreconfig ARM_ATAG_DTB_COMPAT
1479b90b9a38SNicolas Pitre	bool "Supplement the appended DTB with traditional ATAG information"
1480b90b9a38SNicolas Pitre	depends on ARM_APPENDED_DTB
1481b90b9a38SNicolas Pitre	help
1482b90b9a38SNicolas Pitre	  Some old bootloaders can't be updated to a DTB capable one, yet
1483b90b9a38SNicolas Pitre	  they provide ATAGs with memory configuration, the ramdisk address,
1484b90b9a38SNicolas Pitre	  the kernel cmdline string, etc.  Such information is dynamically
1485b90b9a38SNicolas Pitre	  provided by the bootloader and can't always be stored in a static
1486b90b9a38SNicolas Pitre	  DTB.  To allow a device tree enabled kernel to be used with such
1487b90b9a38SNicolas Pitre	  bootloaders, this option allows zImage to extract the information
1488b90b9a38SNicolas Pitre	  from the ATAG list and store it at run time into the appended DTB.
1489b90b9a38SNicolas Pitre
1490d0f34a11SGenoud Richardchoice
1491b9d73218SMasahiro Yamada	prompt "Kernel command line type"
1492b9d73218SMasahiro Yamada	depends on ARM_ATAG_DTB_COMPAT
1493d0f34a11SGenoud Richard	default ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER
1494d0f34a11SGenoud Richard
1495d0f34a11SGenoud Richardconfig ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER
1496d0f34a11SGenoud Richard	bool "Use bootloader kernel arguments if available"
1497d0f34a11SGenoud Richard	help
1498d0f34a11SGenoud Richard	  Uses the command-line options passed by the boot loader instead of
1499d0f34a11SGenoud Richard	  the device tree bootargs property. If the boot loader doesn't provide
1500d0f34a11SGenoud Richard	  any, the device tree bootargs property will be used.
1501d0f34a11SGenoud Richard
1502d0f34a11SGenoud Richardconfig ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND
1503d0f34a11SGenoud Richard	bool "Extend with bootloader kernel arguments"
1504d0f34a11SGenoud Richard	help
1505d0f34a11SGenoud Richard	  The command-line arguments provided by the boot loader will be
1506d0f34a11SGenoud Richard	  appended to the the device tree bootargs property.
1507d0f34a11SGenoud Richard
1508d0f34a11SGenoud Richardendchoice
1509d0f34a11SGenoud Richard
15101da177e4SLinus Torvaldsconfig CMDLINE
15111da177e4SLinus Torvalds	string "Default kernel command string"
15121da177e4SLinus Torvalds	default ""
15131da177e4SLinus Torvalds	help
15143e3f354bSArnd Bergmann	  On some architectures (e.g. CATS), there is currently no way
15151da177e4SLinus Torvalds	  for the boot loader to pass arguments to the kernel. For these
15161da177e4SLinus Torvalds	  architectures, you should supply some command-line options at build
15171da177e4SLinus Torvalds	  time by entering them here. As a minimum, you should specify the
15181da177e4SLinus Torvalds	  memory size and the root device (e.g., mem=64M root=/dev/nfs).
15191da177e4SLinus Torvalds
15204394c124SVictor Boiviechoice
1521b9d73218SMasahiro Yamada	prompt "Kernel command line type"
1522b9d73218SMasahiro Yamada	depends on CMDLINE != ""
15234394c124SVictor Boivie	default CMDLINE_FROM_BOOTLOADER
15244394c124SVictor Boivie
15254394c124SVictor Boivieconfig CMDLINE_FROM_BOOTLOADER
15264394c124SVictor Boivie	bool "Use bootloader kernel arguments if available"
15274394c124SVictor Boivie	help
15284394c124SVictor Boivie	  Uses the command-line options passed by the boot loader. If
15294394c124SVictor Boivie	  the boot loader doesn't provide any, the default kernel command
15304394c124SVictor Boivie	  string provided in CMDLINE will be used.
15314394c124SVictor Boivie
15324394c124SVictor Boivieconfig CMDLINE_EXTEND
15334394c124SVictor Boivie	bool "Extend bootloader kernel arguments"
15344394c124SVictor Boivie	help
15354394c124SVictor Boivie	  The command-line arguments provided by the boot loader will be
15364394c124SVictor Boivie	  appended to the default kernel command string.
15374394c124SVictor Boivie
153892d2040dSAlexander Hollerconfig CMDLINE_FORCE
153992d2040dSAlexander Holler	bool "Always use the default kernel command string"
154092d2040dSAlexander Holler	help
154192d2040dSAlexander Holler	  Always use the default kernel command string, even if the boot
154292d2040dSAlexander Holler	  loader passes other arguments to the kernel.
154392d2040dSAlexander Holler	  This is useful if you cannot or don't want to change the
154492d2040dSAlexander Holler	  command-line options your boot loader passes to the kernel.
15454394c124SVictor Boivieendchoice
154692d2040dSAlexander Holler
15471da177e4SLinus Torvaldsconfig XIP_KERNEL
15481da177e4SLinus Torvalds	bool "Kernel Execute-In-Place from ROM"
154910968131SRussell King	depends on !ARM_LPAE && !ARCH_MULTIPLATFORM
15505408445bSArnd Bergmann	depends on !ARM_PATCH_IDIV && !ARM_PATCH_PHYS_VIRT && !SMP_ON_UP
15511da177e4SLinus Torvalds	help
15521da177e4SLinus Torvalds	  Execute-In-Place allows the kernel to run from non-volatile storage
15531da177e4SLinus Torvalds	  directly addressable by the CPU, such as NOR flash. This saves RAM
15541da177e4SLinus Torvalds	  space since the text section of the kernel is not loaded from flash
15551da177e4SLinus Torvalds	  to RAM.  Read-write sections, such as the data section and stack,
15561da177e4SLinus Torvalds	  are still copied to RAM.  The XIP kernel is not compressed since
15571da177e4SLinus Torvalds	  it has to run directly from flash, so it will take more space to
15581da177e4SLinus Torvalds	  store it.  The flash address used to link the kernel object files,
15591da177e4SLinus Torvalds	  and for storing it, is configuration dependent. Therefore, if you
15601da177e4SLinus Torvalds	  say Y here, you must know the proper physical address where to
15611da177e4SLinus Torvalds	  store the kernel image depending on your own flash memory usage.
15621da177e4SLinus Torvalds
15631da177e4SLinus Torvalds	  Also note that the make target becomes "make xipImage" rather than
15641da177e4SLinus Torvalds	  "make zImage" or "make Image".  The final kernel binary to put in
15651da177e4SLinus Torvalds	  ROM memory will be arch/arm/boot/xipImage.
15661da177e4SLinus Torvalds
15671da177e4SLinus Torvalds	  If unsure, say N.
15681da177e4SLinus Torvalds
15691da177e4SLinus Torvaldsconfig XIP_PHYS_ADDR
15701da177e4SLinus Torvalds	hex "XIP Kernel Physical Location"
15711da177e4SLinus Torvalds	depends on XIP_KERNEL
15721da177e4SLinus Torvalds	default "0x00080000"
15731da177e4SLinus Torvalds	help
15741da177e4SLinus Torvalds	  This is the physical address in your flash memory the kernel will
15751da177e4SLinus Torvalds	  be linked for and stored to.  This address is dependent on your
15761da177e4SLinus Torvalds	  own flash usage.
15771da177e4SLinus Torvalds
1578ca8b5d97SNicolas Pitreconfig XIP_DEFLATED_DATA
1579ca8b5d97SNicolas Pitre	bool "Store kernel .data section compressed in ROM"
1580ca8b5d97SNicolas Pitre	depends on XIP_KERNEL
1581ca8b5d97SNicolas Pitre	select ZLIB_INFLATE
1582ca8b5d97SNicolas Pitre	help
1583ca8b5d97SNicolas Pitre	  Before the kernel is actually executed, its .data section has to be
1584ca8b5d97SNicolas Pitre	  copied to RAM from ROM. This option allows for storing that data
1585ca8b5d97SNicolas Pitre	  in compressed form and decompressed to RAM rather than merely being
1586ca8b5d97SNicolas Pitre	  copied, saving some precious ROM space. A possible drawback is a
1587ca8b5d97SNicolas Pitre	  slightly longer boot delay.
1588ca8b5d97SNicolas Pitre
15894183635eSEric DeVolderconfig ARCH_SUPPORTS_KEXEC
15904183635eSEric DeVolder	def_bool (!SMP || PM_SLEEP_SMP) && MMU
1591c587e4a6SRichard Purdie
15924cd9d6f7SRichard Purdieconfig ATAGS_PROC
15934cd9d6f7SRichard Purdie	bool "Export atags in procfs"
1594bd51e2f5SNicolas Pitre	depends on ATAGS && KEXEC
1595b98d7291SUli Luckas	default y
15964cd9d6f7SRichard Purdie	help
15974cd9d6f7SRichard Purdie	  Should the atags used to boot the kernel be exported in an "atags"
15984cd9d6f7SRichard Purdie	  file in procfs. Useful with kexec.
15994cd9d6f7SRichard Purdie
16004183635eSEric DeVolderconfig ARCH_SUPPORTS_CRASH_DUMP
16014183635eSEric DeVolder	def_bool y
1602cb5d39b3SMika Westerberg
160331daa343SDave Vasilevskyconfig ARCH_DEFAULT_CRASH_DUMP
160431daa343SDave Vasilevsky	def_bool y
160531daa343SDave Vasilevsky
1606e69edc79SEric Miaoconfig AUTO_ZRELADDR
16076fd09c9aSArnd Bergmann	bool "Auto calculation of the decompressed kernel image address" if !ARCH_MULTIPLATFORM
16086fd09c9aSArnd Bergmann	default !(ARCH_FOOTBRIDGE || ARCH_RPC || ARCH_SA1100)
1609e69edc79SEric Miao	help
1610e69edc79SEric Miao	  ZRELADDR is the physical address where the decompressed kernel
1611e69edc79SEric Miao	  image will be placed. If AUTO_ZRELADDR is selected, the address
16120673cb38SGeert Uytterhoeven	  will be determined at run-time, either by masking the current IP
16130673cb38SGeert Uytterhoeven	  with 0xf8000000, or, if invalid, from the DTB passed in r2.
16140673cb38SGeert Uytterhoeven	  This assumes the zImage being placed in the first 128MB from
16150673cb38SGeert Uytterhoeven	  start of memory.
1616e69edc79SEric Miao
161781a0bc39SRoy Franzconfig EFI_STUB
161881a0bc39SRoy Franz	bool
161981a0bc39SRoy Franz
162081a0bc39SRoy Franzconfig EFI
162181a0bc39SRoy Franz	bool "UEFI runtime support"
162281a0bc39SRoy Franz	depends on OF && !CPU_BIG_ENDIAN && MMU && AUTO_ZRELADDR && !XIP_KERNEL
162381a0bc39SRoy Franz	select UCS2_STRING
162481a0bc39SRoy Franz	select EFI_PARAMS_FROM_FDT
162581a0bc39SRoy Franz	select EFI_STUB
16262e0eb483SAtish Patra	select EFI_GENERIC_STUB
162781a0bc39SRoy Franz	select EFI_RUNTIME_WRAPPERS
1628a7f7f624SMasahiro Yamada	help
162981a0bc39SRoy Franz	  This option provides support for runtime services provided
163081a0bc39SRoy Franz	  by UEFI firmware (such as non-volatile variables, realtime
163181a0bc39SRoy Franz	  clock, and platform reset). A UEFI stub is also provided to
163281a0bc39SRoy Franz	  allow the kernel to be booted as an EFI application. This
163381a0bc39SRoy Franz	  is only useful for kernels that may run on systems that have
163481a0bc39SRoy Franz	  UEFI firmware.
163581a0bc39SRoy Franz
1636bb817befSArd Biesheuvelconfig DMI
1637bb817befSArd Biesheuvel	bool "Enable support for SMBIOS (DMI) tables"
1638bb817befSArd Biesheuvel	depends on EFI
1639bb817befSArd Biesheuvel	default y
1640bb817befSArd Biesheuvel	help
1641bb817befSArd Biesheuvel	  This enables SMBIOS/DMI feature for systems.
1642bb817befSArd Biesheuvel
1643bb817befSArd Biesheuvel	  This option is only useful on systems that have UEFI firmware.
1644bb817befSArd Biesheuvel	  However, even with this option, the resultant kernel should
1645bb817befSArd Biesheuvel	  continue to boot on existing non-UEFI platforms.
1646bb817befSArd Biesheuvel
1647bb817befSArd Biesheuvel	  NOTE: This does *NOT* enable or encourage the use of DMI quirks,
1648bb817befSArd Biesheuvel	  i.e., the the practice of identifying the platform via DMI to
1649bb817befSArd Biesheuvel	  decide whether certain workarounds for buggy hardware and/or
1650bb817befSArd Biesheuvel	  firmware need to be enabled. This would require the DMI subsystem
1651bb817befSArd Biesheuvel	  to be enabled much earlier than we do on ARM, which is non-trivial.
1652bb817befSArd Biesheuvel
16531da177e4SLinus Torvaldsendmenu
16541da177e4SLinus Torvalds
1655ac9d7efcSRussell Kingmenu "CPU Power Management"
16561da177e4SLinus Torvalds
16571da177e4SLinus Torvaldssource "drivers/cpufreq/Kconfig"
16581da177e4SLinus Torvalds
1659ac9d7efcSRussell Kingsource "drivers/cpuidle/Kconfig"
1660ac9d7efcSRussell King
1661ac9d7efcSRussell Kingendmenu
1662ac9d7efcSRussell King
16631da177e4SLinus Torvaldsmenu "Floating point emulation"
16641da177e4SLinus Torvalds
16651da177e4SLinus Torvaldscomment "At least one emulation must be selected"
16661da177e4SLinus Torvalds
16671da177e4SLinus Torvaldsconfig FPE_NWFPE
1668e3c0bc30SArnd Bergmann	bool "NWFPE math emulation (DEPRECATED)"
1669593c252aSDave Martin	depends on (!AEABI || OABI_COMPAT) && !THUMB2_KERNEL
1670a7f7f624SMasahiro Yamada	help
16711da177e4SLinus Torvalds	  Say Y to include the NWFPE floating point emulator in the kernel.
16721da177e4SLinus Torvalds
1673e3c0bc30SArnd Bergmann	  This is only used on OABI userspace binaries, either using a
1674e3c0bc30SArnd Bergmann	  pure OABI (!CONFIG_AEABI) kernel, or the OABI emulation.
1675e3c0bc30SArnd Bergmann
1676e3c0bc30SArnd Bergmann	  Support for NWFPE will be removed in the future when OABI
1677e3c0bc30SArnd Bergmann	  support is removed.
16781da177e4SLinus Torvalds
16791da177e4SLinus Torvaldsconfig FPE_NWFPE_XP
16801da177e4SLinus Torvalds	bool "Support extended precision"
1681bedf142bSLennert Buytenhek	depends on FPE_NWFPE
16821da177e4SLinus Torvalds	help
16831da177e4SLinus Torvalds	  Say Y to include 80-bit support in the kernel floating-point
16841da177e4SLinus Torvalds	  emulator.  Otherwise, only 32 and 64-bit support is compiled in.
16851da177e4SLinus Torvalds	  Note that gcc does not generate 80-bit operations by default,
16861da177e4SLinus Torvalds	  so in most cases this option only enlarges the size of the
16871da177e4SLinus Torvalds	  floating point emulator without any good reason.
16881da177e4SLinus Torvalds
16891da177e4SLinus Torvalds	  You almost surely want to say N here.
16901da177e4SLinus Torvalds
16911da177e4SLinus Torvaldsconfig FPE_FASTFPE
16921da177e4SLinus Torvalds	bool "FastFPE math emulation (EXPERIMENTAL)"
1693d6f94fa0SKees Cook	depends on (!AEABI || OABI_COMPAT) && !CPU_32v3
1694a7f7f624SMasahiro Yamada	help
16951da177e4SLinus Torvalds	  Say Y here to include the FAST floating point emulator in the kernel.
16961da177e4SLinus Torvalds	  This is an experimental much faster emulator which now also has full
16971da177e4SLinus Torvalds	  precision for the mantissa.  It does not support any exceptions.
16981da177e4SLinus Torvalds	  It is very simple, and approximately 3-6 times faster than NWFPE.
16991da177e4SLinus Torvalds
17001da177e4SLinus Torvalds	  It should be sufficient for most programs.  It may be not suitable
17011da177e4SLinus Torvalds	  for scientific calculations, but you have to check this for yourself.
17021da177e4SLinus Torvalds	  If you do not feel you need a faster FP emulation you should better
17031da177e4SLinus Torvalds	  choose NWFPE.
17041da177e4SLinus Torvalds
17051da177e4SLinus Torvaldsconfig VFP
17061da177e4SLinus Torvalds	bool "VFP-format floating point maths"
1707e399b1a4SRussell King	depends on CPU_V6 || CPU_V6K || CPU_ARM926T || CPU_V7 || CPU_FEROCEON
17081da177e4SLinus Torvalds	help
17091da177e4SLinus Torvalds	  Say Y to include VFP support code in the kernel. This is needed
17101da177e4SLinus Torvalds	  if your hardware includes a VFP unit.
17111da177e4SLinus Torvalds
1712e318b36eSJonathan Corbet	  Please see <file:Documentation/arch/arm/vfp/release-notes.rst> for
17131da177e4SLinus Torvalds	  release notes and additional status information.
17141da177e4SLinus Torvalds
17151da177e4SLinus Torvalds	  Say N if your target does not have VFP hardware.
17161da177e4SLinus Torvalds
171725ebee02SCatalin Marinasconfig VFPv3
171825ebee02SCatalin Marinas	bool
171925ebee02SCatalin Marinas	depends on VFP
172025ebee02SCatalin Marinas	default y if CPU_V7
172125ebee02SCatalin Marinas
1722b5872db4SCatalin Marinasconfig NEON
1723b5872db4SCatalin Marinas	bool "Advanced SIMD (NEON) Extension support"
1724b5872db4SCatalin Marinas	depends on VFPv3 && CPU_V7
1725b5872db4SCatalin Marinas	help
1726b5872db4SCatalin Marinas	  Say Y to include support code for NEON, the ARMv7 Advanced SIMD
1727b5872db4SCatalin Marinas	  Extension.
1728b5872db4SCatalin Marinas
172973c132c1SArd Biesheuvelconfig KERNEL_MODE_NEON
173073c132c1SArd Biesheuvel	bool "Support for NEON in kernel mode"
1731c4a30c3bSRussell King	depends on NEON && AEABI
173273c132c1SArd Biesheuvel	help
173373c132c1SArd Biesheuvel	  Say Y to include support for NEON in kernel mode.
173473c132c1SArd Biesheuvel
17351da177e4SLinus Torvaldsendmenu
17361da177e4SLinus Torvalds
17373df8585aSThomas Weissschuhconfig ARCH_CC_CAN_LINK
17383df8585aSThomas Weissschuh	bool
17393df8585aSThomas Weissschuh	default $(cc_can_link_user,-mlittle-endian) if CPU_LITTLE_ENDIAN
1740561f60dfSThomas Weissschuh	default $(cc_can_link_user,-mbig-endian -mbe8) if CPU_ENDIAN_BE8
1741561f60dfSThomas Weissschuh	default $(cc_can_link_user,-mbig-endian -mbe32) if CPU_ENDIAN_BE32
17423df8585aSThomas Weissschuh
17433df8585aSThomas Weissschuhconfig ARCH_USERFLAGS
17443df8585aSThomas Weissschuh	string
17453df8585aSThomas Weissschuh	default "-mlittle-endian" if CPU_LITTLE_ENDIAN
1746561f60dfSThomas Weissschuh	default "-mbig-endian -mbe8" if CPU_ENDIAN_BE8
1747561f60dfSThomas Weissschuh	default "-mbig-endian -mbe32" if CPU_ENDIAN_BE32
17483df8585aSThomas Weissschuh
17491da177e4SLinus Torvaldsmenu "Power management options"
17501da177e4SLinus Torvalds
1751eceab4acSRussell Kingsource "kernel/power/Kconfig"
17521da177e4SLinus Torvalds
1753f4cb5700SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE
175419a0519dSEzequiel Garcia	depends on CPU_ARM920T || CPU_ARM926T || CPU_FEROCEON || CPU_SA1100 || \
1755f0d75153SUwe Kleine-König		CPU_V6 || CPU_V6K || CPU_V7 || CPU_V7M || CPU_XSC3 || CPU_XSCALE || CPU_MOHAWK
1756f4cb5700SJohannes Berg	def_bool y
1757f4cb5700SJohannes Berg
175815e0d9e3SArnd Bergmannconfig ARM_CPU_SUSPEND
17598b6f2499SLorenzo Pieralisi	def_bool PM_SLEEP || BL_SWITCHER || ARM_PSCI_FW
17601b9bdf5cSLorenzo Pieralisi	depends on ARCH_SUSPEND_POSSIBLE
176115e0d9e3SArnd Bergmann
1762603fb42aSSebastian Capellaconfig ARCH_HIBERNATION_POSSIBLE
1763603fb42aSSebastian Capella	bool
1764603fb42aSSebastian Capella	depends on MMU
1765603fb42aSSebastian Capella	default y if ARCH_SUSPEND_POSSIBLE
1766603fb42aSSebastian Capella
17671da177e4SLinus Torvaldsendmenu
1768