Kconfig 18 KB

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