Kconfig 94.1 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
Sam Ravnborg's avatar
Sam Ravnborg committed
2
3
# Select 32 or 64 bit
config 64BIT
4
	bool "64-bit kernel" if ARCH = "x86"
5
	default ARCH != "i386"
Ingo Molnar's avatar
Ingo Molnar committed
6
	---help---
Sam Ravnborg's avatar
Sam Ravnborg committed
7
8
9
10
	  Say yes to build a 64-bit kernel - formerly known as x86_64
	  Say no to build a 32-bit kernel - formerly known as i386

config X86_32
11
12
	def_bool y
	depends on !64BIT
13
14
15
16
17
18
19
20
	# Options that are inherently 32-bit kernel only:
	select ARCH_WANT_IPC_PARSE_VERSION
	select CLKSRC_I8253
	select CLONE_BACKWARDS
	select HAVE_AOUT
	select HAVE_GENERIC_DMA_COHERENT
	select MODULES_USE_ELF_REL
	select OLD_SIGACTION
Sam Ravnborg's avatar
Sam Ravnborg committed
21
22

config X86_64
23
24
	def_bool y
	depends on 64BIT
25
	# Options that are inherently 64-bit kernel only:
26
	select ARCH_HAS_GIGANTIC_PAGE if (MEMORY_ISOLATION && COMPACTION) || CMA
27
28
29
30
31
	select ARCH_SUPPORTS_INT128
	select ARCH_USE_CMPXCHG_LOCKREF
	select HAVE_ARCH_SOFT_DIRTY
	select MODULES_USE_ELF_RELA
	select X86_DEV_DMA_OPS
32

33
34
35
36
37
38
#
# Arch settings
#
# ( Note that options that are marked 'if X86_64' could in principle be
#   ported to 32-bit as well. )
#
39
config X86
40
	def_bool y
41
42
43
	#
	# Note: keep this list sorted alphabetically
	#
44
45
46
47
48
	select ACPI_LEGACY_TABLES_LOOKUP	if ACPI
	select ACPI_SYSTEM_POWER_STATES_SUPPORT	if ACPI
	select ANON_INODES
	select ARCH_CLOCKSOURCE_DATA
	select ARCH_DISCARD_MEMBLOCK
49
	select ARCH_HAS_ACPI_TABLE_UPGRADE	if ACPI
50
	select ARCH_HAS_DEBUG_VIRTUAL
51
	select ARCH_HAS_DEVMEM_IS_ALLOWED
52
	select ARCH_HAS_ELF_RANDOMIZE
53
	select ARCH_HAS_FAST_MULTIPLIER
54
	select ARCH_HAS_FORTIFY_SOURCE
55
	select ARCH_HAS_GCOV_PROFILE_ALL
Dmitry Vyukov's avatar
Dmitry Vyukov committed
56
	select ARCH_HAS_KCOV			if X86_64
57
	select ARCH_HAS_PHYS_TO_DMA
58
	select ARCH_HAS_PMEM_API		if X86_64
59
	select ARCH_HAS_REFCOUNT
60
	select ARCH_HAS_UACCESS_FLUSHCACHE	if X86_64
61
	select ARCH_HAS_SET_MEMORY
62
	select ARCH_HAS_SG_CHAIN
63
64
	select ARCH_HAS_STRICT_KERNEL_RWX
	select ARCH_HAS_STRICT_MODULE_RWX
65
	select ARCH_HAS_UBSAN_SANITIZE_ALL
66
	select ARCH_HAS_ZONE_DEVICE		if X86_64
67
68
	select ARCH_HAVE_NMI_SAFE_CMPXCHG
	select ARCH_MIGHT_HAVE_ACPI_PDC		if ACPI
69
	select ARCH_MIGHT_HAVE_PC_PARPORT
70
	select ARCH_MIGHT_HAVE_PC_SERIO
71
72
73
74
75
	select ARCH_SUPPORTS_ATOMIC_RMW
	select ARCH_SUPPORTS_NUMA_BALANCING	if X86_64
	select ARCH_USE_BUILTIN_BSWAP
	select ARCH_USE_QUEUED_RWLOCKS
	select ARCH_USE_QUEUED_SPINLOCKS
76
	select ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
77
	select ARCH_WANTS_DYNAMIC_TASK_STRUCT
78
	select ARCH_WANTS_THP_SWAP		if X86_64
79
80
81
82
83
	select BUILDTIME_EXTABLE_SORT
	select CLKEVT_I8253
	select CLOCKSOURCE_VALIDATE_LAST_CYCLE
	select CLOCKSOURCE_WATCHDOG
	select DCACHE_WORD_ACCESS
84
85
	select EDAC_ATOMIC_SCRUB
	select EDAC_SUPPORT
86
87
88
89
90
	select GENERIC_CLOCKEVENTS
	select GENERIC_CLOCKEVENTS_BROADCAST	if X86_64 || (X86_32 && X86_LOCAL_APIC)
	select GENERIC_CLOCKEVENTS_MIN_ADJUST
	select GENERIC_CMOS_UPDATE
	select GENERIC_CPU_AUTOPROBE
91
	select GENERIC_CPU_VULNERABILITIES
Mark Salter's avatar
Mark Salter committed
92
	select GENERIC_EARLY_IOREMAP
93
94
	select GENERIC_FIND_FIRST_BIT
	select GENERIC_IOMAP
95
	select GENERIC_IRQ_EFFECTIVE_AFF_MASK	if SMP
96
	select GENERIC_IRQ_MATRIX_ALLOCATOR	if X86_LOCAL_APIC
97
	select GENERIC_IRQ_MIGRATION		if SMP
98
	select GENERIC_IRQ_PROBE
99
	select GENERIC_IRQ_RESERVATION_MODE
100
101
102
103
104
105
	select GENERIC_IRQ_SHOW
	select GENERIC_PENDING_IRQ		if SMP
	select GENERIC_SMP_IDLE_THREAD
	select GENERIC_STRNCPY_FROM_USER
	select GENERIC_STRNLEN_USER
	select GENERIC_TIME_VSYSCALL
106
	select HARDLOCKUP_CHECK_TIMESTAMP	if X86_64
107
108
109
110
111
112
	select HAVE_ACPI_APEI			if ACPI
	select HAVE_ACPI_APEI_NMI		if ACPI
	select HAVE_ALIGNED_STRUCT_PAGE		if SLUB
	select HAVE_ARCH_AUDITSYSCALL
	select HAVE_ARCH_HUGE_VMAP		if X86_64 || X86_PAE
	select HAVE_ARCH_JUMP_LABEL
113
	select HAVE_ARCH_KASAN			if X86_64
114
	select HAVE_ARCH_KGDB
115
116
	select HAVE_ARCH_MMAP_RND_BITS		if MMU
	select HAVE_ARCH_MMAP_RND_COMPAT_BITS	if MMU && COMPAT
117
	select HAVE_ARCH_COMPAT_MMAP_BASES	if MMU && COMPAT
118
	select HAVE_ARCH_SECCOMP_FILTER
119
	select HAVE_ARCH_THREAD_STRUCT_WHITELIST
120
121
	select HAVE_ARCH_TRACEHOOK
	select HAVE_ARCH_TRANSPARENT_HUGEPAGE
122
	select HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD if X86_64
123
	select HAVE_ARCH_VMAP_STACK		if X86_64
124
	select HAVE_ARCH_WITHIN_STACK_FRAMES
125
126
127
128
	select HAVE_CC_STACKPROTECTOR
	select HAVE_CMPXCHG_DOUBLE
	select HAVE_CMPXCHG_LOCAL
	select HAVE_CONTEXT_TRACKING		if X86_64
129
	select HAVE_COPY_THREAD_TLS
130
	select HAVE_C_RECORDMCOUNT
131
132
133
134
	select HAVE_DEBUG_KMEMLEAK
	select HAVE_DEBUG_STACKOVERFLOW
	select HAVE_DMA_API_DEBUG
	select HAVE_DMA_CONTIGUOUS
135
	select HAVE_DYNAMIC_FTRACE
136
	select HAVE_DYNAMIC_FTRACE_WITH_REGS
137
	select HAVE_EBPF_JIT			if X86_64
138
	select HAVE_EFFICIENT_UNALIGNED_ACCESS
Jiri Slaby's avatar
Jiri Slaby committed
139
	select HAVE_EXIT_THREAD
140
	select HAVE_FENTRY			if X86_64 || DYNAMIC_FTRACE
141
142
143
	select HAVE_FTRACE_MCOUNT_RECORD
	select HAVE_FUNCTION_GRAPH_TRACER
	select HAVE_FUNCTION_TRACER
Emese Revfy's avatar
Emese Revfy committed
144
	select HAVE_GCC_PLUGINS
145
146
147
148
149
	select HAVE_HW_BREAKPOINT
	select HAVE_IDE
	select HAVE_IOREMAP_PROT
	select HAVE_IRQ_EXIT_ON_IRQ_STACK	if X86_64
	select HAVE_IRQ_TIME_ACCOUNTING
150
	select HAVE_KERNEL_BZIP2
151
152
	select HAVE_KERNEL_GZIP
	select HAVE_KERNEL_LZ4
153
	select HAVE_KERNEL_LZMA
154
	select HAVE_KERNEL_LZO
155
156
157
	select HAVE_KERNEL_XZ
	select HAVE_KPROBES
	select HAVE_KPROBES_ON_FTRACE
158
	select HAVE_FUNCTION_ERROR_INJECTION
159
160
161
162
163
	select HAVE_KRETPROBES
	select HAVE_KVM
	select HAVE_LIVEPATCH			if X86_64
	select HAVE_MEMBLOCK
	select HAVE_MEMBLOCK_NODE_MAP
164
	select HAVE_MIXED_BREAKPOINTS_REGS
165
	select HAVE_MOD_ARCH_SPECIFIC
166
	select HAVE_NMI
167
168
169
170
	select HAVE_OPROFILE
	select HAVE_OPTPROBES
	select HAVE_PCSPKR_PLATFORM
	select HAVE_PERF_EVENTS
171
	select HAVE_PERF_EVENTS_NMI
172
	select HAVE_HARDLOCKUP_DETECTOR_PERF	if PERF_EVENTS && HAVE_PERF_EVENTS_NMI
173
	select HAVE_PERF_REGS
174
	select HAVE_PERF_USER_STACK_DUMP
175
	select HAVE_RCU_TABLE_FREE
176
	select HAVE_REGS_AND_STACK_ACCESS_API
177
	select HAVE_RELIABLE_STACKTRACE		if X86_64 && UNWINDER_FRAME_POINTER && STACK_VALIDATION
178
	select HAVE_STACK_VALIDATION		if X86_64
179
180
	select HAVE_SYSCALL_TRACEPOINTS
	select HAVE_UNSTABLE_SCHED_CLOCK
181
	select HAVE_USER_RETURN_NOTIFIER
182
	select IRQ_FORCED_THREADING
183
	select PCI_LOCKLESS_CONFIG
184
	select PERF_EVENTS
185
	select RTC_LIB
186
	select RTC_MC146818_LIB
187
	select SPARSE_IRQ
188
	select SRCU
189
	select SYSCTL_EXCEPTION_TRACE
190
	select THREAD_INFO_IN_TASK
191
192
193
	select USER_STACKTRACE_SUPPORT
	select VIRT_TO_BUS
	select X86_FEATURE_NAMES		if PROC_FS
194

195
config INSTRUCTION_DECODER
196
197
	def_bool y
	depends on KPROBES || PERF_EVENTS || UPROBES
198

199
200
201
202
203
config OUTPUT_FORMAT
	string
	default "elf32-i386" if X86_32
	default "elf64-x86-64" if X86_64

204
config ARCH_DEFCONFIG
205
	string
206
207
	default "arch/x86/configs/i386_defconfig" if X86_32
	default "arch/x86/configs/x86_64_defconfig" if X86_64
208

209
config LOCKDEP_SUPPORT
210
	def_bool y
211
212

config STACKTRACE_SUPPORT
213
	def_bool y
214
215

config MMU
216
	def_bool y
217

218
219
220
221
222
223
224
225
226
227
228
229
230
231
config ARCH_MMAP_RND_BITS_MIN
	default 28 if 64BIT
	default 8

config ARCH_MMAP_RND_BITS_MAX
	default 32 if 64BIT
	default 16

config ARCH_MMAP_RND_COMPAT_BITS_MIN
	default 8

config ARCH_MMAP_RND_COMPAT_BITS_MAX
	default 16

232
233
234
config SBUS
	bool

235
config NEED_DMA_MAP_STATE
236
	def_bool y
237
	depends on X86_64 || INTEL_IOMMU || DMA_API_DEBUG || SWIOTLB
238

239
config NEED_SG_DMA_LENGTH
240
	def_bool y
241

242
config GENERIC_ISA_DMA
243
244
	def_bool y
	depends on ISA_DMA_API
245
246

config GENERIC_BUG
247
	def_bool y
248
	depends on BUG
249
250
251
252
	select GENERIC_BUG_RELATIVE_POINTERS if X86_64

config GENERIC_BUG_RELATIVE_POINTERS
	bool
253
254

config GENERIC_HWEIGHT
255
	def_bool y
256
257

config ARCH_MAY_HAVE_PC_FDC
258
259
	def_bool y
	depends on ISA_DMA_API
260

261
config RWSEM_XCHGADD_ALGORITHM
262
	def_bool y
263
264
265
266

config GENERIC_CALIBRATE_DELAY
	def_bool y

267
268
269
config ARCH_HAS_CPU_RELAX
	def_bool y

270
271
272
config ARCH_HAS_CACHE_LINE_SIZE
	def_bool y

273
config HAVE_SETUP_PER_CPU_AREA
274
	def_bool y
275

276
277
278
279
config NEED_PER_CPU_EMBED_FIRST_CHUNK
	def_bool y

config NEED_PER_CPU_PAGE_FIRST_CHUNK
280
281
	def_bool y

282
283
284
config ARCH_HIBERNATION_POSSIBLE
	def_bool y

Johannes Berg's avatar
Johannes Berg committed
285
286
287
config ARCH_SUSPEND_POSSIBLE
	def_bool y

288
289
290
config ARCH_WANT_HUGE_PMD_SHARE
	def_bool y

291
292
293
config ARCH_WANT_GENERAL_HUGETLB
	def_bool y

294
config ZONE_DMA32
295
	def_bool y if X86_64
296
297

config AUDIT_ARCH
298
	def_bool y if X86_64
299

300
301
302
config ARCH_SUPPORTS_OPTIMIZED_INLINING
	def_bool y

Akinobu Mita's avatar
Akinobu Mita committed
303
304
305
config ARCH_SUPPORTS_DEBUG_PAGEALLOC
	def_bool y

306
307
308
309
310
config KASAN_SHADOW_OFFSET
	hex
	depends on KASAN
	default 0xdffffc0000000000

311
312
config HAVE_INTEL_TXT
	def_bool y
313
	depends on INTEL_IOMMU && ACPI
314

315
316
317
318
319
320
321
322
config X86_32_SMP
	def_bool y
	depends on X86_32 && SMP

config X86_64_SMP
	def_bool y
	depends on X86_64 && SMP

323
324
config X86_32_LAZY_GS
	def_bool y
325
	depends on X86_32 && !CC_STACKPROTECTOR
326

327
328
329
config ARCH_SUPPORTS_UPROBES
	def_bool y

330
331
332
config FIX_EARLYCON_MEM
	def_bool y

333
334
config PGTABLE_LEVELS
	int
335
	default 5 if X86_5LEVEL
336
337
338
339
	default 4 if X86_64
	default 3 if X86_PAE
	default 2

340
source "init/Kconfig"
341
source "kernel/Kconfig.freezer"
342

343
344
menu "Processor type and features"

345
346
347
348
349
350
351
352
353
354
config ZONE_DMA
	bool "DMA memory allocation support" if EXPERT
	default y
	help
	  DMA memory allocation support allows devices with less than 32-bit
	  addressing to allocate within the first 16MB of address space.
	  Disable if no such devices will be used.

	  If unsure, say Y.

355
356
357
358
config SMP
	bool "Symmetric multi-processing support"
	---help---
	  This enables support for systems with more than one CPU. If you have
359
360
	  a system with only one CPU, say N. If you have a system with more
	  than one CPU, say Y.
361

362
	  If you say N here, the kernel will run on uni- and multiprocessor
363
364
	  machines, but will use only one CPU of a multiprocessor machine. If
	  you say Y here, the kernel will run on many, but not all,
365
	  uniprocessor machines. On a uniprocessor machine, the kernel
366
367
368
369
370
371
372
373
374
375
376
	  will run faster if you say N here.

	  Note that if you say Y here and choose architecture "586" or
	  "Pentium" under "Processor family", the kernel will not work on 486
	  architectures. Similarly, multiprocessor kernels for the "PPro"
	  architecture may not work on all Pentium based boards.

	  People using multiprocessor machines who say Y here should also say
	  Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
	  Management" code will be disabled if you say Y here.

Paul Bolle's avatar
Paul Bolle committed
377
	  See also <file:Documentation/x86/i386/IO-APIC.txt>,
378
	  <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO available at
379
380
381
382
	  <http://www.tldp.org/docs.html#howto>.

	  If you don't know what to do here, say N.

383
384
385
386
387
388
389
390
391
392
393
config X86_FEATURE_NAMES
	bool "Processor feature human-readable names" if EMBEDDED
	default y
	---help---
	  This option compiles in a table of x86 feature bits and corresponding
	  names.  This is required to support /proc/cpuinfo and a few kernel
	  messages.  You can disable this to save space, at the expense of
	  making those few kernel messages show numeric feature bits instead.

	  If in doubt, say Y.

394
395
396
397
398
399
400
401
402
403
404
config X86_FAST_FEATURE_TESTS
	bool "Fast CPU feature tests" if EMBEDDED
	default y
	---help---
	  Some fast-paths in the kernel depend on the capabilities of the CPU.
	  Say Y here for the kernel to patch in the appropriate code at runtime
	  based on the capabilities of the CPU. The infrastructure for patching
	  code at runtime takes up some additional space; space-constrained
	  embedded systems may wish to say N here to produce smaller, slightly
	  slower code.

Yinghai Lu's avatar
Yinghai Lu committed
405
406
config X86_X2APIC
	bool "Support x2apic"
407
	depends on X86_LOCAL_APIC && X86_64 && (IRQ_REMAP || HYPERVISOR_GUEST)
Yinghai Lu's avatar
Yinghai Lu committed
408
409
410
411
412
413
414
415
	---help---
	  This enables x2apic support on CPUs that have this feature.

	  This allows 32-bit apic IDs (so it can support very large systems),
	  and accesses the local apic via MSRs not via mmio.

	  If you don't know what to do here, say N.

416
config X86_MPPARSE
417
	bool "Enable MPS table" if ACPI || SFI
418
	default y
419
	depends on X86_LOCAL_APIC
Ingo Molnar's avatar
Ingo Molnar committed
420
	---help---
421
422
423
	  For old smp systems that do not have proper acpi support. Newer systems
	  (esp with 64bit cpus) with acpi support, MADT and DSDT will override it

424
425
426
config X86_BIGSMP
	bool "Support for big SMP systems with more than 8 CPUs"
	depends on X86_32 && SMP
Ingo Molnar's avatar
Ingo Molnar committed
427
	---help---
428
	  This option is needed for the systems that have more than 8 CPUs
429

430
431
432
433
config GOLDFISH
       def_bool y
       depends on X86_GOLDFISH

434
435
436
437
438
439
440
441
442
443
444
445
446
config RETPOLINE
	bool "Avoid speculative indirect branches in kernel"
	default y
	help
	  Compile kernel with the retpoline compiler options to guard against
	  kernel-to-user data leaks by avoiding speculative indirect
	  branches. Requires a compiler with -mindirect-branch=thunk-extern
	  support for full protection. The kernel may run slower.

	  Without compiler support, at least indirect branches in assembler
	  code are eliminated. Since this includes the syscall entry path,
	  it is not entirely pointless.

447
448
config INTEL_RDT
	bool "Intel Resource Director Technology support"
449
450
	default n
	depends on X86 && CPU_SUP_INTEL
451
	select KERNFS
452
	help
453
454
455
456
	  Select to enable resource allocation and monitoring which are
	  sub-features of Intel Resource Director Technology(RDT). More
	  information about RDT can be found in the Intel x86
	  Architecture Software Developer Manual.
457
458
459

	  Say N if unsure.

460
if X86_32
461
462
463
config X86_EXTENDED_PLATFORM
	bool "Support for extended (non-PC) x86 platforms"
	default y
Ingo Molnar's avatar
Ingo Molnar committed
464
	---help---
465
466
467
468
	  If you disable this option then the kernel will only support
	  standard PC platforms. (which covers the vast majority of
	  systems out there.)

469
470
	  If you enable this option then you'll be able to select support
	  for the following (non-PC) 32 bit x86 platforms:
471
		Goldfish (Android emulator)
472
473
474
		AMD Elan
		RDC R-321x SoC
		SGI 320/540 (Visual Workstation)
475
		STA2X11-based (e.g. Northville)
476
		Moorestown MID devices
477
478
479

	  If you have one of these systems, or if you want to build a
	  generic distribution kernel, say Y here - otherwise say N.
480
endif
481

482
483
484
485
486
487
488
489
490
491
492
if X86_64
config X86_EXTENDED_PLATFORM
	bool "Support for extended (non-PC) x86 platforms"
	default y
	---help---
	  If you disable this option then the kernel will only support
	  standard PC platforms. (which covers the vast majority of
	  systems out there.)

	  If you enable this option then you'll be able to select support
	  for the following (non-PC) 64 bit x86 platforms:
Steffen Persvold's avatar
Steffen Persvold committed
493
		Numascale NumaChip
494
495
496
497
498
499
		ScaleMP vSMP
		SGI Ultraviolet

	  If you have one of these systems, or if you want to build a
	  generic distribution kernel, say Y here - otherwise say N.
endif
500
501
# This is an alphabetically sorted list of 64 bit extended platforms
# Please maintain the alphabetic order if and when there are additions
Steffen Persvold's avatar
Steffen Persvold committed
502
503
504
505
506
507
508
config X86_NUMACHIP
	bool "Numascale NumaChip"
	depends on X86_64
	depends on X86_EXTENDED_PLATFORM
	depends on NUMA
	depends on SMP
	depends on X86_X2APIC
509
	depends on PCI_MMCONFIG
Steffen Persvold's avatar
Steffen Persvold committed
510
511
512
513
	---help---
	  Adds support for Numascale NumaChip large-SMP systems. Needed to
	  enable more than ~168 cores.
	  If you don't have one of these, you should say N here.
514

515
516
config X86_VSMP
	bool "ScaleMP vSMP"
517
	select HYPERVISOR_GUEST
518
519
520
	select PARAVIRT
	depends on X86_64 && PCI
	depends on X86_EXTENDED_PLATFORM
521
	depends on SMP
Ingo Molnar's avatar
Ingo Molnar committed
522
	---help---
523
524
525
	  Support for ScaleMP vSMP systems.  Say 'Y' here if this kernel is
	  supposed to run on these EM64T-based machines.  Only choose this option
	  if you have one of these machines.
526

527
528
529
config X86_UV
	bool "SGI Ultraviolet"
	depends on X86_64
530
	depends on X86_EXTENDED_PLATFORM
531
	depends on NUMA
532
	depends on EFI
533
	depends on X86_X2APIC
534
	depends on PCI
Ingo Molnar's avatar
Ingo Molnar committed
535
	---help---
536
537
538
	  This option is needed in order to support SGI Ultraviolet systems.
	  If you don't have one of these, you should say N here.

539
540
# Following is an alphabetically sorted list of 32 bit extended platforms
# Please maintain the alphabetic order if and when there are additions
541

542
543
config X86_GOLDFISH
       bool "Goldfish (Virtual Platform)"
544
       depends on X86_EXTENDED_PLATFORM
545
546
547
548
549
       ---help---
	 Enable support for the Goldfish virtual platform used primarily
	 for Android development. Unless you are building for the Android
	 Goldfish emulator say N here.

550
551
552
553
config X86_INTEL_CE
	bool "CE4100 TV platform"
	depends on PCI
	depends on PCI_GODIRECT
554
	depends on X86_IO_APIC
555
556
	depends on X86_32
	depends on X86_EXTENDED_PLATFORM
557
	select X86_REBOOTFIXUPS
558
559
	select OF
	select OF_EARLY_FLATTREE
560
561
562
563
564
	---help---
	  Select for the Intel CE media processor (CE4100) SOC.
	  This option compiles in support for the CE4100 SOC for settop
	  boxes and media devices.

565
config X86_INTEL_MID
566
567
	bool "Intel MID platform support"
	depends on X86_EXTENDED_PLATFORM
568
	depends on X86_PLATFORM_DEVICES
569
	depends on PCI
570
	depends on X86_64 || (PCI_GOANY && X86_32)
571
	depends on X86_IO_APIC
572
	select SFI
573
	select I2C
574
	select DW_APB_TIMER
575
576
	select APB_TIMER
	select INTEL_SCU_IPC
577
	select MFD_INTEL_MSIC
578
	---help---
579
580
581
	  Select to build a kernel capable of supporting Intel MID (Mobile
	  Internet Device) platform systems which do not have the PCI legacy
	  interfaces. If you are building for a PC class system say N here.
582

583
584
	  Intel MID platforms are based on an Intel processor and chipset which
	  consume less power than most of the x86 derivatives.
585

586
587
588
589
590
591
592
593
594
595
596
config X86_INTEL_QUARK
	bool "Intel Quark platform support"
	depends on X86_32
	depends on X86_EXTENDED_PLATFORM
	depends on X86_PLATFORM_DEVICES
	depends on X86_TSC
	depends on PCI
	depends on PCI_GOANY
	depends on X86_IO_APIC
	select IOSF_MBI
	select INTEL_IMR
597
	select COMMON_CLK
598
599
600
601
602
	---help---
	  Select to include support for Quark X1000 SoC.
	  Say Y here if you have a Quark based system such as the Arduino
	  compatible Intel Galileo.

603
604
config X86_INTEL_LPSS
	bool "Intel Low Power Subsystem Support"
605
	depends on X86 && ACPI
606
	select COMMON_CLK
607
	select PINCTRL
608
	select IOSF_MBI
609
610
611
	---help---
	  Select to build support for Intel Low Power Subsystem such as
	  found on Intel Lynxpoint PCH. Selecting this option enables
612
613
	  things like clock tree (common clock framework) and pincontrol
	  which are needed by the LPSS peripheral drivers.
614

615
616
617
618
619
620
621
622
623
624
625
config X86_AMD_PLATFORM_DEVICE
	bool "AMD ACPI2Platform devices support"
	depends on ACPI
	select COMMON_CLK
	select PINCTRL
	---help---
	  Select to interpret AMD specific ACPI device to platform device
	  such as I2C, UART, GPIO found on AMD Carrizo and later chipsets.
	  I2C and UART depend on COMMON_CLK to set clock. GPIO driver is
	  implemented under PINCTRL subsystem.

626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
config IOSF_MBI
	tristate "Intel SoC IOSF Sideband support for SoC platforms"
	depends on PCI
	---help---
	  This option enables sideband register access support for Intel SoC
	  platforms. On these platforms the IOSF sideband is used in lieu of
	  MSR's for some register accesses, mostly but not limited to thermal
	  and power. Drivers may query the availability of this device to
	  determine if they need the sideband in order to work on these
	  platforms. The sideband is available on the following SoC products.
	  This list is not meant to be exclusive.
	   - BayTrail
	   - Braswell
	   - Quark

	  You should say Y if you are running a kernel on one of these SoC's.

643
644
645
646
647
648
649
650
651
652
653
654
655
config IOSF_MBI_DEBUG
	bool "Enable IOSF sideband access through debugfs"
	depends on IOSF_MBI && DEBUG_FS
	---help---
	  Select this option to expose the IOSF sideband access registers (MCR,
	  MDR, MCRX) through debugfs to write and read register information from
	  different units on the SoC. This is most useful for obtaining device
	  state information for debug and analysis. As this is a general access
	  mechanism, users of this option would have specific knowledge of the
	  device they want to access.

	  If you don't require the option or are in doubt, say N.

656
657
config X86_RDC321X
	bool "RDC R-321x SoC"
658
	depends on X86_32
659
660
661
662
663
664
665
666
	depends on X86_EXTENDED_PLATFORM
	select M486
	select X86_REBOOTFIXUPS
	---help---
	  This option is needed for RDC R-321x system-on-chip, also known
	  as R-8610-(G).
	  If you don't have one of these chips, you should say N here.

667
config X86_32_NON_STANDARD
668
669
	bool "Support non-standard 32-bit SMP architectures"
	depends on X86_32 && SMP
670
	depends on X86_EXTENDED_PLATFORM
Ingo Molnar's avatar
Ingo Molnar committed
671
	---help---
H. Peter Anvin's avatar
H. Peter Anvin committed
672
673
674
675
	  This option compiles in the bigsmp and STA2X11 default
	  subarchitectures.  It is intended for a generic binary
	  kernel. If you select them all, kernel will probe it one by
	  one and will fallback to default.
676

677
# Alphabetically sorted list of Non standard 32 bit platforms
678

679
config X86_SUPPORTS_MEMORY_FAILURE
Jan Beulich's avatar
Jan Beulich committed
680
	def_bool y
681
682
683
684
685
686
687
	# MCE code calls memory_failure():
	depends on X86_MCE
	# On 32-bit this adds too big of NODES_SHIFT and we run out of page flags:
	# On 32-bit SPARSEMEM adds too big of SECTIONS_WIDTH:
	depends on X86_64 || !SPARSEMEM
	select ARCH_SUPPORTS_MEMORY_FAILURE

688
689
690
691
692
693
694
config STA2X11
	bool "STA2X11 Companion Chip Support"
	depends on X86_32_NON_STANDARD && PCI
	select X86_DEV_DMA_OPS
	select X86_DMA_REMAP
	select SWIOTLB
	select MFD_STA2X11
695
	select GPIOLIB
696
697
698
699
700
701
702
703
	default n
	---help---
	  This adds support for boards based on the STA2X11 IO-Hub,
	  a.k.a. "ConneXt". The chip is used in place of the standard
	  PC chipset, so all "standard" peripherals are missing. If this
	  option is selected the kernel will still be able to boot on
	  standard PC machines.

704
705
706
707
708
709
710
711
712
713
714
715
716
config X86_32_IRIS
	tristate "Eurobraille/Iris poweroff module"
	depends on X86_32
	---help---
	  The Iris machines from EuroBraille do not have APM or ACPI support
	  to shut themselves down properly.  A special I/O sequence is
	  needed to do so, which is what this module does at
	  kernel shutdown.

	  This is only for Iris machines from EuroBraille.

	  If unused, say N.

717
config SCHED_OMIT_FRAME_POINTER
718
719
	def_bool y
	prompt "Single-depth WCHAN output"
720
	depends on X86
Ingo Molnar's avatar
Ingo Molnar committed
721
	---help---
722
723
724
725
726
727
728
	  Calculate simpler /proc/<PID>/wchan values. If this option
	  is disabled then wchan values will recurse back to the
	  caller function. This provides more accurate wchan values,
	  at the expense of slightly more scheduling overhead.

	  If in doubt, say "Y".

729
730
menuconfig HYPERVISOR_GUEST
	bool "Linux guest support"
Ingo Molnar's avatar
Ingo Molnar committed
731
	---help---
732
733
734
	  Say Y here to enable options for running Linux under various hyper-
	  visors. This option enables basic hypervisor detection and platform
	  setup.
735

736
737
	  If you say N, all options in this submenu will be skipped and
	  disabled, and Linux guest support won't be built in.
738

739
if HYPERVISOR_GUEST
740

741
742
config PARAVIRT
	bool "Enable paravirtualization code"
Ingo Molnar's avatar
Ingo Molnar committed
743
	---help---
744
745
746
747
748
	  This changes the kernel so it can modify itself when it is run
	  under a hypervisor, potentially improving performance significantly
	  over full virtualization.  However, when run without a hypervisor
	  the kernel is theoretically slower and slightly larger.

749
750
751
752
753
754
755
config PARAVIRT_DEBUG
	bool "paravirt-ops debugging"
	depends on PARAVIRT && DEBUG_KERNEL
	---help---
	  Enable to debug paravirt_ops internals.  Specifically, BUG if
	  a paravirt_op is missing when it is called.

756
757
config PARAVIRT_SPINLOCKS
	bool "Paravirtualization layer for spinlocks"
758
	depends on PARAVIRT && SMP
759
760
761
762
763
	---help---
	  Paravirtualized spinlocks allow a pvops backend to replace the
	  spinlock implementation with something virtualization-friendly
	  (for example, block the virtual CPU rather than spinning).

764
765
	  It has a minimal impact on native kernels and gives a nice performance
	  benefit on paravirtualized KVM / Xen kernels.
766

767
	  If you are unsure how to answer this question, answer Y.
768

769
770
config QUEUED_LOCK_STAT
	bool "Paravirt queued spinlock statistics"
771
	depends on PARAVIRT_SPINLOCKS && DEBUG_FS
772
773
774
775
776
	---help---
	  Enable the collection of statistical data on the slowpath
	  behavior of paravirtualized queued spinlocks and report
	  them on debugfs.

777
source "arch/x86/xen/Kconfig"
778

779
780
781
782
783
config KVM_GUEST
	bool "KVM Guest support (including kvmclock)"
	depends on PARAVIRT
	select PARAVIRT_CLOCK
	default y
Ingo Molnar's avatar
Ingo Molnar committed
784
	---help---
785
786
787
788
789
	  This option enables various optimizations for running under the KVM
	  hypervisor. It includes a paravirtualized clock, so that instead
	  of relying on a PIT (or probably other) emulation by the
	  underlying device model, the host provides the guest with
	  timing infrastructure such as time of day, and system time
790

791
792
793
794
795
796
797
798
799
config KVM_DEBUG_FS
	bool "Enable debug information for KVM Guests in debugfs"
	depends on KVM_GUEST && DEBUG_FS
	default n
	---help---
	  This option enables collection of various statistics for KVM guest.
	  Statistics are displayed in debugfs filesystem. Enabling this option
	  may incur significant overhead.

800
801
802
803
config PARAVIRT_TIME_ACCOUNTING
	bool "Paravirtual steal time accounting"
	depends on PARAVIRT
	default n
Ingo Molnar's avatar
Ingo Molnar committed
804
	---help---
805
806
807
808
809
810
811
812
813
	  Select this option to enable fine granularity task steal time
	  accounting. Time spent executing other tasks in parallel with
	  the current vCPU is discounted from the vCPU power. To account for
	  that, there can be a small performance impact.

	  If in doubt, say N here.

config PARAVIRT_CLOCK
	bool
814

815
816
config JAILHOUSE_GUEST
	bool "Jailhouse non-root cell support"
817
	depends on X86_64 && PCI
Jan Kiszka's avatar
Jan Kiszka committed
818
	select X86_PM_TIMER
819
820
821
822
823
	---help---
	  This option allows to run Linux as guest in a Jailhouse non-root
	  cell. You can leave this option disabled if you only want to start
	  Jailhouse and run Linux afterwards in the root cell.

824
endif #HYPERVISOR_GUEST
825

826
config NO_BOOTMEM
Yinghai Lu's avatar
Yinghai Lu committed
827
	def_bool y
828

829
830
831
source "arch/x86/Kconfig.cpu"

config HPET_TIMER
832
	def_bool X86_64
833
	prompt "HPET Timer Support" if X86_32
Ingo Molnar's avatar
Ingo Molnar committed
834
835
836
837
838
839
840
	---help---
	  Use the IA-PC HPET (High Precision Event Timer) to manage
	  time in preference to the PIT and RTC, if a HPET is
	  present.
	  HPET is the next generation timer replacing legacy 8254s.
	  The HPET provides a stable time base on SMP
	  systems, unlike the TSC, but it is more expensive to access,
Michael S. Tsirkin's avatar
Michael S. Tsirkin committed
841
842
	  as it is off-chip.  The interface used is documented
	  in the HPET spec, revision 1.
843

Ingo Molnar's avatar
Ingo Molnar committed
844
845
846
	  You can safely choose Y here.  However, HPET will only be
	  activated if the platform and the BIOS support this feature.
	  Otherwise the 8254 will be used for timing services.
847

Ingo Molnar's avatar
Ingo Molnar committed
848
	  Choose N to continue using the legacy 8254 timer.
849
850

config HPET_EMULATE_RTC
851
	def_bool y
852
	depends on HPET_TIMER && (RTC=y || RTC=m || RTC_DRV_CMOS=m || RTC_DRV_CMOS=y)
853

854
config APB_TIMER
855
856
       def_bool y if X86_INTEL_MID
       prompt "Intel MID APB Timer Support" if X86_INTEL_MID
857
       select DW_APB_TIMER
858
       depends on X86_INTEL_MID && SFI
859
860
861
862
863
864
865
       help
         APB timer is the replacement for 8254, HPET on X86 MID platforms.
         The APBT provides a stable time base on SMP
         systems, unlike the TSC, but it is more expensive to access,
         as it is off-chip. APB timers are always running regardless of CPU
         C states, they are used as per CPU clockevent device when possible.

866
# Mark as expert because too many people got it wrong.
867
# The code disables itself when not needed.
868
869
config DMI
	default y
870
	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
871
	bool "Enable DMI scanning" if EXPERT
Ingo Molnar's avatar
Ingo Molnar committed
872
	---help---
873
874
875
876
877
	  Enabled scanning of DMI to identify machine quirks. Say Y
	  here unless you have verified that your setup is not
	  affected by entries in the DMI blacklist. Required by PNP
	  BIOS code.

878
config GART_IOMMU
879
	bool "Old AMD GART IOMMU support"
880
	select SWIOTLB
881
	depends on X86_64 && PCI && AMD_NB
Ingo Molnar's avatar
Ingo Molnar committed
882
	---help---
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
	  Provides a driver for older AMD Athlon64/Opteron/Turion/Sempron
	  GART based hardware IOMMUs.

	  The GART supports full DMA access for devices with 32-bit access
	  limitations, on systems with more than 3 GB. This is usually needed
	  for USB, sound, many IDE/SATA chipsets and some other devices.

	  Newer systems typically have a modern AMD IOMMU, supported via
	  the CONFIG_AMD_IOMMU=y config option.

	  In normal configurations this driver is only active when needed:
	  there's more than 3 GB of memory and the system contains a
	  32-bit limited device.

	  If unsure, say Y.
898
899
900
901

config CALGARY_IOMMU
	bool "IBM Calgary IOMMU support"
	select SWIOTLB
902
	depends on X86_64 && PCI
Ingo Molnar's avatar
Ingo Molnar committed
903
	---help---
904
905
906
907
908
909
910
911
912
913
914
915
916
917
	  Support for hardware IOMMUs in IBM's xSeries x366 and x460
	  systems. Needed to run systems with more than 3GB of memory
	  properly with 32-bit PCI devices that do not support DAC
	  (Double Address Cycle). Calgary also supports bus level
	  isolation, where all DMAs pass through the IOMMU.  This
	  prevents them from going anywhere except their intended
	  destination. This catches hard-to-find kernel bugs and
	  mis-behaving drivers and devices that do not use the DMA-API
	  properly to set up their DMA buffers.  The IOMMU can be
	  turned off at boot time with the iommu=off parameter.
	  Normally the kernel will make the right choice by itself.
	  If unsure, say Y.

config CALGARY_IOMMU_ENABLED_BY_DEFAULT
918
919
	def_bool y
	prompt "Should Calgary be enabled by default?"
920
	depends on CALGARY_IOMMU
Ingo Molnar's avatar
Ingo Molnar committed
921
	---help---
922
923
924
925
926
927
928
929
	  Should Calgary be enabled by default? if you choose 'y', Calgary
	  will be used (if it exists). If you choose 'n', Calgary will not be
	  used even if it exists. If you choose 'n' and would like to use
	  Calgary anyway, pass 'iommu=calgary' on the kernel command line.
	  If unsure, say Y.

# need this always selected by IOMMU for the VIA workaround
config SWIOTLB
930
	def_bool y if X86_64
Ingo Molnar's avatar
Ingo Molnar committed
931
	---help---
932
	  Support for software bounce buffers used on x86-64 systems
933
934
935
936
	  which don't have a hardware IOMMU. Using this PCI devices
	  which can only access 32-bits of memory can be used on systems
	  with more than 3 GB of memory.
	  If unsure, say Y.
937

938
config IOMMU_HELPER
939
940
	def_bool y
	depends on CALGARY_IOMMU || GART_IOMMU || SWIOTLB || AMD_IOMMU
941

942
config MAXSMP
943
	bool "Enable Maximum number of SMP Processors and NUMA Nodes"
944
	depends on X86_64 && SMP && DEBUG_KERNEL
Mike Travis's avatar
Mike Travis committed
945
	select CPUMASK_OFFSTACK
Ingo Molnar's avatar
Ingo Molnar committed
946
	---help---
947
	  Enable maximum number of CPUS and NUMA Nodes for this architecture.
948
	  If unsure, say N.
949
950

config NR_CPUS
Mike Travis's avatar
Mike Travis committed
951
	int "Maximum number of CPUs" if SMP && !MAXSMP
952
	range 2 8 if SMP && X86_32 && !X86_BIGSMP
953
954
	range 2 64 if SMP && X86_32 && X86_BIGSMP
	range 2 512 if SMP && !MAXSMP && !CPUMASK_OFFSTACK && X86_64
955
	range 2 8192 if SMP && !MAXSMP && CPUMASK_OFFSTACK && X86_64
956
	default "1" if !SMP
957
	default "8192" if MAXSMP
H. Peter Anvin's avatar
H. Peter Anvin committed
958
	default "32" if SMP && X86_BIGSMP
959
960
	default "8" if SMP && X86_32
	default "64" if SMP
Ingo Molnar's avatar
Ingo Molnar committed
961
	---help---
962
	  This allows you to specify the maximum number of CPUs which this
963
	  kernel will support.  If CPUMASK_OFFSTACK is enabled, the maximum
964
	  supported value is 8192, otherwise the maximum value is 512.  The
965
966
967
968
969
970
971
	  minimum value which makes sense is 2.

	  This is purely to save memory - each supported CPU adds
	  approximately eight kilobytes to the kernel image.

config SCHED_SMT
	bool "SMT (Hyperthreading) scheduler support"
Borislav Petkov's avatar
Borislav Petkov committed
972
	depends on SMP
Ingo Molnar's avatar
Ingo Molnar committed
973
	---help---
974
975
976
977
978
979
	  SMT scheduler support improves the CPU scheduler's decision making
	  when dealing with Intel Pentium 4 chips with HyperThreading at a
	  cost of slightly increased overhead in some places. If unsure say
	  N here.

config SCHED_MC
980
981
	def_bool y
	prompt "Multi-core scheduler support"
Borislav Petkov's avatar
Borislav Petkov committed
982
	depends on SMP
Ingo Molnar's avatar
Ingo Molnar committed
983
	---help---
984
985
986
987
	  Multi-core scheduler support improves the CPU scheduler's decision
	  making when dealing with multi-core CPU chips at a cost of slightly
	  increased overhead in some places. If unsure say N here.

988
989
config SCHED_MC_PRIO
	bool "CPU core priorities scheduler support"
990
991
992
	depends on SCHED_MC && CPU_SUP_INTEL
	select X86_INTEL_PSTATE
	select CPU_FREQ
993
	default y
994
	---help---
995
996
997
998
	  Intel Turbo Boost Max Technology 3.0 enabled CPUs have a
	  core ordering determined at manufacturing time, which allows
	  certain cores to reach higher turbo frequencies (when running
	  single threaded workloads) than others.
999

1000
	  Enabling this kernel feature teaches the scheduler about