Kconfig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see Documentation/kbuild/kconfig-language.txt.
  4. #
  5. # Note: ISA is disabled and will hopefully never be enabled.
  6. # If you managed to buy an ISA x86-64 box you'll have to fix all the
  7. # ISA drivers you need yourself.
  8. #
  9. mainmenu "Linux Kernel Configuration"
  10. config X86_64
  11. bool
  12. default y
  13. help
  14. Port to the x86-64 architecture. x86-64 is a 64-bit extension to the
  15. classical 32-bit x86 architecture. For details see
  16. <http://www.x86-64.org/>.
  17. config 64BIT
  18. def_bool y
  19. config X86
  20. bool
  21. default y
  22. config ZONE_DMA32
  23. bool
  24. default y
  25. config LOCKDEP_SUPPORT
  26. bool
  27. default y
  28. config STACKTRACE_SUPPORT
  29. bool
  30. default y
  31. config SEMAPHORE_SLEEPERS
  32. bool
  33. default y
  34. config MMU
  35. bool
  36. default y
  37. config ISA
  38. bool
  39. config SBUS
  40. bool
  41. config RWSEM_GENERIC_SPINLOCK
  42. bool
  43. default y
  44. config RWSEM_XCHGADD_ALGORITHM
  45. bool
  46. config GENERIC_HWEIGHT
  47. bool
  48. default y
  49. config GENERIC_CALIBRATE_DELAY
  50. bool
  51. default y
  52. config X86_CMPXCHG
  53. bool
  54. default y
  55. config EARLY_PRINTK
  56. bool
  57. default y
  58. config GENERIC_ISA_DMA
  59. bool
  60. default y
  61. config GENERIC_IOMAP
  62. bool
  63. default y
  64. config ARCH_MAY_HAVE_PC_FDC
  65. bool
  66. default y
  67. config DMI
  68. bool
  69. default y
  70. config AUDIT_ARCH
  71. bool
  72. default y
  73. source "init/Kconfig"
  74. menu "Processor type and features"
  75. choice
  76. prompt "Subarchitecture Type"
  77. default X86_PC
  78. config X86_PC
  79. bool "PC-compatible"
  80. help
  81. Choose this option if your computer is a standard PC or compatible.
  82. config X86_VSMP
  83. bool "Support for ScaleMP vSMP"
  84. help
  85. Support for ScaleMP vSMP systems. Say 'Y' here if this kernel is
  86. supposed to run on these EM64T-based machines. Only choose this option
  87. if you have one of these machines.
  88. endchoice
  89. choice
  90. prompt "Processor family"
  91. default MK8
  92. config MK8
  93. bool "AMD-Opteron/Athlon64"
  94. help
  95. Optimize for AMD Opteron/Athlon64/Hammer/K8 CPUs.
  96. config MPSC
  97. bool "Intel EM64T"
  98. help
  99. Optimize for Intel Pentium 4 and Xeon CPUs with Intel
  100. Extended Memory 64 Technology(EM64T). For details see
  101. <http://www.intel.com/technology/64bitextensions/>.
  102. config GENERIC_CPU
  103. bool "Generic-x86-64"
  104. help
  105. Generic x86-64 CPU.
  106. endchoice
  107. #
  108. # Define implied options from the CPU selection here
  109. #
  110. config X86_L1_CACHE_BYTES
  111. int
  112. default "128" if GENERIC_CPU || MPSC
  113. default "64" if MK8
  114. config X86_L1_CACHE_SHIFT
  115. int
  116. default "7" if GENERIC_CPU || MPSC
  117. default "6" if MK8
  118. config X86_INTERNODE_CACHE_BYTES
  119. int
  120. default "4096" if X86_VSMP
  121. default X86_L1_CACHE_BYTES if !X86_VSMP
  122. config X86_TSC
  123. bool
  124. default y
  125. config X86_GOOD_APIC
  126. bool
  127. default y
  128. config MICROCODE
  129. tristate "/dev/cpu/microcode - Intel CPU microcode support"
  130. ---help---
  131. If you say Y here the 'File systems' section, you will be
  132. able to update the microcode on Intel processors. You will
  133. obviously need the actual microcode binary data itself which is
  134. not shipped with the Linux kernel.
  135. For latest news and information on obtaining all the required
  136. ingredients for this driver, check:
  137. <http://www.urbanmyth.org/microcode/>.
  138. To compile this driver as a module, choose M here: the
  139. module will be called microcode.
  140. If you use modprobe or kmod you may also want to add the line
  141. 'alias char-major-10-184 microcode' to your /etc/modules.conf file.
  142. config X86_MSR
  143. tristate "/dev/cpu/*/msr - Model-specific register support"
  144. help
  145. This device gives privileged processes access to the x86
  146. Model-Specific Registers (MSRs). It is a character device with
  147. major 202 and minors 0 to 31 for /dev/cpu/0/msr to /dev/cpu/31/msr.
  148. MSR accesses are directed to a specific CPU on multi-processor
  149. systems.
  150. config X86_CPUID
  151. tristate "/dev/cpu/*/cpuid - CPU information support"
  152. help
  153. This device gives processes access to the x86 CPUID instruction to
  154. be executed on a specific processor. It is a character device
  155. with major 203 and minors 0 to 31 for /dev/cpu/0/cpuid to
  156. /dev/cpu/31/cpuid.
  157. config X86_HT
  158. bool
  159. depends on SMP && !MK8
  160. default y
  161. config MATH_EMULATION
  162. bool
  163. config MCA
  164. bool
  165. config EISA
  166. bool
  167. config X86_IO_APIC
  168. bool
  169. default y
  170. config X86_LOCAL_APIC
  171. bool
  172. default y
  173. config MTRR
  174. bool "MTRR (Memory Type Range Register) support"
  175. ---help---
  176. On Intel P6 family processors (Pentium Pro, Pentium II and later)
  177. the Memory Type Range Registers (MTRRs) may be used to control
  178. processor access to memory ranges. This is most useful if you have
  179. a video (VGA) card on a PCI or AGP bus. Enabling write-combining
  180. allows bus write transfers to be combined into a larger transfer
  181. before bursting over the PCI/AGP bus. This can increase performance
  182. of image write operations 2.5 times or more. Saying Y here creates a
  183. /proc/mtrr file which may be used to manipulate your processor's
  184. MTRRs. Typically the X server should use this.
  185. This code has a reasonably generic interface so that similar
  186. control registers on other processors can be easily supported
  187. as well.
  188. Saying Y here also fixes a problem with buggy SMP BIOSes which only
  189. set the MTRRs for the boot CPU and not for the secondary CPUs. This
  190. can lead to all sorts of problems, so it's good to say Y here.
  191. Just say Y here, all x86-64 machines support MTRRs.
  192. See <file:Documentation/mtrr.txt> for more information.
  193. config SMP
  194. bool "Symmetric multi-processing support"
  195. ---help---
  196. This enables support for systems with more than one CPU. If you have
  197. a system with only one CPU, like most personal computers, say N. If
  198. you have a system with more than one CPU, say Y.
  199. If you say N here, the kernel will run on single and multiprocessor
  200. machines, but will use only one CPU of a multiprocessor machine. If
  201. you say Y here, the kernel will run on many, but not all,
  202. singleprocessor machines. On a singleprocessor machine, the kernel
  203. will run faster if you say N here.
  204. If you don't know what to do here, say N.
  205. config SCHED_SMT
  206. bool "SMT (Hyperthreading) scheduler support"
  207. depends on SMP
  208. default n
  209. help
  210. SMT scheduler support improves the CPU scheduler's decision making
  211. when dealing with Intel Pentium 4 chips with HyperThreading at a
  212. cost of slightly increased overhead in some places. If unsure say
  213. N here.
  214. config SCHED_MC
  215. bool "Multi-core scheduler support"
  216. depends on SMP
  217. default y
  218. help
  219. Multi-core scheduler support improves the CPU scheduler's decision
  220. making when dealing with multi-core CPU chips at a cost of slightly
  221. increased overhead in some places. If unsure say N here.
  222. source "kernel/Kconfig.preempt"
  223. config NUMA
  224. bool "Non Uniform Memory Access (NUMA) Support"
  225. depends on SMP
  226. help
  227. Enable NUMA (Non Uniform Memory Access) support. The kernel
  228. will try to allocate memory used by a CPU on the local memory
  229. controller of the CPU and add some more NUMA awareness to the kernel.
  230. This code is recommended on all multiprocessor Opteron systems.
  231. If the system is EM64T, you should say N unless your system is EM64T
  232. NUMA.
  233. config K8_NUMA
  234. bool "Old style AMD Opteron NUMA detection"
  235. depends on NUMA
  236. default y
  237. help
  238. Enable K8 NUMA node topology detection. You should say Y here if
  239. you have a multi processor AMD K8 system. This uses an old
  240. method to read the NUMA configurtion directly from the builtin
  241. Northbridge of Opteron. It is recommended to use X86_64_ACPI_NUMA
  242. instead, which also takes priority if both are compiled in.
  243. config NODES_SHIFT
  244. int
  245. default "6"
  246. depends on NEED_MULTIPLE_NODES
  247. # Dummy CONFIG option to select ACPI_NUMA from drivers/acpi/Kconfig.
  248. config X86_64_ACPI_NUMA
  249. bool "ACPI NUMA detection"
  250. depends on NUMA
  251. select ACPI
  252. select PCI
  253. select ACPI_NUMA
  254. default y
  255. help
  256. Enable ACPI SRAT based node topology detection.
  257. config NUMA_EMU
  258. bool "NUMA emulation"
  259. depends on NUMA
  260. help
  261. Enable NUMA emulation. A flat machine will be split
  262. into virtual nodes when booted with "numa=fake=N", where N is the
  263. number of nodes. This is only useful for debugging.
  264. config ARCH_DISCONTIGMEM_ENABLE
  265. bool
  266. depends on NUMA
  267. default y
  268. config ARCH_DISCONTIGMEM_ENABLE
  269. def_bool y
  270. depends on NUMA
  271. config ARCH_DISCONTIGMEM_DEFAULT
  272. def_bool y
  273. depends on NUMA
  274. config ARCH_SPARSEMEM_ENABLE
  275. def_bool y
  276. depends on (NUMA || EXPERIMENTAL)
  277. config ARCH_MEMORY_PROBE
  278. def_bool y
  279. depends on MEMORY_HOTPLUG
  280. config ARCH_FLATMEM_ENABLE
  281. def_bool y
  282. depends on !NUMA
  283. source "mm/Kconfig"
  284. config HAVE_ARCH_EARLY_PFN_TO_NID
  285. def_bool y
  286. depends on NUMA
  287. config OUT_OF_LINE_PFN_TO_PAGE
  288. def_bool y
  289. depends on DISCONTIGMEM
  290. config NR_CPUS
  291. int "Maximum number of CPUs (2-256)"
  292. range 2 255
  293. depends on SMP
  294. default "8"
  295. help
  296. This allows you to specify the maximum number of CPUs which this
  297. kernel will support. Current maximum is 256 CPUs due to
  298. APIC addressing limits. Less depending on the hardware.
  299. This is purely to save memory - each supported CPU requires
  300. memory in the static kernel configuration.
  301. config HOTPLUG_CPU
  302. bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
  303. depends on SMP && HOTPLUG && EXPERIMENTAL
  304. help
  305. Say Y here to experiment with turning CPUs off and on. CPUs
  306. can be controlled through /sys/devices/system/cpu/cpu#.
  307. Say N if you want to disable CPU hotplug.
  308. config ARCH_ENABLE_MEMORY_HOTPLUG
  309. def_bool y
  310. config HPET_TIMER
  311. bool
  312. default y
  313. help
  314. Use the IA-PC HPET (High Precision Event Timer) to manage
  315. time in preference to the PIT and RTC, if a HPET is
  316. present. The HPET provides a stable time base on SMP
  317. systems, unlike the TSC, but it is more expensive to access,
  318. as it is off-chip. You can find the HPET spec at
  319. <http://www.intel.com/hardwaredesign/hpetspec.htm>.
  320. config HPET_EMULATE_RTC
  321. bool "Provide RTC interrupt"
  322. depends on HPET_TIMER && RTC=y
  323. # Mark as embedded because too many people got it wrong.
  324. # The code disables itself when not needed.
  325. config IOMMU
  326. bool "IOMMU support" if EMBEDDED
  327. default y
  328. select SWIOTLB
  329. select AGP
  330. depends on PCI
  331. help
  332. Support for full DMA access of devices with 32bit memory access only
  333. on systems with more than 3GB. This is usually needed for USB,
  334. sound, many IDE/SATA chipsets and some other devices.
  335. Provides a driver for the AMD Athlon64/Opteron/Turion/Sempron GART
  336. based IOMMU and a software bounce buffer based IOMMU used on Intel
  337. systems and as fallback.
  338. The code is only active when needed (enough memory and limited
  339. device) unless CONFIG_IOMMU_DEBUG or iommu=force is specified
  340. too.
  341. config CALGARY_IOMMU
  342. bool "IBM Calgary IOMMU support"
  343. default y
  344. select SWIOTLB
  345. depends on PCI && EXPERIMENTAL
  346. help
  347. Support for hardware IOMMUs in IBM's xSeries x366 and x460
  348. systems. Needed to run systems with more than 3GB of memory
  349. properly with 32-bit PCI devices that do not support DAC
  350. (Double Address Cycle). Calgary also supports bus level
  351. isolation, where all DMAs pass through the IOMMU. This
  352. prevents them from going anywhere except their intended
  353. destination. This catches hard-to-find kernel bugs and
  354. mis-behaving drivers and devices that do not use the DMA-API
  355. properly to set up their DMA buffers. The IOMMU can be
  356. turned off at boot time with the iommu=off parameter.
  357. Normally the kernel will make the right choice by itself.
  358. If unsure, say Y.
  359. # need this always selected by IOMMU for the VIA workaround
  360. config SWIOTLB
  361. bool
  362. config X86_MCE
  363. bool "Machine check support" if EMBEDDED
  364. default y
  365. help
  366. Include a machine check error handler to report hardware errors.
  367. This version will require the mcelog utility to decode some
  368. machine check error logs. See
  369. ftp://ftp.x86-64.org/pub/linux/tools/mcelog
  370. config X86_MCE_INTEL
  371. bool "Intel MCE features"
  372. depends on X86_MCE && X86_LOCAL_APIC
  373. default y
  374. help
  375. Additional support for intel specific MCE features such as
  376. the thermal monitor.
  377. config X86_MCE_AMD
  378. bool "AMD MCE features"
  379. depends on X86_MCE && X86_LOCAL_APIC
  380. default y
  381. help
  382. Additional support for AMD specific MCE features such as
  383. the DRAM Error Threshold.
  384. config KEXEC
  385. bool "kexec system call (EXPERIMENTAL)"
  386. depends on EXPERIMENTAL
  387. help
  388. kexec is a system call that implements the ability to shutdown your
  389. current kernel, and to start another kernel. It is like a reboot
  390. but it is independent of the system firmware. And like a reboot
  391. you can start any kernel with it, not just Linux.
  392. The name comes from the similarity to the exec system call.
  393. It is an ongoing process to be certain the hardware in a machine
  394. is properly shutdown, so do not be surprised if this code does not
  395. initially work for you. It may help to enable device hotplugging
  396. support. As of this writing the exact hardware interface is
  397. strongly in flux, so no good recommendation can be made.
  398. config CRASH_DUMP
  399. bool "kernel crash dumps (EXPERIMENTAL)"
  400. depends on EXPERIMENTAL
  401. help
  402. Generate crash dump after being started by kexec.
  403. config PHYSICAL_START
  404. hex "Physical address where the kernel is loaded" if (EMBEDDED || CRASH_DUMP)
  405. default "0x1000000" if CRASH_DUMP
  406. default "0x200000"
  407. help
  408. This gives the physical address where the kernel is loaded. Normally
  409. for regular kernels this value is 0x200000 (2MB). But in the case
  410. of kexec on panic the fail safe kernel needs to run at a different
  411. address than the panic-ed kernel. This option is used to set the load
  412. address for kernels used to capture crash dump on being kexec'ed
  413. after panic. The default value for crash dump kernels is
  414. 0x1000000 (16MB). This can also be set based on the "X" value as
  415. specified in the "crashkernel=YM@XM" command line boot parameter
  416. passed to the panic-ed kernel. Typically this parameter is set as
  417. crashkernel=64M@16M. Please take a look at
  418. Documentation/kdump/kdump.txt for more details about crash dumps.
  419. Don't change this unless you know what you are doing.
  420. config SECCOMP
  421. bool "Enable seccomp to safely compute untrusted bytecode"
  422. depends on PROC_FS
  423. default y
  424. help
  425. This kernel feature is useful for number crunching applications
  426. that may need to compute untrusted bytecode during their
  427. execution. By using pipes or other transports made available to
  428. the process as file descriptors supporting the read/write
  429. syscalls, it's possible to isolate those applications in
  430. their own address space using seccomp. Once seccomp is
  431. enabled via /proc/<pid>/seccomp, it cannot be disabled
  432. and the task is only allowed to execute a few safe syscalls
  433. defined by each seccomp mode.
  434. If unsure, say Y. Only embedded should say N here.
  435. source kernel/Kconfig.hz
  436. config REORDER
  437. bool "Function reordering"
  438. default n
  439. help
  440. This option enables the toolchain to reorder functions for a more
  441. optimal TLB usage. If you have pretty much any version of binutils,
  442. this can increase your kernel build time by roughly one minute.
  443. config K8_NB
  444. def_bool y
  445. depends on AGP_AMD64 || IOMMU || (PCI && NUMA)
  446. endmenu
  447. #
  448. # Use the generic interrupt handling code in kernel/irq/:
  449. #
  450. config GENERIC_HARDIRQS
  451. bool
  452. default y
  453. config GENERIC_IRQ_PROBE
  454. bool
  455. default y
  456. # we have no ISA slots, but we do have ISA-style DMA.
  457. config ISA_DMA_API
  458. bool
  459. default y
  460. config GENERIC_PENDING_IRQ
  461. bool
  462. depends on GENERIC_HARDIRQS && SMP
  463. default y
  464. menu "Power management options"
  465. source kernel/power/Kconfig
  466. source "drivers/acpi/Kconfig"
  467. source "arch/x86_64/kernel/cpufreq/Kconfig"
  468. endmenu
  469. menu "Bus options (PCI etc.)"
  470. config PCI
  471. bool "PCI support"
  472. # x86-64 doesn't support PCI BIOS access from long mode so always go direct.
  473. config PCI_DIRECT
  474. bool
  475. depends on PCI
  476. default y
  477. config PCI_MMCONFIG
  478. bool "Support mmconfig PCI config space access"
  479. depends on PCI && ACPI
  480. source "drivers/pci/pcie/Kconfig"
  481. source "drivers/pci/Kconfig"
  482. source "drivers/pcmcia/Kconfig"
  483. source "drivers/pci/hotplug/Kconfig"
  484. endmenu
  485. menu "Executable file formats / Emulations"
  486. source "fs/Kconfig.binfmt"
  487. config IA32_EMULATION
  488. bool "IA32 Emulation"
  489. help
  490. Include code to run 32-bit programs under a 64-bit kernel. You should likely
  491. turn this on, unless you're 100% sure that you don't have any 32-bit programs
  492. left.
  493. config IA32_AOUT
  494. tristate "IA32 a.out support"
  495. depends on IA32_EMULATION
  496. help
  497. Support old a.out binaries in the 32bit emulation.
  498. config COMPAT
  499. bool
  500. depends on IA32_EMULATION
  501. default y
  502. config SYSVIPC_COMPAT
  503. bool
  504. depends on COMPAT && SYSVIPC
  505. default y
  506. endmenu
  507. source "net/Kconfig"
  508. source drivers/Kconfig
  509. source "drivers/firmware/Kconfig"
  510. source fs/Kconfig
  511. menu "Instrumentation Support"
  512. depends on EXPERIMENTAL
  513. source "arch/x86_64/oprofile/Kconfig"
  514. config KPROBES
  515. bool "Kprobes (EXPERIMENTAL)"
  516. depends on EXPERIMENTAL && MODULES
  517. help
  518. Kprobes allows you to trap at almost any kernel address and
  519. execute a callback function. register_kprobe() establishes
  520. a probepoint and specifies the callback. Kprobes is useful
  521. for kernel debugging, non-intrusive instrumentation and testing.
  522. If in doubt, say "N".
  523. endmenu
  524. source "arch/x86_64/Kconfig.debug"
  525. source "security/Kconfig"
  526. source "crypto/Kconfig"
  527. source "lib/Kconfig"