Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1992384yba; Thu, 25 Apr 2019 08:56:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnhjneS5DW+PUgWCwXut7hXzG1Tz3ERwzBq/m2O3G5QghS+unY6KaNvdTeeTzj5ylcxKms X-Received: by 2002:a17:902:a7:: with SMTP id a36mr39934165pla.111.1556207815646; Thu, 25 Apr 2019 08:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556207815; cv=none; d=google.com; s=arc-20160816; b=K31nKZv9fBBnRDgASn18PteTVG3RHRN0uewe6WX2KEqgnzRN1Sz7mNo81O7OEVEZnG tuHa3QyCb5qjS+l2ZlNzasU4nl2uUDX5sEHfHK9I/Yd8lx4XtlKjfcPGSnIvucd5t2fx WI65/owjESH8TOhv4VQ2kl3n+x0Q1GRInCcFM0VMSrWAznSjKLgvQceNjrv6XxXeP+tM ZPLpVcgMFivifdfWnxCN0nQKp7/Kp3BmixEIJpgbWaXmhdlJNnYO/p8VP7AXFR49X5Ok kngt+TBsdoEy9SwsgjH7OA79UeRJol2VxeprrwUnFeOx5MCusAzpGzK7wP6oc9eza5QB nkeQ== 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=DtTkQX8rzPAFN6dPTSOg3XlxqAihM0H3yazFiZoRggZou2LcxuA9GOebBE3CCm9SRq MXfKhJfca1+0VyFm8obTlXEzt8rL9vUztrYonQVTAAb52NIefBLHuemOCu4Qz0hgI19O n7+3TnkJrY2RJ3ZUdXLhi1FIY9xk48ozsD9UGbT1KtsIjFkV+x/yWmejl2cNA/qJZRVL ctgRbkK9mWa0TQyY8q/0LViy/8/xAqyprrtqu+NUBBK/VGhSihXUEkiAukuKpvBDGnpK cHByS4YNgSBcQ2Q8wSNGjZ3mohexP6pew6zPIrx5mJF9oT3S+ZZ3XAdH57suhjMoWGTd IBSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OPzMGLlO; 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 t11si20723303pgu.104.2019.04.25.08.56.40; Thu, 25 Apr 2019 08:56:55 -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=OPzMGLlO; 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 S1730155AbfDYPdY (ORCPT + 99 others); Thu, 25 Apr 2019 11:33:24 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:45720 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727668AbfDYPdX (ORCPT ); Thu, 25 Apr 2019 11:33:23 -0400 Received: by mail-pg1-f194.google.com with SMTP id y3so14777pgk.12; Thu, 25 Apr 2019 08:33:21 -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=OPzMGLlOARPY2cG9nPBcD320RyElIGwznb0vbjTW3Vz4xNJbHPqnawn3yra9NnLjOM 23iafwCOM5xBWVPtwnFJBXKLeDozafkKMUiQdR2clZkE1yjXROlTW213rAe+Qr6Kp34m EMzlcfMEhvt2NMms52jgJTb5Gf7ILlVz5YmM2/Ho6Zajxxi5kmc4pcNuanspWVpS9AtG 0z6awoBru6FJoalGp3QxFPvg7p4DYzzPsWdvWrWU62d5N/oLcSd5sBDcnXTq3Gspf5os oISwywVg+Ea9N+/Jo2VfjUzfnNom6hJue3Z4YbvbwG/OgZZ+oS9pbdkjiVPpGeLhTeiT 4ekw== 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=kn/GDwCV/G5ZFCEXbN9wAWaWdyJur0hTsgHdjJASezxOjiyzXwBeG+zPY+a6luw+SB NA4x1Ev9h446lOFpyisDKJY5Eiqru2pURfJIWYo8uwIkevo7ZjzIp4IuO+ub1nLOfy6g ZVwJXnVcoNbGAeEgsG8COyMugx9Z3oENiy5cKlscITkC7R5jPGG/i1QrSF8bX/zbdr7R jbT5VRDByXMe8Hv/dQ0+QJeWxuswwIqT5kky3aenN5IYTMkCE1CcG4bfheynRVELkGYM C72wveRLTk9BN8w/YohJbIC5Iu2byUS5BtNs6vezsFgiROOWRuo/SFIMhSGCnFFQy7PK NyLg== X-Gm-Message-State: APjAAAVYOcPldtVslWWFffPhaBh+mUy/MX15MX5RiixCr4zpg/Gid6xd mIJbGag6SGXqU55uByFLFl4= X-Received: by 2002:a62:424f:: with SMTP id p76mr40746220pfa.141.1556206400995; Thu, 25 Apr 2019 08:33:20 -0700 (PDT) Received: from localhost.localdomain ([104.238.181.70]) by smtp.gmail.com with ESMTPSA id c14sm2643363pgj.94.2019.04.25.08.33.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 08:33:20 -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 18/24] Documentation: ACPI: move aml-debugger.txt to firmware-guide/acpi and convert to reST Date: Thu, 25 Apr 2019 23:31:11 +0800 Message-Id: <20190425153117.16057-19-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 --- 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