diff options
| author | Changbin Du <changbin.du@gmail.com> | 2019-04-24 13:52:58 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-04-25 17:07:20 -0400 |
| commit | 99ed6bfaa5a0a4bffc10ff3ffe9c599bcf59236e (patch) | |
| tree | 215611383ec5006c70b8c5efaf401612c8baff47 | |
| parent | 05000042f33dd8b2afbeedc1d8fd499486d14b0d (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.rst | 3 |
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 | ================= | ||
| 4 | ACPI Debug Output | ||
| 5 | ================= | ||
| 3 | 6 | ||
| 4 | The ACPI CA, the Linux ACPI core, and some ACPI drivers can generate debug | 7 | The ACPI CA, the Linux ACPI core, and some ACPI drivers can generate debug |
| 5 | output. This document describes how to use this facility. | 8 | output. This document describes how to use this facility. |
| 6 | 9 | ||
| 7 | Compile-time configuration | 10 | Compile-time configuration |
| 8 | -------------------------- | 11 | ========================== |
| 9 | 12 | ||
| 10 | ACPI debug output is globally enabled by CONFIG_ACPI_DEBUG. If this config | 13 | ACPI debug output is globally enabled by CONFIG_ACPI_DEBUG. If this config |
| 11 | option is turned off, the debug messages are not even built into the | 14 | option is turned off, the debug messages are not even built into the |
| 12 | kernel. | 15 | kernel. |
| 13 | 16 | ||
| 14 | Boot- and run-time configuration | 17 | Boot- and run-time configuration |
| 15 | -------------------------------- | 18 | ================================ |
| 16 | 19 | ||
| 17 | When CONFIG_ACPI_DEBUG=y, you can select the component and level of messages | 20 | When CONFIG_ACPI_DEBUG=y, you can select the component and level of messages |
| 18 | you're interested in. At boot-time, use the acpi.debug_layer and | 21 | 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 | |||
| 21 | the debug messages. | 24 | the debug messages. |
| 22 | 25 | ||
| 23 | debug_layer (component) | 26 | debug_layer (component) |
| 24 | ----------------------- | 27 | ======================= |
| 25 | 28 | ||
| 26 | The "debug_layer" is a mask that selects components of interest, e.g., a | 29 | The "debug_layer" is a mask that selects components of interest, e.g., a |
| 27 | specific driver or part of the ACPI interpreter. To build the debug_layer | 30 | specific 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 | ||
| 34 | The possible components are defined in include/acpi/acoutput.h and | 37 | The possible components are defined in include/acpi/acoutput.h and |
| 35 | include/acpi/acpi_drivers.h. Reading /sys/module/acpi/parameters/debug_layer | 38 | 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:: |
| 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 | ||
| 67 | debug_level | 70 | debug_level |
| 68 | ----------- | 71 | =========== |
| 69 | 72 | ||
| 70 | The "debug_level" is a mask that selects different types of messages, e.g., | 73 | The "debug_level" is a mask that selects different types of messages, e.g., |
| 71 | those related to initialization, method execution, informational messages, etc. | 74 | those related to initialization, method execution, informational messages, etc. |
| @@ -81,7 +84,7 @@ to /sys/module/acpi/parameters/debug_level. | |||
| 81 | 84 | ||
| 82 | The possible levels are defined in include/acpi/acoutput.h. Reading | 85 | The 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, |
| 84 | currently these: | 87 | currently 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 | ||
| 115 | Examples | 118 | Examples |
| 116 | -------- | 119 | ======== |
| 117 | 120 | ||
| 118 | For example, drivers/acpi/bus.c contains this: | 121 | For 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 | |||
| 127 | definition.) | 130 | definition.) |
| 128 | 131 | ||
| 129 | Enable all AML "Debug" output (stores to the Debug object while interpreting | 132 | Enable all AML "Debug" output (stores to the Debug object while interpreting |
| 130 | AML) during boot: | 133 | AML) during boot:: |
| 131 | 134 | ||
| 132 | acpi.debug_layer=0xffffffff acpi.debug_level=0x2 | 135 | acpi.debug_layer=0xffffffff acpi.debug_level=0x2 |
| 133 | 136 | ||
| 134 | Enable PCI and PCI interrupt routing debug messages: | 137 | Enable 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 | ||
| 138 | Enable all ACPI hardware-related messages: | 141 | Enable 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 | ||
| 142 | Enable all ACPI_DB_INFO messages after boot: | 145 | Enable 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 | ||
| 146 | Show all valid component values: | 149 | Show 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 |
