Kconfig.cpu 9.2 KB

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