arm64: enable context tracking
[cascardo/linux.git] / arch / arm64 / Kconfig
1 config ARM64
2         def_bool y
3         select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
4         select ARCH_HAS_OPP
5         select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
6         select ARCH_USE_CMPXCHG_LOCKREF
7         select ARCH_WANT_OPTIONAL_GPIOLIB
8         select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
9         select ARCH_WANT_FRAME_POINTERS
10         select ARM_AMBA
11         select ARM_ARCH_TIMER
12         select ARM_GIC
13         select BUILDTIME_EXTABLE_SORT
14         select CLONE_BACKWARDS
15         select COMMON_CLK
16         select CPU_PM if (SUSPEND || CPU_IDLE)
17         select DCACHE_WORD_ACCESS
18         select GENERIC_CLOCKEVENTS
19         select GENERIC_CLOCKEVENTS_BROADCAST if SMP
20         select GENERIC_CPU_AUTOPROBE
21         select GENERIC_EARLY_IOREMAP
22         select GENERIC_IOMAP
23         select GENERIC_IRQ_PROBE
24         select GENERIC_IRQ_SHOW
25         select GENERIC_SCHED_CLOCK
26         select GENERIC_SMP_IDLE_THREAD
27         select GENERIC_STRNCPY_FROM_USER
28         select GENERIC_STRNLEN_USER
29         select GENERIC_TIME_VSYSCALL
30         select HARDIRQS_SW_RESEND
31         select HAVE_ARCH_JUMP_LABEL
32         select HAVE_ARCH_KGDB
33         select HAVE_ARCH_TRACEHOOK
34         select HAVE_C_RECORDMCOUNT
35         select HAVE_CC_STACKPROTECTOR
36         select HAVE_DEBUG_BUGVERBOSE
37         select HAVE_DEBUG_KMEMLEAK
38         select HAVE_DMA_API_DEBUG
39         select HAVE_DMA_ATTRS
40         select HAVE_DMA_CONTIGUOUS
41         select HAVE_DYNAMIC_FTRACE
42         select HAVE_EFFICIENT_UNALIGNED_ACCESS
43         select HAVE_FTRACE_MCOUNT_RECORD
44         select HAVE_FUNCTION_TRACER
45         select HAVE_FUNCTION_GRAPH_TRACER
46         select HAVE_GENERIC_DMA_COHERENT
47         select HAVE_HW_BREAKPOINT if PERF_EVENTS
48         select HAVE_MEMBLOCK
49         select HAVE_PATA_PLATFORM
50         select HAVE_PERF_EVENTS
51         select HAVE_PERF_REGS
52         select HAVE_PERF_USER_STACK_DUMP
53         select HAVE_SYSCALL_TRACEPOINTS
54         select IRQ_DOMAIN
55         select MODULES_USE_ELF_RELA
56         select NO_BOOTMEM
57         select OF
58         select OF_EARLY_FLATTREE
59         select OF_RESERVED_MEM
60         select PERF_USE_VMALLOC
61         select POWER_RESET
62         select POWER_SUPPLY
63         select RTC_LIB
64         select SPARSE_IRQ
65         select SYSCTL_EXCEPTION_TRACE
66         select HAVE_CONTEXT_TRACKING
67         help
68           ARM 64-bit (AArch64) Linux support.
69
70 config 64BIT
71         def_bool y
72
73 config ARCH_PHYS_ADDR_T_64BIT
74         def_bool y
75
76 config MMU
77         def_bool y
78
79 config NO_IOPORT_MAP
80         def_bool y
81
82 config STACKTRACE_SUPPORT
83         def_bool y
84
85 config LOCKDEP_SUPPORT
86         def_bool y
87
88 config TRACE_IRQFLAGS_SUPPORT
89         def_bool y
90
91 config RWSEM_XCHGADD_ALGORITHM
92         def_bool y
93
94 config GENERIC_HWEIGHT
95         def_bool y
96
97 config GENERIC_CSUM
98         def_bool y
99
100 config GENERIC_CALIBRATE_DELAY
101         def_bool y
102
103 config ZONE_DMA
104         def_bool y
105
106 config ARCH_DMA_ADDR_T_64BIT
107         def_bool y
108
109 config NEED_DMA_MAP_STATE
110         def_bool y
111
112 config NEED_SG_DMA_LENGTH
113         def_bool y
114
115 config SWIOTLB
116         def_bool y
117
118 config IOMMU_HELPER
119         def_bool SWIOTLB
120
121 config KERNEL_MODE_NEON
122         def_bool y
123
124 config FIX_EARLYCON_MEM
125         def_bool y
126
127 source "init/Kconfig"
128
129 source "kernel/Kconfig.freezer"
130
131 menu "Platform selection"
132
133 config ARCH_VEXPRESS
134         bool "ARMv8 software model (Versatile Express)"
135         select ARCH_REQUIRE_GPIOLIB
136         select COMMON_CLK_VERSATILE
137         select POWER_RESET_VEXPRESS
138         select VEXPRESS_CONFIG
139         help
140           This enables support for the ARMv8 software model (Versatile
141           Express).
142
143 config ARCH_XGENE
144         bool "AppliedMicro X-Gene SOC Family"
145         help
146           This enables support for AppliedMicro X-Gene SOC Family
147
148 endmenu
149
150 menu "Bus support"
151
152 config ARM_AMBA
153         bool
154
155 endmenu
156
157 menu "Kernel Features"
158
159 config ARM64_64K_PAGES
160         bool "Enable 64KB pages support"
161         help
162           This feature enables 64KB pages support (4KB by default)
163           allowing only two levels of page tables and faster TLB
164           look-up. AArch32 emulation is not available when this feature
165           is enabled.
166
167 config CPU_BIG_ENDIAN
168        bool "Build big-endian kernel"
169        help
170          Say Y if you plan on running a kernel in big-endian mode.
171
172 config SMP
173         bool "Symmetric Multi-Processing"
174         help
175           This enables support for systems with more than one CPU.  If
176           you say N here, the kernel will run on single and
177           multiprocessor machines, but will use only one CPU of a
178           multiprocessor machine. If you say Y here, the kernel will run
179           on many, but not all, single processor machines. On a single
180           processor machine, the kernel will run faster if you say N
181           here.
182
183           If you don't know what to do here, say N.
184
185 config SCHED_MC
186         bool "Multi-core scheduler support"
187         depends on SMP
188         help
189           Multi-core scheduler support improves the CPU scheduler's decision
190           making when dealing with multi-core CPU chips at a cost of slightly
191           increased overhead in some places. If unsure say N here.
192
193 config SCHED_SMT
194         bool "SMT scheduler support"
195         depends on SMP
196         help
197           Improves the CPU scheduler's decision making when dealing with
198           MultiThreading at a cost of slightly increased overhead in some
199           places. If unsure say N here.
200
201 config NR_CPUS
202         int "Maximum number of CPUs (2-32)"
203         range 2 32
204         depends on SMP
205         # These have to remain sorted largest to smallest
206         default "8"
207
208 config HOTPLUG_CPU
209         bool "Support for hot-pluggable CPUs"
210         depends on SMP
211         help
212           Say Y here to experiment with turning CPUs off and on.  CPUs
213           can be controlled through /sys/devices/system/cpu.
214
215 source kernel/Kconfig.preempt
216
217 config HZ
218         int
219         default 100
220
221 config ARCH_HAS_HOLES_MEMORYMODEL
222         def_bool y if SPARSEMEM
223
224 config ARCH_SPARSEMEM_ENABLE
225         def_bool y
226         select SPARSEMEM_VMEMMAP_ENABLE
227
228 config ARCH_SPARSEMEM_DEFAULT
229         def_bool ARCH_SPARSEMEM_ENABLE
230
231 config ARCH_SELECT_MEMORY_MODEL
232         def_bool ARCH_SPARSEMEM_ENABLE
233
234 config HAVE_ARCH_PFN_VALID
235         def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
236
237 config HW_PERF_EVENTS
238         bool "Enable hardware performance counter support for perf events"
239         depends on PERF_EVENTS
240         default y
241         help
242           Enable hardware performance counter support for perf events. If
243           disabled, perf events will use software events only.
244
245 config SYS_SUPPORTS_HUGETLBFS
246         def_bool y
247
248 config ARCH_WANT_GENERAL_HUGETLB
249         def_bool y
250
251 config ARCH_WANT_HUGE_PMD_SHARE
252         def_bool y if !ARM64_64K_PAGES
253
254 config HAVE_ARCH_TRANSPARENT_HUGEPAGE
255         def_bool y
256
257 config ARCH_HAS_CACHE_LINE_SIZE
258         def_bool y
259
260 source "mm/Kconfig"
261
262 config XEN_DOM0
263         def_bool y
264         depends on XEN
265
266 config XEN
267         bool "Xen guest support on ARM64 (EXPERIMENTAL)"
268         depends on ARM64 && OF
269         select SWIOTLB_XEN
270         help
271           Say Y if you want to run Linux in a Virtual Machine on Xen on ARM64.
272
273 config FORCE_MAX_ZONEORDER
274         int
275         default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
276         default "11"
277
278 endmenu
279
280 menu "Boot options"
281
282 config CMDLINE
283         string "Default kernel command string"
284         default ""
285         help
286           Provide a set of default command-line options at build time by
287           entering them here. As a minimum, you should specify the the
288           root device (e.g. root=/dev/nfs).
289
290 config CMDLINE_FORCE
291         bool "Always use the default kernel command string"
292         help
293           Always use the default kernel command string, even if the boot
294           loader passes other arguments to the kernel.
295           This is useful if you cannot or don't want to change the
296           command-line options your boot loader passes to the kernel.
297
298 config EFI
299         bool "UEFI runtime support"
300         depends on OF && !CPU_BIG_ENDIAN
301         select LIBFDT
302         select UCS2_STRING
303         select EFI_PARAMS_FROM_FDT
304         default y
305         help
306           This option provides support for runtime services provided
307           by UEFI firmware (such as non-volatile variables, realtime
308           clock, and platform reset). A UEFI stub is also provided to
309           allow the kernel to be booted as an EFI application. This
310           is only useful on systems that have UEFI firmware.
311
312 endmenu
313
314 menu "Userspace binary formats"
315
316 source "fs/Kconfig.binfmt"
317
318 config COMPAT
319         bool "Kernel support for 32-bit EL0"
320         depends on !ARM64_64K_PAGES
321         select COMPAT_BINFMT_ELF
322         select HAVE_UID16
323         select OLD_SIGSUSPEND3
324         select COMPAT_OLD_SIGACTION
325         help
326           This option enables support for a 32-bit EL0 running under a 64-bit
327           kernel at EL1. AArch32-specific components such as system calls,
328           the user helper functions, VFP support and the ptrace interface are
329           handled appropriately by the kernel.
330
331           If you want to execute 32-bit userspace applications, say Y.
332
333 config SYSVIPC_COMPAT
334         def_bool y
335         depends on COMPAT && SYSVIPC
336
337 endmenu
338
339 menu "Power management options"
340
341 source "kernel/power/Kconfig"
342
343 config ARCH_SUSPEND_POSSIBLE
344         def_bool y
345
346 config ARM64_CPU_SUSPEND
347         def_bool PM_SLEEP
348
349 endmenu
350
351 menu "CPU Power Management"
352
353 source "drivers/cpuidle/Kconfig"
354
355 source "drivers/cpufreq/Kconfig"
356
357 endmenu
358
359 source "net/Kconfig"
360
361 source "drivers/Kconfig"
362
363 source "drivers/firmware/Kconfig"
364
365 source "fs/Kconfig"
366
367 source "arch/arm64/kvm/Kconfig"
368
369 source "arch/arm64/Kconfig.debug"
370
371 source "security/Kconfig"
372
373 source "crypto/Kconfig"
374 if CRYPTO
375 source "arch/arm64/crypto/Kconfig"
376 endif
377
378 source "lib/Kconfig"