ARM64: rockchip: add mach-rockchip
[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 ARM_GIC_V3
15         select BUILDTIME_EXTABLE_SORT
16         select AUDIT_ARCH_COMPAT_GENERIC
17         select CLONE_BACKWARDS
18         select COMMON_CLK
19         select CPU_PM if (SUSPEND || CPU_IDLE)
20         select DCACHE_WORD_ACCESS
21         select GENERIC_CLOCKEVENTS
22         select GENERIC_CLOCKEVENTS_BROADCAST if SMP
23         select GENERIC_CPU_AUTOPROBE
24         select GENERIC_EARLY_IOREMAP
25         select GENERIC_IOMAP
26         select GENERIC_IRQ_PROBE
27         select GENERIC_IRQ_SHOW
28         select GENERIC_SMP_IDLE_THREAD
29         select GENERIC_STRNCPY_FROM_USER
30         select GENERIC_STRNLEN_USER
31         select GENERIC_TIME_VSYSCALL
32         select HARDIRQS_SW_RESEND
33         select HAVE_ARCH_JUMP_LABEL
34         select HAVE_ARCH_KGDB
35         select HAVE_ARCH_AUDITSYSCALL
36         select HAVE_ARCH_SECCOMP_FILTER
37         select HAVE_ARCH_TRACEHOOK
38         select HAVE_C_RECORDMCOUNT
39         select HAVE_DEBUG_BUGVERBOSE
40         select HAVE_DEBUG_KMEMLEAK
41         select HAVE_DMA_API_DEBUG
42         select HAVE_DMA_ATTRS
43         select HAVE_DMA_CONTIGUOUS
44         select HAVE_DYNAMIC_FTRACE
45         select HAVE_EFFICIENT_UNALIGNED_ACCESS
46         select HAVE_FTRACE_MCOUNT_RECORD
47         select HAVE_FUNCTION_TRACER
48         select HAVE_FUNCTION_GRAPH_TRACER
49         select HAVE_GENERIC_DMA_COHERENT
50         select HAVE_GENERIC_HARDIRQS
51         select HAVE_HW_BREAKPOINT if PERF_EVENTS
52         select HAVE_MEMBLOCK
53         select HAVE_PATA_PLATFORM
54         select HAVE_PERF_EVENTS
55         select HAVE_PERF_REGS
56         select HAVE_PERF_USER_STACK_DUMP
57         select HAVE_SYSCALL_TRACEPOINTS
58         select IRQ_DOMAIN
59         select MODULES_USE_ELF_RELA
60         select NO_BOOTMEM
61         select OF
62         select OF_EARLY_FLATTREE
63         select OF_RESERVED_MEM
64         select PERF_USE_VMALLOC
65         select POWER_RESET
66         select POWER_SUPPLY
67         select RTC_LIB
68         select SPARSE_IRQ
69         select SYSCTL_EXCEPTION_TRACE
70         help
71           ARM 64-bit (AArch64) Linux support.
72
73 config 64BIT
74         def_bool y
75
76 config ARCH_PHYS_ADDR_T_64BIT
77         def_bool y
78
79 config MMU
80         def_bool y
81
82 config NO_IOPORT
83         def_bool y
84
85 config STACKTRACE_SUPPORT
86         def_bool y
87
88 config LOCKDEP_SUPPORT
89         def_bool y
90
91 config TRACE_IRQFLAGS_SUPPORT
92         def_bool y
93
94 config RWSEM_XCHGADD_ALGORITHM
95         def_bool y
96
97 config GENERIC_HWEIGHT
98         def_bool y
99
100 config GENERIC_CSUM
101         def_bool y
102
103 config GENERIC_CALIBRATE_DELAY
104         def_bool y
105
106 config ZONE_DMA
107         def_bool y
108
109 config ARCH_DMA_ADDR_T_64BIT
110         def_bool y
111
112 config NEED_DMA_MAP_STATE
113         def_bool y
114
115 config NEED_SG_DMA_LENGTH
116         def_bool y
117
118 config SWIOTLB
119         def_bool y
120
121 config IOMMU_HELPER
122         def_bool SWIOTLB
123
124 config FIX_EARLYCON_MEM
125         def_bool y
126
127 source "init/Kconfig"
128
129 source "kernel/Kconfig.freezer"
130
131 menu "Platform selection"
132
133 config ARCH_ROCKCHIP
134         bool "Rockchip SoCs"
135         select PINCTRL
136         select PINCTRL_RK3368
137         select ARCH_REQUIRE_GPIOLIB
138
139 source "arch/arm64/mach-rockchip/Kconfig"
140
141 config ARCH_VEXPRESS
142         bool "ARMv8 software model (Versatile Express)"
143         select ARCH_REQUIRE_GPIOLIB
144         select COMMON_CLK_VERSATILE
145         select POWER_RESET_VEXPRESS
146         select VEXPRESS_CONFIG
147         help
148           This enables support for the ARMv8 software model (Versatile
149           Express).
150
151 config ARCH_XGENE
152         bool "AppliedMicro X-Gene SOC Family"
153         help
154           This enables support for AppliedMicro X-Gene SOC Family
155
156 endmenu
157
158 menu "Bus support"
159
160 config ARM_AMBA
161         bool
162
163 endmenu
164
165 menu "Kernel Features"
166
167 config ARM64_64K_PAGES
168         bool "Enable 64KB pages support"
169         help
170           This feature enables 64KB pages support (4KB by default)
171           allowing only two levels of page tables and faster TLB
172           look-up. AArch32 emulation is not available when this feature
173           is enabled.
174
175 config CPU_BIG_ENDIAN
176        bool "Build big-endian kernel"
177        help
178          Say Y if you plan on running a kernel in big-endian mode.
179
180 config SMP
181         bool "Symmetric Multi-Processing"
182         select USE_GENERIC_SMP_HELPERS
183         help
184           This enables support for systems with more than one CPU.  If
185           you say N here, the kernel will run on single and
186           multiprocessor machines, but will use only one CPU of a
187           multiprocessor machine. If you say Y here, the kernel will run
188           on many, but not all, single processor machines. On a single
189           processor machine, the kernel will run faster if you say N
190           here.
191
192           If you don't know what to do here, say N.
193
194 config SCHED_MC
195         bool "Multi-core scheduler support"
196         depends on SMP
197         help
198           Multi-core scheduler support improves the CPU scheduler's decision
199           making when dealing with multi-core CPU chips at a cost of slightly
200           increased overhead in some places. If unsure say N here.
201
202 config SCHED_SMT
203         bool "SMT scheduler support"
204         depends on SMP
205         help
206           Improves the CPU scheduler's decision making when dealing with
207           MultiThreading at a cost of slightly increased overhead in some
208           places. If unsure say N here.
209
210 config DISABLE_CPU_SCHED_DOMAIN_BALANCE
211         bool "(EXPERIMENTAL) Disable CPU level scheduler load-balancing"
212         help
213           Disables scheduler load-balancing at CPU sched domain level.
214
215 config SCHED_HMP
216         bool "(EXPERIMENTAL) Heterogenous multiprocessor scheduling"
217         depends on DISABLE_CPU_SCHED_DOMAIN_BALANCE && SCHED_MC && FAIR_GROUP_SCHED && !SCHED_AUTOGROUP
218         help
219           Experimental scheduler optimizations for heterogeneous platforms.
220           Attempts to introspectively select task affinity to optimize power
221           and performance. Basic support for multiple (>2) cpu types is in place,
222           but it has only been tested with two types of cpus.
223           There is currently no support for migration of task groups, hence
224           !SCHED_AUTOGROUP. Furthermore, normal load-balancing must be disabled
225           between cpus of different type (DISABLE_CPU_SCHED_DOMAIN_BALANCE).
226
227 config SCHED_HMP_PRIO_FILTER
228         bool "(EXPERIMENTAL) Filter HMP migrations by task priority"
229         depends on SCHED_HMP
230         help
231           Enables task priority based HMP migration filter. Any task with
232           a NICE value above the threshold will always be on low-power cpus
233           with less compute capacity.
234
235 config SCHED_HMP_PRIO_FILTER_VAL
236         int "NICE priority threshold"
237         default 5
238         depends on SCHED_HMP_PRIO_FILTER
239
240 config HMP_FAST_CPU_MASK
241         string "HMP scheduler fast CPU mask"
242         depends on SCHED_HMP
243         help
244           Leave empty to use device tree information.
245           Specify the cpuids of the fast CPUs in the system as a list string,
246           e.g. cpuid 0+1 should be specified as 0-1.
247
248 config HMP_SLOW_CPU_MASK
249         string "HMP scheduler slow CPU mask"
250         depends on SCHED_HMP
251         help
252           Leave empty to use device tree information.
253           Specify the cpuids of the slow CPUs in the system as a list string,
254           e.g. cpuid 0+1 should be specified as 0-1.
255
256 config HMP_VARIABLE_SCALE
257         bool "Allows changing the load tracking scale through sysfs"
258         depends on SCHED_HMP
259         help
260           When turned on, this option exports the thresholds and load average
261           period value for the load tracking patches through sysfs.
262           The values can be modified to change the rate of load accumulation
263           and the thresholds used for HMP migration.
264           The load_avg_period_ms is the time in ms to reach a load average of
265           0.5 for an idle task of 0 load average ratio that start a busy loop.
266           The up_threshold and down_threshold is the value to go to a faster
267           CPU or to go back to a slower cpu.
268           The {up,down}_threshold are devided by 1024 before being compared
269           to the load average.
270           For examples, with load_avg_period_ms = 128 and up_threshold = 512,
271           a running task with a load of 0 will be migrated to a bigger CPU after
272           128ms, because after 128ms its load_avg_ratio is 0.5 and the real
273           up_threshold is 0.5.
274           This patch has the same behavior as changing the Y of the load
275           average computation to
276                 (1002/1024)^(LOAD_AVG_PERIOD/load_avg_period_ms)
277           but it remove intermadiate overflows in computation.
278
279 config HMP_FREQUENCY_INVARIANT_SCALE
280         bool "(EXPERIMENTAL) Frequency-Invariant Tracked Load for HMP"
281         depends on HMP_VARIABLE_SCALE && CPU_FREQ
282         help
283           Scales the current load contribution in line with the frequency
284           of the CPU that the task was executed on.
285           In this version, we use a simple linear scale derived from the
286           maximum frequency reported by CPUFreq.
287           Restricting tracked load to be scaled by the CPU's frequency
288           represents the consumption of possible compute capacity
289           (rather than consumption of actual instantaneous capacity as
290           normal) and allows the HMP migration's simple threshold
291           migration strategy to interact more predictably with CPUFreq's
292           asynchronous compute capacity changes.
293
294 config SCHED_HMP_LITTLE_PACKING
295         bool "Small task packing for HMP"
296         depends on SCHED_HMP
297         default n
298         help
299           Allows the HMP Scheduler to pack small tasks into CPUs in the
300           smallest HMP domain.
301           Controlled by two sysfs files in sys/kernel/hmp.
302           packing_enable: 1 to enable, 0 to disable packing. Default 1.
303           packing_limit: runqueue load ratio where a RQ is considered
304             to be full. Default is NICE_0_LOAD * 9/8.
305
306 config NR_CPUS
307         int "Maximum number of CPUs (2-32)"
308         range 2 32
309         depends on SMP
310         # These have to remain sorted largest to smallest
311         default "8"
312
313 config HOTPLUG_CPU
314         bool "Support for hot-pluggable CPUs"
315         depends on SMP
316         help
317           Say Y here to experiment with turning CPUs off and on.  CPUs
318           can be controlled through /sys/devices/system/cpu.
319
320 config SWP_EMULATE
321         bool "Emulate SWP/SWPB instructions"
322         help
323           ARMv6 architecture deprecates use of the SWP/SWPB instructions. ARMv8
324           oblosetes the use of SWP/SWPB instructions. ARMv7 multiprocessing
325           extensions introduce the ability to disable these instructions,
326           triggering an undefined instruction exception when executed. Say Y
327           here to enable software emulation of these instructions for userspace
328           (not kernel) using LDREX/STREX. Also creates /proc/cpu/swp_emulation
329           for statistics.
330
331           In some older versions of glibc [<=2.8] SWP is used during futex
332           trylock() operations with the assumption that the code will not
333           be preempted. This invalid assumption may be more likely to fail
334           with SWP emulation enabled, leading to deadlock of the user
335           application.
336
337           NOTE: when accessing uncached shared regions, LDREX/STREX rely
338           on an external transaction monitoring block called a global
339           monitor to maintain update atomicity. If your system does not
340           implement a global monitor, this option can cause programs that
341           perform SWP operations to uncached memory to deadlock.
342
343           If unsure, say Y.
344
345 source kernel/Kconfig.preempt
346
347 config HZ
348         int
349         default 100
350
351 config ARCH_HAS_HOLES_MEMORYMODEL
352         def_bool y if SPARSEMEM
353
354 config ARCH_SPARSEMEM_ENABLE
355         def_bool y
356         select SPARSEMEM_VMEMMAP_ENABLE
357
358 config ARCH_SPARSEMEM_DEFAULT
359         def_bool ARCH_SPARSEMEM_ENABLE
360
361 config ARCH_SELECT_MEMORY_MODEL
362         def_bool ARCH_SPARSEMEM_ENABLE
363
364 config HAVE_ARCH_PFN_VALID
365         def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
366
367 config HW_PERF_EVENTS
368         bool "Enable hardware performance counter support for perf events"
369         depends on PERF_EVENTS
370         default y
371         help
372           Enable hardware performance counter support for perf events. If
373           disabled, perf events will use software events only.
374
375 config SYS_SUPPORTS_HUGETLBFS
376         def_bool y
377
378 config ARCH_WANT_GENERAL_HUGETLB
379         def_bool y
380
381 config ARCH_WANT_HUGE_PMD_SHARE
382         def_bool y if !ARM64_64K_PAGES
383
384 config HAVE_ARCH_TRANSPARENT_HUGEPAGE
385         def_bool y
386
387 config ARMV7_COMPAT
388         bool "Kernel support for ARMv7 applications"
389         depends on COMPAT
390         select SWP_EMULATE
391         help
392          This option enables features that allow that ran on an ARMv7 or older
393          processor to continue functioning.
394
395          If you want to execute ARMv7 applications, say Y
396
397 config ARMV7_COMPAT_CPUINFO
398         bool "Report backwards compatible cpu features in /proc/cpuinfo"
399         depends on ARMV7_COMPAT
400         default y
401         help
402          This option makes /proc/cpuinfo list CPU features that an ARMv7 or
403          earlier kernel would report, but are not optional on an ARMv8 or later
404          processor.
405
406          If you want to execute ARMv7 applications, say Y
407
408 source "mm/Kconfig"
409
410 config FORCE_MAX_ZONEORDER
411         int
412         default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
413         default "11"
414
415 config SECCOMP
416         bool "Enable seccomp to safely compute untrusted bytecode"
417         ---help---
418           This kernel feature is useful for number crunching applications
419           that may need to compute untrusted bytecode during their
420           execution. By using pipes or other transports made available to
421           the process as file descriptors supporting the read/write
422           syscalls, it's possible to isolate those applications in
423           their own address space using seccomp. Once seccomp is
424           enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
425           and the task is only allowed to execute a few safe syscalls
426           defined by each seccomp mode.
427
428 endmenu
429
430 menu "Boot options"
431
432 config CMDLINE
433         string "Default kernel command string"
434         default ""
435         help
436           Provide a set of default command-line options at build time by
437           entering them here. As a minimum, you should specify the the
438           root device (e.g. root=/dev/nfs).
439
440 choice
441         prompt "Kernel command line type" if CMDLINE != ""
442         default CMDLINE_FROM_BOOTLOADER
443
444 config CMDLINE_FROM_BOOTLOADER
445         bool "Use bootloader kernel arguments if available"
446         help
447           Uses the command-line options passed by the boot loader. If
448           the boot loader doesn't provide any, the default kernel command
449           string provided in CMDLINE will be used.
450
451 config CMDLINE_EXTEND
452         bool "Extend bootloader kernel arguments"
453         help
454           The command-line arguments provided by the boot loader will be
455           appended to the default kernel command string.
456
457 config CMDLINE_FORCE
458         bool "Always use the default kernel command string"
459         help
460           Always use the default kernel command string, even if the boot
461           loader passes other arguments to the kernel.
462           This is useful if you cannot or don't want to change the
463           command-line options your boot loader passes to the kernel.
464 endchoice
465
466 config BUILD_ARM64_APPENDED_DTB_IMAGE
467         bool "Build a concatenated Image.gz/dtb by default"
468         depends on OF
469         help
470           Enabling this option will cause a concatenated Image.gz and list of
471           DTBs to be built by default (instead of a standalone Image.gz.)
472           The image will built in arch/arm64/boot/Image.gz-dtb
473
474 config BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES
475         string "Default dtb names"
476         depends on BUILD_ARM64_APPENDED_DTB_IMAGE
477         help
478           Space separated list of names of dtbs to append when
479           building a concatenated Image.gz-dtb.
480
481 config EFI
482         bool "UEFI runtime support"
483         depends on OF && !CPU_BIG_ENDIAN
484         select LIBFDT
485         select UCS2_STRING
486         select EFI_PARAMS_FROM_FDT
487         default y
488         help
489           This option provides support for runtime services provided
490           by UEFI firmware (such as non-volatile variables, realtime
491           clock, and platform reset). A UEFI stub is also provided to
492           allow the kernel to be booted as an EFI application. This
493           is only useful on systems that have UEFI firmware.
494
495 endmenu
496
497 menu "Userspace binary formats"
498
499 source "fs/Kconfig.binfmt"
500
501 config COMPAT
502         bool "Kernel support for 32-bit EL0"
503         depends on !ARM64_64K_PAGES
504         select COMPAT_BINFMT_ELF
505         select HAVE_UID16
506         select OLD_SIGSUSPEND3
507         select COMPAT_OLD_SIGACTION
508         help
509           This option enables support for a 32-bit EL0 running under a 64-bit
510           kernel at EL1. AArch32-specific components such as system calls,
511           the user helper functions, VFP support and the ptrace interface are
512           handled appropriately by the kernel.
513
514           If you want to execute 32-bit userspace applications, say Y.
515
516 config SYSVIPC_COMPAT
517         def_bool y
518         depends on COMPAT && SYSVIPC
519
520 endmenu
521
522 menu "Power management options"
523
524 source "kernel/power/Kconfig"
525
526 source "drivers/cpufreq/Kconfig"
527 config ARCH_SUSPEND_POSSIBLE
528         def_bool y
529
530 config ARM64_CPU_SUSPEND
531         def_bool PM_SLEEP
532
533 endmenu
534
535 menu "CPU Power Management"
536
537 source "drivers/cpuidle/Kconfig"
538
539 endmenu
540
541 source "net/Kconfig"
542
543 source "drivers/Kconfig"
544
545 source "drivers/firmware/Kconfig"
546
547 source "fs/Kconfig"
548
549 source "arch/arm64/kvm/Kconfig"
550
551 source "arch/arm64/Kconfig.debug"
552
553 source "security/Kconfig"
554
555 source "crypto/Kconfig"
556 if CRYPTO
557 source "arch/arm64/crypto/Kconfig"
558 endif
559
560 source "lib/Kconfig"