Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2026575yba; Thu, 25 Apr 2019 09:26:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqw87RmlPMLk5dKoAN8cm+q/YjumBHDlFIJ8jzagVLIh9YENlp6yNknPGTO4QRzbaV0ptsxE X-Received: by 2002:a17:902:f215:: with SMTP id gn21mr29637082plb.146.1556209613338; Thu, 25 Apr 2019 09:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556209613; cv=none; d=google.com; s=arc-20160816; b=cI/59IqFyjcsInO0cpWBuvRFmJQ8ZO/7sQrS2m8bOn6gBTRs7LW3wYHF4KvSlTJ2Jl 6z7spu6NfXjWhxngeX3DMrM5H+f/rvLCvoCSdG/19fcrvsZ4RKBad7GTeNP7P0Wkrjok pXFOEHElZXKFBZvxoOy2uRt4D6+gQtz8AaMdQiQKxO6zeYOuctcNMHO3aaZ16g+Uhwfw SjiEej7WyA0QcLRZ9LwELlmMmDAktKyeDXeRid4HMPvFXZWvj5RCWHqQQkiL6BcXf2D4 wK/NZq2bMjimjHvRCR++ZQ4APRl+vuB5uBIXijuW6LlFfXXHSSqxeqz77atgWnX1Pgkb 5pPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4ANYEStqupVcUyOOdEhP27CWqrM1IUuJpSYFn0ATO6g=; b=bwM5Yp89UN3PWpDe8dRdM7GzPzrHapRT/HL1hEt3uZ5uAd9yflmqvHw5Y4nzFSGtMh /qnphsp97L/MszntLmSN/YACCt/xgCig5+PXR00+Gns9yCZTnQ7HEF0ZlHHM5I3STYib Axp+r5xGyHDy7oqd0BOyo7PkutssFth/ptaSMEF6TkRYmxN5p+kfihHsXKqdDLrlJNsh hVidF21vY5jvVrQSNi0ZmdgUAUKB4+89z73+EC8GbmKykbZsamnThqJWy09Bx4N1Kho0 6X1tyB//7xk1MEWP1CucozDn47VOfk4edvtjWe2uqWCXGZvDmxa5NnGc9uKHDRyfHADm XCWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uLwildLU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si21609880pgn.530.2019.04.25.09.26.36; Thu, 25 Apr 2019 09:26:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uLwildLU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730078AbfDYPdK (ORCPT + 99 others); Thu, 25 Apr 2019 11:33:10 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:35069 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728097AbfDYPdJ (ORCPT ); Thu, 25 Apr 2019 11:33:09 -0400 Received: by mail-pg1-f196.google.com with SMTP id h1so41233pgs.2; Thu, 25 Apr 2019 08:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4ANYEStqupVcUyOOdEhP27CWqrM1IUuJpSYFn0ATO6g=; b=uLwildLUiX2Qpmo1OeBl52m1gj/udEIf3v8IeWQYzPyzPUkGtQLZ1wA5qkxnzVYxrP NOqokNVG4sWZyNwlePEt4atI8Cd7dkpK5RH1IigZDSap0rRotfWFLZrDGsNm6Jirp065 IswmXzQ5GV4HXS2VJYg1SnEldFzy7KpihRmecvWqI0ZXLYcRM62Zi1tfshNj4j9DttzZ QNjApsZGe4Nqt+rIXUgk8Fu7ruV9LWJDkcH5kVJGqtIbNDXtPRp/D6Y44nZxxaXtU1uo XZt6FTn2qm9+QiOdU/lHAQt20CgFDuJgB3AabolVSn5DEiZUnphV4nKNdvX95ROQshyr Fe5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4ANYEStqupVcUyOOdEhP27CWqrM1IUuJpSYFn0ATO6g=; b=YThrWI5cpsZVdhWvs2Gv1Wskt9QOEQtcktYq0dhRXm3kXlx8O8vAR0k/3K1ODWeHSI Zf1I/hkDfWSA3kOIvAi0pGcOfUtDqeItuYuz7XSwiUju8WTIB/0JdPu/TbY0mS66tqGX thGqYz+z4EeORAcH4VBhjmnFY26sH8/UYXNGULsDQqqjyZkqzJfM1EMANLiadMU4lZWQ anSqLRVRhriacrbftV8B8DScpMPMRir2FJEYsbkiMru7Z+yloARu33vZNTpWgb3jk1Z2 twfbkkqr1cmAcJ6S+riBEoMJTR1sCacYcDfwDd7AOD3ebqs+NVgXslUFvu5OZYCRATp7 DT+A== X-Gm-Message-State: APjAAAVMzru4tyA78YrgNnIBYW3ZQthKvzCGH7u4xlcyGL/cMGFLnRFT WMyRkRXu0TgTB1vQrFRx1sRM8oId X-Received: by 2002:a63:ee15:: with SMTP id e21mr8826591pgi.180.1556206388245; Thu, 25 Apr 2019 08:33:08 -0700 (PDT) Received: from localhost.localdomain ([104.238.181.70]) by smtp.gmail.com with ESMTPSA id c14sm2643363pgj.94.2019.04.25.08.33.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 08:33:07 -0700 (PDT) From: Changbin Du To: rjw@rjwysocki.net, Jonathan Corbet Cc: Bjorn Helgaas , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, fenghua.yu@intel.com, linuxppc-dev@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org, mchehab+samsung@kernel.org, Changbin Du Subject: [PATCH v6 16/24] Documentation: ACPI: move debug.txt to firmware-guide/acpi and convert to reST Date: Thu, 25 Apr 2019 23:31:09 +0800 Message-Id: <20190425153117.16057-17-changbin.du@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190425153117.16057-1-changbin.du@gmail.com> References: <20190425153117.16057-1-changbin.du@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Reviewed-by: Mauro Carvalho Chehab --- .../acpi/debug.rst} | 31 ++++++++++--------- Documentation/firmware-guide/acpi/index.rst | 3 +- 2 files changed, 19 insertions(+), 15 deletions(-) rename Documentation/{acpi/debug.txt => firmware-guide/acpi/debug.rst} (91%) diff --git a/Documentation/acpi/debug.txt b/Documentation/firmware-guide/acpi/debug.rst similarity index 91% rename from Documentation/acpi/debug.txt rename to 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 @@ - ACPI Debug Output +.. SPDX-License-Identifier: GPL-2.0 +================= +ACPI Debug Output +================= The ACPI CA, the Linux ACPI core, and some ACPI drivers can generate debug output. This document describes how to use this facility. Compile-time configuration --------------------------- +========================== ACPI debug output is globally enabled by CONFIG_ACPI_DEBUG. If this config option is turned off, the debug messages are not even built into the kernel. Boot- and run-time configuration --------------------------------- +================================ When CONFIG_ACPI_DEBUG=y, you can select the component and level of messages 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 the debug messages. debug_layer (component) ------------------------ +======================= The "debug_layer" is a mask that selects components of interest, e.g., a specific driver or part of the ACPI interpreter. To build the debug_layer @@ -33,7 +36,7 @@ to /sys/module/acpi/parameters/debug_layer. The possible components are defined in include/acpi/acoutput.h and include/acpi/acpi_drivers.h. Reading /sys/module/acpi/parameters/debug_layer -shows the supported mask values, currently these: +shows the supported mask values, currently these:: ACPI_UTILITIES 0x00000001 ACPI_HARDWARE 0x00000002 @@ -65,7 +68,7 @@ shows the supported mask values, currently these: ACPI_PROCESSOR_COMPONENT 0x20000000 debug_level ------------ +=========== The "debug_level" is a mask that selects different types of messages, e.g., those related to initialization, method execution, informational messages, etc. @@ -81,7 +84,7 @@ to /sys/module/acpi/parameters/debug_level. The possible levels are defined in include/acpi/acoutput.h. Reading /sys/module/acpi/parameters/debug_level shows the supported mask values, -currently these: +currently these:: ACPI_LV_INIT 0x00000001 ACPI_LV_DEBUG_OBJECT 0x00000002 @@ -113,9 +116,9 @@ currently these: ACPI_LV_EVENTS 0x80000000 Examples --------- +======== -For example, drivers/acpi/bus.c contains this: +For example, drivers/acpi/bus.c contains this:: #define _COMPONENT ACPI_BUS_COMPONENT ... @@ -127,22 +130,22 @@ statement uses ACPI_DB_INFO, which is macro based on the ACPI_LV_INFO definition.) Enable all AML "Debug" output (stores to the Debug object while interpreting -AML) during boot: +AML) during boot:: acpi.debug_layer=0xffffffff acpi.debug_level=0x2 -Enable PCI and PCI interrupt routing debug messages: +Enable PCI and PCI interrupt routing debug messages:: acpi.debug_layer=0x400000 acpi.debug_level=0x4 -Enable all ACPI hardware-related messages: +Enable all ACPI hardware-related messages:: acpi.debug_layer=0x2 acpi.debug_level=0xffffffff -Enable all ACPI_DB_INFO messages after boot: +Enable all ACPI_DB_INFO messages after boot:: # echo 0x4 > /sys/module/acpi/parameters/debug_level -Show all valid component values: +Show all valid component values:: # 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 osi method-customizing DSD-properties-rules + debug gpio-properties i2c-muxes - acpi-lid \ No newline at end of file + acpi-lid -- 2.20.1