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