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