Merge branch 'linux-3.10.y' of git://git.kernel.org/pub/scm/linux/kernel/git/stable...
[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 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_TRACEHOOK
38         select HAVE_C_RECORDMCOUNT
39         select HAVE_CC_STACKPROTECTOR
40         select HAVE_DEBUG_BUGVERBOSE
41         select HAVE_DEBUG_KMEMLEAK
42         select HAVE_DMA_API_DEBUG
43         select HAVE_DMA_ATTRS
44         select HAVE_DMA_CONTIGUOUS
45         select HAVE_DYNAMIC_FTRACE
46         select HAVE_EFFICIENT_UNALIGNED_ACCESS
47         select HAVE_FTRACE_MCOUNT_RECORD
48         select HAVE_FUNCTION_TRACER
49         select HAVE_FUNCTION_GRAPH_TRACER
50         select HAVE_GENERIC_DMA_COHERENT
51         select HAVE_GENERIC_HARDIRQS
52         select HAVE_HW_BREAKPOINT if PERF_EVENTS
53         select HAVE_MEMBLOCK
54         select HAVE_PATA_PLATFORM
55         select HAVE_PERF_EVENTS
56         select HAVE_PERF_REGS
57         select HAVE_PERF_USER_STACK_DUMP
58         select HAVE_SYSCALL_TRACEPOINTS
59         select IRQ_DOMAIN
60         select MODULES_USE_ELF_RELA
61         select NO_BOOTMEM
62         select OF
63         select OF_EARLY_FLATTREE
64         select OF_RESERVED_MEM
65         select PERF_USE_VMALLOC
66         select POWER_RESET
67         select POWER_SUPPLY
68         select RTC_LIB
69         select SPARSE_IRQ
70         select SYSCTL_EXCEPTION_TRACE
71         help
72           ARM 64-bit (AArch64) Linux support.
73
74 config 64BIT
75         def_bool y
76
77 config ARCH_PHYS_ADDR_T_64BIT
78         def_bool y
79
80 config MMU
81         def_bool y
82
83 config NO_IOPORT
84         def_bool y
85
86 config STACKTRACE_SUPPORT
87         def_bool y
88
89 config ILLEGAL_POINTER_VALUE
90         hex
91         default 0xdead000000000000
92
93 config LOCKDEP_SUPPORT
94         def_bool y
95
96 config TRACE_IRQFLAGS_SUPPORT
97         def_bool y
98
99 config RWSEM_XCHGADD_ALGORITHM
100         def_bool y
101
102 config GENERIC_HWEIGHT
103         def_bool y
104
105 config GENERIC_CSUM
106         def_bool y
107
108 config GENERIC_CALIBRATE_DELAY
109         def_bool y
110
111 config ZONE_DMA
112         def_bool y
113
114 config ARCH_DMA_ADDR_T_64BIT
115         def_bool y
116
117 config NEED_DMA_MAP_STATE
118         def_bool y
119
120 config NEED_SG_DMA_LENGTH
121         def_bool y
122
123 config SWIOTLB
124         def_bool y
125
126 config IOMMU_HELPER
127         def_bool SWIOTLB
128
129 config FIX_EARLYCON_MEM
130         def_bool y
131
132 source "init/Kconfig"
133
134 source "kernel/Kconfig.freezer"
135
136 menu "Platform selection"
137
138 config ARCH_VEXPRESS
139         bool "ARMv8 software model (Versatile Express)"
140         select ARCH_REQUIRE_GPIOLIB
141         select COMMON_CLK_VERSATILE
142         select POWER_RESET_VEXPRESS
143         select VEXPRESS_CONFIG
144         help
145           This enables support for the ARMv8 software model (Versatile
146           Express).
147
148 config ARCH_XGENE
149         bool "AppliedMicro X-Gene SOC Family"
150         help
151           This enables support for AppliedMicro X-Gene SOC Family
152
153 endmenu
154
155 menu "Bus support"
156
157 config ARM_AMBA
158         bool
159
160 endmenu
161
162 menu "Kernel Features"
163
164 menu "ARM errata workarounds"
165
166 config ARM64_ERRATUM_845719
167         bool "Cortex-A53: 845719: a load might read incorrect data"
168         depends on COMPAT
169         default n
170         help
171           This option adds an alternative code sequence to work around ARM
172           erratum 845719 on Cortex-A53 parts up to r0p4.
173
174           When running a compat (AArch32) userspace on an affected Cortex-A53
175           part, a load at EL0 from a virtual address that matches the bottom 32
176           bits of the virtual address used by a recent load at (AArch64) EL1
177           might return incorrect data.
178
179           The workaround is to write the contextidr_el1 register on exception
180           return to a 32-bit task.
181           Please note that this does not necessarily enable the workaround,
182           as it depends on the alternative framework, which will only patch
183           the kernel if an affected CPU is detected.
184
185           If unsure, say Y.
186
187 endmenu
188
189
190 config ARM64_64K_PAGES
191         bool "Enable 64KB pages support"
192         help
193           This feature enables 64KB pages support (4KB by default)
194           allowing only two levels of page tables and faster TLB
195           look-up. AArch32 emulation is not available when this feature
196           is enabled.
197
198 config CPU_BIG_ENDIAN
199        bool "Build big-endian kernel"
200        help
201          Say Y if you plan on running a kernel in big-endian mode.
202
203 config SMP
204         bool "Symmetric Multi-Processing"
205         select USE_GENERIC_SMP_HELPERS
206         help
207           This enables support for systems with more than one CPU.  If
208           you say N here, the kernel will run on single and
209           multiprocessor machines, but will use only one CPU of a
210           multiprocessor machine. If you say Y here, the kernel will run
211           on many, but not all, single processor machines. On a single
212           processor machine, the kernel will run faster if you say N
213           here.
214
215           If you don't know what to do here, say N.
216
217 config SCHED_MC
218         bool "Multi-core scheduler support"
219         depends on SMP
220         help
221           Multi-core scheduler support improves the CPU scheduler's decision
222           making when dealing with multi-core CPU chips at a cost of slightly
223           increased overhead in some places. If unsure say N here.
224
225 config SCHED_SMT
226         bool "SMT scheduler support"
227         depends on SMP
228         help
229           Improves the CPU scheduler's decision making when dealing with
230           MultiThreading at a cost of slightly increased overhead in some
231           places. If unsure say N here.
232
233 config DISABLE_CPU_SCHED_DOMAIN_BALANCE
234         bool "(EXPERIMENTAL) Disable CPU level scheduler load-balancing"
235         help
236           Disables scheduler load-balancing at CPU sched domain level.
237
238 config SCHED_HMP
239         bool "(EXPERIMENTAL) Heterogenous multiprocessor scheduling"
240         depends on DISABLE_CPU_SCHED_DOMAIN_BALANCE && SCHED_MC && FAIR_GROUP_SCHED && !SCHED_AUTOGROUP
241         help
242           Experimental scheduler optimizations for heterogeneous platforms.
243           Attempts to introspectively select task affinity to optimize power
244           and performance. Basic support for multiple (>2) cpu types is in place,
245           but it has only been tested with two types of cpus.
246           There is currently no support for migration of task groups, hence
247           !SCHED_AUTOGROUP. Furthermore, normal load-balancing must be disabled
248           between cpus of different type (DISABLE_CPU_SCHED_DOMAIN_BALANCE).
249
250 config SCHED_HMP_PRIO_FILTER
251         bool "(EXPERIMENTAL) Filter HMP migrations by task priority"
252         depends on SCHED_HMP
253         help
254           Enables task priority based HMP migration filter. Any task with
255           a NICE value above the threshold will always be on low-power cpus
256           with less compute capacity.
257
258 config SCHED_HMP_PRIO_FILTER_VAL
259         int "NICE priority threshold"
260         default 5
261         depends on SCHED_HMP_PRIO_FILTER
262
263 config HMP_FAST_CPU_MASK
264         string "HMP scheduler fast CPU mask"
265         depends on SCHED_HMP
266         help
267           Leave empty to use device tree information.
268           Specify the cpuids of the fast CPUs in the system as a list string,
269           e.g. cpuid 0+1 should be specified as 0-1.
270
271 config HMP_SLOW_CPU_MASK
272         string "HMP scheduler slow CPU mask"
273         depends on SCHED_HMP
274         help
275           Leave empty to use device tree information.
276           Specify the cpuids of the slow CPUs in the system as a list string,
277           e.g. cpuid 0+1 should be specified as 0-1.
278
279 config HMP_VARIABLE_SCALE
280         bool "Allows changing the load tracking scale through sysfs"
281         depends on SCHED_HMP
282         help
283           When turned on, this option exports the thresholds and load average
284           period value for the load tracking patches through sysfs.
285           The values can be modified to change the rate of load accumulation
286           and the thresholds used for HMP migration.
287           The load_avg_period_ms is the time in ms to reach a load average of
288           0.5 for an idle task of 0 load average ratio that start a busy loop.
289           The up_threshold and down_threshold is the value to go to a faster
290           CPU or to go back to a slower cpu.
291           The {up,down}_threshold are devided by 1024 before being compared
292           to the load average.
293           For examples, with load_avg_period_ms = 128 and up_threshold = 512,
294           a running task with a load of 0 will be migrated to a bigger CPU after
295           128ms, because after 128ms its load_avg_ratio is 0.5 and the real
296           up_threshold is 0.5.
297           This patch has the same behavior as changing the Y of the load
298           average computation to
299                 (1002/1024)^(LOAD_AVG_PERIOD/load_avg_period_ms)
300           but it remove intermadiate overflows in computation.
301
302 config HMP_FREQUENCY_INVARIANT_SCALE
303         bool "(EXPERIMENTAL) Frequency-Invariant Tracked Load for HMP"
304         depends on HMP_VARIABLE_SCALE && CPU_FREQ
305         help
306           Scales the current load contribution in line with the frequency
307           of the CPU that the task was executed on.
308           In this version, we use a simple linear scale derived from the
309           maximum frequency reported by CPUFreq.
310           Restricting tracked load to be scaled by the CPU's frequency
311           represents the consumption of possible compute capacity
312           (rather than consumption of actual instantaneous capacity as
313           normal) and allows the HMP migration's simple threshold
314           migration strategy to interact more predictably with CPUFreq's
315           asynchronous compute capacity changes.
316
317 config SCHED_HMP_LITTLE_PACKING
318         bool "Small task packing for HMP"
319         depends on SCHED_HMP
320         default n
321         help
322           Allows the HMP Scheduler to pack small tasks into CPUs in the
323           smallest HMP domain.
324           Controlled by two sysfs files in sys/kernel/hmp.
325           packing_enable: 1 to enable, 0 to disable packing. Default 1.
326           packing_limit: runqueue load ratio where a RQ is considered
327             to be full. Default is NICE_0_LOAD * 9/8.
328
329 config NR_CPUS
330         int "Maximum number of CPUs (2-32)"
331         range 2 32
332         depends on SMP
333         # These have to remain sorted largest to smallest
334         default "8"
335
336 config HOTPLUG_CPU
337         bool "Support for hot-pluggable CPUs"
338         depends on SMP
339         help
340           Say Y here to experiment with turning CPUs off and on.  CPUs
341           can be controlled through /sys/devices/system/cpu.
342
343 source kernel/Kconfig.preempt
344
345 config HZ
346         int
347         default 100
348
349 config ARCH_HAS_HOLES_MEMORYMODEL
350         def_bool y if SPARSEMEM
351
352 config ARCH_SPARSEMEM_ENABLE
353         def_bool y
354         select SPARSEMEM_VMEMMAP_ENABLE
355
356 config ARCH_SPARSEMEM_DEFAULT
357         def_bool ARCH_SPARSEMEM_ENABLE
358
359 config ARCH_SELECT_MEMORY_MODEL
360         def_bool ARCH_SPARSEMEM_ENABLE
361
362 config HAVE_ARCH_PFN_VALID
363         def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
364
365 config HW_PERF_EVENTS
366         bool "Enable hardware performance counter support for perf events"
367         depends on PERF_EVENTS
368         default y
369         help
370           Enable hardware performance counter support for perf events. If
371           disabled, perf events will use software events only.
372
373 config SYS_SUPPORTS_HUGETLBFS
374         def_bool y
375
376 config ARCH_WANT_GENERAL_HUGETLB
377         def_bool y
378
379 config ARCH_WANT_HUGE_PMD_SHARE
380         def_bool y if !ARM64_64K_PAGES
381
382 config HAVE_ARCH_TRANSPARENT_HUGEPAGE
383         def_bool y
384
385 source "mm/Kconfig"
386
387 config FORCE_MAX_ZONEORDER
388         int
389         default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
390         default "11"
391
392 endmenu
393
394 menu "Boot options"
395
396 config CMDLINE
397         string "Default kernel command string"
398         default ""
399         help
400           Provide a set of default command-line options at build time by
401           entering them here. As a minimum, you should specify the the
402           root device (e.g. root=/dev/nfs).
403
404 config CMDLINE_FORCE
405         bool "Always use the default kernel command string"
406         help
407           Always use the default kernel command string, even if the boot
408           loader passes other arguments to the kernel.
409           This is useful if you cannot or don't want to change the
410           command-line options your boot loader passes to the kernel.
411
412 config EFI
413         bool "UEFI runtime support"
414         depends on OF && !CPU_BIG_ENDIAN
415         select LIBFDT
416         select UCS2_STRING
417         select EFI_PARAMS_FROM_FDT
418         default y
419         help
420           This option provides support for runtime services provided
421           by UEFI firmware (such as non-volatile variables, realtime
422           clock, and platform reset). A UEFI stub is also provided to
423           allow the kernel to be booted as an EFI application. This
424           is only useful on systems that have UEFI firmware.
425
426 endmenu
427
428 menu "Userspace binary formats"
429
430 source "fs/Kconfig.binfmt"
431
432 config COMPAT
433         bool "Kernel support for 32-bit EL0"
434         depends on !ARM64_64K_PAGES
435         select COMPAT_BINFMT_ELF
436         select HAVE_UID16
437         select OLD_SIGSUSPEND3
438         select COMPAT_OLD_SIGACTION
439         help
440           This option enables support for a 32-bit EL0 running under a 64-bit
441           kernel at EL1. AArch32-specific components such as system calls,
442           the user helper functions, VFP support and the ptrace interface are
443           handled appropriately by the kernel.
444
445           If you want to execute 32-bit userspace applications, say Y.
446
447 config SYSVIPC_COMPAT
448         def_bool y
449         depends on COMPAT && SYSVIPC
450
451 endmenu
452
453 menu "Power management options"
454
455 source "kernel/power/Kconfig"
456
457 source "drivers/cpufreq/Kconfig"
458 config ARCH_SUSPEND_POSSIBLE
459         def_bool y
460
461 config ARM64_CPU_SUSPEND
462         def_bool PM_SLEEP
463
464 endmenu
465
466 menu "CPU Power Management"
467
468 source "drivers/cpuidle/Kconfig"
469
470 endmenu
471
472 source "net/Kconfig"
473
474 source "drivers/Kconfig"
475
476 source "drivers/firmware/Kconfig"
477
478 source "fs/Kconfig"
479
480 source "arch/arm64/kvm/Kconfig"
481
482 source "arch/arm64/Kconfig.debug"
483
484 source "security/Kconfig"
485
486 source "crypto/Kconfig"
487 if CRYPTO
488 source "arch/arm64/crypto/Kconfig"
489 endif
490
491 source "lib/Kconfig"