Kconfig 89.5 KB
Newer Older
Sam Ravnborg's avatar
Sam Ravnborg committed
1 2
# Select 32 or 64 bit
config 64BIT
3
	bool "64-bit kernel" if ARCH = "x86"
4
	default ARCH != "i386"
Ingo Molnar's avatar
Ingo Molnar committed
5
	---help---
Sam Ravnborg's avatar
Sam Ravnborg committed
6 7 8 9
	  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
10 11
	def_bool y
	depends on !64BIT
Sam Ravnborg's avatar
Sam Ravnborg committed
12 13

config X86_64
14 15
	def_bool y
	depends on 64BIT
16 17

### Arch settings
18
config X86
19
	def_bool y
20 21 22 23 24
	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
25
	select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
26
	select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
27
	select ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS
28
	select ARCH_HAS_DEVMEM_IS_ALLOWED
29
	select ARCH_HAS_ELF_RANDOMIZE
30
	select ARCH_HAS_FAST_MULTIPLIER
31
	select ARCH_HAS_GCOV_PROFILE_ALL
Dmitry Vyukov's avatar
Dmitry Vyukov committed
32
	select ARCH_HAS_KCOV			if X86_64
33
	select ARCH_HAS_PMEM_API		if X86_64
34
	select ARCH_HAS_MMIO_FLUSH
35
	select ARCH_HAS_SG_CHAIN
36
	select ARCH_HAS_UBSAN_SANITIZE_ALL
37 38
	select ARCH_HAVE_NMI_SAFE_CMPXCHG
	select ARCH_MIGHT_HAVE_ACPI_PDC		if ACPI
39
	select ARCH_MIGHT_HAVE_PC_PARPORT
40
	select ARCH_MIGHT_HAVE_PC_SERIO
41
	select ARCH_SUPPORTS_ATOMIC_RMW
42
	select ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT
43 44 45 46 47 48
	select ARCH_SUPPORTS_INT128		if X86_64
	select ARCH_SUPPORTS_NUMA_BALANCING	if X86_64
	select ARCH_USE_BUILTIN_BSWAP
	select ARCH_USE_CMPXCHG_LOCKREF		if X86_64
	select ARCH_USE_QUEUED_RWLOCKS
	select ARCH_USE_QUEUED_SPINLOCKS
49
	select ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH if SMP
50
	select ARCH_WANTS_DYNAMIC_TASK_STRUCT
51
	select ARCH_WANT_FRAME_POINTERS
52 53 54 55 56 57 58 59 60
	select ARCH_WANT_IPC_PARSE_VERSION	if X86_32
	select BUILDTIME_EXTABLE_SORT
	select CLKEVT_I8253
	select CLKSRC_I8253			if X86_32
	select CLOCKSOURCE_VALIDATE_LAST_CYCLE
	select CLOCKSOURCE_WATCHDOG
	select CLONE_BACKWARDS			if X86_32
	select COMPAT_OLD_SIGACTION		if IA32_EMULATION
	select DCACHE_WORD_ACCESS
61 62
	select EDAC_ATOMIC_SCRUB
	select EDAC_SUPPORT
63 64 65 66 67
	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
Mark Salter's avatar
Mark Salter committed
68
	select GENERIC_EARLY_IOREMAP
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
	select GENERIC_FIND_FIRST_BIT
	select GENERIC_IOMAP
	select GENERIC_IRQ_PROBE
	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
	select HAVE_ACPI_APEI			if ACPI
	select HAVE_ACPI_APEI_NMI		if ACPI
	select HAVE_ALIGNED_STRUCT_PAGE		if SLUB
	select HAVE_AOUT			if X86_32
	select HAVE_ARCH_AUDITSYSCALL
	select HAVE_ARCH_HUGE_VMAP		if X86_64 || X86_PAE
	select HAVE_ARCH_JUMP_LABEL
	select HAVE_ARCH_KASAN			if X86_64 && SPARSEMEM_VMEMMAP
	select HAVE_ARCH_KGDB
	select HAVE_ARCH_KMEMCHECK
88 89
	select HAVE_ARCH_MMAP_RND_BITS		if MMU
	select HAVE_ARCH_MMAP_RND_COMPAT_BITS	if MMU && COMPAT
90 91 92 93
	select HAVE_ARCH_SECCOMP_FILTER
	select HAVE_ARCH_SOFT_DIRTY		if X86_64
	select HAVE_ARCH_TRACEHOOK
	select HAVE_ARCH_TRANSPARENT_HUGEPAGE
94
	select HAVE_EBPF_JIT			if X86_64
95 96 97 98
	select HAVE_CC_STACKPROTECTOR
	select HAVE_CMPXCHG_DOUBLE
	select HAVE_CMPXCHG_LOCAL
	select HAVE_CONTEXT_TRACKING		if X86_64
99
	select HAVE_COPY_THREAD_TLS
100
	select HAVE_C_RECORDMCOUNT
101 102 103 104
	select HAVE_DEBUG_KMEMLEAK
	select HAVE_DEBUG_STACKOVERFLOW
	select HAVE_DMA_API_DEBUG
	select HAVE_DMA_CONTIGUOUS
105
	select HAVE_DYNAMIC_FTRACE
106
	select HAVE_DYNAMIC_FTRACE_WITH_REGS
107
	select HAVE_EFFICIENT_UNALIGNED_ACCESS
Jiri Slaby's avatar
Jiri Slaby committed
108
	select HAVE_EXIT_THREAD
109 110 111 112 113 114 115 116 117 118 119
	select HAVE_FENTRY			if X86_64
	select HAVE_FTRACE_MCOUNT_RECORD
	select HAVE_FUNCTION_GRAPH_FP_TEST
	select HAVE_FUNCTION_GRAPH_TRACER
	select HAVE_FUNCTION_TRACER
	select HAVE_GENERIC_DMA_COHERENT	if X86_32
	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
120
	select HAVE_KERNEL_BZIP2
121 122
	select HAVE_KERNEL_GZIP
	select HAVE_KERNEL_LZ4
123
	select HAVE_KERNEL_LZMA
124
	select HAVE_KERNEL_LZO
125 126 127 128 129 130 131 132
	select HAVE_KERNEL_XZ
	select HAVE_KPROBES
	select HAVE_KPROBES_ON_FTRACE
	select HAVE_KRETPROBES
	select HAVE_KVM
	select HAVE_LIVEPATCH			if X86_64
	select HAVE_MEMBLOCK
	select HAVE_MEMBLOCK_NODE_MAP
133
	select HAVE_MIXED_BREAKPOINTS_REGS
134
	select HAVE_NMI
135 136 137 138
	select HAVE_OPROFILE
	select HAVE_OPTPROBES
	select HAVE_PCSPKR_PLATFORM
	select HAVE_PERF_EVENTS
139
	select HAVE_PERF_EVENTS_NMI
140
	select HAVE_PERF_REGS
141
	select HAVE_PERF_USER_STACK_DUMP
142 143
	select HAVE_REGS_AND_STACK_ACCESS_API
	select HAVE_SYSCALL_TRACEPOINTS
144
	select HAVE_UID16			if X86_32 || IA32_EMULATION
145
	select HAVE_UNSTABLE_SCHED_CLOCK
146
	select HAVE_USER_RETURN_NOTIFIER
147
	select IRQ_FORCED_THREADING
148 149 150 151 152
	select MODULES_USE_ELF_RELA		if X86_64
	select MODULES_USE_ELF_REL		if X86_32
	select OLD_SIGACTION			if X86_32
	select OLD_SIGSUSPEND3			if X86_32 || IA32_EMULATION
	select PERF_EVENTS
153
	select RTC_LIB
154
	select SPARSE_IRQ
155
	select SRCU
156 157 158 159 160
	select SYSCTL_EXCEPTION_TRACE
	select USER_STACKTRACE_SUPPORT
	select VIRT_TO_BUS
	select X86_DEV_DMA_OPS			if X86_64
	select X86_FEATURE_NAMES		if PROC_FS
161
	select HAVE_STACK_VALIDATION		if X86_64
162
	select ARCH_USES_HIGH_VMA_FLAGS		if X86_INTEL_MEMORY_PROTECTION_KEYS
163
	select ARCH_HAS_PKEYS			if X86_INTEL_MEMORY_PROTECTION_KEYS
164

165
config INSTRUCTION_DECODER
166 167
	def_bool y
	depends on KPROBES || PERF_EVENTS || UPROBES
168

169 170 171 172 173
config OUTPUT_FORMAT
	string
	default "elf32-i386" if X86_32
	default "elf64-x86-64" if X86_64

174
config ARCH_DEFCONFIG
175
	string
176 177
	default "arch/x86/configs/i386_defconfig" if X86_32
	default "arch/x86/configs/x86_64_defconfig" if X86_64
178

179
config LOCKDEP_SUPPORT
180
	def_bool y
181 182

config STACKTRACE_SUPPORT
183
	def_bool y
184 185

config MMU
186
	def_bool y
187

188 189 190 191 192 193 194 195 196 197 198 199 200 201
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

202 203 204
config SBUS
	bool

205
config NEED_DMA_MAP_STATE
206
	def_bool y
207
	depends on X86_64 || INTEL_IOMMU || DMA_API_DEBUG || SWIOTLB
208

209
config NEED_SG_DMA_LENGTH
210
	def_bool y
211

212
config GENERIC_ISA_DMA
213 214
	def_bool y
	depends on ISA_DMA_API
215 216

config GENERIC_BUG
217
	def_bool y
218
	depends on BUG
219 220 221 222
	select GENERIC_BUG_RELATIVE_POINTERS if X86_64

config GENERIC_BUG_RELATIVE_POINTERS
	bool
223 224

config GENERIC_HWEIGHT
225
	def_bool y
226 227

config ARCH_MAY_HAVE_PC_FDC
228 229
	def_bool y
	depends on ISA_DMA_API
230

231
config RWSEM_XCHGADD_ALGORITHM
232
	def_bool y
233 234 235 236

config GENERIC_CALIBRATE_DELAY
	def_bool y

237 238 239
config ARCH_HAS_CPU_RELAX
	def_bool y

240 241 242
config ARCH_HAS_CACHE_LINE_SIZE
	def_bool y

243
config HAVE_SETUP_PER_CPU_AREA
244
	def_bool y
245

246 247 248 249
config NEED_PER_CPU_EMBED_FIRST_CHUNK
	def_bool y

config NEED_PER_CPU_PAGE_FIRST_CHUNK
250 251
	def_bool y

252 253 254
config ARCH_HIBERNATION_POSSIBLE
	def_bool y

Johannes Berg's avatar
Johannes Berg committed
255 256 257
config ARCH_SUSPEND_POSSIBLE
	def_bool y

258 259 260
config ARCH_WANT_HUGE_PMD_SHARE
	def_bool y

261 262 263
config ARCH_WANT_GENERAL_HUGETLB
	def_bool y

264
config ZONE_DMA32
265
	def_bool y if X86_64
266 267

config AUDIT_ARCH
268
	def_bool y if X86_64
269

270 271 272
config ARCH_SUPPORTS_OPTIMIZED_INLINING
	def_bool y

Akinobu Mita's avatar
Akinobu Mita committed
273 274 275
config ARCH_SUPPORTS_DEBUG_PAGEALLOC
	def_bool y

276 277 278 279 280
config KASAN_SHADOW_OFFSET
	hex
	depends on KASAN
	default 0xdffffc0000000000

281 282
config HAVE_INTEL_TXT
	def_bool y
283
	depends on INTEL_IOMMU && ACPI
284

285 286 287 288 289 290 291 292
config X86_32_SMP
	def_bool y
	depends on X86_32 && SMP

config X86_64_SMP
	def_bool y
	depends on X86_64 && SMP

293 294
config X86_32_LAZY_GS
	def_bool y
295
	depends on X86_32 && !CC_STACKPROTECTOR
296

297 298 299
config ARCH_SUPPORTS_UPROBES
	def_bool y

300 301 302
config FIX_EARLYCON_MEM
	def_bool y

303 304 305
config DEBUG_RODATA
	def_bool y

306 307 308 309 310 311
config PGTABLE_LEVELS
	int
	default 4 if X86_64
	default 3 if X86_PAE
	default 2

312
source "init/Kconfig"
313
source "kernel/Kconfig.freezer"
314

315 316
menu "Processor type and features"

317 318 319 320 321 322 323 324 325 326
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.

327 328 329 330
config SMP
	bool "Symmetric multi-processing support"
	---help---
	  This enables support for systems with more than one CPU. If you have
331 332
	  a system with only one CPU, say N. If you have a system with more
	  than one CPU, say Y.
333

334
	  If you say N here, the kernel will run on uni- and multiprocessor
335 336
	  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,
337
	  uniprocessor machines. On a uniprocessor machine, the kernel
338 339 340 341 342 343 344 345 346 347 348
	  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
349
	  See also <file:Documentation/x86/i386/IO-APIC.txt>,
350 351 352 353 354
	  <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
	  <http://www.tldp.org/docs.html#howto>.

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

355 356 357 358 359 360 361 362 363 364 365
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.

366 367 368 369 370 371 372 373 374 375 376
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
377 378
config X86_X2APIC
	bool "Support x2apic"
379
	depends on X86_LOCAL_APIC && X86_64 && (IRQ_REMAP || HYPERVISOR_GUEST)
Yinghai Lu's avatar
Yinghai Lu committed
380 381 382 383 384 385 386 387
	---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.

388
config X86_MPPARSE
389
	bool "Enable MPS table" if ACPI || SFI
390
	default y
391
	depends on X86_LOCAL_APIC
Ingo Molnar's avatar
Ingo Molnar committed
392
	---help---
393 394 395
	  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

396 397 398
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
399
	---help---
400
	  This option is needed for the systems that have more than 8 CPUs
401

402 403 404 405
config GOLDFISH
       def_bool y
       depends on X86_GOLDFISH

406
if X86_32
407 408 409
config X86_EXTENDED_PLATFORM
	bool "Support for extended (non-PC) x86 platforms"
	default y
Ingo Molnar's avatar
Ingo Molnar committed
410
	---help---
411 412 413 414
	  If you disable this option then the kernel will only support
	  standard PC platforms. (which covers the vast majority of
	  systems out there.)

415 416
	  If you enable this option then you'll be able to select support
	  for the following (non-PC) 32 bit x86 platforms:
417
		Goldfish (Android emulator)
418 419 420
		AMD Elan
		RDC R-321x SoC
		SGI 320/540 (Visual Workstation)
421
		STA2X11-based (e.g. Northville)
422
		Moorestown MID devices
423 424 425

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

428 429 430 431 432 433 434 435 436 437 438
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
439
		Numascale NumaChip
440 441 442 443 444 445
		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
446 447
# 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
448 449 450 451 452 453 454
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
455
	depends on PCI_MMCONFIG
Steffen Persvold's avatar
Steffen Persvold committed
456 457 458 459
	---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.
460

461 462
config X86_VSMP
	bool "ScaleMP vSMP"
463
	select HYPERVISOR_GUEST
464 465 466
	select PARAVIRT
	depends on X86_64 && PCI
	depends on X86_EXTENDED_PLATFORM
467
	depends on SMP
Ingo Molnar's avatar
Ingo Molnar committed
468
	---help---
469 470 471
	  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.
472

473 474 475
config X86_UV
	bool "SGI Ultraviolet"
	depends on X86_64
476
	depends on X86_EXTENDED_PLATFORM
477
	depends on NUMA
478
	depends on EFI
479
	depends on X86_X2APIC
480
	depends on PCI
Ingo Molnar's avatar
Ingo Molnar committed
481
	---help---
482 483 484
	  This option is needed in order to support SGI Ultraviolet systems.
	  If you don't have one of these, you should say N here.

485 486
# Following is an alphabetically sorted list of 32 bit extended platforms
# Please maintain the alphabetic order if and when there are additions
487

488 489
config X86_GOLDFISH
       bool "Goldfish (Virtual Platform)"
490
       depends on X86_EXTENDED_PLATFORM
491 492 493 494 495
       ---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.

496 497 498 499
config X86_INTEL_CE
	bool "CE4100 TV platform"
	depends on PCI
	depends on PCI_GODIRECT
500
	depends on X86_IO_APIC
501 502
	depends on X86_32
	depends on X86_EXTENDED_PLATFORM
503
	select X86_REBOOTFIXUPS
504 505
	select OF
	select OF_EARLY_FLATTREE
506 507 508 509 510
	---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.

511
config X86_INTEL_MID
512 513
	bool "Intel MID platform support"
	depends on X86_EXTENDED_PLATFORM
514
	depends on X86_PLATFORM_DEVICES
515
	depends on PCI
516
	depends on X86_64 || (PCI_GOANY && X86_32)
517
	depends on X86_IO_APIC
518
	select SFI
519
	select I2C
520
	select DW_APB_TIMER
521 522
	select APB_TIMER
	select INTEL_SCU_IPC
523
	select MFD_INTEL_MSIC
524
	---help---
525 526 527
	  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.
528

529 530
	  Intel MID platforms are based on an Intel processor and chipset which
	  consume less power than most of the x86 derivatives.
531

532 533 534 535 536 537 538 539 540 541 542
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
543
	select COMMON_CLK
544 545 546 547 548
	---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.

549 550
config X86_INTEL_LPSS
	bool "Intel Low Power Subsystem Support"
551
	depends on X86 && ACPI
552
	select COMMON_CLK
553
	select PINCTRL
554
	select IOSF_MBI
555 556 557
	---help---
	  Select to build support for Intel Low Power Subsystem such as
	  found on Intel Lynxpoint PCH. Selecting this option enables
558 559
	  things like clock tree (common clock framework) and pincontrol
	  which are needed by the LPSS peripheral drivers.
560

561 562 563 564 565 566 567 568 569 570 571
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.

572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588
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.

589 590 591 592 593 594 595 596 597 598 599 600 601
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.

602 603
config X86_RDC321X
	bool "RDC R-321x SoC"
604
	depends on X86_32
605 606 607 608 609 610 611 612
	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.

613
config X86_32_NON_STANDARD
614 615
	bool "Support non-standard 32-bit SMP architectures"
	depends on X86_32 && SMP
616
	depends on X86_EXTENDED_PLATFORM
Ingo Molnar's avatar
Ingo Molnar committed
617
	---help---
H. Peter Anvin's avatar
H. Peter Anvin committed
618 619 620 621
	  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.
622

623
# Alphabetically sorted list of Non standard 32 bit platforms
624

625
config X86_SUPPORTS_MEMORY_FAILURE
Jan Beulich's avatar
Jan Beulich committed
626
	def_bool y
627 628 629 630 631 632 633
	# 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

634 635 636 637 638 639 640
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
641
	select GPIOLIB
642 643 644 645 646 647 648 649
	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.

650 651 652 653 654 655 656 657 658 659 660 661 662
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.

663
config SCHED_OMIT_FRAME_POINTER
664 665
	def_bool y
	prompt "Single-depth WCHAN output"
666
	depends on X86
Ingo Molnar's avatar
Ingo Molnar committed
667
	---help---
668 669 670 671 672 673 674
	  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".

675 676
menuconfig HYPERVISOR_GUEST
	bool "Linux guest support"
Ingo Molnar's avatar
Ingo Molnar committed
677
	---help---
678 679 680
	  Say Y here to enable options for running Linux under various hyper-
	  visors. This option enables basic hypervisor detection and platform
	  setup.
681

682 683
	  If you say N, all options in this submenu will be skipped and
	  disabled, and Linux guest support won't be built in.
684

685
if HYPERVISOR_GUEST
686

687 688
config PARAVIRT
	bool "Enable paravirtualization code"
Ingo Molnar's avatar
Ingo Molnar committed
689
	---help---
690 691 692 693 694
	  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.

695 696 697 698 699 700 701
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.

702 703
config PARAVIRT_SPINLOCKS
	bool "Paravirtualization layer for spinlocks"
704
	depends on PARAVIRT && SMP
705
	select UNINLINE_SPIN_UNLOCK if !QUEUED_SPINLOCKS
706 707 708 709 710
	---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).

711 712
	  It has a minimal impact on native kernels and gives a nice performance
	  benefit on paravirtualized KVM / Xen kernels.
713

714
	  If you are unsure how to answer this question, answer Y.
715

716 717 718 719 720 721 722 723
config QUEUED_LOCK_STAT
	bool "Paravirt queued spinlock statistics"
	depends on PARAVIRT_SPINLOCKS && DEBUG_FS && QUEUED_SPINLOCKS
	---help---
	  Enable the collection of statistical data on the slowpath
	  behavior of paravirtualized queued spinlocks and report
	  them on debugfs.

724
source "arch/x86/xen/Kconfig"
725

726 727 728 729 730
config KVM_GUEST
	bool "KVM Guest support (including kvmclock)"
	depends on PARAVIRT
	select PARAVIRT_CLOCK
	default y
Ingo Molnar's avatar
Ingo Molnar committed
731
	---help---
732 733 734 735 736
	  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
737

738 739 740 741 742 743 744 745 746
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.

747 748 749 750 751 752
source "arch/x86/lguest/Kconfig"

config PARAVIRT_TIME_ACCOUNTING
	bool "Paravirtual steal time accounting"
	depends on PARAVIRT
	default n
Ingo Molnar's avatar
Ingo Molnar committed
753
	---help---
754 755 756 757 758 759 760 761 762
	  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
763

764
endif #HYPERVISOR_GUEST
765

766
config NO_BOOTMEM
Yinghai Lu's avatar
Yinghai Lu committed
767
	def_bool y
768

769 770 771
source "arch/x86/Kconfig.cpu"

config HPET_TIMER
772
	def_bool X86_64
773
	prompt "HPET Timer Support" if X86_32
Ingo Molnar's avatar
Ingo Molnar committed
774 775 776 777 778 779 780
	---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
781 782
	  as it is off-chip.  The interface used is documented
	  in the HPET spec, revision 1.
783

Ingo Molnar's avatar
Ingo Molnar committed
784 785 786
	  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.
787

Ingo Molnar's avatar
Ingo Molnar committed
788
	  Choose N to continue using the legacy 8254 timer.
789 790

config HPET_EMULATE_RTC
791
	def_bool y
792
	depends on HPET_TIMER && (RTC=y || RTC=m || RTC_DRV_CMOS=m || RTC_DRV_CMOS=y)
793

794
config APB_TIMER
795 796
       def_bool y if X86_INTEL_MID
       prompt "Intel MID APB Timer Support" if X86_INTEL_MID
797
       select DW_APB_TIMER
798
       depends on X86_INTEL_MID && SFI
799 800 801 802 803 804 805
       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.

806
# Mark as expert because too many people got it wrong.
807
# The code disables itself when not needed.
808 809
config DMI
	default y
810
	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
811
	bool "Enable DMI scanning" if EXPERT
Ingo Molnar's avatar
Ingo Molnar committed
812
	---help---
813 814 815 816 817
	  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.

818
config GART_IOMMU
819
	bool "Old AMD GART IOMMU support"
820
	select SWIOTLB
821
	depends on X86_64 && PCI && AMD_NB
Ingo Molnar's avatar
Ingo Molnar committed
822
	---help---
823 824 825 826 827 828 829 830 831 832 833 834 835 836 837
	  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.
838 839 840 841

config CALGARY_IOMMU
	bool "IBM Calgary IOMMU support"
	select SWIOTLB
842
	depends on X86_64 && PCI
Ingo Molnar's avatar
Ingo Molnar committed
843
	---help---
844 845 846 847 848 849 850 851 852 853 854 855 856 857
	  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
858 859
	def_bool y
	prompt "Should Calgary be enabled by default?"
860
	depends on CALGARY_IOMMU
Ingo Molnar's avatar
Ingo Molnar committed
861
	---help---
862 863 864 865 866 867 868 869
	  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
870
	def_bool y if X86_64
Ingo Molnar's avatar
Ingo Molnar committed
871
	---help---
872
	  Support for software bounce buffers used on x86-64 systems
873 874 875 876
	  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.
877

878
config IOMMU_HELPER
879 880
	def_bool y
	depends on CALGARY_IOMMU || GART_IOMMU || SWIOTLB || AMD_IOMMU
881

882
config MAXSMP
883
	bool "Enable Maximum number of SMP Processors and NUMA Nodes"
884
	depends on X86_64 && SMP && DEBUG_KERNEL
Mike Travis's avatar
Mike Travis committed
885
	select CPUMASK_OFFSTACK
Ingo Molnar's avatar
Ingo Molnar committed
886
	---help---
887
	  Enable maximum number of CPUS and NUMA Nodes for this architecture.
888
	  If unsure, say N.
889 890

config NR_CPUS
Mike Travis's avatar
Mike Travis committed
891
	int "Maximum number of CPUs" if SMP && !MAXSMP
892
	range 2 8 if SMP && X86_32 && !X86_BIGSMP
893
	range 2 512 if SMP && !MAXSMP && !CPUMASK_OFFSTACK
894
	range 2 8192 if SMP && !MAXSMP && CPUMASK_OFFSTACK && X86_64
895
	default "1" if !SMP
896
	default "8192" if MAXSMP
H. Peter Anvin's avatar
H. Peter Anvin committed
897
	default "32" if SMP && X86_BIGSMP
898 899
	default "8" if SMP && X86_32
	default "64" if SMP
Ingo Molnar's avatar
Ingo Molnar committed
900
	---help---
901
	  This allows you to specify the maximum number of CPUs which this
902
	  kernel will support.  If CPUMASK_OFFSTACK is enabled, the maximum
903
	  supported value is 8192, otherwise the maximum value is 512.  The
904 905 906 907 908 909 910
	  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
911
	depends on SMP
Ingo Molnar's avatar
Ingo Molnar committed
912
	---help---
913 914 915 916 917 918
	  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
919 920
	def_bool y
	prompt "Multi-core scheduler support"
Borislav Petkov's avatar
Borislav Petkov committed
921
	depends on SMP
Ingo Molnar's avatar
Ingo Molnar committed
922
	---help---
923 924 925 926 927 928
	  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.

source "kernel/Kconfig.preempt"

Thomas Gleixner's avatar
Thomas Gleixner committed
929 930
config UP_LATE_INIT
       def_bool y
931
       depends on !SMP && X86_LOCAL_APIC
Thomas Gleixner's avatar
Thomas Gleixner committed
932

933
config X86_UP_APIC
934 935
	bool "Local APIC support on uniprocessors" if !PCI_MSI
	default PCI_MSI
936
	depends on X86_32 && !SMP && !X86_32_NON_STANDARD
Ingo Molnar's avatar
Ingo Molnar committed
937
	---help---
938 939 940 941 942 943 944 945 946 947 948 949
	  A local APIC (Advanced Programmable Interrupt Controller) is an
	  integrated interrupt controller in the CPU. If you have a single-CPU
	  system which has a processor with a local APIC, you can say Y here to
	  enable and use it. If you say Y here even though your machine doesn't
	  have a local APIC, then the kernel will still run with no slowdown at
	  all. The local APIC supports CPU-generated self-interrupts (timer,
	  performance counters), and the NMI watchdog which detects hard
	  lockups.

config X86_UP_IOAPIC
	bool "IO-APIC support on uniprocessors"
	depends on X86_UP_APIC
Ingo Molnar's avatar
Ingo Molnar committed
950
	---help---
951 952 953 954 955 956 957 958 959
	  An IO-APIC (I/O Advanced Programmable Interrupt Controller) is an
	  SMP-capable replacement for PC-style interrupt controllers. Most
	  SMP systems and many recent uniprocessor systems have one.

	  If you have a single-CPU system with an IO-APIC, you can say Y here
	  to use it. If you say Y here even though your machine doesn't have
	  an IO-APIC, then the kernel will still run with no slowdown at all.

config X86_LOCAL_APIC
960
	def_bool y
961
	depends on X86_64 || SMP || X86_32_NON_STANDARD || X86_UP_APIC || PCI_MSI
962
	select IRQ_DOMAIN_HIERARCHY
963
	select PCI_MSI_IRQ_DOMAIN if PCI_MSI
964 965

config X86_IO_APIC
966 967
	def_bool y
	depends on X86_LOCAL_APIC || X86_UP_IOAPIC
968

969 970 971
config X86_REROUTE_FOR_BROKEN_BOOT_IRQS
	bool "Reroute for broken boot IRQs"
	depends on X86_IO_APIC
Ingo Molnar's avatar
Ingo Molnar committed
972
	---help---
973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991
	  This option enables a workaround that fixes a source of
	  spurious interrupts. This is recommended when threaded
	  interrupt handling is used on systems where the generation of
	  superfluous "boot interrupts" cannot be disabled.

	  Some chipsets generate a legacy INTx "boot IRQ" when the IRQ
	  entry in the chipset's IO-APIC is masked (as, e.g. the RT
	  kernel does during interrupt handling). On chipsets where this
	  boot IRQ generation cannot be disabled, this workaround keeps
	  the original IRQ line masked so that only the equivalent "boot
	  IRQ" is delivered to the CPUs. The workaround also tells the
	  kernel to set up the IRQ handler on the boot IRQ line. In this
	  way only one interrupt is delivered to the kernel. Otherwise
	  the spurious second interrupt may cause the kernel to bring
	  down (vital) interrupt lines.

	  Only affects "broken" chipsets. Interrupt sharing may be
	  increased on these systems.

992
config X86_MCE
993
	bool "Machine Check / overheating reporting"
994
	select GENERIC_ALLOCATOR
995
	default y
996
	---help---
997 998
	  Machine Check support allows the processor to notify the
	  kernel if it detects a problem (e.g. overheating, data corruption).
999
	  The action the kernel takes depends on the severity of the problem,
1000
	  ranging from warning messages to halting the machine.
1001

1002
config X86_MCE_INTEL
1003 1004
	def_bool y
	prompt "Intel MCE features"
1005
	depends on X86_MCE && X86_LOCAL_APIC
Ingo Molnar's avatar
Ingo Molnar committed
1006
	---help---
1007 1008 1009 1010
	   Additional support for intel specific MCE features such as
	   the thermal monitor.

config X86_MCE_AMD
1011 1012
	def_bool y
	prompt "AMD MCE features"
1013
	depends on X86_MCE && X86_LOCAL_APIC
Ingo Molnar's avatar
Ingo Molnar committed
1014
	---help---
1015 1016 1017
	   Additional support for AMD specific MCE features such as
	   the DRAM Error Threshold.

1018
config X86_ANCIENT_MCE
Jan Beulich's avatar
Jan Beulich committed
1019
	bool "Support for old Pentium 5 / WinChip machine checks"
1020
	depends on X86_32 && X86_MCE
1021 1022
	---help---
	  Include support for machine check handling on old Pentium 5 or WinChip
Masanari Iida's avatar
Masanari Iida committed
1023
	  systems. These typically need to be enabled explicitly on the command
1024
	  line.
1025

1026 1027
config X86_MCE_THRESHOLD
	depends on X86_MCE_AMD || X86_MCE_INTEL
Jan Beulich's avatar
Jan Beulich committed
1028
	def_bool y
1029

1030
config X86_MCE_INJECT
1031
	depends on X86_MCE
1032 1033 1034 1035 1036 1037
	tristate "Machine check injector support"
	---help---
	  Provide support for injecting machine checks for testing purposes.
	  If you don't know what a machine check is and you don't do kernel
	  QA it is safe to say n.

1038 1039
config X86_THERMAL_VECTOR
	def_bool y
1040
	depends on X86_MCE_INTEL
1041

1042
source "arch/x86/events/Kconfig"
1043

1044
config X86_LEGACY_VM86
1045
	bool "Legacy VM86 support"
1046
	default n
1047
	depends on X86_32
Ingo Molnar's avatar
Ingo Molnar committed
1048
	---help---
1049 1050 1051 1052 1053 1054 1055 1056
	  This option allows user programs to put the CPU into V8086
	  mode, which is an 80286-era approximation of 16-bit real mode.

	  Some very old versions of X and/or vbetool require this option
	  for user mode setting.  Similarly, DOSEMU will use it if
	  available to accelerate real mode DOS programs.  However, any
	  recent version of DOSEMU, X, or vbetool should be fully
	  functional even without kernel VM86 support, as they will all
1057 1058 1059 1060
	  fall back to software emulation. Nevertheless, if you are using
	  a 16-bit DOS program where 16-bit performance matters, vm86