From patchwork Mon Jul 18 09:22:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ivanhu X-Patchwork-Id: 1657348 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=CpEAS+3V; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4Lmc2P2WnPz9s2R for ; Mon, 18 Jul 2022 19:23:09 +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 1oDMy2-0001Mi-FT; Mon, 18 Jul 2022 09:23:06 +0000 Received: from smtp-relay-canonical-0.internal ([10.131.114.83] helo=smtp-relay-canonical-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1oDMxz-0001MF-Vb for fwts-devel@lists.ubuntu.com; Mon, 18 Jul 2022 09:23:03 +0000 Received: from canonical.com (unknown [106.104.72.120]) (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-0.canonical.com (Postfix) with ESMTPSA id A7ADC3F103 for ; Mon, 18 Jul 2022 09:23:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1658136183; bh=sZnrpGxRHstSw3IKoMi5ThHQ+P8m/ELkIDzkrCv5ugY=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CpEAS+3V753uO0Z9b4CWBHxeC5HLrB1zN0KemzrEs4HLeZbPjVWFN5YW0N7UHLoVY WTJ50CYgnYsj+pcNVNVnmqrf6Tb4p9EqT+7akA0ce258WHNtZPB9WKJFBf7VOWoKk1 vTfCp/n1Q9egc7JqXKR3GQipIEp/AyvWVuCxm9UtaZWZrcZB4wwvBTJax0fCMC6rRP dsUVwB3NNRTEmnUd6fD8FI3GC74dexPYzklkn7IoecAmXpcTVXoA500xutKK0agsWm qrL95F9NcNHdATx1l0OVNjGVWTVE1vgMsahz8jiXvhNAbBil++nUyacFfydLTUbs7R C+HhHijQg/tpw== From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH 2/2] fwts-test: sync up with asf verbose dump Date: Mon, 18 Jul 2022 17:22:47 +0800 Message-Id: <20220718092247.54238-2-ivan.hu@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220718092247.54238-1-ivan.hu@canonical.com> References: <20220718092247.54238-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/asf-0001/asf-0001.log | 125 ++++++++++++++++++++++++++++++++ fwts-test/asf-0001/asf-0002.log | 66 +++++++++++++++++ 2 files changed, 191 insertions(+) diff --git a/fwts-test/asf-0001/asf-0001.log b/fwts-test/asf-0001/asf-0001.log index 48d6cc06..bf245071 100644 --- a/fwts-test/asf-0001/asf-0001.log +++ b/fwts-test/asf-0001/asf-0001.log @@ -2,11 +2,136 @@ asf asf: ASF! Alert Standard Format Table test. asf ---------------------------------------------------------- asf Test 1 of 1: ASF! Alert Standard Format Table test. asf ASF! Hardware Error Source Table +asf Type: 0x00 +asf Reserved: 0x00 +asf Length: 0x0010 +asf ASF! ASF_INFO Record: +asf Min Watchdog Reset Value: 0xff +asf Min Poll Wait Time: 0xff +asf System ID: 0x2017 +asf IANA Manufacturer ID: 0x664a0000 +asf Feature Flags: 0x00 +asf Reserved: 0x00 +asf Reserved: 0x00 +asf Reserved: 0x00 asf PASSED: Test 1, No issues found in ASF! ASF_INFO record. +asf +asf Type: 0x01 +asf Reserved: 0x00 +asf Length: 0x002c +asf ASF! ASF_ALRT Record: +asf Assertion Event Mask: 0x00 +asf De-Assertion Event Mask: 0x00 +asf Number of Alerts: 0x03 +asf Array Element Length: 0x0c +asf ASF! ASF_ALRT Element 0: +asf Device Address: 0x00 +asf Alert Command: 0x00 +asf Alert Data Mask: 0x00 +asf Alert Compare Value: 0x00 +asf Alert Event Sensor Type: 0x00 +asf Alert Event Type: 0x00 +asf Alert Event Offset: 0x00 +asf Alert Source Type: 0x00 +asf Alert Event Severity: 0x00 +asf Alert Sensor Number: 0x00 +asf Alert Entity: 0x00 +asf Alert Entity Instance: 0x00 +asf ASF! ASF_ALRT Element 1: +asf Device Address: 0x00 +asf Alert Command: 0x00 +asf Alert Data Mask: 0x00 +asf Alert Compare Value: 0x00 +asf Alert Event Sensor Type: 0x00 +asf Alert Event Type: 0x00 +asf Alert Event Offset: 0x00 +asf Alert Source Type: 0x00 +asf Alert Event Severity: 0x00 +asf Alert Sensor Number: 0x00 +asf Alert Entity: 0x00 +asf Alert Entity Instance: 0x00 +asf ASF! ASF_ALRT Element 2: +asf Device Address: 0x00 +asf Alert Command: 0x00 +asf Alert Data Mask: 0x00 +asf Alert Compare Value: 0x00 +asf Alert Event Sensor Type: 0x00 +asf Alert Event Type: 0x00 +asf Alert Event Offset: 0x00 +asf Alert Source Type: 0x00 +asf Alert Event Severity: 0x00 +asf Alert Sensor Number: 0x00 +asf Alert Entity: 0x00 +asf Alert Entity Instance: 0x00 asf PASSED: Test 1, No issues found in ASF! ASF_ALRT record. +asf +asf Type: 0x02 +asf Reserved: 0x00 +asf Length: 0x0018 +asf ASF! ASF_RCTL Record: +asf Number of Controls: 0x04 +asf Array Element Length: 0x04 +asf Reserved: 0x0004 +asf ASF! ASF_RCTL Element 0: +asf Control Function: 0x00 +asf Control Device Address: 0x88 +asf Control Command: 0x00 +asf Control Value: 0x03 +asf ASF! ASF_RCTL Element 1: +asf Control Function: 0x01 +asf Control Device Address: 0x88 +asf Control Command: 0x00 +asf Control Value: 0x02 +asf ASF! ASF_RCTL Element 2: +asf Control Function: 0x02 +asf Control Device Address: 0x88 +asf Control Command: 0x00 +asf Control Value: 0x01 +asf ASF! ASF_RCTL Element 3: +asf Control Function: 0x03 +asf Control Device Address: 0x88 +asf Control Command: 0x00 +asf Control Value: 0x04 asf PASSED: Test 1, No issues found in ASF! ASF_RCTL record. +asf +asf Type: 0x03 +asf Reserved: 0x00 +asf Length: 0x0017 +asf ASF! ASF_RMCP Record: +asf Remote Control Cap.: 0x00 0xf8 0x00 0x00 0x00 0x13 0xf0 +asf Boot Opt. Completion Code:0x01 +asf IANA Enterprise ID: 0x00000000 +asf Special Command: 0x00 +asf Special Command Parameter:0x0000 +asf Boot Options: 0x00 0x00 +asf OEM Parameters: 0x0000 asf PASSED: Test 1, No issues found in ASF! ASF_RMCP record. +asf +asf Type: 0x84 +asf Reserved: 0x00 +asf Length: 0x0016 +asf ASF! ASF_ADDR Record: +asf SEEPROM Address: 0x00 +asf Number of Devices: 0x10 +asf Fixed SMBus Address 0x5c +asf Fixed SMBus Address 0x68 +asf Fixed SMBus Address 0x88 +asf Fixed SMBus Address 0xc2 +asf Fixed SMBus Address 0xd2 +asf Fixed SMBus Address 0xdc +asf Fixed SMBus Address 0xa0 +asf Fixed SMBus Address 0xa2 +asf Fixed SMBus Address 0xa4 +asf Fixed SMBus Address 0xa6 +asf Fixed SMBus Address 0xc8 +asf Fixed SMBus Address 0x00 +asf Fixed SMBus Address 0x00 +asf Fixed SMBus Address 0x00 +asf Fixed SMBus Address 0x00 +asf Fixed SMBus Address 0x00 asf PASSED: Test 1, No issues found in ASF! ASF_ADDR record. +asf +asf asf PASSED: Test 1, No issues found in ASF! table. asf asf ========================================================== diff --git a/fwts-test/asf-0001/asf-0002.log b/fwts-test/asf-0001/asf-0002.log index 656827c3..f9b120c3 100644 --- a/fwts-test/asf-0001/asf-0002.log +++ b/fwts-test/asf-0001/asf-0002.log @@ -2,6 +2,18 @@ asf asf: ASF! Alert Standard Format Table test. asf ---------------------------------------------------------- asf Test 1 of 1: ASF! Alert Standard Format Table test. asf ASF! Hardware Error Source Table +asf Type: 0x00 +asf Reserved: 0x00 +asf Length: 0x0010 +asf ASF! ASF_INFO Record: +asf Min Watchdog Reset Value: 0x00 +asf Min Poll Wait Time: 0x00 +asf System ID: 0x2017 +asf IANA Manufacturer ID: 0x664a0000 +asf Feature Flags: 0xff +asf Reserved: 0x10 +asf Reserved: 0x20 +asf Reserved: 0x40 asf FAILED [HIGH] ASF!InfoMinPollWaitTimeInvalid: Test 1, ASF! asf ASF_INFO Minimum Poll Wait Time is 0x0 and must be in the asf range 0x02..0xff @@ -14,21 +26,75 @@ asf FAILED [MEDIUM] ASF!ReservedNonZero: Test 1, ASF! ASF_INFO asf Reserved2 field must be zero, got 0x20 instead asf FAILED [MEDIUM] ASF!ReservedNonZero: Test 1, ASF! ASF_INFO asf Reserved3 field must be zero, got 0x40 instead +asf +asf Type: 0x01 +asf Reserved: 0x00 +asf Length: 0x002c +asf ASF! ASF_ALRT Record: +asf Assertion Event Mask: 0x00 +asf De-Assertion Event Mask: 0x00 +asf Number of Alerts: 0x23 +asf Array Element Length: 0x0c asf FAILED [HIGH] ASF!AlrtNumOfAlertsInvalid: Test 1, ASF! asf ASF_ALRT Number of Alerts field is 0x23 and must be in the asf range 0x01..0x08 +asf +asf Type: 0x02 +asf Reserved: 0x00 +asf Length: 0x0018 +asf ASF! ASF_RCTL Record: +asf Number of Controls: 0x04 +asf Array Element Length: 0x05 +asf Reserved: 0x0005 asf FAILED [HIGH] ASF!RctlArrayElementLengthInvalid: Test 1, asf ASF! ASF_RCTL Array Element Length is 0x5 and must be asf instead 0x4 +asf ASF! ASF_RCTL Element 0: +asf Control Function: 0x08 +asf Control Device Address: 0x88 +asf Control Command: 0x00 +asf Control Value: 0x03 asf FAILED [HIGH] ASF!RctlCtrlFuncInvalid: Test 1, ASF! asf ASF_RCTL Control Function is 0x8 and must be in the range asf 0x00..0x03 +asf ASF! ASF_RCTL Element 1: +asf Control Function: 0x01 +asf Control Device Address: 0x88 +asf Control Command: 0x00 +asf Control Value: 0x02 +asf ASF! ASF_RCTL Element 2: +asf Control Function: 0x02 +asf Control Device Address: 0x88 +asf Control Command: 0x00 +asf Control Value: 0x01 +asf ASF! ASF_RCTL Element 3: +asf Control Function: 0x03 +asf Control Device Address: 0x88 +asf Control Command: 0x00 +asf Control Value: 0x04 +asf +asf Type: 0x03 +asf Reserved: 0x00 +asf Length: 0x0017 +asf ASF! ASF_RMCP Record: +asf Remote Control Cap.: 0x00 0xf8 0x00 0x00 0x00 0x13 0xf0 +asf Boot Opt. Completion Code:0x01 +asf IANA Enterprise ID: 0x00000000 +asf Special Command: 0x00 +asf Special Command Parameter:0x0000 +asf Boot Options: 0x00 0x00 +asf OEM Parameters: 0x0000 asf PASSED: Test 1, No issues found in ASF! ASF_RMCP record. +asf +asf Type: 0x84 +asf Reserved: 0x00 +asf Length: 0x0018 asf FAILED [HIGH] ASF!InfoRecordLengthTooLong: Test 1, ASF! asf Information Record Reserved length is 24 and this is too asf long for the size given by the ASF! table. Expected at asf most 22 bytes. asf +asf asf ========================================================== asf 1 passed, 9 failed, 0 warning, 0 aborted, 0 skipped, 0 asf info only.