Skip to content

Commit 99ed6bf

Browse files
changbindurafaeljw
authored andcommitted
Documentation: ACPI: move debug.txt to firmware-guide/acpi and convert to reST
This converts the plain text documentation to reStructuredText format and adds it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du <changbin.du@gmail.com> Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 0500004 commit 99ed6bf

2 files changed

Lines changed: 19 additions & 15 deletions

File tree

Documentation/acpi/debug.txt renamed to Documentation/firmware-guide/acpi/debug.rst

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
ACPI Debug Output
1+
.. SPDX-License-Identifier: GPL-2.0
22
3+
=================
4+
ACPI Debug Output
5+
=================
36

47
The ACPI CA, the Linux ACPI core, and some ACPI drivers can generate debug
58
output. This document describes how to use this facility.
69

710
Compile-time configuration
8-
--------------------------
11+
==========================
912

1013
ACPI debug output is globally enabled by CONFIG_ACPI_DEBUG. If this config
1114
option is turned off, the debug messages are not even built into the
1215
kernel.
1316

1417
Boot- and run-time configuration
15-
--------------------------------
18+
================================
1619

1720
When CONFIG_ACPI_DEBUG=y, you can select the component and level of messages
1821
you'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
2124
the debug messages.
2225

2326
debug_layer (component)
24-
-----------------------
27+
=======================
2528

2629
The "debug_layer" is a mask that selects components of interest, e.g., a
2730
specific driver or part of the ACPI interpreter. To build the debug_layer
@@ -33,7 +36,7 @@ to /sys/module/acpi/parameters/debug_layer.
3336

3437
The possible components are defined in include/acpi/acoutput.h and
3538
include/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

6770
debug_level
68-
-----------
71+
===========
6972

7073
The "debug_level" is a mask that selects different types of messages, e.g.,
7174
those related to initialization, method execution, informational messages, etc.
@@ -81,7 +84,7 @@ to /sys/module/acpi/parameters/debug_level.
8184

8285
The 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

115118
Examples
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
127130
definition.)
128131

129132
Enable 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

‎Documentation/firmware-guide/acpi/index.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ACPI Support
1414
osi
1515
method-customizing
1616
DSD-properties-rules
17+
debug
1718
gpio-properties
1819
i2c-muxes
19-
acpi-lid
20+
acpi-lid

0 commit comments

Comments
 (0)