boot-options.txt 11 KB

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