Merge branch 'linaro-android-3.10-lsk' of git://android.git.linaro.org/kernel/linaro...
[firefly-linux-kernel-4.4.55.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_USE_CMPXCHG_LOCKREF
6         select ARCH_HAS_OPP
7         select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
8         select ARCH_SUPPORTS_ATOMIC_RMW
9         select ARCH_HAS_GCOV_PROFILE_ALL
10         select ARCH_WANT_OPTIONAL_GPIOLIB
11         select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
12         select ARCH_WANT_FRAME_POINTERS
13         select ARM_AMBA
14         select ARM_ARCH_TIMER
15         select ARM_GIC
16         select ARM_GIC_V3
17         select BUILDTIME_EXTABLE_SORT
18         select AUDIT_ARCH_COMPAT_GENERIC
19         select CLONE_BACKWARDS
20         select COMMON_CLK
21         select CPU_PM if (SUSPEND || CPU_IDLE)
22         select DCACHE_WORD_ACCESS
23         select GENERIC_ALLOCATOR
24         select GENERIC_CLOCKEVENTS
25         select GENERIC_CLOCKEVENTS_BROADCAST if SMP
26         select GENERIC_CPU_AUTOPROBE
27         select GENERIC_EARLY_IOREMAP
28         select GENERIC_IOMAP
29         select GENERIC_IRQ_PROBE
30         select GENERIC_IRQ_SHOW
31         select GENERIC_SMP_IDLE_THREAD
32         select GENERIC_STRNCPY_FROM_USER
33         select GENERIC_STRNLEN_USER
34         select GENERIC_TIME_VSYSCALL
35         select HARDIRQS_SW_RESEND
36         select HAVE_ARCH_JUMP_LABEL
37         select HAVE_ARCH_KGDB
38         select HAVE_ARCH_AUDITSYSCALL
39         select HAVE_ARCH_SECCOMP_FILTER
40         select HAVE_ARCH_TRACEHOOK
41         select HAVE_C_RECORDMCOUNT
42         select HAVE_CC_STACKPROTECTOR
43         select HAVE_DEBUG_BUGVERBOSE
44         select HAVE_DEBUG_KMEMLEAK
45         select HAVE_DMA_API_DEBUG
46         select HAVE_DMA_ATTRS
47         select HAVE_DMA_CONTIGUOUS
48         select HAVE_DYNAMIC_FTRACE
49         select HAVE_EFFICIENT_UNALIGNED_ACCESS
50         select HAVE_FTRACE_MCOUNT_RECORD
51         select HAVE_FUNCTION_TRACER
52         select HAVE_FUNCTION_GRAPH_TRACER
53         select HAVE_GENERIC_DMA_COHERENT
54         select HAVE_GENERIC_HARDIRQS
55         select HAVE_HW_BREAKPOINT if PERF_EVENTS
56         select HAVE_MEMBLOCK
57         select HAVE_PATA_PLATFORM
58         select HAVE_PERF_EVENTS
59         select HAVE_PERF_REGS
60         select HAVE_PERF_USER_STACK_DUMP
61         select HAVE_SYSCALL_TRACEPOINTS
62         select IRQ_DOMAIN
63         select MODULES_USE_ELF_RELA
64         select NO_BOOTMEM
65         select OF
66         select OF_EARLY_FLATTREE
67         select OF_RESERVED_MEM
68         select PERF_USE_VMALLOC
69         select POWER_RESET
70         select POWER_SUPPLY
71         select RTC_LIB
72         select SPARSE_IRQ
73         select SYSCTL_EXCEPTION_TRACE
74         help
75           ARM 64-bit (AArch64) Linux support.
76
77 config 64BIT
78         def_bool y
79
80 config ARCH_PHYS_ADDR_T_64BIT
81         def_bool y
82
83 config MMU
84         def_bool y
85
86 config NO_IOPORT
87         def_bool y
88
89 config STACKTRACE_SUPPORT
90         def_bool y
91
92 config LOCKDEP_SUPPORT
93         def_bool y
94
95 config TRACE_IRQFLAGS_SUPPORT
96         def_bool y
97
98 config RWSEM_XCHGADD_ALGORITHM
99         def_bool y
100
101 config GENERIC_HWEIGHT
102         def_bool y
103
104 config GENERIC_CSUM
105         def_bool y
106
107 config GENERIC_CALIBRATE_DELAY
108         def_bool y
109
110 config ZONE_DMA
111         def_bool y
112
113 config ARCH_DMA_ADDR_T_64BIT
114         def_bool y
115
116 config NEED_DMA_MAP_STATE
117         def_bool y
118
119 config NEED_SG_DMA_LENGTH
120         def_bool y
121
122 config SWIOTLB
123         def_bool y
124
125 config IOMMU_HELPER
126         def_bool SWIOTLB
127
128 config FIX_EARLYCON_MEM
129         def_bool y
130
131 source "init/Kconfig"
132
133 source "kernel/Kconfig.freezer"
134
135 menu "Platform selection"
136
137 config ARCH_VEXPRESS
138         bool "ARMv8 software model (Versatile Express)"
139         select ARCH_REQUIRE_GPIOLIB
140         select COMMON_CLK_VERSATILE
141         select POWER_RESET_VEXPRESS
142         select VEXPRESS_CONFIG
143         help
144           This enables support for the ARMv8 software model (Versatile
145           Express).
146
147 config ARCH_XGENE
148         bool "AppliedMicro X-Gene SOC Family"
149         help
150           This enables support for AppliedMicro X-Gene SOC Family
151
152 endmenu
153
154 menu "Bus support"
155
156 config ARM_AMBA
157         bool
158
159 endmenu
160
161 menu "Kernel Features"
162
163 menu "ARM errata workarounds"
164
165 config ARM64_ERRATUM_845719
166         bool "Cortex-A53: 845719: a load might read incorrect data"
167         depends on COMPAT
168         default n
169         help
170           This option adds an alternative code sequence to work around ARM
171           erratum 845719 on Cortex-A53 parts up to r0p4.
172
173           When running a compat (AArch32) userspace on an affected Cortex-A53
174           part, a load at EL0 from a virtual address that matches the bottom 32
175           bits of the virtual address used by a recent load at (AArch64) EL1
176           might return incorrect data.
177
178           The workaround is to write the contextidr_el1 register on exception
179           return to a 32-bit task.
180           Please note that this does not necessarily enable the workaround,
181           as it depends on the alternative framework, which will only patch
182           the kernel if an affected CPU is detected.
183
184           If unsure, say Y.
185
186 endmenu
187
188
189 config ARM64_64K_PAGES
190         bool "Enable 64KB pages support"
191         help
192           This feature enables 64KB pages support (4KB by default)
193           allowing only two levels of page tables and faster TLB
194           look-up. AArch32 emulation is not available when this feature
195           is enabled.
196
197 config CPU_BIG_ENDIAN
198        bool "Build big-endian kernel"
199        help
200          Say Y if you plan on running a kernel in big-endian mode.
201
202 config SMP
203         bool "Symmetric Multi-Processing"
204         select USE_GENERIC_SMP_HELPERS
205         help
206           This enables support for systems with more than one CPU.  If
207           you say N here, the kernel will run on single and
208           multiprocessor machines, but will use only one CPU of a
209           multiprocessor machine. If you say Y here, the kernel will run
210           on many, but not all, single processor machines. On a single
211           processor machine, the kernel will run faster if you say N
212           here.
213
214           If you don't know what to do here, say N.
215
216 config SCHED_MC
217         bool "Multi-core scheduler support"
218         depends on SMP
219         help
220           Multi-core scheduler support improves the CPU scheduler's decision
221           making when dealing with multi-core CPU chips at a cost of slightly
222           increased overhead in some places. If unsure say N here.
223
224 config SCHED_SMT
225         bool "SMT scheduler support"
226         depends on SMP
227         help
228           Improves the CPU scheduler's decision making when dealing with
229           MultiThreading at a cost of slightly increased overhead in some
230           places. If unsure say N here.
231
232 config DISABLE_CPU_SCHED_DOMAIN_BALANCE
233         bool "(EXPERIMENTAL) Disable CPU level scheduler load-balancing"
234         help
235           Disables scheduler load-balancing at CPU sched domain level.
236
237 config SCHED_HMP
238         bool "(EXPERIMENTAL) Heterogenous multiprocessor scheduling"
239         depends on DISABLE_CPU_SCHED_DOMAIN_BALANCE && SCHED_MC && FAIR_GROUP_SCHED && !SCHED_AUTOGROUP
240         help
241           Experimental scheduler optimizations for heterogeneous platforms.
242           Attempts to introspectively select task affinity to optimize power
243           and performance. Basic support for multiple (>2) cpu types is in place,
244           but it has only been tested with two types of cpus.
245           There is currently no support for migration of task groups, hence
246           !SCHED_AUTOGROUP. Furthermore, normal load-balancing must be disabled
247           between cpus of different type (DISABLE_CPU_SCHED_DOMAIN_BALANCE).
248
249 config SCHED_HMP_PRIO_FILTER
250         bool "(EXPERIMENTAL) Filter HMP migrations by task priority"
251         depends on SCHED_HMP
252         help
253           Enables task priority based HMP migration filter. Any task with
254           a NICE value above the threshold will always be on low-power cpus
255           with less compute capacity.
256
257 config SCHED_HMP_PRIO_FILTER_VAL
258         int "NICE priority threshold"
259         default 5
260         depends on SCHED_HMP_PRIO_FILTER
261
262 config HMP_FAST_CPU_MASK
263         string "HMP scheduler fast CPU mask"
264         depends on SCHED_HMP
265         help
266           Leave empty to use device tree information.
267           Specify the cpuids of the fast CPUs in the system as a list string,
268           e.g. cpuid 0+1 should be specified as 0-1.
269
270 config HMP_SLOW_CPU_MASK
271         string "HMP scheduler slow CPU mask"
272         depends on SCHED_HMP
273         help
274           Leave empty to use device tree information.
275           Specify the cpuids of the slow CPUs in the system as a list string,
276           e.g. cpuid 0+1 should be specified as 0-1.
277
278 config HMP_VARIABLE_SCALE
279         bool "Allows changing the load tracking scale through sysfs"
280         depends on SCHED_HMP
281         help
282           When turned on, this option exports the thresholds and load average
283           period value for the load tracking patches through sysfs.
284           The values can be modified to change the rate of load accumulation
285           and the thresholds used for HMP migration.
286           The load_avg_period_ms is the time in ms to reach a load average of
287           0.5 for an idle task of 0 load average ratio that start a busy loop.
288           The up_threshold and down_threshold is the value to go to a faster
289           CPU or to go back to a slower cpu.
290           The {up,down}_threshold are devided by 1024 before being compared
291           to the load average.
292           For examples, with load_avg_period_ms = 128 and up_threshold = 512,
293           a running task with a load of 0 will be migrated to a bigger CPU after
294           128ms, because after 128ms its load_avg_ratio is 0.5 and the real
295           up_threshold is 0.5.
296           This patch has the same behavior as changing the Y of the load
297           average computation to
298                 (1002/1024)^(LOAD_AVG_PERIOD/load_avg_period_ms)
299           but it remove intermadiate overflows in computation.
300
301 config HMP_FREQUENCY_INVARIANT_SCALE
302         bool "(EXPERIMENTAL) Frequency-Invariant Tracked Load for HMP"
303         depends on HMP_VARIABLE_SCALE && CPU_FREQ
304         help
305           Scales the current load contribution in line with the frequency
306           of the CPU that the task was executed on.
307           In this version, we use a simple linear scale derived from the
308           maximum frequency reported by CPUFreq.
309           Restricting tracked load to be scaled by the CPU's frequency
310           represents the consumption of possible compute capacity
311           (rather than consumption of actual instantaneous capacity as
312           normal) and allows the HMP migration's simple threshold
313           migration strategy to interact more predictably with CPUFreq's
314           asynchronous compute capacity changes.
315
316 config SCHED_HMP_LITTLE_PACKING
317         bool "Small task packing for HMP"
318         depends on SCHED_HMP
319         default n
320         help
321           Allows the HMP Scheduler to pack small tasks into CPUs in the
322           smallest HMP domain.
323           Controlled by two sysfs files in sys/kernel/hmp.
324           packing_enable: 1 to enable, 0 to disable packing. Default 1.
325           packing_limit: runqueue load ratio where a RQ is considered
326             to be full. Default is NICE_0_LOAD * 9/8.
327
328 config NR_CPUS
329         int "Maximum number of CPUs (2-32)"
330         range 2 32
331         depends on SMP
332         # These have to remain sorted largest to smallest
333         default "8"
334
335 config HOTPLUG_CPU
336         bool "Support for hot-pluggable CPUs"
337         depends on SMP
338         help
339           Say Y here to experiment with turning CPUs off and on.  CPUs
340           can be controlled through /sys/devices/system/cpu.
341
342 config SWP_EMULATE
343         bool "Emulate SWP/SWPB instructions"
344         help
345           ARMv6 architecture deprecates use of the SWP/SWPB instructions. ARMv8
346           oblosetes the use of SWP/SWPB instructions. ARMv7 multiprocessing
347           extensions introduce the ability to disable these instructions,
348           triggering an undefined instruction exception when executed. Say Y
349           here to enable software emulation of these instructions for userspace
350           (not kernel) using LDREX/STREX. Also creates /proc/cpu/swp_emulation
351           for statistics.
352
353           In some older versions of glibc [<=2.8] SWP is used during futex
354           trylock() operations with the assumption that the code will not
355           be preempted. This invalid assumption may be more likely to fail
356           with SWP emulation enabled, leading to deadlock of the user
357           application.
358
359           NOTE: when accessing uncached shared regions, LDREX/STREX rely
360           on an external transaction monitoring block called a global
361           monitor to maintain update atomicity. If your system does not
362           implement a global monitor, this option can cause programs that
363           perform SWP operations to uncached memory to deadlock.
364
365           If unsure, say Y.
366
367 source kernel/Kconfig.preempt
368
369 config HZ
370         int
371         default 100
372
373 config ARCH_HAS_HOLES_MEMORYMODEL
374         def_bool y if SPARSEMEM
375
376 config ARCH_SPARSEMEM_ENABLE
377         def_bool y
378         select SPARSEMEM_VMEMMAP_ENABLE
379
380 config ARCH_SPARSEMEM_DEFAULT
381         def_bool ARCH_SPARSEMEM_ENABLE
382
383 config ARCH_SELECT_MEMORY_MODEL
384         def_bool ARCH_SPARSEMEM_ENABLE
385
386 config HAVE_ARCH_PFN_VALID
387         def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
388
389 config HW_PERF_EVENTS
390         bool "Enable hardware performance counter support for perf events"
391         depends on PERF_EVENTS
392         default y
393         help
394           Enable hardware performance counter support for perf events. If
395           disabled, perf events will use software events only.
396
397 config SYS_SUPPORTS_HUGETLBFS
398         def_bool y
399
400 config ARCH_WANT_GENERAL_HUGETLB
401         def_bool y
402
403 config ARCH_WANT_HUGE_PMD_SHARE
404         def_bool y if !ARM64_64K_PAGES
405
406 config HAVE_ARCH_TRANSPARENT_HUGEPAGE
407         def_bool y
408
409 config ARMV7_COMPAT
410         bool "Kernel support for ARMv7 applications"
411         depends on COMPAT
412         select SWP_EMULATE
413         help
414          This option enables features that allow that ran on an ARMv7 or older
415          processor to continue functioning.
416
417          If you want to execute ARMv7 applications, say Y
418
419 config ARMV7_COMPAT_CPUINFO
420         bool "Report backwards compatible cpu features in /proc/cpuinfo"
421         depends on ARMV7_COMPAT
422         default y
423         help
424          This option makes /proc/cpuinfo list CPU features that an ARMv7 or
425          earlier kernel would report, but are not optional on an ARMv8 or later
426          processor.
427
428          If you want to execute ARMv7 applications, say Y
429
430 source "mm/Kconfig"
431
432 config FORCE_MAX_ZONEORDER
433         int
434         default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
435         default "11"
436
437 config SECCOMP
438         bool "Enable seccomp to safely compute untrusted bytecode"
439         ---help---
440           This kernel feature is useful for number crunching applications
441           that may need to compute untrusted bytecode during their
442           execution. By using pipes or other transports made available to
443           the process as file descriptors supporting the read/write
444           syscalls, it's possible to isolate those applications in
445           their own address space using seccomp. Once seccomp is
446           enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
447           and the task is only allowed to execute a few safe syscalls
448           defined by each seccomp mode.
449
450 endmenu
451
452 menu "Boot options"
453
454 config CMDLINE
455         string "Default kernel command string"
456         default ""
457         help
458           Provide a set of default command-line options at build time by
459           entering them here. As a minimum, you should specify the the
460           root device (e.g. root=/dev/nfs).
461
462 choice
463         prompt "Kernel command line type" if CMDLINE != ""
464         default CMDLINE_FROM_BOOTLOADER
465
466 config CMDLINE_FROM_BOOTLOADER
467         bool "Use bootloader kernel arguments if available"
468         help
469           Uses the command-line options passed by the boot loader. If
470           the boot loader doesn't provide any, the default kernel command
471           string provided in CMDLINE will be used.
472
473 config CMDLINE_EXTEND
474         bool "Extend bootloader kernel arguments"
475         help
476           The command-line arguments provided by the boot loader will be
477           appended to the default kernel command string.
478
479 config CMDLINE_FORCE
480         bool "Always use the default kernel command string"
481         help
482           Always use the default kernel command string, even if the boot
483           loader passes other arguments to the kernel.
484           This is useful if you cannot or don't want to change the
485           command-line options your boot loader passes to the kernel.
486 endchoice
487
488 config BUILD_ARM64_APPENDED_DTB_IMAGE
489         bool "Build a concatenated Image.gz/dtb by default"
490         depends on OF
491         help
492           Enabling this option will cause a concatenated Image.gz and list of
493           DTBs to be built by default (instead of a standalone Image.gz.)
494           The image will built in arch/arm64/boot/Image.gz-dtb
495
496 config BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES
497         string "Default dtb names"
498         depends on BUILD_ARM64_APPENDED_DTB_IMAGE
499         help
500           Space separated list of names of dtbs to append when
501           building a concatenated Image.gz-dtb.
502
503 config EFI
504         bool "UEFI runtime support"
505         depends on OF && !CPU_BIG_ENDIAN
506         select LIBFDT
507         select UCS2_STRING
508         select EFI_PARAMS_FROM_FDT
509         default y
510         help
511           This option provides support for runtime services provided
512           by UEFI firmware (such as non-volatile variables, realtime
513           clock, and platform reset). A UEFI stub is also provided to
514           allow the kernel to be booted as an EFI application. This
515           is only useful on systems that have UEFI firmware.
516
517 endmenu
518
519 menu "Userspace binary formats"
520
521 source "fs/Kconfig.binfmt"
522
523 config COMPAT
524         bool "Kernel support for 32-bit EL0"
525         depends on !ARM64_64K_PAGES
526         select COMPAT_BINFMT_ELF
527         select HAVE_UID16
528         select OLD_SIGSUSPEND3
529         select COMPAT_OLD_SIGACTION
530         help
531           This option enables support for a 32-bit EL0 running under a 64-bit
532           kernel at EL1. AArch32-specific components such as system calls,
533           the user helper functions, VFP support and the ptrace interface are
534           handled appropriately by the kernel.
535
536           If you want to execute 32-bit userspace applications, say Y.
537
538 config SYSVIPC_COMPAT
539         def_bool y
540         depends on COMPAT && SYSVIPC
541
542 endmenu
543
544 menu "Power management options"
545
546 source "kernel/power/Kconfig"
547
548 source "drivers/cpufreq/Kconfig"
549 config ARCH_SUSPEND_POSSIBLE
550         def_bool y
551
552 config ARM64_CPU_SUSPEND
553         def_bool PM_SLEEP
554
555 endmenu
556
557 menu "CPU Power Management"
558
559 source "drivers/cpuidle/Kconfig"
560
561 endmenu
562
563 source "net/Kconfig"
564
565 source "drivers/Kconfig"
566
567 source "drivers/firmware/Kconfig"
568
569 source "fs/Kconfig"
570
571 source "arch/arm64/kvm/Kconfig"
572
573 source "arch/arm64/Kconfig.debug"
574
575 source "security/Kconfig"
576
577 source "crypto/Kconfig"
578 if CRYPTO
579 source "arch/arm64/crypto/Kconfig"
580 endif
581
582 source "lib/Kconfig"