Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4055786yba; Tue, 23 Apr 2019 14:22:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyPQQxaMYaBc4K+yX98oWvOnrMr/56QYmoEJF0CdvvVgicidaxy8IP4fkCO85qzTWcshPC X-Received: by 2002:a17:902:2dc3:: with SMTP id p61mr28509630plb.308.1556054547926; Tue, 23 Apr 2019 14:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556054547; cv=none; d=google.com; s=arc-20160816; b=EHsPzhQBlPUg5hJNh0WBK+4hsQ/QHxbll/8H3qD1OeiQNuF19q4jn/6nRZeZGOfrTA CxMUXgLe7ck/9OCgKOcvhnL443A1qlaKuOzHZV2Ks8GZKVAa/HF3rXRnrXxLq8Ey0pxu bEfpQNJkKegz8cf9nqd2wIzuEvRXhU/GyIzgR84g+SjsBsYNCC2Mn+ZCNG2VPWk0dG+n 7zxVYV3V/CiJQziL/EaIFBjit7X41wmVoWJ8RBbstactecyUOjwnf6BmXD/xy93ZrU6K kSW2PAY2Dl0wjmyNSw07cgNleb0OGuGU3KDTK9pTzJhjNxH+peax5+7fxQXbpDvKRM2g 5pCw== 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:subject:cc:to:from:date :dkim-signature; bh=7bm/7cx8935u5WpEqvYAR3JJzpYWOGucTqy7o1fPnE8=; b=IWPd6Ed9/tr4SSLtOoUP+fKVZCsPftnJg2PLHzwQwDMmtd5sGJtO1UuVSvWOk+LQ7G YT+zCrBXcV8n+zAmptH9zYsgsYIXFedRLB873t8+n9i/MLgNbxw58IqB05WcXfVPgb5R dSBKmY/Imc8q5YStR6yrYSiVcul7e+L4BgNirswqrJJD+lZbVucFqmXz7Pd2mBTFvGkC 2blKaGauQR4uaB3Y8nQ3DW1NFdnTJzzCGqRjVRi2hgbfTR6ONefWwSG6OQ+YHe/rdLNz 2HZFEwqJ8e/1zi4O31dEBc6cZkNPI7gCBhhZuPQ6yd7sW1yHaC6E82BTjR+Spoc+wCkx z0vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=LZzBbka7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l62si17465528pfc.65.2019.04.23.14.22.12; Tue, 23 Apr 2019 14:22:27 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=LZzBbka7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727745AbfDWVVT (ORCPT + 99 others); Tue, 23 Apr 2019 17:21:19 -0400 Received: from casper.infradead.org ([85.118.1.10]:39752 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbfDWVVT (ORCPT ); Tue, 23 Apr 2019 17:21:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7bm/7cx8935u5WpEqvYAR3JJzpYWOGucTqy7o1fPnE8=; b=LZzBbka75a6LUuL7IXg4Qvs2zU WoOc3jHTTu4Eh+W39e++gI7j8fInLn2O62kwolUQfhjCNYo67NSSIOSmvUISBxTAXk265Djyf3r/Q tqNT93E8kFpx/S/4ZpU7MRTzmPNjsBp7B4IDCnYaTIdxIJ8uNfMG570kSya3Wk4QbSQTXXrXOEVFg 22d3e1ZT0a4I/m3X9zKMHb5DhGS6pe4yvVKDX6ktAziodE3FtZ+66vmsI6rhJN0WZpp2Dfjj7n9gR Pz0CXJNPEZKnCUu6spF1ahFccAwHgubWnYLJHMmRmp0w3nXY++crW65iKO8vygb9sIkBCtAkwZ8n4 iO7jByqg==; Received: from 177.17.136.231.dynamic.adsl.gvt.net.br ([177.17.136.231] helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJ2qo-0004Dc-Sx; Tue, 23 Apr 2019 21:21:15 +0000 Date: Tue, 23 Apr 2019 18:21:08 -0300 From: Mauro Carvalho Chehab To: Changbin Du Cc: Jonathan Corbet , Bjorn Helgaas , rjw@rjwysocki.net, linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, fenghua.yu@intel.com, linuxppc-dev@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH v4 16/63] Documentation: ACPI: move debug.txt to firmware-guide/acpi and convert to reST Message-ID: <20190423182108.2bf06960@coco.lan> In-Reply-To: <20190423162932.21428-17-changbin.du@gmail.com> References: <20190423162932.21428-1-changbin.du@gmail.com> <20190423162932.21428-17-changbin.du@gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 24 Apr 2019 00:28:45 +0800 Changbin Du escreveu: > 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 > --- > .../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 This is one way of doing. The other one, with would likely produce a better visual, would be to use tables, e. g.: ============== ========== ACPI_UTILITIES 0x00000001 ACPI_HARDWARE 0x00000002 ============== ========== Of course, if you use tables here, you need to be consistent along similar cases inside the document. while both works, I prefer using tables on such cases. Either way: Reviewed-by: Mauro Carvalho Chehab > > 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 Thanks, Mauro