Kconfig.cpu 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. # Put here option for CPU selection and depending optimization
  2. choice
  3. prompt "Processor family"
  4. default M686 if X86_32
  5. default GENERIC_CPU if X86_64
  6. ---help---
  7. This is the processor type of your CPU. This information is
  8. used for optimizing purposes. In order to compile a kernel
  9. that can run on all supported x86 CPU types (albeit not
  10. optimally fast), you can specify "486" here.
  11. Note that the 386 is no longer supported, this includes
  12. AMD/Cyrix/Intel 386DX/DXL/SL/SLC/SX, Cyrix/TI 486DLC/DLC2,
  13. UMC 486SX-S and the NexGen Nx586.
  14. The kernel will not necessarily run on earlier architectures than
  15. the one you have chosen, e.g. a Pentium optimized kernel will run on
  16. a PPro, but not necessarily on a i486.
  17. Here are the settings recommended for greatest speed:
  18. - "486" for the AMD/Cyrix/IBM/Intel 486DX/DX2/DX4 or
  19. SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or U5S.
  20. - "586" for generic Pentium CPUs lacking the TSC
  21. (time stamp counter) register.
  22. - "Pentium-Classic" for the Intel Pentium.
  23. - "Pentium-MMX" for the Intel Pentium MMX.
  24. - "Pentium-Pro" for the Intel Pentium Pro.
  25. - "Pentium-II" for the Intel Pentium II or pre-Coppermine Celeron.
  26. - "Pentium-III" for the Intel Pentium III or Coppermine Celeron.
  27. - "Pentium-4" for the Intel Pentium 4 or P4-based Celeron.
  28. - "K6" for the AMD K6, K6-II and K6-III (aka K6-3D).
  29. - "Athlon" for the AMD K7 family (Athlon/Duron/Thunderbird).
  30. - "Opteron/Athlon64/Hammer/K8" for all K8 and newer AMD CPUs.
  31. - "Crusoe" for the Transmeta Crusoe series.
  32. - "Efficeon" for the Transmeta Efficeon series.
  33. - "Winchip-C6" for original IDT Winchip.
  34. - "Winchip-2" for IDT Winchips with 3dNow! capabilities.
  35. - "AMD Elan" for the 32-bit AMD Elan embedded CPU.
  36. - "GeodeGX1" for Geode GX1 (Cyrix MediaGX).
  37. - "Geode GX/LX" For AMD Geode GX and LX processors.
  38. - "CyrixIII/VIA C3" for VIA Cyrix III or VIA C3.
  39. - "VIA C3-2" for VIA C3-2 "Nehemiah" (model 9 and above).
  40. - "VIA C7" for VIA C7.
  41. - "Intel P4" for the Pentium 4/Netburst microarchitecture.
  42. - "Core 2/newer Xeon" for all core2 and newer Intel CPUs.
  43. - "Intel Atom" for the Atom-microarchitecture CPUs.
  44. - "Generic-x86-64" for a kernel which runs on any x86-64 CPU.
  45. See each option's help text for additional details. If you don't know
  46. what to do, choose "486".
  47. config M486
  48. bool "486"
  49. depends on X86_32
  50. ---help---
  51. Select this for an 486-class CPU such as AMD/Cyrix/IBM/Intel
  52. 486DX/DX2/DX4 or SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or U5S.
  53. config M586
  54. bool "586/K5/5x86/6x86/6x86MX"
  55. depends on X86_32
  56. ---help---
  57. Select this for an 586 or 686 series processor such as the AMD K5,
  58. the Cyrix 5x86, 6x86 and 6x86MX. This choice does not
  59. assume the RDTSC (Read Time Stamp Counter) instruction.
  60. config M586TSC
  61. bool "Pentium-Classic"
  62. depends on X86_32
  63. ---help---
  64. Select this for a Pentium Classic processor with the RDTSC (Read
  65. Time Stamp Counter) instruction for benchmarking.
  66. config M586MMX
  67. bool "Pentium-MMX"
  68. depends on X86_32
  69. ---help---
  70. Select this for a Pentium with the MMX graphics/multimedia
  71. extended instructions.
  72. config M686
  73. bool "Pentium-Pro"
  74. depends on X86_32
  75. ---help---
  76. Select this for Intel Pentium Pro chips. This enables the use of
  77. Pentium Pro extended instructions, and disables the init-time guard
  78. against the f00f bug found in earlier Pentiums.
  79. config MPENTIUMII
  80. bool "Pentium-II/Celeron(pre-Coppermine)"
  81. depends on X86_32
  82. ---help---
  83. Select this for Intel chips based on the Pentium-II and
  84. pre-Coppermine Celeron core. This option enables an unaligned
  85. copy optimization, compiles the kernel with optimization flags
  86. tailored for the chip, and applies any applicable Pentium Pro
  87. optimizations.
  88. config MPENTIUMIII
  89. bool "Pentium-III/Celeron(Coppermine)/Pentium-III Xeon"
  90. depends on X86_32
  91. ---help---
  92. Select this for Intel chips based on the Pentium-III and
  93. Celeron-Coppermine core. This option enables use of some
  94. extended prefetch instructions in addition to the Pentium II
  95. extensions.
  96. config MPENTIUMM
  97. bool "Pentium M"
  98. depends on X86_32
  99. ---help---
  100. Select this for Intel Pentium M (not Pentium-4 M)
  101. notebook chips.
  102. config MPENTIUM4
  103. bool "Pentium-4/Celeron(P4-based)/Pentium-4 M/older Xeon"
  104. depends on X86_32
  105. ---help---
  106. Select this for Intel Pentium 4 chips. This includes the
  107. Pentium 4, Pentium D, P4-based Celeron and Xeon, and
  108. Pentium-4 M (not Pentium M) chips. This option enables compile
  109. flags optimized for the chip, uses the correct cache line size, and
  110. applies any applicable optimizations.
  111. CPUIDs: F[0-6][1-A] (in /proc/cpuinfo show = cpu family : 15 )
  112. Select this for:
  113. Pentiums (Pentium 4, Pentium D, Celeron, Celeron D) corename:
  114. -Willamette
  115. -Northwood
  116. -Mobile Pentium 4
  117. -Mobile Pentium 4 M
  118. -Extreme Edition (Gallatin)
  119. -Prescott
  120. -Prescott 2M
  121. -Cedar Mill
  122. -Presler
  123. -Smithfiled
  124. Xeons (Intel Xeon, Xeon MP, Xeon LV, Xeon MV) corename:
  125. -Foster
  126. -Prestonia
  127. -Gallatin
  128. -Nocona
  129. -Irwindale
  130. -Cranford
  131. -Potomac
  132. -Paxville
  133. -Dempsey
  134. config MK6
  135. bool "K6/K6-II/K6-III"
  136. depends on X86_32
  137. ---help---
  138. Select this for an AMD K6-family processor. Enables use of
  139. some extended instructions, and passes appropriate optimization
  140. flags to GCC.
  141. config MK7
  142. bool "Athlon/Duron/K7"
  143. depends on X86_32
  144. ---help---
  145. Select this for an AMD Athlon K7-family processor. Enables use of
  146. some extended instructions, and passes appropriate optimization
  147. flags to GCC.
  148. config MK8
  149. bool "Opteron/Athlon64/Hammer/K8"
  150. ---help---
  151. Select this for an AMD Opteron or Athlon64 Hammer-family processor.
  152. Enables use of some extended instructions, and passes appropriate
  153. optimization flags to GCC.
  154. config MCRUSOE
  155. bool "Crusoe"
  156. depends on X86_32
  157. ---help---
  158. Select this for a Transmeta Crusoe processor. Treats the processor
  159. like a 586 with TSC, and sets some GCC optimization flags (like a
  160. Pentium Pro with no alignment requirements).
  161. config MEFFICEON
  162. bool "Efficeon"
  163. depends on X86_32
  164. ---help---
  165. Select this for a Transmeta Efficeon processor.
  166. config MWINCHIPC6
  167. bool "Winchip-C6"
  168. depends on X86_32
  169. ---help---
  170. Select this for an IDT Winchip C6 chip. Linux and GCC
  171. treat this chip as a 586TSC with some extended instructions
  172. and alignment requirements.
  173. config MWINCHIP3D
  174. bool "Winchip-2/Winchip-2A/Winchip-3"
  175. depends on X86_32
  176. ---help---
  177. Select this for an IDT Winchip-2, 2A or 3. Linux and GCC
  178. treat this chip as a 586TSC with some extended instructions
  179. and alignment requirements. Also enable out of order memory
  180. stores for this CPU, which can increase performance of some
  181. operations.
  182. config MELAN
  183. bool "AMD Elan"
  184. depends on X86_32
  185. ---help---
  186. Select this for an AMD Elan processor.
  187. Do not use this option for K6/Athlon/Opteron processors!
  188. config MGEODEGX1
  189. bool "GeodeGX1"
  190. depends on X86_32
  191. ---help---
  192. Select this for a Geode GX1 (Cyrix MediaGX) chip.
  193. config MGEODE_LX
  194. bool "Geode GX/LX"
  195. depends on X86_32
  196. ---help---
  197. Select this for AMD Geode GX and LX processors.
  198. config MCYRIXIII
  199. bool "CyrixIII/VIA-C3"
  200. depends on X86_32
  201. ---help---
  202. Select this for a Cyrix III or C3 chip. Presently Linux and GCC
  203. treat this chip as a generic 586. Whilst the CPU is 686 class,
  204. it lacks the cmov extension which gcc assumes is present when
  205. generating 686 code.
  206. Note that Nehemiah (Model 9) and above will not boot with this
  207. kernel due to them lacking the 3DNow! instructions used in earlier
  208. incarnations of the CPU.
  209. config MVIAC3_2
  210. bool "VIA C3-2 (Nehemiah)"
  211. depends on X86_32
  212. ---help---
  213. Select this for a VIA C3 "Nehemiah". Selecting this enables usage
  214. of SSE and tells gcc to treat the CPU as a 686.
  215. Note, this kernel will not boot on older (pre model 9) C3s.
  216. config MVIAC7
  217. bool "VIA C7"
  218. depends on X86_32
  219. ---help---
  220. Select this for a VIA C7. Selecting this uses the correct cache
  221. shift and tells gcc to treat the CPU as a 686.
  222. config MPSC
  223. bool "Intel P4 / older Netburst based Xeon"
  224. depends on X86_64
  225. ---help---
  226. Optimize for Intel Pentium 4, Pentium D and older Nocona/Dempsey
  227. Xeon CPUs with Intel 64bit which is compatible with x86-64.
  228. Note that the latest Xeons (Xeon 51xx and 53xx) are not based on the
  229. Netburst core and shouldn't use this option. You can distinguish them
  230. using the cpu family field
  231. in /proc/cpuinfo. Family 15 is an older Xeon, Family 6 a newer one.
  232. config MCORE2
  233. bool "Core 2/newer Xeon"
  234. ---help---
  235. Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and
  236. 53xx) CPUs. You can distinguish newer from older Xeons by the CPU
  237. family in /proc/cpuinfo. Newer ones have 6 and older ones 15
  238. (not a typo)
  239. config MATOM
  240. bool "Intel Atom"
  241. ---help---
  242. Select this for the Intel Atom platform. Intel Atom CPUs have an
  243. in-order pipelining architecture and thus can benefit from
  244. accordingly optimized code. Use a recent GCC with specific Atom
  245. support in order to fully benefit from selecting this option.
  246. config GENERIC_CPU
  247. bool "Generic-x86-64"
  248. depends on X86_64
  249. ---help---
  250. Generic x86-64 CPU.
  251. Run equally well on all x86-64 CPUs.
  252. endchoice
  253. config X86_GENERIC
  254. bool "Generic x86 support"
  255. depends on X86_32
  256. ---help---
  257. Instead of just including optimizations for the selected
  258. x86 variant (e.g. PII, Crusoe or Athlon), include some more
  259. generic optimizations as well. This will make the kernel
  260. perform better on x86 CPUs other than that selected.
  261. This is really intended for distributors who need more
  262. generic optimizations.
  263. #
  264. # Define implied options from the CPU selection here
  265. config X86_INTERNODE_CACHE_SHIFT
  266. int
  267. default "12" if X86_VSMP
  268. default X86_L1_CACHE_SHIFT
  269. config X86_L1_CACHE_SHIFT
  270. int
  271. default "7" if MPENTIUM4 || MPSC
  272. default "6" if MK7 || MK8 || MPENTIUMM || MCORE2 || MATOM || MVIAC7 || X86_GENERIC || GENERIC_CPU
  273. default "4" if MELAN || M486 || MGEODEGX1
  274. default "5" if MWINCHIP3D || MWINCHIPC6 || MCRUSOE || MEFFICEON || MCYRIXIII || MK6 || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || M586 || MVIAC3_2 || MGEODE_LX
  275. config X86_PPRO_FENCE
  276. bool "PentiumPro memory ordering errata workaround"
  277. depends on M686 || M586MMX || M586TSC || M586 || M486 || MGEODEGX1
  278. ---help---
  279. Old PentiumPro multiprocessor systems had errata that could cause
  280. memory operations to violate the x86 ordering standard in rare cases.
  281. Enabling this option will attempt to work around some (but not all)
  282. occurrences of this problem, at the cost of much heavier spinlock and
  283. memory barrier operations.
  284. If unsure, say n here. Even distro kernels should think twice before
  285. enabling this: there are few systems, and an unlikely bug.
  286. config X86_F00F_BUG
  287. def_bool y
  288. depends on M586MMX || M586TSC || M586 || M486
  289. config X86_INVD_BUG
  290. def_bool y
  291. depends on M486
  292. config X86_ALIGNMENT_16
  293. def_bool y
  294. depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || MELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1
  295. config X86_INTEL_USERCOPY
  296. def_bool y
  297. depends on MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M586MMX || X86_GENERIC || MK8 || MK7 || MEFFICEON || MCORE2
  298. config X86_USE_PPRO_CHECKSUM
  299. def_bool y
  300. depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MK8 || MVIAC3_2 || MVIAC7 || MEFFICEON || MGEODE_LX || MCORE2 || MATOM
  301. config X86_USE_3DNOW
  302. def_bool y
  303. depends on (MCYRIXIII || MK7 || MGEODE_LX) && !UML
  304. #
  305. # P6_NOPs are a relatively minor optimization that require a family >=
  306. # 6 processor, except that it is broken on certain VIA chips.
  307. # Furthermore, AMD chips prefer a totally different sequence of NOPs
  308. # (which work on all CPUs). In addition, it looks like Virtual PC
  309. # does not understand them.
  310. #
  311. # As a result, disallow these if we're not compiling for X86_64 (these
  312. # NOPs do work on all x86-64 capable chips); the list of processors in
  313. # the right-hand clause are the cores that benefit from this optimization.
  314. #
  315. config X86_P6_NOP
  316. def_bool y
  317. depends on X86_64
  318. depends on (MCORE2 || MPENTIUM4 || MPSC)
  319. config X86_TSC
  320. def_bool y
  321. 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_64
  322. config X86_CMPXCHG64
  323. def_bool y
  324. depends on X86_PAE || X86_64 || MCORE2 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MATOM
  325. # this should be set for all -march=.. options where the compiler
  326. # generates cmov.
  327. config X86_CMOV
  328. def_bool y
  329. depends on (MK8 || MK7 || MCORE2 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7 || MCRUSOE || MEFFICEON || X86_64 || MATOM || MGEODE_LX)
  330. config X86_MINIMUM_CPU_FAMILY
  331. int
  332. default "64" if X86_64
  333. default "6" if X86_32 && X86_P6_NOP
  334. default "5" if X86_32 && X86_CMPXCHG64
  335. default "4"
  336. config X86_DEBUGCTLMSR
  337. def_bool y
  338. depends on !(MK6 || MWINCHIPC6 || MWINCHIP3D || MCYRIXIII || M586MMX || M586TSC || M586 || M486) && !UML
  339. menuconfig PROCESSOR_SELECT
  340. bool "Supported processor vendors" if EXPERT
  341. ---help---
  342. This lets you choose what x86 vendor support code your kernel
  343. will include.
  344. config CPU_SUP_INTEL
  345. default y
  346. bool "Support Intel processors" if PROCESSOR_SELECT
  347. ---help---
  348. This enables detection, tunings and quirks for Intel processors
  349. You need this enabled if you want your kernel to run on an
  350. Intel CPU. Disabling this option on other types of CPUs
  351. makes the kernel a tiny bit smaller. Disabling it on an Intel
  352. CPU might render the kernel unbootable.
  353. If unsure, say N.
  354. config CPU_SUP_CYRIX_32
  355. default y
  356. bool "Support Cyrix processors" if PROCESSOR_SELECT
  357. depends on M486 || M586 || M586TSC || M586MMX || (EXPERT && !64BIT)
  358. ---help---
  359. This enables detection, tunings and quirks for Cyrix processors
  360. You need this enabled if you want your kernel to run on a
  361. Cyrix CPU. Disabling this option on other types of CPUs
  362. makes the kernel a tiny bit smaller. Disabling it on a Cyrix
  363. CPU might render the kernel unbootable.
  364. If unsure, say N.
  365. config CPU_SUP_AMD
  366. default y
  367. bool "Support AMD processors" if PROCESSOR_SELECT
  368. ---help---
  369. This enables detection, tunings and quirks for AMD processors
  370. You need this enabled if you want your kernel to run on an
  371. AMD CPU. Disabling this option on other types of CPUs
  372. makes the kernel a tiny bit smaller. Disabling it on an AMD
  373. CPU might render the kernel unbootable.
  374. If unsure, say N.
  375. config CPU_SUP_CENTAUR
  376. default y
  377. bool "Support Centaur processors" if PROCESSOR_SELECT
  378. ---help---
  379. This enables detection, tunings and quirks for Centaur processors
  380. You need this enabled if you want your kernel to run on a
  381. Centaur CPU. Disabling this option on other types of CPUs
  382. makes the kernel a tiny bit smaller. Disabling it on a Centaur
  383. CPU might render the kernel unbootable.
  384. If unsure, say N.
  385. config CPU_SUP_TRANSMETA_32
  386. default y
  387. bool "Support Transmeta processors" if PROCESSOR_SELECT
  388. depends on !64BIT
  389. ---help---
  390. This enables detection, tunings and quirks for Transmeta processors
  391. You need this enabled if you want your kernel to run on a
  392. Transmeta CPU. Disabling this option on other types of CPUs
  393. makes the kernel a tiny bit smaller. Disabling it on a Transmeta
  394. CPU might render the kernel unbootable.
  395. If unsure, say N.
  396. config CPU_SUP_UMC_32
  397. default y
  398. bool "Support UMC processors" if PROCESSOR_SELECT
  399. depends on M486 || (EXPERT && !64BIT)
  400. ---help---
  401. This enables detection, tunings and quirks for UMC processors
  402. You need this enabled if you want your kernel to run on a
  403. UMC CPU. Disabling this option on other types of CPUs
  404. makes the kernel a tiny bit smaller. Disabling it on a UMC
  405. CPU might render the kernel unbootable.
  406. If unsure, say N.