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