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