boot-options.txt 12 KB

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