From patchwork Tue Jun 25 04:39:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1951885 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W7XDt0DdHz1ydW for ; Tue, 25 Jun 2024 14:39:57 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sLxy8-0005Ip-UN; Tue, 25 Jun 2024 04:39:48 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sLxy8-0005Ii-0r for fwts-devel@lists.ubuntu.com; Tue, 25 Jun 2024 04:39:48 +0000 Received: from canonical.com (unknown [10.102.137.184]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id CBF6F3F29F for ; Tue, 25 Jun 2024 04:39:46 +0000 (UTC) From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH 1/2] acpi: cedt: add raw data dump for interleave target list Date: Tue, 25 Jun 2024 12:39:41 +0800 Message-Id: <20240625043942.97395-1-ivan.hu@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" Complete the TODO list for the cedt test. Signed-off-by: Ivan Hu --- src/acpi/cedt/cedt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/acpi/cedt/cedt.c b/src/acpi/cedt/cedt.c index d285785f..4987a097 100644 --- a/src/acpi/cedt/cedt.c +++ b/src/acpi/cedt/cedt.c @@ -79,7 +79,7 @@ static void cedt_chbs_test( static void cedt_cfmws_test( fwts_framework *fw, - const fwts_acpi_table_cedt_cfmws *entry, + fwts_acpi_table_cedt_cfmws *entry, bool *passed) { fwts_log_info_verbatim(fw, " CXL Fixed Memory Window Structure (CFMWS):"); @@ -95,7 +95,9 @@ static void cedt_cfmws_test( fwts_log_info_simp_int(fw, " HBIG: ", entry->hbig); fwts_log_info_simp_int(fw, " Window Restrictions: ", entry->window_restrictions); fwts_log_info_simp_int(fw, " QTG ID: ", entry->qtg_id); - fwts_log_info_verbatim(fw, " Interleave Target List"); /* TODO: dumping the raw data */ + fwts_log_info_verbatim(fw, " Interleave Target List:"); + fwts_hexdump_data_prefix_all(fw, (uint8_t *)entry->interleave_target_list, + " ",sizeof(uint32_t) * entry->eniw ); fwts_acpi_reserved_zero("CEDT", "Reserved", entry->header.reserved, passed); fwts_acpi_reserved_zero("CEDT", "Reserved", entry->reserved1, passed); From patchwork Tue Jun 25 04:39:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1951886 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W7XDx5DnHz1ydW for ; Tue, 25 Jun 2024 14:40:01 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sLxyH-0005K6-3I; Tue, 25 Jun 2024 04:39:57 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sLxyF-0005Jn-HK for fwts-devel@lists.ubuntu.com; Tue, 25 Jun 2024 04:39:55 +0000 Received: from canonical.com (unknown [10.102.137.184]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 9DBFA3F29F for ; Tue, 25 Jun 2024 04:39:54 +0000 (UTC) From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH 2/2] fwts-test: cedt: fix the wrong value of ENIW Date: Tue, 25 Jun 2024 12:39:42 +0800 Message-Id: <20240625043942.97395-2-ivan.hu@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240625043942.97395-1-ivan.hu@canonical.com> References: <20240625043942.97395-1-ivan.hu@canonical.com> MIME-Version: 1.0 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: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" Signed-off-by: Ivan Hu --- fwts-test/cedt-0001/acpidump-0001.log | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fwts-test/cedt-0001/acpidump-0001.log b/fwts-test/cedt-0001/acpidump-0001.log index a09ee9e0..cc51980a 100644 --- a/fwts-test/cedt-0001/acpidump-0001.log +++ b/fwts-test/cedt-0001/acpidump-0001.log @@ -29,7 +29,7 @@ CEDT @ 0x0000000000000000 0020: 17 12 21 20 00 00 20 00 00 5e ba 00 00 00 00 00 ..! .. ..^...... 0030: 00 00 00 00 00 10 00 00 00 00 00 00 00 20 00 00 ............. .. 0040: 00 00 00 00 01 00 28 00 00 00 00 00 00 00 00 00 ......(......... - 0050: 00 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 ................ + 0050: 00 01 00 00 00 00 00 00 00 01 00 00 01 00 00 00 ................ 0060: 03 00 00 00 06 00 01 00 00 5e ba 00 02 00 18 00 .....^...^...... 0070: 00 00 03 02 01 02 03 04 05 06 07 08 01 02 03 04 ................ 0080: 05 06 07 08 03 00 10 00 01 09 00 00 00 00 00 00 ................