blob: f0d3a2d85a5b33873a558352b8c42714bff3f152 [file] [log] [blame]
Catalin Marinas8c2c3df2012-04-20 14:45:54 +01001config ARM64
2 def_bool y
3 select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
Laura Abbott308c09f2014-08-08 14:23:25 -07004 select ARCH_HAS_SG_CHAIN
Lorenzo Pieralisi1f850082013-09-04 10:55:17 +01005 select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
Sudeep Hollac63c8702014-05-09 10:33:01 +01006 select ARCH_USE_CMPXCHG_LOCKREF
Peter Zijlstra4badad32014-06-06 19:53:16 +02007 select ARCH_SUPPORTS_ATOMIC_RMW
Arnd Bergmann91701002013-02-21 11:42:57 +01008 select ARCH_WANT_OPTIONAL_GPIOLIB
Will Deacon6212a512012-11-07 14:16:28 +00009 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
Catalin Marinasb6f35982013-01-29 18:25:41 +000010 select ARCH_WANT_FRAME_POINTERS
Catalin Marinas25c92a32012-12-18 15:26:13 +000011 select ARM_AMBA
Mark Rutland1aee5d72012-11-20 10:06:00 +000012 select ARM_ARCH_TIMER
Catalin Marinasc4188ed2013-01-14 12:39:31 +000013 select ARM_GIC
AKASHI Takahiro875cbf32014-07-04 08:28:30 +010014 select AUDIT_ARCH_COMPAT_GENERIC
Marc Zyngier021f6532014-06-30 16:01:31 +010015 select ARM_GIC_V3
Will Deaconadace892013-05-08 17:29:24 +010016 select BUILDTIME_EXTABLE_SORT
Catalin Marinasdb2789b2012-12-18 15:27:25 +000017 select CLONE_BACKWARDS
Deepak Saxena7ca2ef32012-09-22 10:33:36 -070018 select COMMON_CLK
Lorenzo Pieralisi166936b2013-11-07 18:37:14 +000019 select CPU_PM if (SUSPEND || CPU_IDLE)
Will Deacon7bc13fd2013-11-06 19:32:13 +000020 select DCACHE_WORD_ACCESS
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010021 select GENERIC_CLOCKEVENTS
Lorenzo Pieralisi1f850082013-09-04 10:55:17 +010022 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
Ard Biesheuvel3be1a5c2014-03-04 01:10:04 +000023 select GENERIC_CPU_AUTOPROBE
Mark Salterbf4b5582014-04-07 15:39:52 -070024 select GENERIC_EARLY_IOREMAP
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010025 select GENERIC_IOMAP
26 select GENERIC_IRQ_PROBE
27 select GENERIC_IRQ_SHOW
Stephen Boyd65cd4f62013-07-18 16:21:18 -070028 select GENERIC_SCHED_CLOCK
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010029 select GENERIC_SMP_IDLE_THREAD
Will Deacon12a0ef72013-11-06 17:20:22 +000030 select GENERIC_STRNCPY_FROM_USER
31 select GENERIC_STRNLEN_USER
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010032 select GENERIC_TIME_VSYSCALL
33 select HARDIRQS_SW_RESEND
AKASHI Takahiro875cbf32014-07-04 08:28:30 +010034 select HAVE_ARCH_AUDITSYSCALL
Jiang Liu9732caf2014-01-07 22:17:13 +080035 select HAVE_ARCH_JUMP_LABEL
Vijaya Kumar K95292472014-01-28 11:20:22 +000036 select HAVE_ARCH_KGDB
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010037 select HAVE_ARCH_TRACEHOOK
Zi Shen Lime54bcde2014-08-26 21:15:30 -070038 select HAVE_BPF_JIT
AKASHI Takahiroaf64d2a2014-04-30 10:54:32 +010039 select HAVE_C_RECORDMCOUNT
Laura Abbottc0c264a2014-06-25 23:55:03 +010040 select HAVE_CC_STACKPROTECTOR
Catalin Marinas9b2a60c2012-10-08 16:28:13 -070041 select HAVE_DEBUG_BUGVERBOSE
Catalin Marinasb69ec422012-10-08 16:28:11 -070042 select HAVE_DEBUG_KMEMLEAK
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010043 select HAVE_DMA_API_DEBUG
44 select HAVE_DMA_ATTRS
Laura Abbott6ac21042013-12-12 19:28:33 +000045 select HAVE_DMA_CONTIGUOUS
AKASHI Takahirobd7d38d2014-04-30 10:54:34 +010046 select HAVE_DYNAMIC_FTRACE
Will Deacon50afc332013-12-16 17:50:08 +000047 select HAVE_EFFICIENT_UNALIGNED_ACCESS
AKASHI Takahiroaf64d2a2014-04-30 10:54:32 +010048 select HAVE_FTRACE_MCOUNT_RECORD
AKASHI Takahiro819e50e2014-04-30 18:54:33 +090049 select HAVE_FUNCTION_TRACER
50 select HAVE_FUNCTION_GRAPH_TRACER
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010051 select HAVE_GENERIC_DMA_COHERENT
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010052 select HAVE_HW_BREAKPOINT if PERF_EVENTS
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010053 select HAVE_MEMBLOCK
Mark Rutland55834a72014-02-07 17:12:45 +000054 select HAVE_PATA_PLATFORM
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010055 select HAVE_PERF_EVENTS
Jean Pihet2ee0d7f2014-02-03 19:18:27 +010056 select HAVE_PERF_REGS
57 select HAVE_PERF_USER_STACK_DUMP
AKASHI Takahiro055b1212014-04-30 10:54:36 +010058 select HAVE_SYSCALL_TRACEPOINTS
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010059 select IRQ_DOMAIN
Catalin Marinasfea2aca2012-10-16 11:26:57 +010060 select MODULES_USE_ELF_RELA
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010061 select NO_BOOTMEM
62 select OF
63 select OF_EARLY_FLATTREE
Marek Szyprowski9bf14b72014-02-28 14:42:55 +010064 select OF_RESERVED_MEM
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010065 select PERF_USE_VMALLOC
Catalin Marinasaa1e8ec2013-02-28 18:14:37 +000066 select POWER_RESET
67 select POWER_SUPPLY
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010068 select RTC_LIB
69 select SPARSE_IRQ
Catalin Marinas7ac57a82012-10-08 16:28:16 -070070 select SYSCTL_EXCEPTION_TRACE
Larry Bassel6c81fe72014-05-30 12:34:15 -070071 select HAVE_CONTEXT_TRACKING
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010072 help
73 ARM 64-bit (AArch64) Linux support.
74
75config 64BIT
76 def_bool y
77
78config ARCH_PHYS_ADDR_T_64BIT
79 def_bool y
80
81config MMU
82 def_bool y
83
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070084config NO_IOPORT_MAP
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010085 def_bool y
86
87config STACKTRACE_SUPPORT
88 def_bool y
89
90config LOCKDEP_SUPPORT
91 def_bool y
92
93config TRACE_IRQFLAGS_SUPPORT
94 def_bool y
95
Will Deaconc209f792014-03-14 17:47:05 +000096config RWSEM_XCHGADD_ALGORITHM
Catalin Marinas8c2c3df2012-04-20 14:45:54 +010097 def_bool y
98
99config GENERIC_HWEIGHT
100 def_bool y
101
102config GENERIC_CSUM
103 def_bool y
104
105config GENERIC_CALIBRATE_DELAY
106 def_bool y
107
Catalin Marinas19e76402014-02-27 12:09:22 +0000108config ZONE_DMA
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100109 def_bool y
110
111config ARCH_DMA_ADDR_T_64BIT
112 def_bool y
113
114config NEED_DMA_MAP_STATE
115 def_bool y
116
117config NEED_SG_DMA_LENGTH
118 def_bool y
119
120config SWIOTLB
121 def_bool y
122
123config IOMMU_HELPER
124 def_bool SWIOTLB
125
Ard Biesheuvel4cfb3612013-07-09 14:18:12 +0100126config KERNEL_MODE_NEON
127 def_bool y
128
Rob Herring92cc15f2014-04-18 17:19:59 -0500129config FIX_EARLYCON_MEM
130 def_bool y
131
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100132source "init/Kconfig"
133
134source "kernel/Kconfig.freezer"
135
Catalin Marinas1ae90e72012-09-05 17:47:44 +0100136menu "Platform selection"
137
138config ARCH_VEXPRESS
139 bool "ARMv8 software model (Versatile Express)"
140 select ARCH_REQUIRE_GPIOLIB
141 select COMMON_CLK_VERSATILE
Catalin Marinasaa1e8ec2013-02-28 18:14:37 +0000142 select POWER_RESET_VEXPRESS
Catalin Marinas1ae90e72012-09-05 17:47:44 +0100143 select VEXPRESS_CONFIG
144 help
145 This enables support for the ARMv8 software model (Versatile
146 Express).
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100147
Vinayak Kale15942852013-04-24 10:06:57 +0100148config ARCH_XGENE
149 bool "AppliedMicro X-Gene SOC Family"
150 help
151 This enables support for AppliedMicro X-Gene SOC Family
152
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100153endmenu
154
155menu "Bus support"
156
157config ARM_AMBA
158 bool
159
160endmenu
161
162menu "Kernel Features"
163
Jungseok Leee41ceed2014-05-12 10:40:38 +0100164choice
165 prompt "Page size"
166 default ARM64_4K_PAGES
167 help
168 Page size (translation granule) configuration.
169
170config ARM64_4K_PAGES
171 bool "4KB"
172 help
173 This feature enables 4KB pages support.
174
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100175config ARM64_64K_PAGES
Jungseok Leee41ceed2014-05-12 10:40:38 +0100176 bool "64KB"
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100177 help
178 This feature enables 64KB pages support (4KB by default)
179 allowing only two levels of page tables and faster TLB
180 look-up. AArch32 emulation is not available when this feature
181 is enabled.
182
Jungseok Leee41ceed2014-05-12 10:40:38 +0100183endchoice
184
185choice
186 prompt "Virtual address space size"
187 default ARM64_VA_BITS_39 if ARM64_4K_PAGES
188 default ARM64_VA_BITS_42 if ARM64_64K_PAGES
189 help
190 Allows choosing one of multiple possible virtual address
191 space sizes. The level of translation table is determined by
192 a combination of page size and virtual address space size.
193
194config ARM64_VA_BITS_39
195 bool "39-bit"
196 depends on ARM64_4K_PAGES
197
198config ARM64_VA_BITS_42
199 bool "42-bit"
200 depends on ARM64_64K_PAGES
201
Jungseok Leec79b9542014-05-12 18:40:51 +0900202config ARM64_VA_BITS_48
203 bool "48-bit"
204 depends on BROKEN
205
Jungseok Leee41ceed2014-05-12 10:40:38 +0100206endchoice
207
208config ARM64_VA_BITS
209 int
210 default 39 if ARM64_VA_BITS_39
211 default 42 if ARM64_VA_BITS_42
Jungseok Leec79b9542014-05-12 18:40:51 +0900212 default 48 if ARM64_VA_BITS_48
Jungseok Leee41ceed2014-05-12 10:40:38 +0100213
Catalin Marinasabe669d2014-07-15 15:37:21 +0100214config ARM64_PGTABLE_LEVELS
215 int
216 default 2 if ARM64_64K_PAGES && ARM64_VA_BITS_42
Catalin Marinas383c2792014-07-21 15:54:50 +0100217 default 3 if ARM64_64K_PAGES && ARM64_VA_BITS_48
Catalin Marinasabe669d2014-07-15 15:37:21 +0100218 default 3 if ARM64_4K_PAGES && ARM64_VA_BITS_39
219 default 4 if ARM64_4K_PAGES && ARM64_VA_BITS_48
Jungseok Leec79b9542014-05-12 18:40:51 +0900220
Will Deacona8720132013-10-11 14:52:19 +0100221config CPU_BIG_ENDIAN
222 bool "Build big-endian kernel"
223 help
224 Say Y if you plan on running a kernel in big-endian mode.
225
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100226config SMP
227 bool "Symmetric Multi-Processing"
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100228 help
229 This enables support for systems with more than one CPU. If
230 you say N here, the kernel will run on single and
231 multiprocessor machines, but will use only one CPU of a
232 multiprocessor machine. If you say Y here, the kernel will run
233 on many, but not all, single processor machines. On a single
234 processor machine, the kernel will run faster if you say N
235 here.
236
237 If you don't know what to do here, say N.
238
Mark Brownf6e763b2014-03-04 07:51:17 +0000239config SCHED_MC
240 bool "Multi-core scheduler support"
241 depends on SMP
242 help
243 Multi-core scheduler support improves the CPU scheduler's decision
244 making when dealing with multi-core CPU chips at a cost of slightly
245 increased overhead in some places. If unsure say N here.
246
247config SCHED_SMT
248 bool "SMT scheduler support"
249 depends on SMP
250 help
251 Improves the CPU scheduler's decision making when dealing with
252 MultiThreading at a cost of slightly increased overhead in some
253 places. If unsure say N here.
254
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100255config NR_CPUS
Robert Richtere3672642014-09-08 12:44:48 +0100256 int "Maximum number of CPUs (2-64)"
257 range 2 64
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100258 depends on SMP
Vinayak Kale15942852013-04-24 10:06:57 +0100259 # These have to remain sorted largest to smallest
Robert Richtere3672642014-09-08 12:44:48 +0100260 default "64"
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100261
Mark Rutland9327e2c2013-10-24 20:30:18 +0100262config HOTPLUG_CPU
263 bool "Support for hot-pluggable CPUs"
264 depends on SMP
265 help
266 Say Y here to experiment with turning CPUs off and on. CPUs
267 can be controlled through /sys/devices/system/cpu.
268
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100269source kernel/Kconfig.preempt
270
271config HZ
272 int
273 default 100
274
275config ARCH_HAS_HOLES_MEMORYMODEL
276 def_bool y if SPARSEMEM
277
278config ARCH_SPARSEMEM_ENABLE
279 def_bool y
280 select SPARSEMEM_VMEMMAP_ENABLE
281
282config ARCH_SPARSEMEM_DEFAULT
283 def_bool ARCH_SPARSEMEM_ENABLE
284
285config ARCH_SELECT_MEMORY_MODEL
286 def_bool ARCH_SPARSEMEM_ENABLE
287
288config HAVE_ARCH_PFN_VALID
289 def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
290
291config HW_PERF_EVENTS
292 bool "Enable hardware performance counter support for perf events"
293 depends on PERF_EVENTS
294 default y
295 help
296 Enable hardware performance counter support for perf events. If
297 disabled, perf events will use software events only.
298
Steve Capper084bd292013-04-10 13:48:00 +0100299config SYS_SUPPORTS_HUGETLBFS
300 def_bool y
301
302config ARCH_WANT_GENERAL_HUGETLB
303 def_bool y
304
305config ARCH_WANT_HUGE_PMD_SHARE
306 def_bool y if !ARM64_64K_PAGES
307
Steve Capperaf074842013-04-19 16:23:57 +0100308config HAVE_ARCH_TRANSPARENT_HUGEPAGE
309 def_bool y
310
Catalin Marinasa41dc0e2014-04-03 17:48:54 +0100311config ARCH_HAS_CACHE_LINE_SIZE
312 def_bool y
313
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100314source "mm/Kconfig"
315
Stefano Stabelliniaa42aa12013-06-03 17:05:43 +0000316config XEN_DOM0
317 def_bool y
318 depends on XEN
319
320config XEN
321 bool "Xen guest support on ARM64 (EXPERIMENTAL)"
322 depends on ARM64 && OF
Stefano Stabellini83862cc2013-10-10 13:40:44 +0000323 select SWIOTLB_XEN
Stefano Stabelliniaa42aa12013-06-03 17:05:43 +0000324 help
325 Say Y if you want to run Linux in a Virtual Machine on Xen on ARM64.
326
Steve Capperd03bb142013-04-25 15:19:21 +0100327config FORCE_MAX_ZONEORDER
328 int
329 default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
330 default "11"
331
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100332endmenu
333
334menu "Boot options"
335
336config CMDLINE
337 string "Default kernel command string"
338 default ""
339 help
340 Provide a set of default command-line options at build time by
341 entering them here. As a minimum, you should specify the the
342 root device (e.g. root=/dev/nfs).
343
344config CMDLINE_FORCE
345 bool "Always use the default kernel command string"
346 help
347 Always use the default kernel command string, even if the boot
348 loader passes other arguments to the kernel.
349 This is useful if you cannot or don't want to change the
350 command-line options your boot loader passes to the kernel.
351
Ard Biesheuvelf4f75ad52014-07-02 14:54:43 +0200352config EFI_STUB
353 bool
354
Mark Salterf84d0272014-04-15 21:59:30 -0400355config EFI
356 bool "UEFI runtime support"
357 depends on OF && !CPU_BIG_ENDIAN
358 select LIBFDT
359 select UCS2_STRING
360 select EFI_PARAMS_FROM_FDT
Ard Biesheuvele15dd492014-07-04 19:41:53 +0200361 select EFI_RUNTIME_WRAPPERS
Ard Biesheuvelf4f75ad52014-07-02 14:54:43 +0200362 select EFI_STUB
363 select EFI_ARMSTUB
Mark Salterf84d0272014-04-15 21:59:30 -0400364 default y
365 help
366 This option provides support for runtime services provided
367 by UEFI firmware (such as non-volatile variables, realtime
Mark Salter3c7f2552014-04-15 22:47:52 -0400368 clock, and platform reset). A UEFI stub is also provided to
369 allow the kernel to be booted as an EFI application. This
370 is only useful on systems that have UEFI firmware.
Mark Salterf84d0272014-04-15 21:59:30 -0400371
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100372endmenu
373
374menu "Userspace binary formats"
375
376source "fs/Kconfig.binfmt"
377
378config COMPAT
379 bool "Kernel support for 32-bit EL0"
380 depends on !ARM64_64K_PAGES
381 select COMPAT_BINFMT_ELF
Catalin Marinasaf1839e2012-10-08 16:28:08 -0700382 select HAVE_UID16
Al Viro84b9e9b2012-12-25 16:29:11 -0500383 select OLD_SIGSUSPEND3
Al Viro51682032012-12-25 19:31:29 -0500384 select COMPAT_OLD_SIGACTION
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100385 help
386 This option enables support for a 32-bit EL0 running under a 64-bit
387 kernel at EL1. AArch32-specific components such as system calls,
388 the user helper functions, VFP support and the ptrace interface are
389 handled appropriately by the kernel.
390
391 If you want to execute 32-bit userspace applications, say Y.
392
393config SYSVIPC_COMPAT
394 def_bool y
395 depends on COMPAT && SYSVIPC
396
397endmenu
398
Lorenzo Pieralisi166936b2013-11-07 18:37:14 +0000399menu "Power management options"
400
401source "kernel/power/Kconfig"
402
403config ARCH_SUSPEND_POSSIBLE
404 def_bool y
405
406config ARM64_CPU_SUSPEND
407 def_bool PM_SLEEP
408
409endmenu
410
Lorenzo Pieralisi13072202013-07-17 14:54:21 +0100411menu "CPU Power Management"
412
413source "drivers/cpuidle/Kconfig"
414
Rob Herring52e7e812014-02-24 11:27:57 +0900415source "drivers/cpufreq/Kconfig"
416
417endmenu
418
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100419source "net/Kconfig"
420
421source "drivers/Kconfig"
422
Mark Salterf84d0272014-04-15 21:59:30 -0400423source "drivers/firmware/Kconfig"
424
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100425source "fs/Kconfig"
426
Marc Zyngierc3eb5b12013-07-04 13:34:32 +0100427source "arch/arm64/kvm/Kconfig"
428
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100429source "arch/arm64/Kconfig.debug"
430
431source "security/Kconfig"
432
433source "crypto/Kconfig"
Ard Biesheuvel2c988332014-03-06 16:23:33 +0800434if CRYPTO
435source "arch/arm64/crypto/Kconfig"
436endif
Catalin Marinas8c2c3df2012-04-20 14:45:54 +0100437
438source "lib/Kconfig"