Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp871454yba; Wed, 24 Apr 2019 10:58:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCASk2B9SBHThSyKR6eILIXJ5jnCYh465a5ADJpNWEUM2qT5ofmI9sgEKmPFT2Nd1iJSG8 X-Received: by 2002:a65:5106:: with SMTP id f6mr32318192pgq.253.1556128688096; Wed, 24 Apr 2019 10:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556128688; cv=none; d=google.com; s=arc-20160816; b=Q7HR1hEtk1BLenmrLVgMrgvBR/kPrF8NPsGxuwm8QmdqOA5s1jisHLFd5LYnfIXkmr 7y35s50k8oeQEjEdlnhIbrx4iHjreO91eimUXQkFQFO9HQLKCMZu3kkzo0844HvssvdC UnHKrUk9VhLeOWO00vHRHW4bAskZS2jq3WDEm0yVSLbp86ZMHKZUsWVHzCommO2KrHBe xqCNzF2W3FebSCqJM4O2ak40aE0Ui8xn09KQiwEaLX9O1IlKIpI9WIjpRvoe7GiPFvce wjCcZPoZQwYfHr6rD6cp3t1L0BRLxPcj9rn84qSmOx7ZFg37aXGSlakF8l0TyfId1Bid j25Q== 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=SiNk3x+W/BJ3dxXGT9anGpXBInjJatxrO4dxNV7Y5gk=; b=Jxr7nRku6tGNJRz87tU5fFKiKsCE1WEcb2k8QnQlZMkdHWpPpnT/PuLcrmyHcVEvzo fWxSyyUf0Ta5umcRvyeL8n0hoXPQnOBhxqFS8NuIooL4zRKc9CXdRE9LJMxPAsmDYRi2 rZsyN8G1vzMaq2rBl9vDUqqhMozA6+FiSX/fFBfFqcCf7bTdSLGH5hb4tuIxQUqS2PVl DI16PVS7rXJBiZ/5onWBk6RLmdOV1PKNAT0GtwZzbgE354M6XIPuWwWf01maPDrJAG2f QjeJVx5DBEPi0TFl/Qi7UB4l62M/zYox70PtH6dGARGrEb8p+R1I1+KPTD7EVjwlh03Z AauQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fU1VC6HG; 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 l77si20160037pfb.34.2019.04.24.10.57.52; Wed, 24 Apr 2019 10:58:08 -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=fU1VC6HG; 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 S2392368AbfDXR4N (ORCPT + 99 others); Wed, 24 Apr 2019 13:56:13 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:34053 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392289AbfDXR4L (ORCPT ); Wed, 24 Apr 2019 13:56:11 -0400 Received: by mail-pl1-f196.google.com with SMTP id y6so9680472plt.1; Wed, 24 Apr 2019 10:56:11 -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=SiNk3x+W/BJ3dxXGT9anGpXBInjJatxrO4dxNV7Y5gk=; b=fU1VC6HGHYfYZuJvnjhMKmgzBWwP+nRp6UQItGoT7Pddcrrj7P9UvEScGXMCX0MPAE N1kQOWrKjY9I7K8AHjvQUJCl5J9jFmn0NBrTvSH/fES0XMDmj11tCPQRZbOiPSim3BwG Y2VWtytyJy21IryxI7t7S88bGHw3Jtl/+e1IKsGpc3d7xMk7duyG2VQ81cEr4n5Wt+Ey OAtrU5BRQL+IUb8/WTeR7zTNSykqwouyincrxm/aNd/MjGaRiWXERbJqMHcQ1W8zFA4D kcrubnIQ20CekKds5fdflSsZtM2Su8yXDgDV1VMKT/f0F08l3JSRAbTR7oqsRlhbuJrL ZC1A== 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=SiNk3x+W/BJ3dxXGT9anGpXBInjJatxrO4dxNV7Y5gk=; b=g6wzO8AWe1v+LsNQCpT3AAQ8zbWe3abkXXVATViLRrbdq5s8Eqb4FM4l6KA9QHTM4u WNQQyVpnCjQlvqfNltnwpx7tn0CFKsWmeFHVWSm/QA93o2TsjmwU156NutqIGgYbyYBC V9gCQ2Widef34jD0aa0+umhw1e51X8wGoXGExW3JkZJwz3jbTKJ3csvt8JsZzXil/2yJ NsTnPJ5qTcmzxkp1/H2p250u7PucNrrord8Qld9mrQBunIAmB86yrG+1/QSiisLE9u9e 3g+S6QFxz0b+F/ldSkePAGja813rg5Q76pwZwWXU7ZLGMSdWnrpVSAaN1pEtCQSFbsh5 Ztkw== X-Gm-Message-State: APjAAAXAm6nQfpL0QVxS8WRN3lnljda7t7Sf/xlvxjbWAZJPURIX5Doc vW3IlTb0vaJFNM6ROddxbts= X-Received: by 2002:a17:902:7241:: with SMTP id c1mr12932479pll.326.1556128571112; Wed, 24 Apr 2019 10:56:11 -0700 (PDT) Received: from localhost.localdomain ([104.238.181.70]) by smtp.gmail.com with ESMTPSA id 6sm29275630pfp.143.2019.04.24.10.56.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 10:56:10 -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 v5 17/23] Documentation: ACPI: move aml-debugger.txt to firmware-guide/acpi and convert to reST Date: Thu, 25 Apr 2019 01:53:00 +0800 Message-Id: <20190424175306.25880-18-changbin.du@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190424175306.25880-1-changbin.du@gmail.com> References: <20190424175306.25880-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 --- Documentation/acpi/aml-debugger.txt | 66 ---------------- .../firmware-guide/acpi/aml-debugger.rst | 75 +++++++++++++++++++ Documentation/firmware-guide/acpi/index.rst | 1 + 3 files changed, 76 insertions(+), 66 deletions(-) delete mode 100644 Documentation/acpi/aml-debugger.txt create mode 100644 Documentation/firmware-guide/acpi/aml-debugger.rst diff --git a/Documentation/acpi/aml-debugger.txt b/Documentation/acpi/aml-debugger.txt deleted file mode 100644 index 75ebeb64ab29..000000000000 --- a/Documentation/acpi/aml-debugger.txt +++ /dev/null @@ -1,66 +0,0 @@ -The AML Debugger - -Copyright (C) 2016, Intel Corporation -Author: Lv Zheng - - -This document describes the usage of the AML debugger embedded in the Linux -kernel. - -1. Build the debugger - - The following kernel configuration items are required to enable the AML - debugger interface from the Linux kernel: - - CONFIG_ACPI_DEBUGGER=y - CONFIG_ACPI_DEBUGGER_USER=m - - The userspace utilities can be built from the kernel source tree using - the following commands: - - $ cd tools - $ make acpi - - The resultant userspace tool binary is then located at: - - tools/power/acpi/acpidbg - - It can be installed to system directories by running "make install" (as a - sufficiently privileged user). - -2. Start the userspace debugger interface - - After booting the kernel with the debugger built-in, the debugger can be - started by using the following commands: - - # mount -t debugfs none /sys/kernel/debug - # modprobe acpi_dbg - # tools/power/acpi/acpidbg - - That spawns the interactive AML debugger environment where you can execute - debugger commands. - - The commands are documented in the "ACPICA Overview and Programmer Reference" - that can be downloaded from - - https://acpica.org/documentation - - The detailed debugger commands reference is located in Chapter 12 "ACPICA - Debugger Reference". The "help" command can be used for a quick reference. - -3. Stop the userspace debugger interface - - The interactive debugger interface can be closed by pressing Ctrl+C or using - the "quit" or "exit" commands. When finished, unload the module with: - - # rmmod acpi_dbg - - The module unloading may fail if there is an acpidbg instance running. - -4. Run the debugger in a script - - It may be useful to run the AML debugger in a test script. "acpidbg" supports - this in a special "batch" mode. For example, the following command outputs - the entire ACPI namespace: - - # acpidbg -b "namespace" diff --git a/Documentation/firmware-guide/acpi/aml-debugger.rst b/Documentation/firmware-guide/acpi/aml-debugger.rst new file mode 100644 index 000000000000..a889d43bc6c5 --- /dev/null +++ b/Documentation/firmware-guide/acpi/aml-debugger.rst @@ -0,0 +1,75 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: + +================ +The AML Debugger +================ + +:Copyright: |copy| 2016, Intel Corporation +:Author: Lv Zheng + + +This document describes the usage of the AML debugger embedded in the Linux +kernel. + +1. Build the debugger +===================== + +The following kernel configuration items are required to enable the AML +debugger interface from the Linux kernel:: + + CONFIG_ACPI_DEBUGGER=y + CONFIG_ACPI_DEBUGGER_USER=m + +The userspace utilities can be built from the kernel source tree using +the following commands:: + + $ cd tools + $ make acpi + +The resultant userspace tool binary is then located at:: + + tools/power/acpi/acpidbg + +It can be installed to system directories by running "make install" (as a +sufficiently privileged user). + +2. Start the userspace debugger interface +========================================= + +After booting the kernel with the debugger built-in, the debugger can be +started by using the following commands:: + + # mount -t debugfs none /sys/kernel/debug + # modprobe acpi_dbg + # tools/power/acpi/acpidbg + +That spawns the interactive AML debugger environment where you can execute +debugger commands. + +The commands are documented in the "ACPICA Overview and Programmer Reference" +that can be downloaded from + +https://acpica.org/documentation + +The detailed debugger commands reference is located in Chapter 12 "ACPICA +Debugger Reference". The "help" command can be used for a quick reference. + +3. Stop the userspace debugger interface +======================================== + +The interactive debugger interface can be closed by pressing Ctrl+C or using +the "quit" or "exit" commands. When finished, unload the module with:: + + # rmmod acpi_dbg + +The module unloading may fail if there is an acpidbg instance running. + +4. Run the debugger in a script +=============================== + +It may be useful to run the AML debugger in a test script. "acpidbg" supports +this in a special "batch" mode. For example, the following command outputs +the entire ACPI namespace:: + + # acpidbg -b "namespace" diff --git a/Documentation/firmware-guide/acpi/index.rst b/Documentation/firmware-guide/acpi/index.rst index 287a7cbd82ac..e9f253d54897 100644 --- a/Documentation/firmware-guide/acpi/index.rst +++ b/Documentation/firmware-guide/acpi/index.rst @@ -16,6 +16,7 @@ ACPI Support method-tracing DSD-properties-rules debug + aml-debugger gpio-properties i2c-muxes acpi-lid -- 2.20.1