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