From patchwork Mon Jun 19 06:46:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1796332 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=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.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=VtupU8GK; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (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 4Ql0fj3qnJz20XQ for ; Mon, 19 Jun 2023 16:46:36 +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 1qB8ei-0005zt-0x; Mon, 19 Jun 2023 06:46:28 +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 1qB8ef-0005zj-9z for fwts-devel@lists.ubuntu.com; Mon, 19 Jun 2023 06:46:25 +0000 Received: from canonical.com (unknown [10.101.194.165]) (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 278303F038 for ; Mon, 19 Jun 2023 06:46:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1687157185; bh=9790RaysqEGrzY3bqChOlyBA75xIWp+N2fRSV+3wpcA=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=VtupU8GKwcNtIq2a4VvtoEyUQnaIo6xwtMnGcbfcM3pFOvDJj6853xaiqwgYugA9w b27DsG1Yxl2mjgPgJpL4mzwEgBf98YBykuRm6sFmZ8AVdGMRa7uwaw92hZB/D1icu4 Wi/falxd1gtwZHVEFkQMzWZUMAWXvJXhKU7h3/oosxjAgc9lLKt7CiMjEBxJ/1Hly+ lDW/MCrYvb+4/sPT2LAqfYlsi1n4f8rwY9TGr+zrWagX0uV8meY2rDWmi0KpJHgs+k HlHIjs/HJGy3AzeXR1m0/wAHdFM6z7Ga/IbnHfWKMvKwEjryM8YjqIrDaAnI5VV+Hs Rk6Hz4WnKT4cA== From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] fwts-test: sync up with adding the mpam tests Date: Mon, 19 Jun 2023 14:46:19 +0800 Message-Id: <20230619064619.68475-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" Signed-off-by: Ivan Hu --- Makefile.am | 6 +- fwts-test/mpam-0001/acpidump-0001.log | 48 ++++++++ fwts-test/mpam-0001/acpidump-0002.log | 48 ++++++++ fwts-test/mpam-0001/mpam-0001.log | 111 ++++++++++++++++++ fwts-test/mpam-0001/mpam-0002.log | 160 ++++++++++++++++++++++++++ fwts-test/mpam-0001/test-0001.sh | 23 ++++ fwts-test/mpam-0001/test-0002.sh | 23 ++++ 7 files changed, 417 insertions(+), 2 deletions(-) create mode 100644 fwts-test/mpam-0001/acpidump-0001.log create mode 100644 fwts-test/mpam-0001/acpidump-0002.log create mode 100644 fwts-test/mpam-0001/mpam-0001.log create mode 100644 fwts-test/mpam-0001/mpam-0002.log create mode 100755 fwts-test/mpam-0001/test-0001.sh create mode 100755 fwts-test/mpam-0001/test-0002.sh diff --git a/Makefile.am b/Makefile.am index 58f5bbe2..8960aecc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -148,8 +148,10 @@ TESTS = fwts-test/acpidump-0001/test-0001.sh \ fwts-test/madt-0001/test-0002.sh \ fwts-test/mchi-0001/test-0001.sh \ fwts-test/mchi-0001/test-0002.sh \ - fwts-test/mpst-0001/test-0001.sh \ - fwts-test/mpst-0001/test-0002.sh \ + fwts-test/mpam-0001/test-0001.sh \ + fwts-test/mpam-0001/test-0002.sh \ + fwts-test/mpst-0001/test-0001.sh \ + fwts-test/mpst-0001/test-0002.sh \ fwts-test/msdm-0001/test-0001.sh \ fwts-test/msdm-0001/test-0002.sh \ fwts-test/method-0001/test-0001.sh \ diff --git a/fwts-test/mpam-0001/acpidump-0001.log b/fwts-test/mpam-0001/acpidump-0001.log new file mode 100644 index 00000000..de3c4abb --- /dev/null +++ b/fwts-test/mpam-0001/acpidump-0001.log @@ -0,0 +1,48 @@ +FACS @ 0x00000000 + 0000: 46 41 43 53 40 00 00 00 00 00 00 00 00 00 00 00 FACS@........... + 0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + 0020: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + 0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + 0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + +FACP @ 0x00000000 + 0000: 46 41 43 50 f4 00 00 00 03 f9 41 4d 44 20 20 20 FACP......AMD + 0010: 47 55 41 4d 20 20 20 20 00 00 04 06 41 4d 44 20 GUAM ....AMD + 0020: 40 42 0f 00 c0 2f e9 af 92 47 e8 af 00 02 09 00 @B.../...G...... + 0030: b0 00 00 00 f0 f1 00 00 00 80 00 00 00 00 00 00 ................ + 0040: 04 80 00 00 00 00 00 00 00 82 00 00 08 80 00 00 ................ + 0050: 20 80 00 00 00 00 00 00 04 02 01 04 08 00 00 00 ............... + 0060: 65 00 e9 03 00 00 00 00 01 00 0d 00 32 00 00 00 e...........2... + 0070: a5 c1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + 0080: 00 00 00 00 c0 2f e9 af 00 00 00 00 92 47 e8 af ...../.......G.. + 0090: 00 00 00 00 01 20 00 00 00 80 00 00 00 00 00 00 ..... .......... + 00a0: 00 00 00 00 00 00 00 00 00 00 00 00 01 10 00 00 ................ + 00b0: 04 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + 00c0: 00 00 00 00 01 08 00 00 00 82 00 00 00 00 00 00 ................ + 00d0: 01 20 00 00 08 80 00 00 00 00 00 00 01 40 00 00 . ...........@.. + 00e0: 20 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............... + 00f0: 00 00 00 00 .... + +MPAM @ 0x00000000 + 0000: 4D 50 41 4D 54 01 00 00 02 34 48 49 53 49 20 20 MPAM.....4HISI + 0010: 54 45 4D 50 4C 41 54 45 02 00 00 00 49 4E 54 4C TEMPLATE....INTL + 0020: 20 10 22 20 60 00 00 00 01 00 00 00 00 00 00 C0 ." `........... + 0030: 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 ................ + 0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + 0050: 00 00 00 00 00 00 00 00 32 00 00 00 00 00 00 00 ........2....... + 0060: 00 00 00 00 00 00 00 00 01 00 00 00 11 00 00 00 ................ + 0070: 00 00 00 01 20 00 00 00 00 00 00 00 00 00 00 00 .... ........... + 0080: 00 00 00 00 D0 00 00 00 02 00 00 00 00 00 00 D0 ....x........... + 0090: 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 ................ + 00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + 00b0: 00 00 00 00 00 00 00 00 32 00 00 00 00 00 00 00 ........2....... + 00c0: 00 00 00 00 00 00 00 00 05 00 00 00 12 00 00 00 ................ + 00d0: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................ + 00e0: 00 00 00 00 13 00 00 00 01 00 00 FF 02 00 00 00 ................ + 00f0: 00 00 00 00 00 00 00 00 00 00 00 00 14 00 00 00 ................ + 0100: 01 00 00 03 00 00 00 00 00 00 00 01 02 00 00 00 ................ + 0110: 00 00 00 00 15 00 00 00 01 00 00 04 11 22 33 44 ................ + 0120: 55 66 77 88 99 AA BB CC 00 00 00 00 16 00 00 00 ................ + 0130: 01 00 00 02 02 00 00 00 00 00 00 00 00 00 00 00 ................ + 0140: 02 00 00 00 11 22 33 44 00 00 00 00 AA BB CC DD ................ + 0150: 00 00 00 00 .... diff --git a/fwts-test/mpam-0001/acpidump-0002.log b/fwts-test/mpam-0001/acpidump-0002.log new file mode 100644 index 00000000..f6061994 --- /dev/null +++ b/fwts-test/mpam-0001/acpidump-0002.log @@ -0,0 +1,48 @@ +FACS @ 0x00000000 + 0000: 46 41 43 53 40 00 00 00 00 00 00 00 00 00 00 00 FACS@........... + 0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + 0020: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + 0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + 0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + +FACP @ 0x00000000 + 0000: 46 41 43 50 f4 00 00 00 03 f9 41 4d 44 20 20 20 FACP......AMD + 0010: 47 55 41 4d 20 20 20 20 00 00 04 06 41 4d 44 20 GUAM ....AMD + 0020: 40 42 0f 00 c0 2f e9 af 92 47 e8 af 00 02 09 00 @B.../...G...... + 0030: b0 00 00 00 f0 f1 00 00 00 80 00 00 00 00 00 00 ................ + 0040: 04 80 00 00 00 00 00 00 00 82 00 00 08 80 00 00 ................ + 0050: 20 80 00 00 00 00 00 00 04 02 01 04 08 00 00 00 ............... + 0060: 65 00 e9 03 00 00 00 00 01 00 0d 00 32 00 00 00 e...........2... + 0070: a5 c1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + 0080: 00 00 00 00 c0 2f e9 af 00 00 00 00 92 47 e8 af ...../.......G.. + 0090: 00 00 00 00 01 20 00 00 00 80 00 00 00 00 00 00 ..... .......... + 00a0: 00 00 00 00 00 00 00 00 00 00 00 00 01 10 00 00 ................ + 00b0: 04 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + 00c0: 00 00 00 00 01 08 00 00 00 82 00 00 00 00 00 00 ................ + 00d0: 01 20 00 00 08 80 00 00 00 00 00 00 01 40 00 00 . ...........@.. + 00e0: 20 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............... + 00f0: 00 00 00 00 .... + +MPAM @ 0x00000000 + 0000: 4D 50 41 4D 54 01 00 00 02 34 48 49 53 49 20 20 MPAM.....4HISI + 0010: 54 45 4D 50 4C 41 54 45 02 00 00 00 49 4E 54 4C TEMPLATE....INTL + 0020: 20 10 22 20 60 00 01 02 01 00 00 00 00 00 00 C0 ." `........... + 0030: 00 00 00 00 00 00 01 00 00 00 00 00 02 00 00 FF ................ + 0040: 00 00 02 00 00 00 00 00 00 00 00 00 02 00 00 11 ................ + 0050: 00 00 00 FF 00 00 00 00 32 00 00 00 00 00 00 00 ........2....... + 0060: 00 00 00 00 00 00 00 00 01 00 00 00 11 00 00 00 ................ + 0070: 00 00 00 01 20 00 00 00 00 00 00 00 00 00 00 11 .... ........... + 0080: 00 00 00 00 D0 00 00 00 02 00 00 00 00 00 00 D0 ....x........... + 0090: 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 ................ + 00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ + 00b0: 00 00 00 00 00 00 00 00 32 00 00 00 00 00 00 00 ........2....... + 00c0: 00 00 00 00 00 00 00 00 05 00 00 00 12 00 00 00 ................ + 00d0: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 02 00 ................ + 00e0: 00 00 00 00 13 00 00 00 01 00 00 FF 02 00 00 00 ................ + 00f0: 00 00 00 00 00 00 00 00 00 00 00 00 14 00 00 00 ................ + 0100: 01 00 00 03 11 00 00 00 00 00 00 01 02 00 00 00 ................ + 0110: 00 00 00 00 15 00 00 00 01 00 00 04 11 22 33 44 ................ + 0120: 55 66 77 88 99 AA BB CC 00 00 00 00 16 00 00 00 ................ + 0130: 01 00 00 02 03 00 00 00 00 00 00 00 00 00 00 11 ................ + 0140: 02 00 00 00 11 22 33 44 00 00 00 00 AA BB CC DD ................ + 0150: 00 00 00 22 .... diff --git a/fwts-test/mpam-0001/mpam-0001.log b/fwts-test/mpam-0001/mpam-0001.log new file mode 100644 index 00000000..3f79b88f --- /dev/null +++ b/fwts-test/mpam-0001/mpam-0001.log @@ -0,0 +1,111 @@ +mpam mpam: MPAM Memory System Resource Partitioning And +mpam Monitoring Table test. +mpam ---------------------------------------------------------- +mpam Test 1 of 1: Validate MPAM table. +mpam MPAM Memory System Resource Partitioning And Monitoring Table: +mpam MPAM MSC node: +mpam Length: 0x0060 +mpam Interface type: 0x00 +mpam Reserved: 0x00 +mpam Identifier: 0x00000001 +mpam Base address: 0x00000000c0000000 +mpam MMIO size: 0x00010000 +mpam Overflow interrupt: 0x00000000 +mpam Overflow interrupt flags: 0x00000000 +mpam Reserved1: 0x00000000 +mpam Overflow interrupt affinity: 0x00000000 +mpam Error interrupt: 0x00000000 +mpam Error interrupt flags: 0x00000000 +mpam Reserved2: 0x00000000 +mpam Error interrupt affinity: 0x00000000 +mpam MAX_NRDY_USEC: 0x00000032 +mpam Hardware ID of linked device: 0x0000000000000000 +mpam Instance ID of linked device: 0x00000000 +mpam Number of resource nodes: 0x00000001 +mpam List of resource nodes: +mpam Identifier: 0x00000011 +mpam RIS Index: 0x00 +mpam Reserved1: 0x0000 +mpam Locator type: 0x01 +mpam Locator: +mpam Memory locator: +mpam 20 00 00 00 00 00 00 00 00 00 00 00 +mpam Number of functional dependencies: 0x00000000 +mpam +mpam MPAM MSC node: +mpam Length: 0x00d0 +mpam Interface type: 0x00 +mpam Reserved: 0x00 +mpam Identifier: 0x00000002 +mpam Base address: 0x00000000d0000000 +mpam MMIO size: 0x00010000 +mpam Overflow interrupt: 0x00000000 +mpam Overflow interrupt flags: 0x00000000 +mpam Reserved1: 0x00000000 +mpam Overflow interrupt affinity: 0x00000000 +mpam Error interrupt: 0x00000000 +mpam Error interrupt flags: 0x00000000 +mpam Reserved2: 0x00000000 +mpam Error interrupt affinity: 0x00000000 +mpam MAX_NRDY_USEC: 0x00000032 +mpam Hardware ID of linked device: 0x0000000000000000 +mpam Instance ID of linked device: 0x00000000 +mpam Number of resource nodes: 0x00000005 +mpam List of resource nodes: +mpam Identifier: 0x00000012 +mpam RIS Index: 0x00 +mpam Reserved1: 0x0000 +mpam Locator type: 0x00 +mpam Locator: +mpam Processor cache locator: +mpam 01 00 00 00 00 00 00 00 00 00 00 00 +mpam Number of functional dependencies: 0x00000000 +mpam List of resource nodes: +mpam Identifier: 0x00000013 +mpam RIS Index: 0x01 +mpam Reserved1: 0x0000 +mpam Locator type: 0xff +mpam Locator: +mpam Unknown locator: +mpam 02 00 00 00 00 00 00 00 00 00 00 00 +mpam Number of functional dependencies: 0x00000000 +mpam List of resource nodes: +mpam Identifier: 0x00000014 +mpam RIS Index: 0x01 +mpam Reserved1: 0x0000 +mpam Locator type: 0x03 +mpam Locator: +mpam Memory-side cache locator: +mpam 00 00 00 00 00 00 00 01 02 00 00 00 +mpam Number of functional dependencies: 0x00000000 +mpam List of resource nodes: +mpam Identifier: 0x00000015 +mpam RIS Index: 0x01 +mpam Reserved1: 0x0000 +mpam Locator type: 0x04 +mpam Locator: +mpam ACPI device locator: +mpam 11 22 33 44 55 66 77 88 99 AA BB CC +mpam Number of functional dependencies: 0x00000000 +mpam List of resource nodes: +mpam Identifier: 0x00000016 +mpam RIS Index: 0x01 +mpam Reserved1: 0x0000 +mpam Locator type: 0x02 +mpam Locator: +mpam SMMU locator: +mpam 02 00 00 00 00 00 00 00 00 00 00 00 +mpam Number of functional dependencies: 0x00000002 +mpam Functional dependency descriptor: +mpam Producer: 0x44332211 +mpam Reserved: 0x00000000 +mpam Functional dependency descriptor: +mpam Producer: 0xddccbbaa +mpam Reserved: 0x00000000 +mpam +mpam PASSED: Test 1, No issues found in MPAM table. +mpam +mpam ========================================================== +mpam 1 passed, 0 failed, 0 warning, 0 aborted, 0 skipped, 0 +mpam info only. +mpam ========================================================== diff --git a/fwts-test/mpam-0001/mpam-0002.log b/fwts-test/mpam-0001/mpam-0002.log new file mode 100644 index 00000000..ffc2b6f3 --- /dev/null +++ b/fwts-test/mpam-0001/mpam-0002.log @@ -0,0 +1,160 @@ +mpam mpam: MPAM Memory System Resource Partitioning And +mpam Monitoring Table test. +mpam ---------------------------------------------------------- +mpam Test 1 of 1: Validate MPAM table. +mpam MPAM Memory System Resource Partitioning And Monitoring Table: +mpam MPAM MSC node: +mpam Length: 0x0060 +mpam Interface type: 0x01 +mpam Reserved: 0x02 +mpam Identifier: 0x00000001 +mpam Base address: 0x00000000c0000000 +mpam MMIO size: 0x00010000 +mpam Overflow interrupt: 0x00000000 +mpam Overflow interrupt flags: 0xff000002 +mpam Reserved1: 0x00020000 +mpam Overflow interrupt affinity: 0x00000000 +mpam Error interrupt: 0x00000000 +mpam Error interrupt flags: 0x11000002 +mpam Reserved2: 0xff000000 +mpam Error interrupt affinity: 0x00000000 +mpam MAX_NRDY_USEC: 0x00000032 +mpam Hardware ID of linked device: 0x0000000000000000 +mpam Instance ID of linked device: 0x00000000 +mpam Number of resource nodes: 0x00000001 +mpam FAILED [HIGH] MPAMBadInterfaceType: Test 1, MPAM MSC node +mpam interface type must have value with 0 or 0x0a, got 0x01 +mpam instead +mpam FAILED [MEDIUM] MPAMReservedNonZero: Test 1, MPAM Reserved +mpam field must be zero, got 0x02 instead +mpam FAILED [HIGH] MPAMReservedBitsNonZero: Test 1, MPAM +mpam Overflow interrupt flags Bits [2..1] must be zero, got +mpam 0xff000002 instead +mpam FAILED [HIGH] MPAMReservedBitsNonZero: Test 1, MPAM +mpam Overflow interrupt flags Bits [31..5] must be zero, got +mpam 0xff000002 instead +mpam FAILED [MEDIUM] MPAMReservedNonZero: Test 1, MPAM +mpam Reserved1 field must be zero, got 0x00020000 instead +mpam FAILED [HIGH] MPAMReservedBitsNonZero: Test 1, MPAM Error +mpam interrupt flags Bits [2..1] must be zero, got 0x11000002 +mpam instead +mpam FAILED [HIGH] MPAMReservedBitsNonZero: Test 1, MPAM Error +mpam interrupt flags Bits [31..5] must be zero, got 0x11000002 +mpam instead +mpam FAILED [MEDIUM] MPAMReservedNonZero: Test 1, MPAM +mpam Reserved2 field must be zero, got 0xff000000 instead +mpam List of resource nodes: +mpam Identifier: 0x00000011 +mpam RIS Index: 0x00 +mpam Reserved1: 0x0000 +mpam Locator type: 0x01 +mpam Locator: +mpam Memory locator: +mpam 20 00 00 00 00 00 00 00 00 00 00 11 +mpam FAILED [MEDIUM] MPAMReservedNonZero: Test 1, MPAM Locator +mpam field must be all zero, got below instead +mpam Locator [00] = 0x00 +mpam Locator [01] = 0x00 +mpam Locator [02] = 0x00 +mpam Locator [03] = 0x11 +mpam Number of functional dependencies: 0x00000000 +mpam +mpam MPAM MSC node: +mpam Length: 0x00d0 +mpam Interface type: 0x00 +mpam Reserved: 0x00 +mpam Identifier: 0x00000002 +mpam Base address: 0x00000000d0000000 +mpam MMIO size: 0x00010000 +mpam Overflow interrupt: 0x00000000 +mpam Overflow interrupt flags: 0x00000000 +mpam Reserved1: 0x00000000 +mpam Overflow interrupt affinity: 0x00000000 +mpam Error interrupt: 0x00000000 +mpam Error interrupt flags: 0x00000000 +mpam Reserved2: 0x00000000 +mpam Error interrupt affinity: 0x00000000 +mpam MAX_NRDY_USEC: 0x00000032 +mpam Hardware ID of linked device: 0x0000000000000000 +mpam Instance ID of linked device: 0x00000000 +mpam Number of resource nodes: 0x00000005 +mpam List of resource nodes: +mpam Identifier: 0x00000012 +mpam RIS Index: 0x00 +mpam Reserved1: 0x0000 +mpam Locator type: 0x00 +mpam Locator: +mpam Processor cache locator: +mpam 01 00 00 00 00 00 00 00 00 00 02 00 +mpam FAILED [MEDIUM] MPAMReservedNonZero: Test 1, MPAM Locator +mpam field must be all zero, got below instead +mpam Locator [00] = 0x00 +mpam Locator [01] = 0x00 +mpam Locator [02] = 0x02 +mpam Locator [03] = 0x00 +mpam Number of functional dependencies: 0x00000000 +mpam List of resource nodes: +mpam Identifier: 0x00000013 +mpam RIS Index: 0x01 +mpam Reserved1: 0x0000 +mpam Locator type: 0xff +mpam Locator: +mpam Unknown locator: +mpam 02 00 00 00 00 00 00 00 00 00 00 00 +mpam Number of functional dependencies: 0x00000000 +mpam List of resource nodes: +mpam Identifier: 0x00000014 +mpam RIS Index: 0x01 +mpam Reserved1: 0x0000 +mpam Locator type: 0x03 +mpam Locator: +mpam Memory-side cache locator: +mpam 11 00 00 00 00 00 00 01 02 00 00 00 +mpam FAILED [MEDIUM] MPAMReservedNonZero: Test 1, MPAM Locator +mpam field must be all zero, got below instead +mpam Locator [00] = 0x11 +mpam Locator [01] = 0x00 +mpam Locator [02] = 0x00 +mpam Locator [03] = 0x00 +mpam Locator [04] = 0x00 +mpam Locator [05] = 0x00 +mpam Locator [06] = 0x00 +mpam Number of functional dependencies: 0x00000000 +mpam List of resource nodes: +mpam Identifier: 0x00000015 +mpam RIS Index: 0x01 +mpam Reserved1: 0x0000 +mpam Locator type: 0x04 +mpam Locator: +mpam ACPI device locator: +mpam 11 22 33 44 55 66 77 88 99 AA BB CC +mpam Number of functional dependencies: 0x00000000 +mpam List of resource nodes: +mpam Identifier: 0x00000016 +mpam RIS Index: 0x01 +mpam Reserved1: 0x0000 +mpam Locator type: 0x02 +mpam Locator: +mpam SMMU locator: +mpam 03 00 00 00 00 00 00 00 00 00 00 11 +mpam FAILED [MEDIUM] MPAMReservedNonZero: Test 1, MPAM Locator +mpam field must be all zero, got below instead +mpam Locator [00] = 0x00 +mpam Locator [01] = 0x00 +mpam Locator [02] = 0x00 +mpam Locator [03] = 0x11 +mpam Number of functional dependencies: 0x00000002 +mpam Functional dependency descriptor: +mpam Producer: 0x44332211 +mpam Reserved: 0x00000000 +mpam Functional dependency descriptor: +mpam Producer: 0xddccbbaa +mpam Reserved: 0x22000000 +mpam FAILED [MEDIUM] MPAMReservedNonZero: Test 1, MPAM +mpam Reserved1 field must be zero, got 0x22000000 instead +mpam +mpam +mpam ========================================================== +mpam 0 passed, 13 failed, 0 warning, 0 aborted, 0 skipped, 0 +mpam info only. +mpam ========================================================== diff --git a/fwts-test/mpam-0001/test-0001.sh b/fwts-test/mpam-0001/test-0001.sh new file mode 100755 index 00000000..b1fb361d --- /dev/null +++ b/fwts-test/mpam-0001/test-0001.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# +TEST="Test acpitables against MPAM" +NAME=test-0001.sh +TMPLOG=$TMP/mpam.log.$$ + +$FWTS --show-tests | grep mpam > /dev/null +if [ $? -eq 1 ]; then + echo SKIP: $TEST, $NAME + exit 77 +fi + +$FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/mpam-0001/acpidump-0001.log mpam - | cut -c7- | grep "^mpam" > $TMPLOG +diff $TMPLOG $FWTSTESTDIR/mpam-0001/mpam-0001.log >> $FAILURE_LOG +ret=$? +if [ $ret -eq 0 ]; then + echo PASSED: $TEST, $NAME +else + echo FAILED: $TEST, $NAME +fi + +rm $TMPLOG +exit $ret diff --git a/fwts-test/mpam-0001/test-0002.sh b/fwts-test/mpam-0001/test-0002.sh new file mode 100755 index 00000000..5ebd0a77 --- /dev/null +++ b/fwts-test/mpam-0001/test-0002.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# +TEST="Test acpitables against MPAM" +NAME=test-0001.sh +TMPLOG=$TMP/mpam.log.$$ + +$FWTS --show-tests | grep mpam > /dev/null +if [ $? -eq 1 ]; then + echo SKIP: $TEST, $NAME + exit 77 +fi + +$FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/mpam-0001/acpidump-0002.log mpam - | cut -c7- | grep "^mpam" > $TMPLOG +diff $TMPLOG $FWTSTESTDIR/mpam-0001/mpam-0002.log >> $FAILURE_LOG +ret=$? +if [ $ret -eq 0 ]; then + echo PASSED: $TEST, $NAME +else + echo FAILED: $TEST, $NAME +fi + +rm $TMPLOG +exit $ret