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