boot-options.txt 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. AMD64 specific boot options
  2. There are many others (usually documented in driver documentation), but
  3. only the AMD64 specific ones are listed here.
  4. Machine check
  5. Please see Documentation/x86/x86_64/machinecheck for sysfs runtime tunables.
  6. mce=off
  7. Disable machine check
  8. mce=no_cmci
  9. Disable CMCI(Corrected Machine Check Interrupt) that
  10. Intel processor supports. Usually this disablement is
  11. not recommended, but it might be handy if your hardware
  12. is misbehaving.
  13. Note that you'll get more problems without CMCI than with
  14. due to the shared banks, i.e. you might get duplicated
  15. error logs.
  16. mce=dont_log_ce
  17. Don't make logs for corrected errors. All events reported
  18. as corrected are silently cleared by OS.
  19. This option will be useful if you have no interest in any
  20. of corrected errors.
  21. mce=ignore_ce
  22. Disable features for corrected errors, e.g. polling timer
  23. and CMCI. All events reported as corrected are not cleared
  24. by OS and remained in its error banks.
  25. Usually this disablement is not recommended, however if
  26. there is an agent checking/clearing corrected errors
  27. (e.g. BIOS or hardware monitoring applications), conflicting
  28. with OS's error handling, and you cannot deactivate the agent,
  29. then this option will be a help.
  30. mce=bootlog
  31. Enable logging of machine checks left over from booting.
  32. Disabled by default on AMD because some BIOS leave bogus ones.
  33. If your BIOS doesn't do that it's a good idea to enable though
  34. to make sure you log even machine check events that result
  35. in a reboot. On Intel systems it is enabled by default.
  36. mce=nobootlog
  37. Disable boot machine check logging.
  38. mce=tolerancelevel[,monarchtimeout] (number,number)
  39. tolerance levels:
  40. 0: always panic on uncorrected errors, log corrected errors
  41. 1: panic or SIGBUS on uncorrected errors, log corrected errors
  42. 2: SIGBUS or log uncorrected errors, log corrected errors
  43. 3: never panic or SIGBUS, log all errors (for testing only)
  44. Default is 1
  45. Can be also set using sysfs which is preferable.
  46. monarchtimeout:
  47. Sets the time in us to wait for other CPUs on machine checks. 0
  48. to disable.
  49. mce=bios_cmci_threshold
  50. Don't overwrite the bios-set CMCI threshold. This boot option
  51. prevents Linux from overwriting the CMCI threshold set by the
  52. bios. Without this option, Linux always sets the CMCI
  53. threshold to 1. Enabling this may make memory predictive failure
  54. analysis less effective if the bios sets thresholds for memory
  55. errors since we will not see details for all errors.
  56. nomce (for compatibility with i386): same as mce=off
  57. Everything else is in sysfs now.
  58. APICs
  59. apic Use IO-APIC. Default
  60. noapic Don't use the IO-APIC.
  61. disableapic Don't use the local APIC
  62. nolapic Don't use the local APIC (alias for i386 compatibility)
  63. pirq=... See Documentation/x86/i386/IO-APIC.txt
  64. noapictimer Don't set up the APIC timer
  65. no_timer_check Don't check the IO-APIC timer. This can work around
  66. problems with incorrect timer initialization on some boards.
  67. apicmaintimer Run time keeping from the local APIC timer instead
  68. of using the PIT/HPET interrupt for this. This is useful
  69. when the PIT/HPET interrupts are unreliable.
  70. noapicmaintimer Don't do time keeping using the APIC timer.
  71. Useful when this option was auto selected, but doesn't work.
  72. apicpmtimer
  73. Do APIC timer calibration using the pmtimer. Implies
  74. apicmaintimer. Useful when your PIT timer is totally
  75. broken.
  76. Early Console
  77. syntax: earlyprintk=vga
  78. earlyprintk=serial[,ttySn[,baudrate]]
  79. The early console is useful when the kernel crashes before the
  80. normal console is initialized. It is not enabled by
  81. default because it has some cosmetic problems.
  82. Append ,keep to not disable it when the real console takes over.
  83. Only vga or serial at a time, not both.
  84. Currently only ttyS0 and ttyS1 are supported.
  85. Interaction with the standard serial driver is not very good.
  86. The VGA output is eventually overwritten by the real console.
  87. Timing
  88. notsc
  89. Don't use the CPU time stamp counter to read the wall time.
  90. This can be used to work around timing problems on multiprocessor systems
  91. with not properly synchronized CPUs.
  92. nohpet
  93. Don't use the HPET timer.
  94. Idle loop
  95. idle=poll
  96. Don't do power saving in the idle loop using HLT, but poll for rescheduling
  97. event. This will make the CPUs eat a lot more power, but may be useful
  98. to get slightly better performance in multiprocessor benchmarks. It also
  99. makes some profiling using performance counters more accurate.
  100. Please note that on systems with MONITOR/MWAIT support (like Intel EM64T
  101. CPUs) this option has no performance advantage over the normal idle loop.
  102. It may also interact badly with hyperthreading.
  103. Rebooting
  104. reboot=b[ios] | t[riple] | k[bd] | a[cpi] | e[fi] [, [w]arm | [c]old]
  105. bios Use the CPU reboot vector for warm reset
  106. warm Don't set the cold reboot flag
  107. cold Set the cold reboot flag
  108. triple Force a triple fault (init)
  109. kbd Use the keyboard controller. cold reset (default)
  110. acpi Use the ACPI RESET_REG in the FADT. If ACPI is not configured or the
  111. ACPI reset does not work, the reboot path attempts the reset using
  112. the keyboard controller.
  113. efi Use efi reset_system runtime service. If EFI is not configured or the
  114. EFI reset does not work, the reboot path attempts the reset using
  115. the keyboard controller.
  116. Using warm reset will be much faster especially on big memory
  117. systems because the BIOS will not go through the memory check.
  118. Disadvantage is that not all hardware will be completely reinitialized
  119. on reboot so there may be boot problems on some systems.
  120. reboot=force
  121. Don't stop other CPUs on reboot. This can make reboot more reliable
  122. in some cases.
  123. Non Executable Mappings
  124. noexec=on|off
  125. on Enable(default)
  126. off Disable
  127. SMP
  128. additional_cpus=NUM Allow NUM more CPUs for hotplug
  129. (defaults are specified by the BIOS, see Documentation/x86/x86_64/cpu-hotplug-spec)
  130. NUMA
  131. numa=off Only set up a single NUMA node spanning all memory.
  132. numa=noacpi Don't parse the SRAT table for NUMA setup
  133. numa=fake=<size>[MG]
  134. If given as a memory unit, fills all system RAM with nodes of
  135. size interleaved over physical nodes.
  136. numa=fake=<N>
  137. If given as an integer, fills all system RAM with N fake nodes
  138. interleaved over physical nodes.
  139. ACPI
  140. acpi=off Don't enable ACPI
  141. acpi=ht Use ACPI boot table parsing, but don't enable ACPI
  142. interpreter
  143. acpi=force Force ACPI on (currently not needed)
  144. acpi=strict Disable out of spec ACPI workarounds.
  145. acpi_sci={edge,level,high,low} Set up ACPI SCI interrupt.
  146. acpi=noirq Don't route interrupts
  147. PCI
  148. pci=off Don't use PCI
  149. pci=conf1 Use conf1 access.
  150. pci=conf2 Use conf2 access.
  151. pci=rom Assign ROMs.
  152. pci=assign-busses Assign busses
  153. pci=irqmask=MASK Set PCI interrupt mask to MASK
  154. pci=lastbus=NUMBER Scan up to NUMBER busses, no matter what the mptable says.
  155. pci=noacpi Don't use ACPI to set up PCI interrupt routing.
  156. IOMMU (input/output memory management unit)
  157. Currently four x86-64 PCI-DMA mapping implementations exist:
  158. 1. <arch/x86_64/kernel/pci-nommu.c>: use no hardware/software IOMMU at all
  159. (e.g. because you have < 3 GB memory).
  160. Kernel boot message: "PCI-DMA: Disabling IOMMU"
  161. 2. <arch/x86/kernel/amd_gart_64.c>: AMD GART based hardware IOMMU.
  162. Kernel boot message: "PCI-DMA: using GART IOMMU"
  163. 3. <arch/x86_64/kernel/pci-swiotlb.c> : Software IOMMU implementation. Used
  164. e.g. if there is no hardware IOMMU in the system and it is need because
  165. you have >3GB memory or told the kernel to us it (iommu=soft))
  166. Kernel boot message: "PCI-DMA: Using software bounce buffering
  167. for IO (SWIOTLB)"
  168. 4. <arch/x86_64/pci-calgary.c> : IBM Calgary hardware IOMMU. Used in IBM
  169. pSeries and xSeries servers. This hardware IOMMU supports DMA address
  170. mapping with memory protection, etc.
  171. Kernel boot message: "PCI-DMA: Using Calgary IOMMU"
  172. iommu=[<size>][,noagp][,off][,force][,noforce][,leak[=<nr_of_leak_pages>]
  173. [,memaper[=<order>]][,merge][,forcesac][,fullflush][,nomerge]
  174. [,noaperture][,calgary]
  175. General iommu options:
  176. off Don't initialize and use any kind of IOMMU.
  177. noforce Don't force hardware IOMMU usage when it is not needed.
  178. (default).
  179. force Force the use of the hardware IOMMU even when it is
  180. not actually needed (e.g. because < 3 GB memory).
  181. soft Use software bounce buffering (SWIOTLB) (default for
  182. Intel machines). This can be used to prevent the usage
  183. of an available hardware IOMMU.
  184. iommu options only relevant to the AMD GART hardware IOMMU:
  185. <size> Set the size of the remapping area in bytes.
  186. allowed Overwrite iommu off workarounds for specific chipsets.
  187. fullflush Flush IOMMU on each allocation (default).
  188. nofullflush Don't use IOMMU fullflush.
  189. leak Turn on simple iommu leak tracing (only when
  190. CONFIG_IOMMU_LEAK is on). Default number of leak pages
  191. is 20.
  192. memaper[=<order>] Allocate an own aperture over RAM with size 32MB<<order.
  193. (default: order=1, i.e. 64MB)
  194. merge Do scatter-gather (SG) merging. Implies "force"
  195. (experimental).
  196. nomerge Don't do scatter-gather (SG) merging.
  197. noaperture Ask the IOMMU not to touch the aperture for AGP.
  198. forcesac Force single-address cycle (SAC) mode for masks <40bits
  199. (experimental).
  200. noagp Don't initialize the AGP driver and use full aperture.
  201. allowdac Allow double-address cycle (DAC) mode, i.e. DMA >4GB.
  202. DAC is used with 32-bit PCI to push a 64-bit address in
  203. two cycles. When off all DMA over >4GB is forced through
  204. an IOMMU or software bounce buffering.
  205. nodac Forbid DAC mode, i.e. DMA >4GB.
  206. panic Always panic when IOMMU overflows.
  207. calgary Use the Calgary IOMMU if it is available
  208. iommu options only relevant to the software bounce buffering (SWIOTLB) IOMMU
  209. implementation:
  210. swiotlb=<pages>[,force]
  211. <pages> Prereserve that many 128K pages for the software IO
  212. bounce buffering.
  213. force Force all IO through the software TLB.
  214. Settings for the IBM Calgary hardware IOMMU currently found in IBM
  215. pSeries and xSeries machines:
  216. calgary=[64k,128k,256k,512k,1M,2M,4M,8M]
  217. calgary=[translate_empty_slots]
  218. calgary=[disable=<PCI bus number>]
  219. panic Always panic when IOMMU overflows
  220. 64k,...,8M - Set the size of each PCI slot's translation table
  221. when using the Calgary IOMMU. This is the size of the translation
  222. table itself in main memory. The smallest table, 64k, covers an IO
  223. space of 32MB; the largest, 8MB table, can cover an IO space of
  224. 4GB. Normally the kernel will make the right choice by itself.
  225. translate_empty_slots - Enable translation even on slots that have
  226. no devices attached to them, in case a device will be hotplugged
  227. in the future.
  228. disable=<PCI bus number> - Disable translation on a given PHB. For
  229. example, the built-in graphics adapter resides on the first bridge
  230. (PCI bus number 0); if translation (isolation) is enabled on this
  231. bridge, X servers that access the hardware directly from user
  232. space might stop working. Use this option if you have devices that
  233. are accessed from userspace directly on some PCI host bridge.
  234. Debugging
  235. kstack=N Print N words from the kernel stack in oops dumps.
  236. pagefaulttrace Dump all page faults. Only useful for extreme debugging
  237. and will create a lot of output.
  238. call_trace=[old|both|newfallback|new]
  239. old: use old inexact backtracer
  240. new: use new exact dwarf2 unwinder
  241. both: print entries from both
  242. newfallback: use new unwinder but fall back to old if it gets
  243. stuck (default)
  244. Miscellaneous
  245. nogbpages
  246. Do not use GB pages for kernel direct mappings.
  247. gbpages
  248. Use GB pages for kernel direct mappings.