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