3 select ACPI_CCA_REQUIRED if ACPI
4 select ACPI_GENERIC_GSI if ACPI
5 select ACPI_REDUCED_HARDWARE_ONLY if ACPI
6 select ACPI_MCFG if ACPI
7 select ACPI_SPCR_TABLE if ACPI
8 select ARCH_CLOCKSOURCE_DATA
9 select ARCH_HAS_DEVMEM_IS_ALLOWED
10 select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
11 select ARCH_HAS_ELF_RANDOMIZE
12 select ARCH_HAS_GCOV_PROFILE_ALL
13 select ARCH_HAS_GIGANTIC_PAGE
15 select ARCH_HAS_SG_CHAIN
16 select ARCH_HAS_STRICT_KERNEL_RWX
17 select ARCH_HAS_STRICT_MODULE_RWX
18 select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
19 select ARCH_USE_CMPXCHG_LOCKREF
20 select ARCH_SUPPORTS_ATOMIC_RMW
21 select ARCH_SUPPORTS_NUMA_BALANCING
22 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
23 select ARCH_WANT_FRAME_POINTERS
24 select ARCH_HAS_UBSAN_SANITIZE_ALL
28 select AUDIT_ARCH_COMPAT_GENERIC
29 select ARM_GIC_V2M if PCI
31 select ARM_GIC_V3_ITS if PCI
33 select BUILDTIME_EXTABLE_SORT
34 select CLONE_BACKWARDS
36 select CPU_PM if (SUSPEND || CPU_IDLE)
37 select DCACHE_WORD_ACCESS
40 select GENERIC_ALLOCATOR
41 select GENERIC_CLOCKEVENTS
42 select GENERIC_CLOCKEVENTS_BROADCAST
43 select GENERIC_CPU_AUTOPROBE
44 select GENERIC_EARLY_IOREMAP
45 select GENERIC_IDLE_POLL_SETUP
46 select GENERIC_IRQ_PROBE
47 select GENERIC_IRQ_SHOW
48 select GENERIC_IRQ_SHOW_LEVEL
49 select GENERIC_PCI_IOMAP
50 select GENERIC_SCHED_CLOCK
51 select GENERIC_SMP_IDLE_THREAD
52 select GENERIC_STRNCPY_FROM_USER
53 select GENERIC_STRNLEN_USER
54 select GENERIC_TIME_VSYSCALL
55 select HANDLE_DOMAIN_IRQ
56 select HARDIRQS_SW_RESEND
57 select HAVE_ACPI_APEI if (ACPI && EFI)
58 select HAVE_ALIGNED_STRUCT_PAGE if SLUB
59 select HAVE_ARCH_AUDITSYSCALL
60 select HAVE_ARCH_BITREVERSE
61 select HAVE_ARCH_HARDENED_USERCOPY
62 select HAVE_ARCH_HUGE_VMAP
63 select HAVE_ARCH_JUMP_LABEL
64 select HAVE_ARCH_KASAN if SPARSEMEM_VMEMMAP && !(ARM64_16K_PAGES && ARM64_VA_BITS_48)
66 select HAVE_ARCH_MMAP_RND_BITS
67 select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT
68 select HAVE_ARCH_SECCOMP_FILTER
69 select HAVE_ARCH_TRACEHOOK
70 select HAVE_ARCH_TRANSPARENT_HUGEPAGE
73 select HAVE_C_RECORDMCOUNT
74 select HAVE_CC_STACKPROTECTOR
75 select HAVE_CMPXCHG_DOUBLE
76 select HAVE_CMPXCHG_LOCAL
77 select HAVE_CONTEXT_TRACKING
78 select HAVE_DEBUG_BUGVERBOSE
79 select HAVE_DEBUG_KMEMLEAK
80 select HAVE_DMA_API_DEBUG
81 select HAVE_DMA_CONTIGUOUS
82 select HAVE_DYNAMIC_FTRACE
83 select HAVE_EFFICIENT_UNALIGNED_ACCESS
84 select HAVE_FTRACE_MCOUNT_RECORD
85 select HAVE_FUNCTION_TRACER
86 select HAVE_FUNCTION_GRAPH_TRACER
87 select HAVE_GCC_PLUGINS
88 select HAVE_GENERIC_DMA_COHERENT
89 select HAVE_HW_BREAKPOINT if PERF_EVENTS
90 select HAVE_IRQ_TIME_ACCOUNTING
92 select HAVE_MEMBLOCK_NODE_MAP if NUMA
93 select HAVE_PATA_PLATFORM
94 select HAVE_PERF_EVENTS
96 select HAVE_PERF_USER_STACK_DUMP
97 select HAVE_REGS_AND_STACK_ACCESS_API
98 select HAVE_RCU_TABLE_FREE
99 select HAVE_SYSCALL_TRACEPOINTS
101 select HAVE_KRETPROBES if HAVE_KPROBES
102 select IOMMU_DMA if IOMMU_SUPPORT
104 select IRQ_FORCED_THREADING
105 select MODULES_USE_ELF_RELA
108 select OF_EARLY_FLATTREE
109 select OF_RESERVED_MEM
110 select PCI_ECAM if ACPI
114 select SYSCTL_EXCEPTION_TRACE
115 select THREAD_INFO_IN_TASK
117 ARM 64-bit (AArch64) Linux support.
122 config ARCH_PHYS_ADDR_T_64BIT
128 config ARM64_PAGE_SHIFT
130 default 16 if ARM64_64K_PAGES
131 default 14 if ARM64_16K_PAGES
134 config ARM64_CONT_SHIFT
136 default 5 if ARM64_64K_PAGES
137 default 7 if ARM64_16K_PAGES
140 config ARCH_MMAP_RND_BITS_MIN
141 default 14 if ARM64_64K_PAGES
142 default 16 if ARM64_16K_PAGES
145 # max bits determined by the following formula:
146 # VA_BITS - PAGE_SHIFT - 3
147 config ARCH_MMAP_RND_BITS_MAX
148 default 19 if ARM64_VA_BITS=36
149 default 24 if ARM64_VA_BITS=39
150 default 27 if ARM64_VA_BITS=42
151 default 30 if ARM64_VA_BITS=47
152 default 29 if ARM64_VA_BITS=48 && ARM64_64K_PAGES
153 default 31 if ARM64_VA_BITS=48 && ARM64_16K_PAGES
154 default 33 if ARM64_VA_BITS=48
155 default 14 if ARM64_64K_PAGES
156 default 16 if ARM64_16K_PAGES
159 config ARCH_MMAP_RND_COMPAT_BITS_MIN
160 default 7 if ARM64_64K_PAGES
161 default 9 if ARM64_16K_PAGES
164 config ARCH_MMAP_RND_COMPAT_BITS_MAX
170 config STACKTRACE_SUPPORT
173 config ILLEGAL_POINTER_VALUE
175 default 0xdead000000000000
177 config LOCKDEP_SUPPORT
180 config TRACE_IRQFLAGS_SUPPORT
183 config RWSEM_XCHGADD_ALGORITHM
190 config GENERIC_BUG_RELATIVE_POINTERS
192 depends on GENERIC_BUG
194 config GENERIC_HWEIGHT
200 config GENERIC_CALIBRATE_DELAY
206 config HAVE_GENERIC_RCU_GUP
209 config ARCH_DMA_ADDR_T_64BIT
212 config NEED_DMA_MAP_STATE
215 config NEED_SG_DMA_LENGTH
227 config KERNEL_MODE_NEON
230 config FIX_EARLYCON_MEM
233 config PGTABLE_LEVELS
235 default 2 if ARM64_16K_PAGES && ARM64_VA_BITS_36
236 default 2 if ARM64_64K_PAGES && ARM64_VA_BITS_42
237 default 3 if ARM64_64K_PAGES && ARM64_VA_BITS_48
238 default 3 if ARM64_4K_PAGES && ARM64_VA_BITS_39
239 default 3 if ARM64_16K_PAGES && ARM64_VA_BITS_47
240 default 4 if !ARM64_64K_PAGES && ARM64_VA_BITS_48
242 config ARCH_SUPPORTS_UPROBES
245 source "init/Kconfig"
247 source "kernel/Kconfig.freezer"
249 source "arch/arm64/Kconfig.platforms"
256 This feature enables support for PCI bus system. If you say Y
257 here, the kernel will include drivers and infrastructure code
258 to support PCI bus devices.
263 config PCI_DOMAINS_GENERIC
269 source "drivers/pci/Kconfig"
273 menu "Kernel Features"
275 menu "ARM errata workarounds via the alternatives framework"
277 config ARM64_ERRATUM_826319
278 bool "Cortex-A53: 826319: System might deadlock if a write cannot complete until read data is accepted"
281 This option adds an alternative code sequence to work around ARM
282 erratum 826319 on Cortex-A53 parts up to r0p2 with an AMBA 4 ACE or
283 AXI master interface and an L2 cache.
285 If a Cortex-A53 uses an AMBA AXI4 ACE interface to other processors
286 and is unable to accept a certain write via this interface, it will
287 not progress on read data presented on the read data channel and the
290 The workaround promotes data cache clean instructions to
291 data cache clean-and-invalidate.
292 Please note that this does not necessarily enable the workaround,
293 as it depends on the alternative framework, which will only patch
294 the kernel if an affected CPU is detected.
298 config ARM64_ERRATUM_827319
299 bool "Cortex-A53: 827319: Data cache clean instructions might cause overlapping transactions to the interconnect"
302 This option adds an alternative code sequence to work around ARM
303 erratum 827319 on Cortex-A53 parts up to r0p2 with an AMBA 5 CHI
304 master interface and an L2 cache.
306 Under certain conditions this erratum can cause a clean line eviction
307 to occur at the same time as another transaction to the same address
308 on the AMBA 5 CHI interface, which can cause data corruption if the
309 interconnect reorders the two transactions.
311 The workaround promotes data cache clean instructions to
312 data cache clean-and-invalidate.
313 Please note that this does not necessarily enable the workaround,
314 as it depends on the alternative framework, which will only patch
315 the kernel if an affected CPU is detected.
319 config ARM64_ERRATUM_824069
320 bool "Cortex-A53: 824069: Cache line might not be marked as clean after a CleanShared snoop"
323 This option adds an alternative code sequence to work around ARM
324 erratum 824069 on Cortex-A53 parts up to r0p2 when it is connected
325 to a coherent interconnect.
327 If a Cortex-A53 processor is executing a store or prefetch for
328 write instruction at the same time as a processor in another
329 cluster is executing a cache maintenance operation to the same
330 address, then this erratum might cause a clean cache line to be
331 incorrectly marked as dirty.
333 The workaround promotes data cache clean instructions to
334 data cache clean-and-invalidate.
335 Please note that this option does not necessarily enable the
336 workaround, as it depends on the alternative framework, which will
337 only patch the kernel if an affected CPU is detected.
341 config ARM64_ERRATUM_819472
342 bool "Cortex-A53: 819472: Store exclusive instructions might cause data corruption"
345 This option adds an alternative code sequence to work around ARM
346 erratum 819472 on Cortex-A53 parts up to r0p1 with an L2 cache
347 present when it is connected to a coherent interconnect.
349 If the processor is executing a load and store exclusive sequence at
350 the same time as a processor in another cluster is executing a cache
351 maintenance operation to the same address, then this erratum might
352 cause data corruption.
354 The workaround promotes data cache clean instructions to
355 data cache clean-and-invalidate.
356 Please note that this does not necessarily enable the workaround,
357 as it depends on the alternative framework, which will only patch
358 the kernel if an affected CPU is detected.
362 config ARM64_ERRATUM_832075
363 bool "Cortex-A57: 832075: possible deadlock on mixing exclusive memory accesses with device loads"
366 This option adds an alternative code sequence to work around ARM
367 erratum 832075 on Cortex-A57 parts up to r1p2.
369 Affected Cortex-A57 parts might deadlock when exclusive load/store
370 instructions to Write-Back memory are mixed with Device loads.
372 The workaround is to promote device loads to use Load-Acquire
374 Please note that this does not necessarily enable the workaround,
375 as it depends on the alternative framework, which will only patch
376 the kernel if an affected CPU is detected.
380 config ARM64_ERRATUM_834220
381 bool "Cortex-A57: 834220: Stage 2 translation fault might be incorrectly reported in presence of a Stage 1 fault"
385 This option adds an alternative code sequence to work around ARM
386 erratum 834220 on Cortex-A57 parts up to r1p2.
388 Affected Cortex-A57 parts might report a Stage 2 translation
389 fault as the result of a Stage 1 fault for load crossing a
390 page boundary when there is a permission or device memory
391 alignment fault at Stage 1 and a translation fault at Stage 2.
393 The workaround is to verify that the Stage 1 translation
394 doesn't generate a fault before handling the Stage 2 fault.
395 Please note that this does not necessarily enable the workaround,
396 as it depends on the alternative framework, which will only patch
397 the kernel if an affected CPU is detected.
401 config ARM64_ERRATUM_845719
402 bool "Cortex-A53: 845719: a load might read incorrect data"
406 This option adds an alternative code sequence to work around ARM
407 erratum 845719 on Cortex-A53 parts up to r0p4.
409 When running a compat (AArch32) userspace on an affected Cortex-A53
410 part, a load at EL0 from a virtual address that matches the bottom 32
411 bits of the virtual address used by a recent load at (AArch64) EL1
412 might return incorrect data.
414 The workaround is to write the contextidr_el1 register on exception
415 return to a 32-bit task.
416 Please note that this does not necessarily enable the workaround,
417 as it depends on the alternative framework, which will only patch
418 the kernel if an affected CPU is detected.
422 config ARM64_ERRATUM_843419
423 bool "Cortex-A53: 843419: A load or store might access an incorrect address"
425 select ARM64_MODULE_CMODEL_LARGE if MODULES
427 This option links the kernel with '--fix-cortex-a53-843419' and
428 builds modules using the large memory model in order to avoid the use
429 of the ADRP instruction, which can cause a subsequent memory access
430 to use an incorrect address on Cortex-A53 parts up to r0p4.
434 config CAVIUM_ERRATUM_22375
435 bool "Cavium erratum 22375, 24313"
438 Enable workaround for erratum 22375, 24313.
440 This implements two gicv3-its errata workarounds for ThunderX. Both
441 with small impact affecting only ITS table allocation.
443 erratum 22375: only alloc 8MB table size
444 erratum 24313: ignore memory access type
446 The fixes are in ITS initialization and basically ignore memory access
447 type and table size provided by the TYPER and BASER registers.
451 config CAVIUM_ERRATUM_23144
452 bool "Cavium erratum 23144: ITS SYNC hang on dual socket system"
456 ITS SYNC command hang for cross node io and collections/cpu mapping.
460 config CAVIUM_ERRATUM_23154
461 bool "Cavium erratum 23154: Access to ICC_IAR1_EL1 is not sync'ed"
464 The gicv3 of ThunderX requires a modified version for
465 reading the IAR status to ensure data synchronization
466 (access to icc_iar1_el1 is not sync'ed before and after).
470 config CAVIUM_ERRATUM_27456
471 bool "Cavium erratum 27456: Broadcast TLBI instructions may cause icache corruption"
474 On ThunderX T88 pass 1.x through 2.1 parts, broadcast TLBI
475 instructions may cause the icache to become corrupted if it
476 contains data for a non-current ASID. The fix is to
477 invalidate the icache when changing the mm context.
486 default ARM64_4K_PAGES
488 Page size (translation granule) configuration.
490 config ARM64_4K_PAGES
493 This feature enables 4KB pages support.
495 config ARM64_16K_PAGES
498 The system will use 16KB pages support. AArch32 emulation
499 requires applications compiled with 16K (or a multiple of 16K)
502 config ARM64_64K_PAGES
505 This feature enables 64KB pages support (4KB by default)
506 allowing only two levels of page tables and faster TLB
507 look-up. AArch32 emulation requires applications compiled
508 with 64K aligned segments.
513 prompt "Virtual address space size"
514 default ARM64_VA_BITS_39 if ARM64_4K_PAGES
515 default ARM64_VA_BITS_47 if ARM64_16K_PAGES
516 default ARM64_VA_BITS_42 if ARM64_64K_PAGES
518 Allows choosing one of multiple possible virtual address
519 space sizes. The level of translation table is determined by
520 a combination of page size and virtual address space size.
522 config ARM64_VA_BITS_36
523 bool "36-bit" if EXPERT
524 depends on ARM64_16K_PAGES
526 config ARM64_VA_BITS_39
528 depends on ARM64_4K_PAGES
530 config ARM64_VA_BITS_42
532 depends on ARM64_64K_PAGES
534 config ARM64_VA_BITS_47
536 depends on ARM64_16K_PAGES
538 config ARM64_VA_BITS_48
545 default 36 if ARM64_VA_BITS_36
546 default 39 if ARM64_VA_BITS_39
547 default 42 if ARM64_VA_BITS_42
548 default 47 if ARM64_VA_BITS_47
549 default 48 if ARM64_VA_BITS_48
551 config CPU_BIG_ENDIAN
552 bool "Build big-endian kernel"
554 Say Y if you plan on running a kernel in big-endian mode.
557 bool "Multi-core scheduler support"
559 Multi-core scheduler support improves the CPU scheduler's decision
560 making when dealing with multi-core CPU chips at a cost of slightly
561 increased overhead in some places. If unsure say N here.
564 bool "SMT scheduler support"
566 Improves the CPU scheduler's decision making when dealing with
567 MultiThreading at a cost of slightly increased overhead in some
568 places. If unsure say N here.
571 int "Maximum number of CPUs (2-4096)"
573 # These have to remain sorted largest to smallest
577 bool "Support for hot-pluggable CPUs"
578 select GENERIC_IRQ_MIGRATION
580 Say Y here to experiment with turning CPUs off and on. CPUs
581 can be controlled through /sys/devices/system/cpu.
583 # Common NUMA Features
585 bool "Numa Memory Allocation and Scheduler Support"
586 select ACPI_NUMA if ACPI
589 Enable NUMA (Non Uniform Memory Access) support.
591 The kernel will try to allocate memory used by a CPU on the
592 local memory of the CPU and add some more
593 NUMA awareness to the kernel.
596 int "Maximum NUMA Nodes (as a power of 2)"
599 depends on NEED_MULTIPLE_NODES
601 Specify the maximum number of NUMA Nodes available on the target
602 system. Increases memory reserved to accommodate various tables.
604 config USE_PERCPU_NUMA_NODE_ID
608 config HAVE_SETUP_PER_CPU_AREA
612 config NEED_PER_CPU_EMBED_FIRST_CHUNK
616 source kernel/Kconfig.preempt
617 source kernel/Kconfig.hz
619 config ARCH_SUPPORTS_DEBUG_PAGEALLOC
622 config ARCH_HAS_HOLES_MEMORYMODEL
623 def_bool y if SPARSEMEM
625 config ARCH_SPARSEMEM_ENABLE
627 select SPARSEMEM_VMEMMAP_ENABLE
629 config ARCH_SPARSEMEM_DEFAULT
630 def_bool ARCH_SPARSEMEM_ENABLE
632 config ARCH_SELECT_MEMORY_MODEL
633 def_bool ARCH_SPARSEMEM_ENABLE
635 config HAVE_ARCH_PFN_VALID
636 def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
638 config HW_PERF_EVENTS
642 config SYS_SUPPORTS_HUGETLBFS
645 config ARCH_WANT_HUGE_PMD_SHARE
646 def_bool y if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36)
648 config ARCH_HAS_CACHE_LINE_SIZE
654 bool "Enable seccomp to safely compute untrusted bytecode"
656 This kernel feature is useful for number crunching applications
657 that may need to compute untrusted bytecode during their
658 execution. By using pipes or other transports made available to
659 the process as file descriptors supporting the read/write
660 syscalls, it's possible to isolate those applications in
661 their own address space using seccomp. Once seccomp is
662 enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
663 and the task is only allowed to execute a few safe syscalls
664 defined by each seccomp mode.
667 bool "Enable paravirtualization code"
669 This changes the kernel so it can modify itself when it is run
670 under a hypervisor, potentially improving performance significantly
671 over full virtualization.
673 config PARAVIRT_TIME_ACCOUNTING
674 bool "Paravirtual steal time accounting"
678 Select this option to enable fine granularity task steal time
679 accounting. Time spent executing other tasks in parallel with
680 the current vCPU is discounted from the vCPU power. To account for
681 that, there can be a small performance impact.
683 If in doubt, say N here.
686 depends on PM_SLEEP_SMP
688 bool "kexec system call"
690 kexec is a system call that implements the ability to shutdown your
691 current kernel, and to start another kernel. It is like a reboot
692 but it is independent of the system firmware. And like a reboot
693 you can start any kernel with it, not just Linux.
700 bool "Xen guest support on ARM64"
701 depends on ARM64 && OF
705 Say Y if you want to run Linux in a Virtual Machine on Xen on ARM64.
707 config FORCE_MAX_ZONEORDER
709 default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
710 default "12" if (ARM64_16K_PAGES && TRANSPARENT_HUGEPAGE)
713 The kernel memory allocator divides physically contiguous memory
714 blocks into "zones", where each zone is a power of two number of
715 pages. This option selects the largest power of two that the kernel
716 keeps in the memory allocator. If you need to allocate very large
717 blocks of physically contiguous memory, then you may need to
720 This config option is actually maximum order plus one. For example,
721 a value of 11 means that the largest free memory block is 2^10 pages.
723 We make sure that we can allocate upto a HugePage size for each configuration.
725 MAX_ORDER = (PMD_SHIFT - PAGE_SHIFT) + 1 => PAGE_SHIFT - 2
727 However for 4K, we choose a higher default value, 11 as opposed to 10, giving us
728 4M allocations matching the default size used by generic code.
730 menuconfig ARMV8_DEPRECATED
731 bool "Emulate deprecated/obsolete ARMv8 instructions"
734 Legacy software support may require certain instructions
735 that have been deprecated or obsoleted in the architecture.
737 Enable this config to enable selective emulation of these
745 bool "Emulate SWP/SWPB instructions"
747 ARMv8 obsoletes the use of A32 SWP/SWPB instructions such that
748 they are always undefined. Say Y here to enable software
749 emulation of these instructions for userspace using LDXR/STXR.
751 In some older versions of glibc [<=2.8] SWP is used during futex
752 trylock() operations with the assumption that the code will not
753 be preempted. This invalid assumption may be more likely to fail
754 with SWP emulation enabled, leading to deadlock of the user
757 NOTE: when accessing uncached shared regions, LDXR/STXR rely
758 on an external transaction monitoring block called a global
759 monitor to maintain update atomicity. If your system does not
760 implement a global monitor, this option can cause programs that
761 perform SWP operations to uncached memory to deadlock.
765 config CP15_BARRIER_EMULATION
766 bool "Emulate CP15 Barrier instructions"
768 The CP15 barrier instructions - CP15ISB, CP15DSB, and
769 CP15DMB - are deprecated in ARMv8 (and ARMv7). It is
770 strongly recommended to use the ISB, DSB, and DMB
771 instructions instead.
773 Say Y here to enable software emulation of these
774 instructions for AArch32 userspace code. When this option is
775 enabled, CP15 barrier usage is traced which can help
776 identify software that needs updating.
780 config SETEND_EMULATION
781 bool "Emulate SETEND instruction"
783 The SETEND instruction alters the data-endianness of the
784 AArch32 EL0, and is deprecated in ARMv8.
786 Say Y here to enable software emulation of the instruction
787 for AArch32 userspace code.
789 Note: All the cpus on the system must have mixed endian support at EL0
790 for this feature to be enabled. If a new CPU - which doesn't support mixed
791 endian - is hotplugged in after this feature has been enabled, there could
792 be unexpected results in the applications.
797 config ARM64_SW_TTBR0_PAN
798 bool "Emulate Privileged Access Never using TTBR0_EL1 switching"
800 Enabling this option prevents the kernel from accessing
801 user-space memory directly by pointing TTBR0_EL1 to a reserved
802 zeroed area and reserved ASID. The user access routines
803 restore the valid TTBR0_EL1 temporarily.
805 menu "ARMv8.1 architectural features"
807 config ARM64_HW_AFDBM
808 bool "Support for hardware updates of the Access and Dirty page flags"
811 The ARMv8.1 architecture extensions introduce support for
812 hardware updates of the access and dirty information in page
813 table entries. When enabled in TCR_EL1 (HA and HD bits) on
814 capable processors, accesses to pages with PTE_AF cleared will
815 set this bit instead of raising an access flag fault.
816 Similarly, writes to read-only pages with the DBM bit set will
817 clear the read-only bit (AP[2]) instead of raising a
820 Kernels built with this configuration option enabled continue
821 to work on pre-ARMv8.1 hardware and the performance impact is
822 minimal. If unsure, say Y.
825 bool "Enable support for Privileged Access Never (PAN)"
828 Privileged Access Never (PAN; part of the ARMv8.1 Extensions)
829 prevents the kernel or hypervisor from accessing user-space (EL0)
832 Choosing this option will cause any unprotected (not using
833 copy_to_user et al) memory access to fail with a permission fault.
835 The feature is detected at runtime, and will remain as a 'nop'
836 instruction if the cpu does not implement the feature.
838 config ARM64_LSE_ATOMICS
839 bool "Atomic instructions"
841 As part of the Large System Extensions, ARMv8.1 introduces new
842 atomic instructions that are designed specifically to scale in
845 Say Y here to make use of these instructions for the in-kernel
846 atomic routines. This incurs a small overhead on CPUs that do
847 not support these instructions and requires the kernel to be
848 built with binutils >= 2.25.
851 bool "Enable support for Virtualization Host Extensions (VHE)"
854 Virtualization Host Extensions (VHE) allow the kernel to run
855 directly at EL2 (instead of EL1) on processors that support
856 it. This leads to better performance for KVM, as they reduce
857 the cost of the world switch.
859 Selecting this option allows the VHE feature to be detected
860 at runtime, and does not affect processors that do not
861 implement this feature.
865 menu "ARMv8.2 architectural features"
868 bool "Enable support for User Access Override (UAO)"
871 User Access Override (UAO; part of the ARMv8.2 Extensions)
872 causes the 'unprivileged' variant of the load/store instructions to
873 be overriden to be privileged.
875 This option changes get_user() and friends to use the 'unprivileged'
876 variant of the load/store instructions. This ensures that user-space
877 really did have access to the supplied memory. When addr_limit is
878 set to kernel memory the UAO bit will be set, allowing privileged
879 access to kernel memory.
881 Choosing this option will cause copy_to_user() et al to use user-space
884 The feature is detected at runtime, the kernel will use the
885 regular load/store instructions if the cpu does not implement the
890 config ARM64_MODULE_CMODEL_LARGE
893 config ARM64_MODULE_PLTS
895 select ARM64_MODULE_CMODEL_LARGE
896 select HAVE_MOD_ARCH_SPECIFIC
901 This builds the kernel as a Position Independent Executable (PIE),
902 which retains all relocation metadata required to relocate the
903 kernel binary at runtime to a different virtual address than the
904 address it was linked at.
905 Since AArch64 uses the RELA relocation format, this requires a
906 relocation pass at runtime even if the kernel is loaded at the
907 same address it was linked at.
909 config RANDOMIZE_BASE
910 bool "Randomize the address of the kernel image"
911 select ARM64_MODULE_PLTS if MODULES
914 Randomizes the virtual address at which the kernel image is
915 loaded, as a security feature that deters exploit attempts
916 relying on knowledge of the location of kernel internals.
918 It is the bootloader's job to provide entropy, by passing a
919 random u64 value in /chosen/kaslr-seed at kernel entry.
921 When booting via the UEFI stub, it will invoke the firmware's
922 EFI_RNG_PROTOCOL implementation (if available) to supply entropy
923 to the kernel proper. In addition, it will randomise the physical
924 location of the kernel Image as well.
928 config RANDOMIZE_MODULE_REGION_FULL
929 bool "Randomize the module region independently from the core kernel"
930 depends on RANDOMIZE_BASE && !DYNAMIC_FTRACE
933 Randomizes the location of the module region without considering the
934 location of the core kernel. This way, it is impossible for modules
935 to leak information about the location of core kernel data structures
936 but it does imply that function calls between modules and the core
937 kernel will need to be resolved via veneers in the module PLT.
939 When this option is not set, the module region will be randomized over
940 a limited range that contains the [_stext, _etext] interval of the
941 core kernel, so branch relocations are always in range.
947 config ARM64_ACPI_PARKING_PROTOCOL
948 bool "Enable support for the ARM64 ACPI parking protocol"
951 Enable support for the ARM64 ACPI parking protocol. If disabled
952 the kernel will not allow booting through the ARM64 ACPI parking
953 protocol even if the corresponding data is present in the ACPI
957 string "Default kernel command string"
960 Provide a set of default command-line options at build time by
961 entering them here. As a minimum, you should specify the the
962 root device (e.g. root=/dev/nfs).
965 bool "Always use the default kernel command string"
967 Always use the default kernel command string, even if the boot
968 loader passes other arguments to the kernel.
969 This is useful if you cannot or don't want to change the
970 command-line options your boot loader passes to the kernel.
976 bool "UEFI runtime support"
977 depends on OF && !CPU_BIG_ENDIAN
980 select EFI_PARAMS_FROM_FDT
981 select EFI_RUNTIME_WRAPPERS
986 This option provides support for runtime services provided
987 by UEFI firmware (such as non-volatile variables, realtime
988 clock, and platform reset). A UEFI stub is also provided to
989 allow the kernel to be booted as an EFI application. This
990 is only useful on systems that have UEFI firmware.
993 bool "Enable support for SMBIOS (DMI) tables"
997 This enables SMBIOS/DMI feature for systems.
999 This option is only useful on systems that have UEFI firmware.
1000 However, even with this option, the resultant kernel should
1001 continue to boot on existing non-UEFI platforms.
1005 menu "Userspace binary formats"
1007 source "fs/Kconfig.binfmt"
1010 bool "Kernel support for 32-bit EL0"
1011 depends on ARM64_4K_PAGES || EXPERT
1012 select COMPAT_BINFMT_ELF
1014 select OLD_SIGSUSPEND3
1015 select COMPAT_OLD_SIGACTION
1017 This option enables support for a 32-bit EL0 running under a 64-bit
1018 kernel at EL1. AArch32-specific components such as system calls,
1019 the user helper functions, VFP support and the ptrace interface are
1020 handled appropriately by the kernel.
1022 If you use a page size other than 4KB (i.e, 16KB or 64KB), please be aware
1023 that you will only be able to execute AArch32 binaries that were compiled
1024 with page size aligned segments.
1026 If you want to execute 32-bit userspace applications, say Y.
1028 config SYSVIPC_COMPAT
1030 depends on COMPAT && SYSVIPC
1034 menu "Power management options"
1036 source "kernel/power/Kconfig"
1038 config ARCH_HIBERNATION_POSSIBLE
1042 config ARCH_HIBERNATION_HEADER
1044 depends on HIBERNATION
1046 config ARCH_SUSPEND_POSSIBLE
1051 menu "CPU Power Management"
1053 source "drivers/cpuidle/Kconfig"
1055 source "drivers/cpufreq/Kconfig"
1059 source "net/Kconfig"
1061 source "drivers/Kconfig"
1063 source "drivers/firmware/Kconfig"
1065 source "drivers/acpi/Kconfig"
1069 source "arch/arm64/kvm/Kconfig"
1071 source "arch/arm64/Kconfig.debug"
1073 source "security/Kconfig"
1075 source "crypto/Kconfig"
1077 source "arch/arm64/crypto/Kconfig"
1080 source "lib/Kconfig"