Kconfig 18 KB

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