Kconfig.cpu 15.9 KB
Newer Older
1 2 3
# Put here option for CPU selection and depending optimization
choice
	prompt "Processor family"
4 5
	default M686 if X86_32
	default GENERIC_CPU if X86_64
6 7 8

config M386
	bool "386"
9
	depends on X86_32 && !UML
10 11 12 13 14 15 16 17 18 19 20 21
	---help---
	  This is the processor type of your CPU. This information is used for
	  optimizing purposes. In order to compile a kernel that can run on
	  all x86 CPU types (albeit not optimally fast), you can specify
	  "386" here.

	  The kernel will not necessarily run on earlier architectures than
	  the one you have chosen, e.g. a Pentium optimized kernel will run on
	  a PPro, but not necessarily on a i486.

	  Here are the settings recommended for greatest speed:
	  - "386" for the AMD/Cyrix/Intel 386DX/DXL/SL/SLC/SX, Cyrix/TI
D
Dmitri Vorobiev 已提交
22 23
	  486DLC/DLC2, and UMC 486SX-S.  Only "386" kernels will run on a 386
	  class machine.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
	  - "486" for the AMD/Cyrix/IBM/Intel 486DX/DX2/DX4 or
	  SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or U5S.
	  - "586" for generic Pentium CPUs lacking the TSC
	  (time stamp counter) register.
	  - "Pentium-Classic" for the Intel Pentium.
	  - "Pentium-MMX" for the Intel Pentium MMX.
	  - "Pentium-Pro" for the Intel Pentium Pro.
	  - "Pentium-II" for the Intel Pentium II or pre-Coppermine Celeron.
	  - "Pentium-III" for the Intel Pentium III or Coppermine Celeron.
	  - "Pentium-4" for the Intel Pentium 4 or P4-based Celeron.
	  - "K6" for the AMD K6, K6-II and K6-III (aka K6-3D).
	  - "Athlon" for the AMD K7 family (Athlon/Duron/Thunderbird).
	  - "Crusoe" for the Transmeta Crusoe series.
	  - "Efficeon" for the Transmeta Efficeon series.
	  - "Winchip-C6" for original IDT Winchip.
39
	  - "Winchip-2" for IDT Winchips with 3dNow! capabilities.
40
	  - "GeodeGX1" for Geode GX1 (Cyrix MediaGX).
41
	  - "Geode GX/LX" For AMD Geode GX and LX processors.
42
	  - "CyrixIII/VIA C3" for VIA Cyrix III or VIA C3.
E
Egry Gabor 已提交
43
	  - "VIA C3-2" for VIA C3-2 "Nehemiah" (model 9 and above).
44
	  - "VIA C7" for VIA C7.
45 46 47 48 49

	  If you don't know what to do, choose "386".

config M486
	bool "486"
50
	depends on X86_32
I
Ingo Molnar 已提交
51
	---help---
52 53 54 55 56 57 58
	  Select this for a 486 series processor, either Intel or one of the
	  compatible processors from AMD, Cyrix, IBM, or Intel.  Includes DX,
	  DX2, and DX4 variants; also SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or
	  U5S.

config M586
	bool "586/K5/5x86/6x86/6x86MX"
59
	depends on X86_32
I
Ingo Molnar 已提交
60
	---help---
61 62 63 64 65 66
	  Select this for an 586 or 686 series processor such as the AMD K5,
	  the Cyrix 5x86, 6x86 and 6x86MX.  This choice does not
	  assume the RDTSC (Read Time Stamp Counter) instruction.

config M586TSC
	bool "Pentium-Classic"
67
	depends on X86_32
I
Ingo Molnar 已提交
68
	---help---
69 70 71 72 73
	  Select this for a Pentium Classic processor with the RDTSC (Read
	  Time Stamp Counter) instruction for benchmarking.

config M586MMX
	bool "Pentium-MMX"
74
	depends on X86_32
I
Ingo Molnar 已提交
75
	---help---
76 77 78 79 80
	  Select this for a Pentium with the MMX graphics/multimedia
	  extended instructions.

config M686
	bool "Pentium-Pro"
81
	depends on X86_32
I
Ingo Molnar 已提交
82
	---help---
83 84 85 86 87 88
	  Select this for Intel Pentium Pro chips.  This enables the use of
	  Pentium Pro extended instructions, and disables the init-time guard
	  against the f00f bug found in earlier Pentiums.

config MPENTIUMII
	bool "Pentium-II/Celeron(pre-Coppermine)"
89
	depends on X86_32
I
Ingo Molnar 已提交
90
	---help---
91 92 93 94 95 96 97 98
	  Select this for Intel chips based on the Pentium-II and
	  pre-Coppermine Celeron core.  This option enables an unaligned
	  copy optimization, compiles the kernel with optimization flags
	  tailored for the chip, and applies any applicable Pentium Pro
	  optimizations.

config MPENTIUMIII
	bool "Pentium-III/Celeron(Coppermine)/Pentium-III Xeon"
99
	depends on X86_32
I
Ingo Molnar 已提交
100
	---help---
101 102 103 104 105 106 107
	  Select this for Intel chips based on the Pentium-III and
	  Celeron-Coppermine core.  This option enables use of some
	  extended prefetch instructions in addition to the Pentium II
	  extensions.

config MPENTIUMM
	bool "Pentium M"
108
	depends on X86_32
I
Ingo Molnar 已提交
109
	---help---
110 111 112 113
	  Select this for Intel Pentium M (not Pentium-4 M)
	  notebook chips.

config MPENTIUM4
114
	bool "Pentium-4/Celeron(P4-based)/Pentium-4 M/older Xeon"
115
	depends on X86_32
I
Ingo Molnar 已提交
116
	---help---
117
	  Select this for Intel Pentium 4 chips.  This includes the
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
	  Pentium 4, Pentium D, P4-based Celeron and Xeon, and
	  Pentium-4 M (not Pentium M) chips.  This option enables compile
	  flags optimized for the chip, uses the correct cache line size, and
	  applies any applicable optimizations.

	  CPUIDs: F[0-6][1-A] (in /proc/cpuinfo show = cpu family : 15 )

	  Select this for:
	    Pentiums (Pentium 4, Pentium D, Celeron, Celeron D) corename:
		-Willamette
		-Northwood
		-Mobile Pentium 4
		-Mobile Pentium 4 M
		-Extreme Edition (Gallatin)
		-Prescott
		-Prescott 2M
		-Cedar Mill
		-Presler
		-Smithfiled
	    Xeons (Intel Xeon, Xeon MP, Xeon LV, Xeon MV) corename:
		-Foster
		-Prestonia
		-Gallatin
		-Nocona
		-Irwindale
		-Cranford
		-Potomac
		-Paxville
		-Dempsey

148 149 150

config MK6
	bool "K6/K6-II/K6-III"
151
	depends on X86_32
I
Ingo Molnar 已提交
152
	---help---
153 154 155 156 157 158
	  Select this for an AMD K6-family processor.  Enables use of
	  some extended instructions, and passes appropriate optimization
	  flags to GCC.

config MK7
	bool "Athlon/Duron/K7"
159
	depends on X86_32
I
Ingo Molnar 已提交
160
	---help---
161 162 163 164 165 166
	  Select this for an AMD Athlon K7-family processor.  Enables use of
	  some extended instructions, and passes appropriate optimization
	  flags to GCC.

config MK8
	bool "Opteron/Athlon64/Hammer/K8"
I
Ingo Molnar 已提交
167
	---help---
168 169 170
	  Select this for an AMD Opteron or Athlon64 Hammer-family processor.
	  Enables use of some extended instructions, and passes appropriate
	  optimization flags to GCC.
171 172 173

config MCRUSOE
	bool "Crusoe"
174
	depends on X86_32
I
Ingo Molnar 已提交
175
	---help---
176 177 178 179 180 181
	  Select this for a Transmeta Crusoe processor.  Treats the processor
	  like a 586 with TSC, and sets some GCC optimization flags (like a
	  Pentium Pro with no alignment requirements).

config MEFFICEON
	bool "Efficeon"
182
	depends on X86_32
I
Ingo Molnar 已提交
183
	---help---
184 185 186 187
	  Select this for a Transmeta Efficeon processor.

config MWINCHIPC6
	bool "Winchip-C6"
188
	depends on X86_32
I
Ingo Molnar 已提交
189
	---help---
190 191 192 193 194
	  Select this for an IDT Winchip C6 chip.  Linux and GCC
	  treat this chip as a 586TSC with some extended instructions
	  and alignment requirements.

config MWINCHIP3D
195
	bool "Winchip-2/Winchip-2A/Winchip-3"
196
	depends on X86_32
I
Ingo Molnar 已提交
197
	---help---
198
	  Select this for an IDT Winchip-2, 2A or 3.  Linux and GCC
199
	  treat this chip as a 586TSC with some extended instructions
200
	  and alignment requirements.  Also enable out of order memory
201 202 203
	  stores for this CPU, which can increase performance of some
	  operations.

204 205 206 207 208 209 210 211
config MELAN
	bool "AMD Elan"
	depends on X86_32
	---help---
	  Select this for an AMD Elan processor.

	  Do not use this option for K6/Athlon/Opteron processors!

212 213
config MGEODEGX1
	bool "GeodeGX1"
214
	depends on X86_32
I
Ingo Molnar 已提交
215
	---help---
216 217
	  Select this for a Geode GX1 (Cyrix MediaGX) chip.

218
config MGEODE_LX
219
	bool "Geode GX/LX"
220
	depends on X86_32
I
Ingo Molnar 已提交
221
	---help---
222
	  Select this for AMD Geode GX and LX processors.
223

224 225
config MCYRIXIII
	bool "CyrixIII/VIA-C3"
226
	depends on X86_32
I
Ingo Molnar 已提交
227
	---help---
228 229 230 231 232 233 234 235 236 237
	  Select this for a Cyrix III or C3 chip.  Presently Linux and GCC
	  treat this chip as a generic 586. Whilst the CPU is 686 class,
	  it lacks the cmov extension which gcc assumes is present when
	  generating 686 code.
	  Note that Nehemiah (Model 9) and above will not boot with this
	  kernel due to them lacking the 3DNow! instructions used in earlier
	  incarnations of the CPU.

config MVIAC3_2
	bool "VIA C3-2 (Nehemiah)"
238
	depends on X86_32
I
Ingo Molnar 已提交
239
	---help---
240 241 242 243
	  Select this for a VIA C3 "Nehemiah". Selecting this enables usage
	  of SSE and tells gcc to treat the CPU as a 686.
	  Note, this kernel will not boot on older (pre model 9) C3s.

244 245
config MVIAC7
	bool "VIA C7"
246
	depends on X86_32
I
Ingo Molnar 已提交
247
	---help---
248 249 250
	  Select this for a VIA C7.  Selecting this uses the correct cache
	  shift and tells gcc to treat the CPU as a 686.

251 252 253
config MPSC
	bool "Intel P4 / older Netburst based Xeon"
	depends on X86_64
I
Ingo Molnar 已提交
254
	---help---
255 256 257
	  Optimize for Intel Pentium 4, Pentium D and older Nocona/Dempsey
	  Xeon CPUs with Intel 64bit which is compatible with x86-64.
	  Note that the latest Xeons (Xeon 51xx and 53xx) are not based on the
258
	  Netburst core and shouldn't use this option. You can distinguish them
259 260 261 262 263
	  using the cpu family field
	  in /proc/cpuinfo. Family 15 is an older Xeon, Family 6 a newer one.

config MCORE2
	bool "Core 2/newer Xeon"
I
Ingo Molnar 已提交
264
	---help---
265 266 267 268 269

	  Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and
	  53xx) CPUs. You can distinguish newer from older Xeons by the CPU
	  family in /proc/cpuinfo. Newer ones have 6 and older ones 15
	  (not a typo)
270

271 272 273 274 275 276 277 278 279
config MATOM
	bool "Intel Atom"
	---help---

	  Select this for the Intel Atom platform. Intel Atom CPUs have an
	  in-order pipelining architecture and thus can benefit from
	  accordingly optimized code. Use a recent GCC with specific Atom
	  support in order to fully benefit from selecting this option.

280 281 282
config GENERIC_CPU
	bool "Generic-x86-64"
	depends on X86_64
I
Ingo Molnar 已提交
283
	---help---
284 285 286
	  Generic x86-64 CPU.
	  Run equally well on all x86-64 CPUs.

287 288 289
endchoice

config X86_GENERIC
290 291
	bool "Generic x86 support"
	depends on X86_32
I
Ingo Molnar 已提交
292
	---help---
293 294 295 296 297 298 299 300 301 302
	  Instead of just including optimizations for the selected
	  x86 variant (e.g. PII, Crusoe or Athlon), include some more
	  generic optimizations as well. This will make the kernel
	  perform better on x86 CPUs other than that selected.

	  This is really intended for distributors who need more
	  generic optimizations.

#
# Define implied options from the CPU selection here
303
config X86_INTERNODE_CACHE_SHIFT
304
	int
305 306 307
	default "12" if X86_VSMP
	default "7" if NUMA
	default X86_L1_CACHE_SHIFT
308

309
config X86_CMPXCHG
310
	def_bool X86_64 || (X86_32 && !M386)
311

312 313 314
config CMPXCHG_LOCAL
	def_bool X86_64 || (X86_32 && !M386)

315 316 317
config CMPXCHG_DOUBLE
	def_bool y

318 319
config X86_L1_CACHE_SHIFT
	int
320
	default "7" if MPENTIUM4 || MPSC
321
	default "6" if MK7 || MK8 || MPENTIUMM || MCORE2 || MATOM || MVIAC7 || X86_GENERIC || GENERIC_CPU
322
	default "4" if MELAN || M486 || M386 || MGEODEGX1
323
	default "5" if MWINCHIP3D || MWINCHIPC6 || MCRUSOE || MEFFICEON || MCYRIXIII || MK6 || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || M586 || MVIAC3_2 || MGEODE_LX
324

325
config X86_XADD
326
	def_bool y
327
	depends on X86_64 || !M386
328 329

config X86_PPRO_FENCE
330
	bool "PentiumPro memory ordering errata workaround"
331
	depends on M686 || M586MMX || M586TSC || M586 || M486 || M386 || MGEODEGX1
I
Ingo Molnar 已提交
332
	---help---
333 334 335
	  Old PentiumPro multiprocessor systems had errata that could cause
	  memory operations to violate the x86 ordering standard in rare cases.
	  Enabling this option will attempt to work around some (but not all)
L
Lucas De Marchi 已提交
336
	  occurrences of this problem, at the cost of much heavier spinlock and
337 338 339 340
	  memory barrier operations.

	  If unsure, say n here. Even distro kernels should think twice before
	  enabling this: there are few systems, and an unlikely bug.
341 342

config X86_F00F_BUG
343
	def_bool y
344 345
	depends on M586MMX || M586TSC || M586 || M486 || M386

346 347 348 349
config X86_INVD_BUG
	def_bool y
	depends on M486 || M386

350
config X86_WP_WORKS_OK
351
	def_bool y
352
	depends on !M386
353 354

config X86_INVLPG
355
	def_bool y
356
	depends on X86_32 && !M386
357 358

config X86_BSWAP
359
	def_bool y
360
	depends on X86_32 && !M386
361 362

config X86_POPAD_OK
363
	def_bool y
364
	depends on X86_32 && !M386
365 366

config X86_ALIGNMENT_16
367
	def_bool y
368
	depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || MELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1
369 370

config X86_INTEL_USERCOPY
371
	def_bool y
372
	depends on MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M586MMX || X86_GENERIC || MK8 || MK7 || MEFFICEON || MCORE2
373 374

config X86_USE_PPRO_CHECKSUM
375
	def_bool y
376
	depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MK8 || MVIAC3_2 || MVIAC7 || MEFFICEON || MGEODE_LX || MCORE2 || MATOM
377 378

config X86_USE_3DNOW
379
	def_bool y
380
	depends on (MCYRIXIII || MK7 || MGEODE_LX) && !UML
381 382

config X86_OOSTORE
383
	def_bool y
384
	depends on (MWINCHIP3D || MWINCHIPC6) && MTRR
385

386 387 388 389
#
# P6_NOPs are a relatively minor optimization that require a family >=
# 6 processor, except that it is broken on certain VIA chips.
# Furthermore, AMD chips prefer a totally different sequence of NOPs
390 391 392 393 394 395
# (which work on all CPUs).  In addition, it looks like Virtual PC
# does not understand them.
#
# As a result, disallow these if we're not compiling for X86_64 (these
# NOPs do work on all x86-64 capable chips); the list of processors in
# the right-hand clause are the cores that benefit from this optimization.
396
#
397 398
config X86_P6_NOP
	def_bool y
399 400
	depends on X86_64
	depends on (MCORE2 || MPENTIUM4 || MPSC)
401

402
config X86_TSC
403
	def_bool y
404
	depends on ((MWINCHIP3D || MCRUSOE || MEFFICEON || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || MK8 || MVIAC3_2 || MVIAC7 || MGEODEGX1 || MGEODE_LX || MCORE2 || MATOM) && !X86_NUMAQ) || X86_64
405

406 407
config X86_CMPXCHG64
	def_bool y
408
	depends on X86_PAE || X86_64 || MCORE2 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MATOM
409

410 411 412
# this should be set for all -march=.. options where the compiler
# generates cmov.
config X86_CMOV
413
	def_bool y
M
Matteo Croce 已提交
414
	depends on (MK8 || MK7 || MCORE2 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7 || MCRUSOE || MEFFICEON || X86_64 || MATOM || MGEODE_LX)
415

416
config X86_MINIMUM_CPU_FAMILY
417
	int
418
	default "64" if X86_64
419
	default "6" if X86_32 && X86_P6_NOP
420
	default "5" if X86_32 && X86_CMPXCHG64
421
	default "4" if X86_32 && (X86_XADD || X86_CMPXCHG || X86_BSWAP || X86_WP_WORKS_OK)
422
	default "3"
423

R
Roland McGrath 已提交
424
config X86_DEBUGCTLMSR
425
	def_bool y
A
Al Viro 已提交
426
	depends on !(MK6 || MWINCHIPC6 || MWINCHIP3D || MCYRIXIII || M586MMX || M586TSC || M586 || M486 || M386) && !UML
427 428

menuconfig PROCESSOR_SELECT
429
	bool "Supported processor vendors" if EXPERT
I
Ingo Molnar 已提交
430
	---help---
431 432 433
	  This lets you choose what x86 vendor support code your kernel
	  will include.

Y
Yinghai Lu 已提交
434
config CPU_SUP_INTEL
435 436
	default y
	bool "Support Intel processors" if PROCESSOR_SELECT
I
Ingo Molnar 已提交
437
	---help---
438 439 440 441 442 443 444 445
	  This enables detection, tunings and quirks for Intel processors

	  You need this enabled if you want your kernel to run on an
	  Intel CPU. Disabling this option on other types of CPUs
	  makes the kernel a tiny bit smaller. Disabling it on an Intel
	  CPU might render the kernel unbootable.

	  If unsure, say N.
446 447 448 449 450

config CPU_SUP_CYRIX_32
	default y
	bool "Support Cyrix processors" if PROCESSOR_SELECT
	depends on !64BIT
I
Ingo Molnar 已提交
451
	---help---
452 453 454 455 456 457 458 459
	  This enables detection, tunings and quirks for Cyrix processors

	  You need this enabled if you want your kernel to run on a
	  Cyrix CPU. Disabling this option on other types of CPUs
	  makes the kernel a tiny bit smaller. Disabling it on a Cyrix
	  CPU might render the kernel unbootable.

	  If unsure, say N.
460

Y
Yinghai Lu 已提交
461
config CPU_SUP_AMD
462 463
	default y
	bool "Support AMD processors" if PROCESSOR_SELECT
I
Ingo Molnar 已提交
464
	---help---
465 466 467 468 469 470 471 472
	  This enables detection, tunings and quirks for AMD processors

	  You need this enabled if you want your kernel to run on an
	  AMD CPU. Disabling this option on other types of CPUs
	  makes the kernel a tiny bit smaller. Disabling it on an AMD
	  CPU might render the kernel unbootable.

	  If unsure, say N.
473

474
config CPU_SUP_CENTAUR
475 476
	default y
	bool "Support Centaur processors" if PROCESSOR_SELECT
I
Ingo Molnar 已提交
477
	---help---
478 479 480 481 482 483 484 485
	  This enables detection, tunings and quirks for Centaur processors

	  You need this enabled if you want your kernel to run on a
	  Centaur CPU. Disabling this option on other types of CPUs
	  makes the kernel a tiny bit smaller. Disabling it on a Centaur
	  CPU might render the kernel unbootable.

	  If unsure, say N.
486 487 488 489 490

config CPU_SUP_TRANSMETA_32
	default y
	bool "Support Transmeta processors" if PROCESSOR_SELECT
	depends on !64BIT
I
Ingo Molnar 已提交
491
	---help---
492 493 494 495 496 497 498 499
	  This enables detection, tunings and quirks for Transmeta processors

	  You need this enabled if you want your kernel to run on a
	  Transmeta CPU. Disabling this option on other types of CPUs
	  makes the kernel a tiny bit smaller. Disabling it on a Transmeta
	  CPU might render the kernel unbootable.

	  If unsure, say N.
500 501 502 503 504

config CPU_SUP_UMC_32
	default y
	bool "Support UMC processors" if PROCESSOR_SELECT
	depends on !64BIT
I
Ingo Molnar 已提交
505
	---help---
506 507 508 509 510 511 512 513
	  This enables detection, tunings and quirks for UMC processors

	  You need this enabled if you want your kernel to run on a
	  UMC CPU. Disabling this option on other types of CPUs
	  makes the kernel a tiny bit smaller. Disabling it on a UMC
	  CPU might render the kernel unbootable.

	  If unsure, say N.