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