Kconfig 17 KB

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