Kconfig.cpu 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. # Put here option for CPU selection and depending optimization
  2. if !X86_ELAN
  3. choice
  4. prompt "Processor family"
  5. default M686
  6. config M386
  7. bool "386"
  8. ---help---
  9. This is the processor type of your CPU. This information is used for
  10. optimizing purposes. In order to compile a kernel that can run on
  11. all x86 CPU types (albeit not optimally fast), you can specify
  12. "386" here.
  13. The kernel will not necessarily run on earlier architectures than
  14. the one you have chosen, e.g. a Pentium optimized kernel will run on
  15. a PPro, but not necessarily on a i486.
  16. Here are the settings recommended for greatest speed:
  17. - "386" for the AMD/Cyrix/Intel 386DX/DXL/SL/SLC/SX, Cyrix/TI
  18. 486DLC/DLC2, UMC 486SX-S and NexGen Nx586. Only "386" kernels
  19. will run on a 386 class machine.
  20. - "486" for the AMD/Cyrix/IBM/Intel 486DX/DX2/DX4 or
  21. SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or U5S.
  22. - "586" for generic Pentium CPUs lacking the TSC
  23. (time stamp counter) register.
  24. - "Pentium-Classic" for the Intel Pentium.
  25. - "Pentium-MMX" for the Intel Pentium MMX.
  26. - "Pentium-Pro" for the Intel Pentium Pro.
  27. - "Pentium-II" for the Intel Pentium II or pre-Coppermine Celeron.
  28. - "Pentium-III" for the Intel Pentium III or Coppermine Celeron.
  29. - "Pentium-4" for the Intel Pentium 4 or P4-based Celeron.
  30. - "K6" for the AMD K6, K6-II and K6-III (aka K6-3D).
  31. - "Athlon" for the AMD K7 family (Athlon/Duron/Thunderbird).
  32. - "Crusoe" for the Transmeta Crusoe series.
  33. - "Efficeon" for the Transmeta Efficeon series.
  34. - "Winchip-C6" for original IDT Winchip.
  35. - "Winchip-2" for IDT Winchip 2.
  36. - "Winchip-2A" 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. If you don't know what to do, choose "386".
  42. config M486
  43. bool "486"
  44. help
  45. Select this for a 486 series processor, either Intel or one of the
  46. compatible processors from AMD, Cyrix, IBM, or Intel. Includes DX,
  47. DX2, and DX4 variants; also SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or
  48. U5S.
  49. config M586
  50. bool "586/K5/5x86/6x86/6x86MX"
  51. help
  52. Select this for an 586 or 686 series processor such as the AMD K5,
  53. the Cyrix 5x86, 6x86 and 6x86MX. This choice does not
  54. assume the RDTSC (Read Time Stamp Counter) instruction.
  55. config M586TSC
  56. bool "Pentium-Classic"
  57. help
  58. Select this for a Pentium Classic processor with the RDTSC (Read
  59. Time Stamp Counter) instruction for benchmarking.
  60. config M586MMX
  61. bool "Pentium-MMX"
  62. help
  63. Select this for a Pentium with the MMX graphics/multimedia
  64. extended instructions.
  65. config M686
  66. bool "Pentium-Pro"
  67. help
  68. Select this for Intel Pentium Pro chips. This enables the use of
  69. Pentium Pro extended instructions, and disables the init-time guard
  70. against the f00f bug found in earlier Pentiums.
  71. config MPENTIUMII
  72. bool "Pentium-II/Celeron(pre-Coppermine)"
  73. help
  74. Select this for Intel chips based on the Pentium-II and
  75. pre-Coppermine Celeron core. This option enables an unaligned
  76. copy optimization, compiles the kernel with optimization flags
  77. tailored for the chip, and applies any applicable Pentium Pro
  78. optimizations.
  79. config MPENTIUMIII
  80. bool "Pentium-III/Celeron(Coppermine)/Pentium-III Xeon"
  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. help
  89. Select this for Intel Pentium M (not Pentium-4 M)
  90. notebook chips.
  91. config MPENTIUM4
  92. bool "Pentium-4/Celeron(P4-based)/Pentium-4 M/Xeon"
  93. help
  94. Select this for Intel Pentium 4 chips. This includes the
  95. Pentium 4, P4-based Celeron and Xeon, and Pentium-4 M
  96. (not Pentium M) chips. This option enables compile flags
  97. optimized for the chip, uses the correct cache shift, and
  98. applies any applicable Pentium III optimizations.
  99. config MK6
  100. bool "K6/K6-II/K6-III"
  101. help
  102. Select this for an AMD K6-family processor. Enables use of
  103. some extended instructions, and passes appropriate optimization
  104. flags to GCC.
  105. config MK7
  106. bool "Athlon/Duron/K7"
  107. help
  108. Select this for an AMD Athlon K7-family processor. Enables use of
  109. some extended instructions, and passes appropriate optimization
  110. flags to GCC.
  111. config MK8
  112. bool "Opteron/Athlon64/Hammer/K8"
  113. help
  114. Select this for an AMD Opteron or Athlon64 Hammer-family processor. Enables
  115. use of some extended instructions, and passes appropriate optimization
  116. flags to GCC.
  117. config MCRUSOE
  118. bool "Crusoe"
  119. help
  120. Select this for a Transmeta Crusoe processor. Treats the processor
  121. like a 586 with TSC, and sets some GCC optimization flags (like a
  122. Pentium Pro with no alignment requirements).
  123. config MEFFICEON
  124. bool "Efficeon"
  125. help
  126. Select this for a Transmeta Efficeon processor.
  127. config MWINCHIPC6
  128. bool "Winchip-C6"
  129. help
  130. Select this for an IDT Winchip C6 chip. Linux and GCC
  131. treat this chip as a 586TSC with some extended instructions
  132. and alignment requirements.
  133. config MWINCHIP2
  134. bool "Winchip-2"
  135. help
  136. Select this for an IDT Winchip-2. Linux and GCC
  137. treat this chip as a 586TSC with some extended instructions
  138. and alignment requirements.
  139. config MWINCHIP3D
  140. bool "Winchip-2A/Winchip-3"
  141. help
  142. Select this for an IDT Winchip-2A or 3. Linux and GCC
  143. treat this chip as a 586TSC with some extended instructions
  144. and alignment reqirements. Also enable out of order memory
  145. stores for this CPU, which can increase performance of some
  146. operations.
  147. config MGEODEGX1
  148. bool "GeodeGX1"
  149. help
  150. Select this for a Geode GX1 (Cyrix MediaGX) chip.
  151. config MGEODE_LX
  152. bool "Geode GX/LX"
  153. help
  154. Select this for AMD Geode GX and LX processors.
  155. config MCYRIXIII
  156. bool "CyrixIII/VIA-C3"
  157. help
  158. Select this for a Cyrix III or C3 chip. Presently Linux and GCC
  159. treat this chip as a generic 586. Whilst the CPU is 686 class,
  160. it lacks the cmov extension which gcc assumes is present when
  161. generating 686 code.
  162. Note that Nehemiah (Model 9) and above will not boot with this
  163. kernel due to them lacking the 3DNow! instructions used in earlier
  164. incarnations of the CPU.
  165. config MVIAC3_2
  166. bool "VIA C3-2 (Nehemiah)"
  167. help
  168. Select this for a VIA C3 "Nehemiah". Selecting this enables usage
  169. of SSE and tells gcc to treat the CPU as a 686.
  170. Note, this kernel will not boot on older (pre model 9) C3s.
  171. endchoice
  172. config X86_GENERIC
  173. bool "Generic x86 support"
  174. help
  175. Instead of just including optimizations for the selected
  176. x86 variant (e.g. PII, Crusoe or Athlon), include some more
  177. generic optimizations as well. This will make the kernel
  178. perform better on x86 CPUs other than that selected.
  179. This is really intended for distributors who need more
  180. generic optimizations.
  181. endif
  182. #
  183. # Define implied options from the CPU selection here
  184. #
  185. config X86_CMPXCHG
  186. bool
  187. depends on !M386
  188. default y
  189. config X86_XADD
  190. bool
  191. depends on !M386
  192. default y
  193. config X86_L1_CACHE_SHIFT
  194. int
  195. default "7" if MPENTIUM4 || X86_GENERIC
  196. default "4" if X86_ELAN || M486 || M386 || MGEODEGX1
  197. default "5" if MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCRUSOE || MEFFICEON || MCYRIXIII || MK6 || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || M586 || MVIAC3_2 || MGEODE_LX
  198. default "6" if MK7 || MK8 || MPENTIUMM
  199. config RWSEM_GENERIC_SPINLOCK
  200. bool
  201. depends on M386
  202. default y
  203. config RWSEM_XCHGADD_ALGORITHM
  204. bool
  205. depends on !M386
  206. default y
  207. config GENERIC_CALIBRATE_DELAY
  208. bool
  209. default y
  210. config X86_PPRO_FENCE
  211. bool
  212. depends on M686 || M586MMX || M586TSC || M586 || M486 || M386 || MGEODEGX1
  213. default y
  214. config X86_F00F_BUG
  215. bool
  216. depends on M586MMX || M586TSC || M586 || M486 || M386
  217. default y
  218. config X86_WP_WORKS_OK
  219. bool
  220. depends on !M386
  221. default y
  222. config X86_INVLPG
  223. bool
  224. depends on !M386
  225. default y
  226. config X86_BSWAP
  227. bool
  228. depends on !M386
  229. default y
  230. config X86_POPAD_OK
  231. bool
  232. depends on !M386
  233. default y
  234. config X86_CMPXCHG64
  235. bool
  236. depends on !M386 && !M486
  237. default y
  238. config X86_ALIGNMENT_16
  239. bool
  240. depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCYRIXIII || X86_ELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1
  241. default y
  242. config X86_GOOD_APIC
  243. bool
  244. depends on MK7 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || MK8 || MEFFICEON
  245. default y
  246. config X86_INTEL_USERCOPY
  247. bool
  248. depends on MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M586MMX || X86_GENERIC || MK8 || MK7 || MEFFICEON
  249. default y
  250. config X86_USE_PPRO_CHECKSUM
  251. bool
  252. depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MK8 || MVIAC3_2 || MEFFICEON || MGEODE_LX
  253. default y
  254. config X86_USE_3DNOW
  255. bool
  256. depends on MCYRIXIII || MK7 || MGEODE_LX
  257. default y
  258. config X86_OOSTORE
  259. bool
  260. depends on (MWINCHIP3D || MWINCHIP2 || MWINCHIPC6) && MTRR
  261. default y
  262. config X86_TSC
  263. bool
  264. depends on (MWINCHIP3D || MWINCHIP2 || MCRUSOE || MEFFICEON || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || MK8 || MVIAC3_2 || MGEODEGX1 || MGEODE_LX) && !X86_NUMAQ
  265. default y