boot-options.txt 12 KB

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