1- ACPI Debug Output
1+ .. SPDX-License-Identifier: GPL-2.0
22
3+ =================
4+ ACPI Debug Output
5+ =================
36
47The ACPI CA, the Linux ACPI core, and some ACPI drivers can generate debug
58output. This document describes how to use this facility.
69
710Compile-time configuration
8- --------------------------
11+ ==========================
912
1013ACPI debug output is globally enabled by CONFIG_ACPI_DEBUG. If this config
1114option is turned off, the debug messages are not even built into the
1215kernel.
1316
1417Boot- and run-time configuration
15- --------------------------------
18+ ================================
1619
1720When CONFIG_ACPI_DEBUG=y, you can select the component and level of messages
1821you're interested in. At boot-time, use the acpi.debug_layer and
@@ -21,7 +24,7 @@ debug_layer and debug_level files in /sys/module/acpi/parameters/ to control
2124the debug messages.
2225
2326debug_layer (component)
24- -----------------------
27+ =======================
2528
2629The "debug_layer" is a mask that selects components of interest, e.g., a
2730specific driver or part of the ACPI interpreter. To build the debug_layer
@@ -33,7 +36,7 @@ to /sys/module/acpi/parameters/debug_layer.
3336
3437The possible components are defined in include/acpi/acoutput.h and
3538include/acpi/acpi_drivers.h. Reading /sys/module/acpi/parameters/debug_layer
36- shows the supported mask values, currently these:
39+ shows the supported mask values, currently these::
3740
3841 ACPI_UTILITIES 0x00000001
3942 ACPI_HARDWARE 0x00000002
@@ -65,7 +68,7 @@ shows the supported mask values, currently these:
6568 ACPI_PROCESSOR_COMPONENT 0x20000000
6669
6770debug_level
68- -----------
71+ ===========
6972
7073The "debug_level" is a mask that selects different types of messages, e.g.,
7174those related to initialization, method execution, informational messages, etc.
@@ -81,7 +84,7 @@ to /sys/module/acpi/parameters/debug_level.
8184
8285The possible levels are defined in include/acpi/acoutput.h. Reading
8386/sys/module/acpi/parameters/debug_level shows the supported mask values,
84- currently these:
87+ currently these::
8588
8689 ACPI_LV_INIT 0x00000001
8790 ACPI_LV_DEBUG_OBJECT 0x00000002
@@ -113,9 +116,9 @@ currently these:
113116 ACPI_LV_EVENTS 0x80000000
114117
115118Examples
116- --------
119+ ========
117120
118- For example, drivers/acpi/bus.c contains this:
121+ For example, drivers/acpi/bus.c contains this::
119122
120123 #define _COMPONENT ACPI_BUS_COMPONENT
121124 ...
@@ -127,22 +130,22 @@ statement uses ACPI_DB_INFO, which is macro based on the ACPI_LV_INFO
127130definition.)
128131
129132Enable all AML "Debug" output (stores to the Debug object while interpreting
130- AML) during boot:
133+ AML) during boot::
131134
132135 acpi.debug_layer=0xffffffff acpi.debug_level=0x2
133136
134- Enable PCI and PCI interrupt routing debug messages:
137+ Enable PCI and PCI interrupt routing debug messages::
135138
136139 acpi.debug_layer=0x400000 acpi.debug_level=0x4
137140
138- Enable all ACPI hardware-related messages:
141+ Enable all ACPI hardware-related messages::
139142
140143 acpi.debug_layer=0x2 acpi.debug_level=0xffffffff
141144
142- Enable all ACPI_DB_INFO messages after boot:
145+ Enable all ACPI_DB_INFO messages after boot::
143146
144147 # echo 0x4 > /sys/module/acpi/parameters/debug_level
145148
146- Show all valid component values:
149+ Show all valid component values::
147150
148151 # cat /sys/module/acpi/parameters/debug_layer
0 commit comments