From patchwork Fri Jun 19 06:30:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1312584 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49p88423PZz9sNR; Fri, 19 Jun 2020 16:30:58 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1jmAY9-00069n-W9; Fri, 19 Jun 2020 06:30:53 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jmAY8-00069g-PE for fwts-devel@lists.ubuntu.com; Fri, 19 Jun 2020 06:30:52 +0000 Received: from 112-104-28-97.adsl.dynamic.seed.net.tw ([112.104.28.97] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jmAY7-0002sl-TV for fwts-devel@lists.ubuntu.com; Fri, 19 Jun 2020 06:30:52 +0000 From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH 1/2] doc: add new --dump-acpi-from-sysfs option Date: Fri, 19 Jun 2020 14:30:48 +0800 Message-Id: <20200619063049.27265-1-ivan.hu@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" This new option allows one to specify the dumping acpi log default from syslfs. For example, fwts --dump --dump-acpi-from-sysfs Signed-off-by: Ivan Hu Acked-by: Colin Ian King Acked-by: Alex Hung --- doc/fwts.1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/fwts.1 b/doc/fwts.1 index a2884dae..3cac7d58 100644 --- a/doc/fwts.1 +++ b/doc/fwts.1 @@ -117,6 +117,9 @@ cpuinfo.log \- containing the output from cat /proc/cpuinfo .br README.txt \- containing a timestamp and kernel version information. .TP +.B \-\-dump-acpi-from-sysfs +specify dumping acpi table log default from sysfs. +.TP .B \-\-dumpfile=acpidump.log load ACPI tables from output generated from acpidump or from sudo fwts \-\-dump. The latter is preferred as fwts \-\-dump is able to dump more tables than acpidump. This From patchwork Fri Jun 19 06:30:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1312585 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49p8843GxWz9sRW; Fri, 19 Jun 2020 16:31:00 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1jmAYE-0006AZ-3f; Fri, 19 Jun 2020 06:30:58 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jmAYC-0006AA-FD for fwts-devel@lists.ubuntu.com; Fri, 19 Jun 2020 06:30:56 +0000 Received: from 112-104-28-97.adsl.dynamic.seed.net.tw ([112.104.28.97] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jmAYB-0002t9-Mq for fwts-devel@lists.ubuntu.com; Fri, 19 Jun 2020 06:30:56 +0000 From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH 2/2] fwts-test: sync up with new --dump-acpi-from-sysfs option and acpidump changes Date: Fri, 19 Jun 2020 14:30:49 +0800 Message-Id: <20200619063049.27265-2-ivan.hu@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200619063049.27265-1-ivan.hu@canonical.com> References: <20200619063049.27265-1-ivan.hu@canonical.com> X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" Signed-off-by: Ivan Hu Acked-by: Colin Ian King Acked-by: Alex Hung --- fwts-test/acpidump-0001/acpidump-0001.log | 6 +++--- fwts-test/arg-help-0001/arg-help-0001.log | 3 +++ fwts-test/arg-help-0001/arg-help-0002.log | 3 +++ fwts-test/arg-table-path-0001/acpidump-0001.log | 6 +++--- fwts-test/arg-table-path-0001/acpidump-0002.log | 6 +++--- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/fwts-test/acpidump-0001/acpidump-0001.log b/fwts-test/acpidump-0001/acpidump-0001.log index 429696e2..c408fb35 100644 --- a/fwts-test/acpidump-0001/acpidump-0001.log +++ b/fwts-test/acpidump-0001/acpidump-0001.log @@ -314,9 +314,9 @@ acpidump [018h 0024 4] Oem Revision : 06040000 acpidump [01Ch 0028 4] Asl Compiler ID : "PTL " acpidump [020h 0032 4] Asl Compiler Revision : 00000003 acpidump -acpidump 0000: 54 4d 4f 52 26 00 00 00 01 eb 50 54 4c 54 44 20 TMOR&.....PTLTD -acpidump 0010: 20 20 20 20 20 20 20 20 00 00 04 06 50 54 4c 20 ....PTL -acpidump 0020: 03 00 00 00 f3 f4 ...... +acpidump 0000: 54 4D 4F 52 26 00 00 00 01 EB 50 54 4C 54 44 20 TMOR&.....PTLTD +acpidump 0010: 20 20 20 20 20 20 20 20 00 00 04 06 50 54 4C 20 ....PTL +acpidump 0020: 03 00 00 00 F3 F4 ...... acpidump acpidump SLIC @ bf6dfdfa (374 bytes) (loaded from file) acpidump ---- diff --git a/fwts-test/arg-help-0001/arg-help-0001.log b/fwts-test/arg-help-0001/arg-help-0001.log index a294e3d4..5641bf6c 100644 --- a/fwts-test/arg-help-0001/arg-help-0001.log +++ b/fwts-test/arg-help-0001/arg-help-0001.log @@ -22,6 +22,9 @@ -d, --dump Dump out dmesg, dmidecode, lspci, ACPI tables to logs. +--dump-acpi-from-sysfs Specify dumping acpi + table log default + from sysfs. --dumpfile Load ACPI tables using file generated by acpidump, e.g. diff --git a/fwts-test/arg-help-0001/arg-help-0002.log b/fwts-test/arg-help-0001/arg-help-0002.log index a294e3d4..5641bf6c 100644 --- a/fwts-test/arg-help-0001/arg-help-0002.log +++ b/fwts-test/arg-help-0001/arg-help-0002.log @@ -22,6 +22,9 @@ -d, --dump Dump out dmesg, dmidecode, lspci, ACPI tables to logs. +--dump-acpi-from-sysfs Specify dumping acpi + table log default + from sysfs. --dumpfile Load ACPI tables using file generated by acpidump, e.g. diff --git a/fwts-test/arg-table-path-0001/acpidump-0001.log b/fwts-test/arg-table-path-0001/acpidump-0001.log index 435d0e96..93c4e5cc 100644 --- a/fwts-test/arg-table-path-0001/acpidump-0001.log +++ b/fwts-test/arg-table-path-0001/acpidump-0001.log @@ -151,9 +151,9 @@ acpidump F1 BD 7F 4C 09 FF 19 11 A9 D4 74 CA 11 9E DC 54 \ acpidump F3 1B 09 D2 63 5A DC A8 83 F8 5E C9 15 95 F9 FA \ acpidump F3 FC CD C7 89 84 06 16 91 0B 1E 81 11 42 B1 35 \ acpidump FD DC 05 B7 4D 67 7F 2D B3 84 33 20 E1 D1 79 2A \ -acpidump 0000: 54 4d 4f 52 26 00 00 00 01 eb 50 54 4c 54 44 20 TMOR&.....PTLTD -acpidump 0010: 20 20 20 20 20 20 20 20 00 00 04 06 50 54 4c 20 ....PTL -acpidump 0020: 03 00 00 00 f3 f4 ...... +acpidump 0000: 54 4D 4F 52 26 00 00 00 01 EB 50 54 4C 54 44 20 TMOR&.....PTLTD +acpidump 0010: 20 20 20 20 20 20 20 20 00 00 04 06 50 54 4C 20 ....PTL +acpidump 0020: 03 00 00 00 F3 F4 ...... acpidump ---- acpidump ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- acpidump APIC @ bff00000 (104 bytes) (loaded from file) diff --git a/fwts-test/arg-table-path-0001/acpidump-0002.log b/fwts-test/arg-table-path-0001/acpidump-0002.log index d388e80a..52cf3a36 100644 --- a/fwts-test/arg-table-path-0001/acpidump-0002.log +++ b/fwts-test/arg-table-path-0001/acpidump-0002.log @@ -63,9 +63,9 @@ acpidump F1 BD 7F 4C 09 FF 19 11 A9 D4 74 CA 11 9E DC 54 \ acpidump F3 1B 09 D2 63 5A DC A8 83 F8 5E C9 15 95 F9 FA \ acpidump F3 FC CD C7 89 84 06 16 91 0B 1E 81 11 42 B1 35 \ acpidump FD DC 05 B7 4D 67 7F 2D B3 84 33 20 E1 D1 79 2A \ -acpidump 0000: 54 4d 4f 52 26 00 00 00 01 eb 50 54 4c 54 44 20 TMOR&.....PTLTD -acpidump 0010: 20 20 20 20 20 20 20 20 00 00 04 06 50 54 4c 20 ....PTL -acpidump 0020: 03 00 00 00 f3 f4 ...... +acpidump 0000: 54 4D 4F 52 26 00 00 00 01 EB 50 54 4C 54 44 20 TMOR&.....PTLTD +acpidump 0010: 20 20 20 20 20 20 20 20 00 00 04 06 50 54 4C 20 ....PTL +acpidump 0020: 03 00 00 00 F3 F4 ...... acpidump ---- acpidump ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- acpidump APIC @ bff00000 (104 bytes) (loaded from file)