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