summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangbin Du <changbin.du@gmail.com>2019-04-24 13:52:58 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-04-25 17:07:20 -0400
commit99ed6bfaa5a0a4bffc10ff3ffe9c599bcf59236e (patch)
tree215611383ec5006c70b8c5efaf401612c8baff47
parent05000042f33dd8b2afbeedc1d8fd499486d14b0d (diff)
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>
-rw-r--r--Documentation/firmware-guide/acpi/debug.rst (renamed from Documentation/acpi/debug.txt)31
-rw-r--r--Documentation/firmware-guide/acpi/index.rst3
2 files changed, 19 insertions, 15 deletions
diff --git a/Documentation/acpi/debug.txt b/Documentation/firmware-guide/acpi/debug.rst
index 65bf47c46b6d..1a152dd1d765 100644
--- a/Documentation/acpi/debug.txt
+++ b/Documentation/firmware-guide/acpi/debug.rst
@@ -1,18 +1,21 @@
1 ACPI Debug Output 1.. SPDX-License-Identifier: GPL-2.0
2 2
3=================
4ACPI Debug Output
5=================
3 6
4The ACPI CA, the Linux ACPI core, and some ACPI drivers can generate debug 7The ACPI CA, the Linux ACPI core, and some ACPI drivers can generate debug
5output. This document describes how to use this facility. 8output. This document describes how to use this facility.
6 9
7Compile-time configuration 10Compile-time configuration
8-------------------------- 11==========================
9 12
10ACPI debug output is globally enabled by CONFIG_ACPI_DEBUG. If this config 13ACPI debug output is globally enabled by CONFIG_ACPI_DEBUG. If this config
11option is turned off, the debug messages are not even built into the 14option is turned off, the debug messages are not even built into the
12kernel. 15kernel.
13 16
14Boot- and run-time configuration 17Boot- and run-time configuration
15-------------------------------- 18================================
16 19
17When CONFIG_ACPI_DEBUG=y, you can select the component and level of messages 20When CONFIG_ACPI_DEBUG=y, you can select the component and level of messages
18you're interested in. At boot-time, use the acpi.debug_layer and 21you'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
21the debug messages. 24the debug messages.
22 25
23debug_layer (component) 26debug_layer (component)
24----------------------- 27=======================
25 28
26The "debug_layer" is a mask that selects components of interest, e.g., a 29The "debug_layer" is a mask that selects components of interest, e.g., a
27specific driver or part of the ACPI interpreter. To build the debug_layer 30specific driver or part of the ACPI interpreter. To build the debug_layer
@@ -33,7 +36,7 @@ to /sys/module/acpi/parameters/debug_layer.
33 36
34The possible components are defined in include/acpi/acoutput.h and 37The possible components are defined in include/acpi/acoutput.h and
35include/acpi/acpi_drivers.h. Reading /sys/module/acpi/parameters/debug_layer 38include/acpi/acpi_drivers.h. Reading /sys/module/acpi/parameters/debug_layer
36shows the supported mask values, currently these: 39shows the supported mask values, currently these::
37 40
38 ACPI_UTILITIES 0x00000001 41 ACPI_UTILITIES 0x00000001
39 ACPI_HARDWARE 0x00000002 42 ACPI_HARDWARE 0x00000002
@@ -65,7 +68,7 @@ shows the supported mask values, currently these:
65 ACPI_PROCESSOR_COMPONENT 0x20000000 68 ACPI_PROCESSOR_COMPONENT 0x20000000
66 69
67debug_level 70debug_level
68----------- 71===========
69 72
70The "debug_level" is a mask that selects different types of messages, e.g., 73The "debug_level" is a mask that selects different types of messages, e.g.,
71those related to initialization, method execution, informational messages, etc. 74those related to initialization, method execution, informational messages, etc.
@@ -81,7 +84,7 @@ to /sys/module/acpi/parameters/debug_level.
81 84
82The possible levels are defined in include/acpi/acoutput.h. Reading 85The possible levels are defined in include/acpi/acoutput.h. Reading
83/sys/module/acpi/parameters/debug_level shows the supported mask values, 86/sys/module/acpi/parameters/debug_level shows the supported mask values,
84currently these: 87currently these::
85 88
86 ACPI_LV_INIT 0x00000001 89 ACPI_LV_INIT 0x00000001
87 ACPI_LV_DEBUG_OBJECT 0x00000002 90 ACPI_LV_DEBUG_OBJECT 0x00000002
@@ -113,9 +116,9 @@ currently these:
113 ACPI_LV_EVENTS 0x80000000 116 ACPI_LV_EVENTS 0x80000000
114 117
115Examples 118Examples
116-------- 119========
117 120
118For example, drivers/acpi/bus.c contains this: 121For example, drivers/acpi/bus.c contains this::
119 122
120 #define _COMPONENT ACPI_BUS_COMPONENT 123 #define _COMPONENT ACPI_BUS_COMPONENT
121 ... 124 ...
@@ -127,22 +130,22 @@ statement uses ACPI_DB_INFO, which is macro based on the ACPI_LV_INFO
127definition.) 130definition.)
128 131
129Enable all AML "Debug" output (stores to the Debug object while interpreting 132Enable all AML "Debug" output (stores to the Debug object while interpreting
130AML) during boot: 133AML) during boot::
131 134
132 acpi.debug_layer=0xffffffff acpi.debug_level=0x2 135 acpi.debug_layer=0xffffffff acpi.debug_level=0x2
133 136
134Enable PCI and PCI interrupt routing debug messages: 137Enable PCI and PCI interrupt routing debug messages::
135 138
136 acpi.debug_layer=0x400000 acpi.debug_level=0x4 139 acpi.debug_layer=0x400000 acpi.debug_level=0x4
137 140
138Enable all ACPI hardware-related messages: 141Enable all ACPI hardware-related messages::
139 142
140 acpi.debug_layer=0x2 acpi.debug_level=0xffffffff 143 acpi.debug_layer=0x2 acpi.debug_level=0xffffffff
141 144
142Enable all ACPI_DB_INFO messages after boot: 145Enable all ACPI_DB_INFO messages after boot::
143 146
144 # echo 0x4 > /sys/module/acpi/parameters/debug_level 147 # echo 0x4 > /sys/module/acpi/parameters/debug_level
145 148
146Show all valid component values: 149Show all valid component values::
147 150
148 # cat /sys/module/acpi/parameters/debug_layer 151 # cat /sys/module/acpi/parameters/debug_layer
diff --git a/Documentation/firmware-guide/acpi/index.rst b/Documentation/firmware-guide/acpi/index.rst
index 6d4e0df4f063..a45fea11f998 100644
--- a/Documentation/firmware-guide/acpi/index.rst
+++ b/Documentation/firmware-guide/acpi/index.rst
@@ -14,6 +14,7 @@ ACPI Support
14 osi 14 osi
15 method-customizing 15 method-customizing
16 DSD-properties-rules 16 DSD-properties-rules
17 debug
17 gpio-properties 18 gpio-properties
18 i2c-muxes 19 i2c-muxes
19 acpi-lid \ No newline at end of file 20 acpi-lid