Kconfig.cpu 15 KB

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