diff mbox series

[2/2] fwts-test: add regression tests for IVRS

Message ID 20230421073941.34588-2-ivan.hu@canonical.com
State Accepted
Headers show
Series [1/2] acpi: ivrs: add tests for ACPI IVRS table | expand

Commit Message

ivanhu April 21, 2023, 7:39 a.m. UTC
Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 Makefile.am                           |   2 +
 fwts-test/ivrs-0001/acpidump-0001.log |  59 ++++++++++++++
 fwts-test/ivrs-0001/acpidump-0002.log |  59 ++++++++++++++
 fwts-test/ivrs-0001/ivrs-0001.log     |  83 +++++++++++++++++++
 fwts-test/ivrs-0001/ivrs-0002.log     | 111 ++++++++++++++++++++++++++
 fwts-test/ivrs-0001/test-0001.sh      |  23 ++++++
 fwts-test/ivrs-0001/test-0002.sh      |  23 ++++++
 7 files changed, 360 insertions(+)
 create mode 100644 fwts-test/ivrs-0001/acpidump-0001.log
 create mode 100644 fwts-test/ivrs-0001/acpidump-0002.log
 create mode 100644 fwts-test/ivrs-0001/ivrs-0001.log
 create mode 100644 fwts-test/ivrs-0001/ivrs-0002.log
 create mode 100755 fwts-test/ivrs-0001/test-0001.sh
 create mode 100755 fwts-test/ivrs-0001/test-0002.sh
diff mbox series

Patch

diff --git a/Makefile.am b/Makefile.am
index c3c13514..58f5bbe2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -126,6 +126,8 @@  TESTS = fwts-test/acpidump-0001/test-0001.sh \
 	fwts-test/hmat-0001/test-0002.sh \
 	fwts-test/iort-0001/test-0001.sh \
 	fwts-test/iort-0001/test-0002.sh \
+	fwts-test/ivrs-0001/test-0001.sh \
+	fwts-test/ivrs-0001/test-0002.sh \
 	fwts-test/klog-0001/test-0001.sh \
 	fwts-test/klog-0001/test-0002.sh \
 	fwts-test/klog-0001/test-0003.sh \
diff --git a/fwts-test/ivrs-0001/acpidump-0001.log b/fwts-test/ivrs-0001/acpidump-0001.log
new file mode 100644
index 00000000..a5ed2d1c
--- /dev/null
+++ b/fwts-test/ivrs-0001/acpidump-0001.log
@@ -0,0 +1,59 @@ 
+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                                      ....
+
+IVRS @ 0x00000000
+  0000: 49 56 52 53 10 02 00 00 02 6C 49 4E 54 45 4C 20  IVRS.....lINTEL 
+  0010: 54 45 4D 50 4C 41 54 45 01 00 00 00 49 4E 54 4C  TEMPLATE....INTL
+  0020: 31 03 21 20 41 30 20 00 00 00 00 00 00 00 00 00  1.! A0 .........
+  0030: 10 B0 64 00 02 00 40 00 00 00 F0 FD 00 00 00 00  ..d...@.........
+  0040: 00 00 00 00 6F 8F 04 80 03 08 00 00 01 08 00 00  ....o...........
+  0050: 02 08 00 00 04 FE FF 00 42 00 FF 00 00 A5 00 00  ........B....... 
+  0060: 43 00 FF 00 00 A5 00 00 46 00 FF 00 44 33 22 11  C.......F...D3".
+  0070: 47 00 FF 00 44 33 22 11 04 FF FF 00 48 00 00 00  G...D3".....H...
+  0080: 00 A0 00 02 48 00 00 D7 21 A0 00 01 48 00 00 00  ....H...!...H...
+  0090: 22 01 00 01 11 30 48 00 02 00 40 00 00 00 F0 FD  ".....H...@.....
+  00a0: 00 00 00 00 00 00 00 00 00 00 04 00 DE 4A 25 22  .............J%"
+  00b0: EF 73 6D 20 00 00 00 00 00 00 00 00 03 08 00 00  .sm ............
+  00c0: 04 FE FF 00 43 00 FF 00 00 A5 00 00 04 FF FF 00  ....C...........
+  00d0: 01 00 00 00 48 00 00 00 00 A0 00 02 40 30 D4 00  ....H.......@...
+  00e0: 02 00 40 00 00 00 F0 FD 00 00 00 00 00 00 00 00  ..@.............
+  00f0: 00 00 04 00 DE 4A 25 22 EF 73 6D 20 00 00 00 00  .....J%".sm .... 
+  0100: 00 00 00 00 03 08 00 00 04 FE FF 00 43 00 FF 00  ............C...
+  0110: 00 A5 00 00 04 FF FF 00 03 00 00 00 48 00 00 00  ............H...
+  0120: 00 A0 00 02 48 00 00 D7 21 A0 00 01 48 00 00 00  ....H...!...H...
+  0130: 22 01 00 01 F0 A5 00 40 49 4E 54 43 30 30 32 30  "......@INTC0020
+  0140: 00 00 00 00 00 00 00 00 02 09 5C 5F 53 42 2E 44  ..........\_SB.D
+  0150: 45 56 30 F0 A5 00 40 49 4E 54 43 30 30 32 30 00  EV0...@INTC0020.
+  0160: 00 00 00 00 00 00 00 02 09 5C 5F 53 42 2E 44 45  .........\_SB.DE
+  0170: 56 31 F0 A5 00 40 49 4E 54 43 30 30 32 30 00 00  V1...@INTC0020..
+  0180: 00 00 00 00 00 00 02 09 5C 5F 53 42 2E 44 45 56  ........\_SB.DEV
+  0190: 32 F0 A5 00 40 49 4E 54 43 30 30 32 30 00 00 00  2...@INTC0020...
+  01a0: 00 00 00 00 00 02 09 5C 5F 53 42 2E 44 45 56 33  .......\_SB.DEV3    
+  01b0: 20 0D 20 00 22 11 00 00 00 00 00 00 00 00 00 00   . ."...........    
+  01c0: CD AB 78 56 34 12 00 00 DC FE 00 00 00 00 00 00  ..xV4...........    
+  01d0: 21 0D 20 00 22 11 00 00 00 00 00 00 00 00 00 00  !. ."...........    
+  01e0: CD AB 78 56 34 12 00 00 DC FE 00 00 00 00 00 00  ..xV4...........    
+  01f0: 22 0D 20 00 22 11 00 00 00 00 00 00 00 00 00 00  ". ."...........    
+  0200: CD AB 78 56 34 12 00 00 DC FE 00 00 00 00 00 00  ..xV4...........
diff --git a/fwts-test/ivrs-0001/acpidump-0002.log b/fwts-test/ivrs-0001/acpidump-0002.log
new file mode 100644
index 00000000..66007a8e
--- /dev/null
+++ b/fwts-test/ivrs-0001/acpidump-0002.log
@@ -0,0 +1,59 @@ 
+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                                      ....
+
+IVRS @ 0x00000000
+  0000: 49 56 52 53 10 02 00 00 02 6C 49 4E 54 45 4C 20  IVRS.....lINTEL 
+  0010: 54 45 4D 50 4C 41 54 45 01 00 00 00 49 4E 54 4C  TEMPLATE....INTL
+  0020: 31 03 21 20 44 30 20 07 00 00 00 00 CC 00 00 00  1.! A0 .........
+  0030: 10 B0 64 00 02 00 40 00 00 00 F0 FD 00 00 00 00  ..d...@.........
+  0040: 00 00 20 40 6F 8F 04 80 03 08 00 00 01 08 00 00  ....o...........
+  0050: 02 08 00 00 04 FE FF 00 42 00 FF 00 00 A5 00 00  ........B....... 
+  0060: 43 00 FF 00 00 A5 00 00 46 00 FF 00 44 33 22 11  C.......F...D3".
+  0070: 47 00 FF 00 44 33 22 11 04 FF FF 00 48 00 00 00  G...D3".....H...
+  0080: 00 A0 00 02 48 00 00 D7 21 A0 00 01 44 00 00 00  ....H...!...H...
+  0090: 22 01 00 01 11 30 48 00 02 00 40 00 00 00 F0 FD  ".....H...@.....
+  00a0: 00 00 00 00 00 00 00 00 00 02 04 00 DE 4A 25 22  .............J%"
+  00b0: EF 73 6D 20 00 00 00 00 00 00 00 00 03 08 00 00  .sm ............
+  00c0: 04 FE FF 00 43 00 FF 00 00 A5 00 00 04 FF FF 00  ....C...........
+  00d0: 00 00 00 00 48 00 00 00 00 A0 00 02 40 30 D4 00  ....H.......@...
+  00e0: 02 00 40 00 00 00 F0 FD 00 00 00 00 00 00 00 00  ..@.............
+  00f0: 04 02 04 F0 DE 4A 25 22 EF 73 6D 20 00 00 00 00  .....J%".sm .... 
+  0100: 00 00 00 00 03 08 00 00 04 FE FF 00 43 00 FF 00  ............C...
+  0110: 00 A5 00 00 04 FF FF 00 00 00 00 00 48 00 00 00  ............H...
+  0120: 00 A0 00 02 48 00 00 D7 21 A0 00 01 48 00 00 00  ....H...!...H...
+  0130: 22 01 00 01 F0 A5 00 40 49 4E 54 43 30 30 32 30  "......@INTC0020
+  0140: 00 00 00 00 00 00 00 00 02 09 5C 5F 53 42 2E 44  ..........\_SB.D
+  0150: 45 56 30 F0 A5 00 40 49 4E 54 43 30 30 32 30 00  EV0...@INTC0020.
+  0160: 00 00 00 00 00 00 00 02 09 5C 5F 53 42 2E 44 45  .........\_SB.DE
+  0170: 56 31 F0 A5 00 40 49 4E 54 43 30 30 32 30 00 00  V1...@INTC0020..
+  0180: 00 00 00 00 00 00 02 09 5C 5F 53 42 2E 44 45 56  ........\_SB.DEV
+  0190: 32 F0 A5 00 40 49 4E 54 43 30 30 32 30 00 00 00  2...@INTC0020...
+  01a0: 00 00 00 00 00 02 09 5C 5F 53 42 2E 44 45 56 33  .......\_SB.DEV3    
+  01b0: 20 1D 20 00 22 11 00 00 00 00 00 00 00 00 00 00   . ."...........    
+  01c0: CD AB 78 56 34 12 00 00 DC FE 00 00 00 00 00 00  ..xV4...........    
+  01d0: 21 0D 20 00 22 11 00 00 00 00 00 00 00 00 00 00  !. ."...........    
+  01e0: CD AB 78 56 34 12 00 00 DC FE 00 00 00 00 00 00  ..xV4...........    
+  01f0: 22 0D 20 00 22 11 00 00 00 00 00 00 00 FF 00 00  ". ."...........    
+  0200: CD AB 78 56 34 12 00 00 DC FE 00 00 00 00 00 00  ..xV4...........
diff --git a/fwts-test/ivrs-0001/ivrs-0001.log b/fwts-test/ivrs-0001/ivrs-0001.log
new file mode 100644
index 00000000..0281c287
--- /dev/null
+++ b/fwts-test/ivrs-0001/ivrs-0001.log
@@ -0,0 +1,83 @@ 
+ivrs            ivrs: IVRS I/O Virtualization Reporting Structure test.
+ivrs            ----------------------------------------------------------
+ivrs            Test 1 of 1: Validate IVRS table.
+ivrs            IVRS I/O Virtualization Reporting Structure:
+ivrs              IVinfo:     0x00203041
+ivrs              Reserved:   0x0000000000000000
+ivrs            
+ivrs              I/O Virtualization Hardware Definition Type 10h:
+ivrs                Type:			0x10
+ivrs                Flags:			0xb0
+ivrs                Length:			0x0064
+ivrs                DeviceID:			0x0002
+ivrs                Capability Offset:		0x0040
+ivrs                IOMMU Base Address:		0x00000000fdf00000
+ivrs                PCI Segment Group:		0x0000
+ivrs                IOMMU Info:			0x0000
+ivrs                IOMMU Feature Reporting:	0x80048f6f
+ivrs            
+ivrs              I/O Virtualization Hardware Definition Type 11h:
+ivrs                Type:			0x11
+ivrs                Flags:			0x30
+ivrs                Length:			0x0048
+ivrs                DeviceID:			0x0002
+ivrs                Capability Offset:		0x0040
+ivrs                IOMMU Base Address:		0x00000000fdf00000
+ivrs                PCI Segment Group:		0x0000
+ivrs                IOMMU Info:			0x0000
+ivrs                IOMMU Attribute:		0x00040000
+ivrs                EFR Register Image:		0x206d73ef22254ade
+ivrs                WFR Register Image 2:	0x0000000000000000
+ivrs            
+ivrs              I/O Virtualization Hardware Definition Type 40h:
+ivrs                Type:			0x40
+ivrs                Flags:			0x30
+ivrs                Length:			0x00d4
+ivrs                DeviceID:			0x0002
+ivrs                Capability Offset:		0x0040
+ivrs                IOMMU Base Address:		0x00000000fdf00000
+ivrs                PCI Segment Group:		0x0000
+ivrs                IOMMU Info:			0x0000
+ivrs                IOMMU Attribute:		0x00040000
+ivrs                EFR Register Image:		0x206d73ef22254ade
+ivrs                WFR Register Image 2:	0x0000000000000000
+ivrs            
+ivrs              I/O Virtualization Memory Definition:
+ivrs                Type:			0x20
+ivrs                Flags:			0x0d
+ivrs                Length:			0x0020
+ivrs                DeviceID:			0x1122
+ivrs                Auxiliary data:		0x0000
+ivrs                Reserved:			0x0000000000000000
+ivrs                PCI Segment Group:		0xabcd
+ivrs                Start address:		0xfedc000012345678
+ivrs                Memory block length:	0x0d21000000000000
+ivrs            
+ivrs              I/O Virtualization Memory Definition:
+ivrs                Type:			0x21
+ivrs                Flags:			0x0d
+ivrs                Length:			0x0020
+ivrs                DeviceID:			0x1122
+ivrs                Auxiliary data:		0x0000
+ivrs                Reserved:			0x0000000000000000
+ivrs                PCI Segment Group:		0xabcd
+ivrs                Start address:		0xfedc000012345678
+ivrs                Memory block length:	0x0d22000000000000
+ivrs            
+ivrs              I/O Virtualization Memory Definition:
+ivrs                Type:			0x22
+ivrs                Flags:			0x0d
+ivrs                Length:			0x0020
+ivrs                DeviceID:			0x1122
+ivrs                Auxiliary data:		0x0000
+ivrs                Reserved:			0x0000000000000000
+ivrs                PCI Segment Group:		0xabcd
+ivrs                Start address:		0xfedc000012345678
+ivrs                Memory block length:	0x0000000000000000
+ivrs            
+ivrs            PASSED: Test 1, No issues found in IVRS table.
+ivrs            
+ivrs            ==========================================================
+ivrs            1 passed, 0 failed, 0 warning, 0 aborted, 0 skipped, 0
+ivrs            info only.
+ivrs            ==========================================================
diff --git a/fwts-test/ivrs-0001/ivrs-0002.log b/fwts-test/ivrs-0001/ivrs-0002.log
new file mode 100644
index 00000000..42db2218
--- /dev/null
+++ b/fwts-test/ivrs-0001/ivrs-0002.log
@@ -0,0 +1,111 @@ 
+ivrs            ivrs: IVRS I/O Virtualization Reporting Structure test.
+ivrs            ----------------------------------------------------------
+ivrs            Test 1 of 1: Validate IVRS table.
+ivrs            IVRS I/O Virtualization Reporting Structure:
+ivrs              IVinfo:     0x07203044
+ivrs              Reserved:   0x000000cc00000000
+ivrs            
+ivrs            FAILED [HIGH] IVRSReservedBitsNonZero: Test 1, IVRS IVinfo
+ivrs            Bits [4..2] must be zero, got 0x07203044 instead
+ivrs            FAILED [HIGH] IVRSReservedBitsNonZero: Test 1, IVRS IVinfo
+ivrs            Bits [31..23] must be zero, got 0x07203044 instead
+ivrs            FAILED [MEDIUM] IVRSReservedNonZero: Test 1, IVRS Reserved
+ivrs            field must be zero, got 0x000000cc00000000 instead
+ivrs              I/O Virtualization Hardware Definition Type 10h:
+ivrs                Type:			0x10
+ivrs                Flags:			0xb0
+ivrs                Length:			0x0064
+ivrs                DeviceID:			0x0002
+ivrs                Capability Offset:		0x0040
+ivrs                IOMMU Base Address:		0x00000000fdf00000
+ivrs                PCI Segment Group:		0x0000
+ivrs                IOMMU Info:			0x4020
+ivrs                IOMMU Feature Reporting:	0x80048f6f
+ivrs            FAILED [HIGH] IVRSReservedBitsNonZero: Test 1, IVRS IOMMU
+ivrs            Info Bits [7..5] must be zero, got 0x4020 instead
+ivrs            FAILED [HIGH] IVRSReservedBitsNonZero: Test 1, IVRS IOMMU
+ivrs            Info Bits [15..13] must be zero, got 0x4020 instead
+ivrs            FAILED [HIGH] IVRSBadType: Test 1, IVRS must have device
+ivrs            entry types 66..67 or 70..72, got 68 instead
+ivrs            
+ivrs              I/O Virtualization Hardware Definition Type 11h:
+ivrs                Type:			0x11
+ivrs                Flags:			0x30
+ivrs                Length:			0x0048
+ivrs                DeviceID:			0x0002
+ivrs                Capability Offset:		0x0040
+ivrs                IOMMU Base Address:		0x00000000fdf00000
+ivrs                PCI Segment Group:		0x0000
+ivrs                IOMMU Info:			0x0000
+ivrs                IOMMU Attribute:		0x00040200
+ivrs                EFR Register Image:		0x206d73ef22254ade
+ivrs                WFR Register Image 2:	0x0000000000000000
+ivrs            FAILED [HIGH] IVRSReservedBitsNonZero: Test 1, IVRS IOMMU
+ivrs            Attribute Bits [12..0] must be zero, got 0x00040200
+ivrs            instead
+ivrs            FAILED [HIGH] IVRSBadSubTableType: Test 1, IVRS must have
+ivrs            subtable with Type 1..4, got 0 instead
+ivrs            
+ivrs              I/O Virtualization Hardware Definition Type 40h:
+ivrs                Type:			0x40
+ivrs                Flags:			0x30
+ivrs                Length:			0x00d4
+ivrs                DeviceID:			0x0002
+ivrs                Capability Offset:		0x0040
+ivrs                IOMMU Base Address:		0x00000000fdf00000
+ivrs                PCI Segment Group:		0x0000
+ivrs                IOMMU Info:			0x0000
+ivrs                IOMMU Attribute:		0xf0040204
+ivrs                EFR Register Image:		0x206d73ef22254ade
+ivrs                WFR Register Image 2:	0x0000000000000000
+ivrs            FAILED [HIGH] IVRSReservedBitsNonZero: Test 1, IVRS IOMMU
+ivrs            Attribute Bits [12..0] must be zero, got 0xf0040204
+ivrs            instead
+ivrs            FAILED [HIGH] IVRSReservedBitsNonZero: Test 1, IVRS IOMMU
+ivrs            Attribute Bits [31..28] must be zero, got 0xf0040204
+ivrs            instead
+ivrs            FAILED [HIGH] IVRSBadSubTableType: Test 1, IVRS must have
+ivrs            subtable with Type 1..4, got 0 instead
+ivrs            
+ivrs              I/O Virtualization Memory Definition:
+ivrs                Type:			0x20
+ivrs                Flags:			0x1d
+ivrs                Length:			0x0020
+ivrs                DeviceID:			0x1122
+ivrs                Auxiliary data:		0x0000
+ivrs                Reserved:			0x0000000000000000
+ivrs                PCI Segment Group:		0xabcd
+ivrs                Start address:		0xfedc000012345678
+ivrs                Memory block length:	0x0d21000000000000
+ivrs            FAILED [HIGH] IVRSReservedBitsNonZero: Test 1, IVRS Flags
+ivrs            Bits [7..4] must be zero, got 0x1d instead
+ivrs            
+ivrs              I/O Virtualization Memory Definition:
+ivrs                Type:			0x21
+ivrs                Flags:			0x0d
+ivrs                Length:			0x0020
+ivrs                DeviceID:			0x1122
+ivrs                Auxiliary data:		0x0000
+ivrs                Reserved:			0x0000000000000000
+ivrs                PCI Segment Group:		0xabcd
+ivrs                Start address:		0xfedc000012345678
+ivrs                Memory block length:	0x0d22000000000000
+ivrs            
+ivrs              I/O Virtualization Memory Definition:
+ivrs                Type:			0x22
+ivrs                Flags:			0x0d
+ivrs                Length:			0x0020
+ivrs                DeviceID:			0x1122
+ivrs                Auxiliary data:		0x0000
+ivrs                Reserved:			0x0000ff0000000000
+ivrs                PCI Segment Group:		0xabcd
+ivrs                Start address:		0xfedc000012345678
+ivrs                Memory block length:	0x0000000000000000
+ivrs            FAILED [MEDIUM] IVRSReservedNonZero: Test 1, IVRS Reserved
+ivrs            field must be zero, got 0x0000ff0000000000 instead
+ivrs            
+ivrs            
+ivrs            ==========================================================
+ivrs            0 passed, 13 failed, 0 warning, 0 aborted, 0 skipped, 0
+ivrs            info only.
+ivrs            ==========================================================
diff --git a/fwts-test/ivrs-0001/test-0001.sh b/fwts-test/ivrs-0001/test-0001.sh
new file mode 100755
index 00000000..02ccf383
--- /dev/null
+++ b/fwts-test/ivrs-0001/test-0001.sh
@@ -0,0 +1,23 @@ 
+#!/bin/bash
+#
+TEST="Test apci table against IVRS"
+NAME=test-0001.sh
+TMPLOG=$TMP/ivrs.log.$$
+
+$FWTS --show-tests | grep IVRS > /dev/null
+if [ $? -eq 1 ]; then
+	echo SKIP: $TEST, $NAME
+	exit 77
+fi
+
+$FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/ivrs-0001/acpidump-0001.log ivrs - | cut -c7- | grep "^ivrs" > $TMPLOG
+diff $TMPLOG $FWTSTESTDIR/ivrs-0001/ivrs-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/ivrs-0001/test-0002.sh b/fwts-test/ivrs-0001/test-0002.sh
new file mode 100755
index 00000000..4766bf6e
--- /dev/null
+++ b/fwts-test/ivrs-0001/test-0002.sh
@@ -0,0 +1,23 @@ 
+#!/bin/bash
+#
+TEST="Test apci table against invalid IVRS"
+NAME=test-0001.sh
+TMPLOG=$TMP/ivrs.log.$$
+
+$FWTS --show-tests | grep IVRS > /dev/null
+if [ $? -eq 1 ]; then
+	echo SKIP: $TEST, $NAME
+	exit 77
+fi
+
+$FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/ivrs-0001/acpidump-0002.log ivrs - | cut -c7- | grep "^ivrs" > $TMPLOG
+diff $TMPLOG $FWTSTESTDIR/ivrs-0001/ivrs-0002.log >> $FAILURE_LOG
+ret=$?
+if [ $ret -eq 0 ]; then
+	echo PASSED: $TEST, $NAME
+else
+	echo FAILED: $TEST, $NAME
+fi
+
+rm $TMPLOG
+exit $ret