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