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