From patchwork Sat May 29 00:57:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 1485331 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=) 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 4FsNTD5xG1z9sVm for ; Sat, 29 May 2021 10:58:08 +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 1lmnIj-0004X0-Bf; Sat, 29 May 2021 00:58:05 +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 1lmnIg-0004Vm-5M for fwts-devel@lists.ubuntu.com; Sat, 29 May 2021 00:58:02 +0000 Received: from d75-158-101-9.abhsia.telus.net ([75.158.101.9] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lmnIf-00055l-DN; Sat, 29 May 2021 00:58:01 +0000 From: Alex Hung To: fwts-devel@lists.ubuntu.com Subject: [PATCH 2/2] fwts-test: sync up with wdat changes Date: Fri, 28 May 2021 18:57:57 -0600 Message-Id: <20210529005757.1800860-2-alex.hung@canonical.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210529005757.1800860-1-alex.hung@canonical.com> References: <20210529005757.1800860-1-alex.hung@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: Alex Hung Acked-by: Ivan Hu Acked-by: Colin Ian King --- fwts-test/wdat-0001/wdat-0001.log | 233 +++++++++++++++++++++++++++++ fwts-test/wdat-0001/wdat-0002.log | 238 +++++++++++++++++++++++++++++- 2 files changed, 468 insertions(+), 3 deletions(-) diff --git a/fwts-test/wdat-0001/wdat-0001.log b/fwts-test/wdat-0001/wdat-0001.log index 1dea97e3..6f2e87ec 100644 --- a/fwts-test/wdat-0001/wdat-0001.log +++ b/fwts-test/wdat-0001/wdat-0001.log @@ -2,6 +2,239 @@ wdat wdat: WDAT Microsoft Hardware Watchdog Action Table test. wdat ---------------------------------------------------------- wdat Test 1 of 1: WDAT Microsoft Hardware Watchdog Action Table wdat test. +wdat WDAT Microsoft Watchdog Action Table: +wdat Watchdog Header Length: 0x00000020 +wdat PCI Segment: 0x00ff +wdat PCI Bus Number: 0xff +wdat PCI Device Number: 0xff +wdat PCI Function Number: 0xff +wdat Reserved: 0x00000000 +wdat Timer Period: 0x00000258 +wdat Maximum Count: 0x000003ff +wdat Minimum Count: 0x00000002 +wdat Watchdog Flags: 0x81 +wdat Reserved: 0x00000000 +wdat Watchdog Entries 0x00000014 +wdat Watchdog Instruction Entry 1 +wdat Watchdog Action: 0x01 +wdat Instruction Flags: 0x02 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x0000000000000460 +wdat Value: 0x00000000 +wdat Mask: 0x000003ff +wdat Watchdog Instruction Entry 2 +wdat Watchdog Action: 0x04 +wdat Instruction Flags: 0x01 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x0000000000000460 +wdat Value: 0x00000000 +wdat Mask: 0x000003ff +wdat Watchdog Instruction Entry 3 +wdat Watchdog Action: 0x05 +wdat Instruction Flags: 0x01 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x0000000000000472 +wdat Value: 0x00000000 +wdat Mask: 0x000003ff +wdat Watchdog Instruction Entry 4 +wdat Watchdog Action: 0x06 +wdat Instruction Flags: 0x83 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x0000000000000472 +wdat Value: 0x00000000 +wdat Mask: 0x000003ff +wdat Watchdog Instruction Entry 5 +wdat Watchdog Action: 0x08 +wdat Instruction Flags: 0x00 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x0b +wdat Access Size 0x02 +wdat Address 0x0000000000000468 +wdat Value: 0x00000000 +wdat Mask: 0x00000001 +wdat Watchdog Instruction Entry 6 +wdat Watchdog Action: 0x09 +wdat Instruction Flags: 0x82 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x0000000000000468 +wdat Value: 0x00000000 +wdat Mask: 0x00000800 +wdat Watchdog Instruction Entry 7 +wdat Watchdog Action: 0x09 +wdat Instruction Flags: 0x02 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000072 +wdat Value: 0x00000045 +wdat Mask: 0x000000ff +wdat Watchdog Instruction Entry 8 +wdat Watchdog Action: 0x09 +wdat Instruction Flags: 0x82 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000073 +wdat Value: 0x00000001 +wdat Mask: 0x00000001 +wdat Watchdog Instruction Entry 9 +wdat Watchdog Action: 0x0a +wdat Instruction Flags: 0x00 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x0b +wdat Access Size 0x02 +wdat Address 0x0000000000000468 +wdat Value: 0x00000001 +wdat Mask: 0x00000001 +wdat Watchdog Instruction Entry 10 +wdat Watchdog Action: 0x0b +wdat Instruction Flags: 0x82 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x0000000000000468 +wdat Value: 0x00000800 +wdat Mask: 0x00000800 +wdat Watchdog Instruction Entry 11 +wdat Watchdog Action: 0x0b +wdat Instruction Flags: 0x02 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000072 +wdat Value: 0x00000045 +wdat Mask: 0x000000ff +wdat Watchdog Instruction Entry 12 +wdat Watchdog Action: 0x0b +wdat Instruction Flags: 0x82 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000073 +wdat Value: 0x00000000 +wdat Mask: 0x00000001 +wdat Watchdog Instruction Entry 13 +wdat Watchdog Action: 0x10 +wdat Instruction Flags: 0x00 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x04 +wdat Access Size 0x01 +wdat Address 0x000000000000046a +wdat Value: 0x00000000 +wdat Mask: 0x00000003 +wdat Watchdog Instruction Entry 14 +wdat Watchdog Action: 0x11 +wdat Instruction Flags: 0x82 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x000000000000046a +wdat Value: 0x00000000 +wdat Mask: 0x00000030 +wdat Watchdog Instruction Entry 15 +wdat Watchdog Action: 0x12 +wdat Instruction Flags: 0x00 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x04 +wdat Access Size 0x01 +wdat Address 0x000000000000046a +wdat Value: 0x00000001 +wdat Mask: 0x00000003 +wdat Watchdog Instruction Entry 16 +wdat Watchdog Action: 0x13 +wdat Instruction Flags: 0x82 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x000000000000046a +wdat Value: 0x00000010 +wdat Mask: 0x00000030 +wdat Watchdog Instruction Entry 17 +wdat Watchdog Action: 0x20 +wdat Instruction Flags: 0x02 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000072 +wdat Value: 0x00000045 +wdat Mask: 0x000000ff +wdat Watchdog Instruction Entry 18 +wdat Watchdog Action: 0x20 +wdat Instruction Flags: 0x00 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000073 +wdat Value: 0x00000001 +wdat Mask: 0x00000001 +wdat Watchdog Instruction Entry 19 +wdat Watchdog Action: 0x21 +wdat Instruction Flags: 0x02 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000072 +wdat Value: 0x00000045 +wdat Mask: 0x000000ff +wdat Watchdog Instruction Entry 20 +wdat Watchdog Action: 0x21 +wdat Instruction Flags: 0x82 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000073 +wdat Value: 0x00000000 +wdat Mask: 0x00000001 wdat PASSED: Test 1, All 20 WDAT Watchdog Instruction Entries wdat look sane. wdat PASSED: Test 1, No issues found in WDAT table. diff --git a/fwts-test/wdat-0001/wdat-0002.log b/fwts-test/wdat-0001/wdat-0002.log index f07f5b6f..d228bddf 100644 --- a/fwts-test/wdat-0001/wdat-0002.log +++ b/fwts-test/wdat-0001/wdat-0002.log @@ -2,12 +2,35 @@ wdat wdat: WDAT Microsoft Hardware Watchdog Action Table test. wdat ---------------------------------------------------------- wdat Test 1 of 1: WDAT Microsoft Hardware Watchdog Action Table wdat test. -wdat FAILED [MEDIUM] WDATReservedFieldsNonZero: Test 1, WDAT -wdat Reserved Fields contain a non-zero value, these all should -wdat be zero. +wdat WDAT Microsoft Watchdog Action Table: +wdat Watchdog Header Length: 0x00000020 +wdat PCI Segment: 0x00ff +wdat PCI Bus Number: 0xff +wdat PCI Device Number: 0xff +wdat PCI Function Number: 0xff +wdat Reserved: 0x00302010 +wdat FAILED [MEDIUM] WDATReservedNonZero: Test 1, WDAT +wdat Reserved1 field must be zero, got 0x00302010 instead +wdat Timer Period: 0x00000258 +wdat Maximum Count: 0x000003ff +wdat Minimum Count: 0x00000409 +wdat Watchdog Flags: 0x81 +wdat Reserved: 0x00000000 +wdat Watchdog Entries 0x00000014 wdat FAILED [MEDIUM] WDATMinGreaterThanMax: Test 1, WDAT wdat Minimum Count is 0x409 and is greater than the Maximum wdat Count of 0x3ff +wdat Watchdog Instruction Entry 1 +wdat Watchdog Action: 0x07 +wdat Instruction Flags: 0x46 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x0000000000000460 +wdat Value: 0x00000000 +wdat Mask: 0x000003ff wdat FAILED [HIGH] WDATWatchdogActionInvalid: Test 1, WDAT wdat Watchdog Instruction Entry 1 Watchdog Action field is 0x7 wdat and should be one of 0x00, 0x04, 0x05, 0x06, 0x08, 0x09, @@ -16,6 +39,215 @@ wdat FAILED [HIGH] WDATInstructionFlagsInvalid: Test 1, WDAT wdat Watchdog Instruction Entry 1 Instruction Flags field is wdat 0x46 and should be one of 0x00, 0x01, 0x02, 0x03 or 0x80, wdat 0x81, 0x82, 0x83 +wdat Watchdog Instruction Entry 2 +wdat Watchdog Action: 0x04 +wdat Instruction Flags: 0x01 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x0000000000000460 +wdat Value: 0x00000000 +wdat Mask: 0x000003ff +wdat Watchdog Instruction Entry 3 +wdat Watchdog Action: 0x05 +wdat Instruction Flags: 0x01 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x0000000000000472 +wdat Value: 0x00000000 +wdat Mask: 0x000003ff +wdat Watchdog Instruction Entry 4 +wdat Watchdog Action: 0x06 +wdat Instruction Flags: 0x83 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x0000000000000472 +wdat Value: 0x00000000 +wdat Mask: 0x000003ff +wdat Watchdog Instruction Entry 5 +wdat Watchdog Action: 0x08 +wdat Instruction Flags: 0x00 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x0b +wdat Access Size 0x02 +wdat Address 0x0000000000000468 +wdat Value: 0x00000000 +wdat Mask: 0x00000001 +wdat Watchdog Instruction Entry 6 +wdat Watchdog Action: 0x09 +wdat Instruction Flags: 0x82 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x0000000000000468 +wdat Value: 0x00000000 +wdat Mask: 0x00000800 +wdat Watchdog Instruction Entry 7 +wdat Watchdog Action: 0x09 +wdat Instruction Flags: 0x02 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000072 +wdat Value: 0x00000045 +wdat Mask: 0x000000ff +wdat Watchdog Instruction Entry 8 +wdat Watchdog Action: 0x09 +wdat Instruction Flags: 0x82 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000073 +wdat Value: 0x00000001 +wdat Mask: 0x00000001 +wdat Watchdog Instruction Entry 9 +wdat Watchdog Action: 0x0a +wdat Instruction Flags: 0x00 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x0b +wdat Access Size 0x02 +wdat Address 0x0000000000000468 +wdat Value: 0x00000001 +wdat Mask: 0x00000001 +wdat Watchdog Instruction Entry 10 +wdat Watchdog Action: 0x0b +wdat Instruction Flags: 0x82 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x0000000000000468 +wdat Value: 0x00000800 +wdat Mask: 0x00000800 +wdat Watchdog Instruction Entry 11 +wdat Watchdog Action: 0x0b +wdat Instruction Flags: 0x02 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000072 +wdat Value: 0x00000045 +wdat Mask: 0x000000ff +wdat Watchdog Instruction Entry 12 +wdat Watchdog Action: 0x0b +wdat Instruction Flags: 0x82 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000073 +wdat Value: 0x00000000 +wdat Mask: 0x00000001 +wdat Watchdog Instruction Entry 13 +wdat Watchdog Action: 0x10 +wdat Instruction Flags: 0x00 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x04 +wdat Access Size 0x01 +wdat Address 0x000000000000046a +wdat Value: 0x00000000 +wdat Mask: 0x00000003 +wdat Watchdog Instruction Entry 14 +wdat Watchdog Action: 0x11 +wdat Instruction Flags: 0x82 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x000000000000046a +wdat Value: 0x00000000 +wdat Mask: 0x00000030 +wdat Watchdog Instruction Entry 15 +wdat Watchdog Action: 0x12 +wdat Instruction Flags: 0x00 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x04 +wdat Access Size 0x01 +wdat Address 0x000000000000046a +wdat Value: 0x00000001 +wdat Mask: 0x00000003 +wdat Watchdog Instruction Entry 16 +wdat Watchdog Action: 0x13 +wdat Instruction Flags: 0x82 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x10 +wdat Register Bit Offset 0x00 +wdat Access Size 0x02 +wdat Address 0x000000000000046a +wdat Value: 0x00000010 +wdat Mask: 0x00000030 +wdat Watchdog Instruction Entry 17 +wdat Watchdog Action: 0x20 +wdat Instruction Flags: 0x02 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000072 +wdat Value: 0x00000045 +wdat Mask: 0x000000ff +wdat Watchdog Instruction Entry 18 +wdat Watchdog Action: 0x20 +wdat Instruction Flags: 0x00 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000073 +wdat Value: 0x00000001 +wdat Mask: 0x00000001 +wdat Watchdog Instruction Entry 19 +wdat Watchdog Action: 0x21 +wdat Instruction Flags: 0x02 +wdat Reserved: 0x0000 +wdat Address Space ID: 0x01 +wdat Register Bit Width 0x08 +wdat Register Bit Offset 0x00 +wdat Access Size 0x01 +wdat Address 0x0000000000000072 +wdat Value: 0x00000045 +wdat Mask: 0x000000ff +wdat Watchdog Instruction Entry 20 +wdat Watchdog Action: 0xff +wdat Instruction Flags: 0xff +wdat Reserved: 0x0000 +wdat Address Space ID: 0xff +wdat Register Bit Width 0xff +wdat Register Bit Offset 0x00 +wdat Access Size 0xff +wdat Address 0x0000000000000073 +wdat Value: 0x00000000 +wdat Mask: 0x00000001 wdat FAILED [HIGH] WDATWatchdogActionInvalid: Test 1, WDAT wdat Watchdog Instruction Entry 20 Watchdog Action field is wdat 0xff and should be one of 0x00, 0x04, 0x05, 0x06, 0x08,