@@ -50,6 +50,8 @@ TESTS_ENVIRONMENT += export FAILURE_LOG=/tmp/failure.log;
TESTS = fwts-test/acpidump-0001/test-0001.sh \
fwts-test/acpitables-0001/test-0001.sh \
+ fwts-test/aest-0001/test-0001.sh \
+ fwts-test/aest-0001/test-0002.sh \
fwts-test/apicinstance-0001/test-0001.sh \
fwts-test/apicinstance-0001/test-0002.sh \
fwts-test/arg-help-0001/test-0001.sh \
new file mode 100644
@@ -0,0 +1,71 @@
+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 ....
+
+AEST @ 0x00000000
+ 0000: 41 45 53 54 CC 02 00 00 01 2A 49 4E 54 45 4C 20 AEST.....*INTEL
+ 0010: 54 65 6D 70 6C 61 74 65 01 00 00 00 49 4E 54 4C Template....INTL
+ 0020: 04 06 21 20 00 80 00 00 2C 00 00 00 44 00 00 00 ..! ....,...D...
+ 0030: 74 00 00 00 01 00 00 00 EF CD AB 89 67 45 23 01 t...........gE#.
+ 0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0050: CD FE 00 00 00 00 00 00 EF CD AB 89 67 45 23 01 ............gE#.
+ 0060: 33 33 22 22 00 00 00 00 01 00 00 00 02 00 00 00 33""............
+ 0070: EF CD AB 89 67 45 23 01 00 00 00 00 01 00 00 00 ....gE#.........
+ 0080: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0090: 11 11 11 01 00 00 00 00 01 00 00 00 EF CD AB 78 ...............x
+ 00a0: 56 00 00 00 00 74 00 00 2C 00 00 00 44 00 00 00 V....t..,...D...
+ 00b0: 00 00 00 00 00 00 00 00 EF CD AB 89 67 45 23 01 ............gE#.
+ 00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 00d0: 11 11 00 00 01 00 01 00 EF CD AB 89 67 45 23 01 ............gE#.
+ 00e0: 67 67 67 67 00 00 00 00 00 00 00 00 03 00 00 00 gggg............
+ 00f0: EF CD AB 89 67 45 23 01 00 00 00 00 01 00 00 00 ....gE#.........
+ 0100: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0110: 11 11 11 01 00 00 00 00 01 60 00 00 2C 00 00 00 .........`..,...
+ 0120: 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0...............
+ 0130: 00 00 00 00 00 00 00 00 00 00 00 00 EF CD AB 89 ................
+ 0140: 67 45 23 01 AA AA 00 00 01 00 00 00 01 00 00 00 gE#.............
+ 0150: EF CD AB 89 67 45 23 01 00 00 00 00 01 00 00 00 ....gE#.........
+ 0160: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0170: 11 11 11 01 00 00 00 00 02 64 00 00 2C 00 00 00 .........d..,...
+ 0180: 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4...............
+ 0190: 00 00 00 00 00 00 00 00 00 00 00 00 EF CD AB 89 ................
+ 01a0: 67 45 23 01 55 55 55 55 66 66 66 66 01 00 00 00 gE#.UUUUffff....
+ 01b0: 03 00 00 00 EF CD AB 89 67 45 23 01 00 00 00 00 ........gE#.....
+ 01c0: 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
+ 01d0: 00 00 00 00 11 11 11 01 00 00 00 00 03 74 00 00 .............t..
+ 01e0: 2C 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 ,...D...........
+ 01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0200: EF CD AB 89 67 45 23 01 33 33 33 33 44 44 44 44 ....gE#.3333DDDD
+ 0210: 12 23 34 45 56 67 78 89 9A AB BC CD DE EF FF 55 .#4EVgx........U
+ 0220: 01 00 00 00 02 00 00 00 EF CD AB 89 67 45 23 01 ............gE#.
+ 0230: 00 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 ................
+ 0240: 00 00 00 00 00 00 00 00 11 11 11 01 00 00 00 00 ................
+ 0250: 04 7C 00 00 2C 00 00 00 34 00 00 00 64 00 00 00 .|..,...4...d...
+ 0260: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0270: 00 00 00 00 EF CD AB 89 67 45 23 01 03 00 00 00 ........gE#.....
+ 0280: 88 88 77 77 00 00 00 00 03 00 00 00 EF CD AB 89 ..ww............
+ 0290: 67 45 23 01 00 00 00 00 01 00 00 00 01 00 00 00 gE#.............
+ 02a0: 00 00 00 00 00 00 00 00 00 00 00 00 11 11 11 01 ................
+ 02b0: 00 00 00 00 00 00 00 00 BB BB AA AA CC 00 00 00 ................
+ 02c0: 01 00 00 01 EF CD AB 78 56 00 00 00 .......xV...
new file mode 100644
@@ -0,0 +1,71 @@
+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 ....
+
+AEST @ 0x00000000
+ 0000: 41 45 53 54 CC 02 00 00 01 2A 49 4E 54 45 4C 20 AEST.....*INTEL
+ 0010: 54 65 6D 70 6C 61 74 65 01 00 00 00 49 4E 54 4C Template....INTL
+ 0020: 04 06 21 20 00 80 00 02 2C 00 00 00 44 00 00 00 ..! ....,...D...
+ 0030: 74 00 00 00 01 00 00 00 EF CD AB 89 67 45 23 01 t...........gE#.
+ 0040: 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0050: CD FE 00 00 00 01 10 00 EF CD AB 89 67 45 23 01 ............gE#.
+ 0060: 33 33 22 22 00 01 00 00 01 00 00 00 02 00 00 00 33""............
+ 0070: EF CD AB 89 67 45 23 01 00 00 00 00 01 00 00 00 ....gE#.........
+ 0080: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0090: 11 11 11 01 00 00 00 00 05 01 00 03 EF CD AB 78 ...............x
+ 00a0: 56 00 00 00 00 74 00 00 2C 00 00 00 44 00 00 00 V....t..,...D...
+ 00b0: 00 00 00 00 00 00 00 00 EF CD AB 89 67 45 23 01 ............gE#.
+ 00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 00d0: 11 11 00 00 01 00 01 00 EF CD AB 89 67 45 23 01 ............gE#.
+ 00e0: 67 67 67 67 00 00 02 00 00 01 00 00 05 00 00 00 gggg............
+ 00f0: EF CD AB 89 67 45 23 01 00 00 00 00 01 00 00 00 ....gE#.........
+ 0100: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0110: 11 11 11 01 00 00 00 00 01 60 00 00 2C 00 00 00 .........`..,...
+ 0120: 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0...............
+ 0130: 00 00 00 00 00 00 00 00 00 00 00 00 EF CD AB 89 ................
+ 0140: 67 45 23 01 AA AA 00 00 04 00 00 00 01 00 00 00 gE#.............
+ 0150: EF CD AB 89 67 45 23 01 00 00 00 00 01 00 00 00 ....gE#.........
+ 0160: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0170: 11 11 11 01 00 00 00 00 02 64 00 00 2C 00 00 00 .........d..,...
+ 0180: 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4...............
+ 0190: 00 00 00 00 00 00 00 00 00 00 00 00 EF CD AB 89 ................
+ 01a0: 67 45 23 01 55 55 55 55 66 66 66 66 01 00 00 00 gE#.UUUUffff....
+ 01b0: 03 00 00 00 EF CD AB 89 67 45 23 01 00 00 00 00 ........gE#.....
+ 01c0: 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
+ 01d0: 00 00 00 00 11 11 11 01 00 00 00 00 03 74 00 00 .............t..
+ 01e0: 2C 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 ,...D...........
+ 01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0200: EF CD AB 89 67 45 23 01 33 33 33 33 44 44 44 44 ....gE#.3333DDDD
+ 0210: 12 23 34 45 56 67 78 89 9A AB BC CD DE EF FF 55 .#4EVgx........U
+ 0220: 01 00 00 00 02 00 00 00 EF CD AB 89 67 45 23 01 ............gE#.
+ 0230: 00 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 ................
+ 0240: 00 00 00 00 00 00 00 00 11 11 11 01 00 00 00 00 ................
+ 0250: 04 7C 00 00 2C 00 00 00 34 00 00 00 64 00 00 00 .|..,...4...d...
+ 0260: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0270: 00 00 00 00 EF CD AB 89 67 45 23 01 03 00 00 00 ........gE#.....
+ 0280: 88 88 77 77 00 00 00 00 03 00 00 00 EF CD AB 89 ..ww............
+ 0290: 67 45 23 01 00 00 00 00 01 00 00 00 01 00 00 00 gE#.............
+ 02a0: 00 00 00 00 00 00 00 00 00 00 00 00 11 11 11 01 ................
+ 02b0: 00 00 00 00 00 00 00 00 BB BB AA AA CC 00 00 00 ................
+ 02c0: 01 00 00 01 EF CD AB 78 56 00 00 00 .......xV...
new file mode 100644
@@ -0,0 +1,194 @@
+aest aest: AEST Arm Error Source Table test.
+aest ----------------------------------------------------------
+aest Test 1 of 1: Validate AEST table.
+aest AEST Arm Error Source Table:
+aest AEST node structure:
+aest Type: 0x00
+aest Length: 0x0080
+aest Reserved: 0x00
+aest Offset to Node-specific data: 0x0000002c
+aest Offset to Node Interface: 0x00000044
+aest Offset to Node Interrupt Array: 0x00000074
+aest Node Interrupt Array Size: 0x00000001
+aest Timestamp Rate: 0x0123456789abcdef
+aest Reserved1: 0x0000000000000000
+aest Error Injection Countdown Rate: 0x0000000000000000
+aest Node-specific data (Processor):
+aest ACPI Processor ID: 0x0000fecd
+aest Resource Type: 0x00
+aest Reserved: 0x00
+aest Flags: 0x00
+aest Revision: 0x00
+aest Processor affinity lvl ind: 0x0123456789abcdef
+aest Cache Reference: 0x22223333
+aest Reserved: 0x00000000
+aest Interface:
+aest Interface Type: 0x01
+aest Reserved: 0x00000000
+aest Flags: 0x00000002
+aest Base Address: 0x0123456789abcdef
+aest Start Error Record Index: 0x00000000
+aest Number Of Error Records: 0x00000001
+aest Error Record Implemented: 0x0000000000000001
+aest Status Reporting Supported: 0x0000000000000000
+aest Addressing Mode: 0x0000000001111111
+aest Interrupt Array
+aest Interrupt Type: 0x01
+aest Reserved: 0x0000
+aest Interrupt Flags: 0x00
+aest Interrupt GSIV: 0x78abcdef
+aest ID: 0x56
+aest Reserved1: 0x00000000
+aest
+aest AEST node structure:
+aest Type: 0x00
+aest Length: 0x0074
+aest Reserved: 0x00
+aest Offset to Node-specific data: 0x0000002c
+aest Offset to Node Interface: 0x00000044
+aest Offset to Node Interrupt Array: 0x00000000
+aest Node Interrupt Array Size: 0x00000000
+aest Timestamp Rate: 0x0123456789abcdef
+aest Reserved1: 0x0000000000000000
+aest Error Injection Countdown Rate: 0x0000000000000000
+aest Node-specific data (Processor):
+aest ACPI Processor ID: 0x00001111
+aest Resource Type: 0x01
+aest Reserved: 0x00
+aest Flags: 0x01
+aest Revision: 0x00
+aest Processor affinity lvl ind: 0x0123456789abcdef
+aest TLB Reference: 0x67676767
+aest Reserved: 0x00000000
+aest Interface:
+aest Interface Type: 0x00
+aest Reserved: 0x00000000
+aest Flags: 0x00000003
+aest Base Address: 0x0123456789abcdef
+aest Start Error Record Index: 0x00000000
+aest Number Of Error Records: 0x00000001
+aest Error Record Implemented: 0x0000000000000001
+aest Status Reporting Supported: 0x0000000000000000
+aest Addressing Mode: 0x0000000001111111
+aest
+aest AEST node structure:
+aest Type: 0x01
+aest Length: 0x0060
+aest Reserved: 0x00
+aest Offset to Node-specific data: 0x0000002c
+aest Offset to Node Interface: 0x00000030
+aest Offset to Node Interrupt Array: 0x00000000
+aest Node Interrupt Array Size: 0x00000000
+aest Timestamp Rate: 0x0000000000000000
+aest Reserved1: 0x0000000000000000
+aest Error Injection Countdown Rate: 0x0123456789abcdef
+aest Node-specific data (Memory Controller):
+aest Proximity Domain: 0x0000aaaa
+aest Interface:
+aest Interface Type: 0x01
+aest Reserved: 0x00000000
+aest Flags: 0x00000001
+aest Base Address: 0x0123456789abcdef
+aest Start Error Record Index: 0x00000000
+aest Number Of Error Records: 0x00000001
+aest Error Record Implemented: 0x0000000000000001
+aest Status Reporting Supported: 0x0000000000000000
+aest Addressing Mode: 0x0000000001111111
+aest
+aest AEST node structure:
+aest Type: 0x02
+aest Length: 0x0064
+aest Reserved: 0x00
+aest Offset to Node-specific data: 0x0000002c
+aest Offset to Node Interface: 0x00000034
+aest Offset to Node Interrupt Array: 0x00000000
+aest Node Interrupt Array Size: 0x00000000
+aest Timestamp Rate: 0x0000000000000000
+aest Reserved1: 0x0000000000000000
+aest Error Injection Countdown Rate: 0x0123456789abcdef
+aest Node-specific data (SMMU):
+aest IORT Node Reference: 0x55555555
+aest SMMU-specific Data Subcomponent Reference: 0x66666666
+aest Interface:
+aest Interface Type: 0x01
+aest Reserved: 0x00000000
+aest Flags: 0x00000003
+aest Base Address: 0x0123456789abcdef
+aest Start Error Record Index: 0x00000000
+aest Number Of Error Records: 0x00000001
+aest Error Record Implemented: 0x0000000000000001
+aest Status Reporting Supported: 0x0000000000000000
+aest Addressing Mode: 0x0000000001111111
+aest
+aest AEST node structure:
+aest Type: 0x03
+aest Length: 0x0074
+aest Reserved: 0x00
+aest Offset to Node-specific data: 0x0000002c
+aest Offset to Node Interface: 0x00000044
+aest Offset to Node Interrupt Array: 0x00000000
+aest Node Interrupt Array Size: 0x00000000
+aest Timestamp Rate: 0x0000000000000000
+aest Reserved1: 0x0000000000000000
+aest Error Injection Countdown Rate: 0x0123456789abcdef
+aest Node-specific data (Vendor-defined):
+aest Hardware ID: 0x33333333
+aest SMMU-specific Data Subcomponent Reference: 0x44444444
+aest Vendor-specific data:
+aest 0000: 12 23 34 45 56 67 78 89 9A AB BC CD DE EF FF 55 .#4EVgx........U
+aest Interface:
+aest Interface Type: 0x01
+aest Reserved: 0x00000000
+aest Flags: 0x00000002
+aest Base Address: 0x0123456789abcdef
+aest Start Error Record Index: 0x00000000
+aest Number Of Error Records: 0x00000001
+aest Error Record Implemented: 0x0000000000000001
+aest Status Reporting Supported: 0x0000000000000000
+aest Addressing Mode: 0x0000000001111111
+aest
+aest AEST node structure:
+aest Type: 0x04
+aest Length: 0x007c
+aest Reserved: 0x00
+aest Offset to Node-specific data: 0x0000002c
+aest Offset to Node Interface: 0x00000034
+aest Offset to Node Interrupt Array: 0x00000064
+aest Node Interrupt Array Size: 0x00000002
+aest Timestamp Rate: 0x0000000000000000
+aest Reserved1: 0x0000000000000000
+aest Error Injection Countdown Rate: 0x0123456789abcdef
+aest Node-specific data (GIC):
+aest Interface Type: 0x00000003
+aest Instance Identifier: 0x77778888
+aest Interface:
+aest Interface Type: 0x00
+aest Reserved: 0x00000000
+aest Flags: 0x00000003
+aest Base Address: 0x0123456789abcdef
+aest Start Error Record Index: 0x00000000
+aest Number Of Error Records: 0x00000001
+aest Error Record Implemented: 0x0000000000000001
+aest Status Reporting Supported: 0x0000000000000000
+aest Addressing Mode: 0x0000000001111111
+aest Interrupt Array
+aest Interrupt Type: 0x00
+aest Reserved: 0x0000
+aest Interrupt Flags: 0x00
+aest Interrupt GSIV: 0xaaaabbbb
+aest ID: 0xcc
+aest Reserved1: 0x00000000
+aest Interrupt Array
+aest Interrupt Type: 0x01
+aest Reserved: 0x0000
+aest Interrupt Flags: 0x01
+aest Interrupt GSIV: 0x78abcdef
+aest ID: 0x56
+aest Reserved1: 0x00000000
+aest
+aest PASSED: Test 1, No issues found in AEST table.
+aest
+aest ==========================================================
+aest 1 passed, 0 failed, 0 warning, 0 aborted, 0 skipped, 0
+aest info only.
+aest ==========================================================
new file mode 100644
@@ -0,0 +1,221 @@
+aest aest: AEST Arm Error Source Table test.
+aest ----------------------------------------------------------
+aest Test 1 of 1: Validate AEST table.
+aest AEST Arm Error Source Table:
+aest AEST node structure:
+aest Type: 0x00
+aest Length: 0x0080
+aest Reserved: 0x02
+aest Offset to Node-specific data: 0x0000002c
+aest Offset to Node Interface: 0x00000044
+aest Offset to Node Interrupt Array: 0x00000074
+aest Node Interrupt Array Size: 0x00000001
+aest Timestamp Rate: 0x0123456789abcdef
+aest Reserved1: 0x0000000001000000
+aest Error Injection Countdown Rate: 0x0000000000000000
+aest FAILED [MEDIUM] AESTReservedNonZero: Test 1, AEST Reserved
+aest field must be zero, got 0x02 instead
+aest FAILED [MEDIUM] AESTReservedNonZero: Test 1, AEST
+aest Reserved1 field must be zero, got 0x0000000001000000
+aest instead
+aest Node-specific data (Processor):
+aest ACPI Processor ID: 0x0000fecd
+aest Resource Type: 0x00
+aest Reserved: 0x01
+aest Flags: 0x10
+aest Revision: 0x00
+aest Processor affinity lvl ind: 0x0123456789abcdef
+aest FAILED [MEDIUM] AESTReservedNonZero: Test 1, AEST Reserved
+aest field must be zero, got 0x01 instead
+aest FAILED [HIGH] AESTReservedBitsNonZero: Test 1, AEST Flags
+aest Bits [7..2] must be zero, got 0x10 instead
+aest Cache Reference: 0x22223333
+aest Reserved: 0x00000100
+aest FAILED [MEDIUM] AESTReservedNonZero: Test 1, AEST Reserved
+aest field must be zero, got 0x00000100 instead
+aest Interface:
+aest Interface Type: 0x01
+aest Reserved: 0x00000000
+aest Flags: 0x00000002
+aest Base Address: 0x0123456789abcdef
+aest Start Error Record Index: 0x00000000
+aest Number Of Error Records: 0x00000001
+aest Error Record Implemented: 0x0000000000000001
+aest Status Reporting Supported: 0x0000000000000000
+aest Addressing Mode: 0x0000000001111111
+aest Interrupt Array
+aest Interrupt Type: 0x05
+aest Reserved: 0x0001
+aest Interrupt Flags: 0x03
+aest Interrupt GSIV: 0x78abcdef
+aest ID: 0x56
+aest Reserved1: 0x00000000
+aest FAILED [MEDIUM] AESTReservedNonZero: Test 1, AEST Reserved
+aest field must be zero, got 0x0001 instead
+aest FAILED [HIGH] AESTReservedBitsNonZero: Test 1, AEST
+aest Interrupt Type Bits [7..2] must be zero, got 0x05 instead
+aest FAILED [HIGH] AESTReservedBitsNonZero: Test 1, AEST
+aest Interrupt Flags Bits [31..1] must be zero, got 0x03
+aest instead
+aest FAILED [HIGH] AESTBadSubTableType: Test 1, AEST must have
+aest subtable with Type 0..2, got 5 instead
+aest
+aest AEST node structure:
+aest Type: 0x00
+aest Length: 0x0074
+aest Reserved: 0x00
+aest Offset to Node-specific data: 0x0000002c
+aest Offset to Node Interface: 0x00000044
+aest Offset to Node Interrupt Array: 0x00000000
+aest Node Interrupt Array Size: 0x00000000
+aest Timestamp Rate: 0x0123456789abcdef
+aest Reserved1: 0x0000000000000000
+aest Error Injection Countdown Rate: 0x0000000000000000
+aest Node-specific data (Processor):
+aest ACPI Processor ID: 0x00001111
+aest Resource Type: 0x01
+aest Reserved: 0x00
+aest Flags: 0x01
+aest Revision: 0x00
+aest Processor affinity lvl ind: 0x0123456789abcdef
+aest TLB Reference: 0x67676767
+aest Reserved: 0x00020000
+aest FAILED [MEDIUM] AESTReservedNonZero: Test 1, AEST Reserved
+aest field must be zero, got 0x00020000 instead
+aest Interface:
+aest Interface Type: 0x00
+aest Reserved: 0x00000001
+aest Flags: 0x00000005
+aest Base Address: 0x0123456789abcdef
+aest Start Error Record Index: 0x00000000
+aest Number Of Error Records: 0x00000001
+aest Error Record Implemented: 0x0000000000000001
+aest Status Reporting Supported: 0x0000000000000000
+aest Addressing Mode: 0x0000000001111111
+aest FAILED [MEDIUM] AESTReservedNonZero: Test 1, AEST Reserved
+aest field must be zero, got 0x00000001 instead
+aest FAILED [HIGH] AESTReservedBitsNonZero: Test 1, AEST Flags
+aest Bits [31..2] must be zero, got 0x00000005 instead
+aest
+aest AEST node structure:
+aest Type: 0x01
+aest Length: 0x0060
+aest Reserved: 0x00
+aest Offset to Node-specific data: 0x0000002c
+aest Offset to Node Interface: 0x00000030
+aest Offset to Node Interrupt Array: 0x00000000
+aest Node Interrupt Array Size: 0x00000000
+aest Timestamp Rate: 0x0000000000000000
+aest Reserved1: 0x0000000000000000
+aest Error Injection Countdown Rate: 0x0123456789abcdef
+aest Node-specific data (Memory Controller):
+aest Proximity Domain: 0x0000aaaa
+aest Interface:
+aest Interface Type: 0x04
+aest Reserved: 0x00000000
+aest Flags: 0x00000001
+aest Base Address: 0x0123456789abcdef
+aest Start Error Record Index: 0x00000000
+aest Number Of Error Records: 0x00000001
+aest Error Record Implemented: 0x0000000000000001
+aest Status Reporting Supported: 0x0000000000000000
+aest Addressing Mode: 0x0000000001111111
+aest FAILED [HIGH] AESTBadSubTableType: Test 1, AEST must have
+aest subtable with Type 0..2, got 4 instead
+aest
+aest AEST node structure:
+aest Type: 0x02
+aest Length: 0x0064
+aest Reserved: 0x00
+aest Offset to Node-specific data: 0x0000002c
+aest Offset to Node Interface: 0x00000034
+aest Offset to Node Interrupt Array: 0x00000000
+aest Node Interrupt Array Size: 0x00000000
+aest Timestamp Rate: 0x0000000000000000
+aest Reserved1: 0x0000000000000000
+aest Error Injection Countdown Rate: 0x0123456789abcdef
+aest Node-specific data (SMMU):
+aest IORT Node Reference: 0x55555555
+aest SMMU-specific Data Subcomponent Reference: 0x66666666
+aest Interface:
+aest Interface Type: 0x01
+aest Reserved: 0x00000000
+aest Flags: 0x00000003
+aest Base Address: 0x0123456789abcdef
+aest Start Error Record Index: 0x00000000
+aest Number Of Error Records: 0x00000001
+aest Error Record Implemented: 0x0000000000000001
+aest Status Reporting Supported: 0x0000000000000000
+aest Addressing Mode: 0x0000000001111111
+aest
+aest AEST node structure:
+aest Type: 0x03
+aest Length: 0x0074
+aest Reserved: 0x00
+aest Offset to Node-specific data: 0x0000002c
+aest Offset to Node Interface: 0x00000044
+aest Offset to Node Interrupt Array: 0x00000000
+aest Node Interrupt Array Size: 0x00000000
+aest Timestamp Rate: 0x0000000000000000
+aest Reserved1: 0x0000000000000000
+aest Error Injection Countdown Rate: 0x0123456789abcdef
+aest Node-specific data (Vendor-defined):
+aest Hardware ID: 0x33333333
+aest SMMU-specific Data Subcomponent Reference: 0x44444444
+aest Vendor-specific data:
+aest 0000: 12 23 34 45 56 67 78 89 9A AB BC CD DE EF FF 55 .#4EVgx........U
+aest Interface:
+aest Interface Type: 0x01
+aest Reserved: 0x00000000
+aest Flags: 0x00000002
+aest Base Address: 0x0123456789abcdef
+aest Start Error Record Index: 0x00000000
+aest Number Of Error Records: 0x00000001
+aest Error Record Implemented: 0x0000000000000001
+aest Status Reporting Supported: 0x0000000000000000
+aest Addressing Mode: 0x0000000001111111
+aest
+aest AEST node structure:
+aest Type: 0x04
+aest Length: 0x007c
+aest Reserved: 0x00
+aest Offset to Node-specific data: 0x0000002c
+aest Offset to Node Interface: 0x00000034
+aest Offset to Node Interrupt Array: 0x00000064
+aest Node Interrupt Array Size: 0x00000002
+aest Timestamp Rate: 0x0000000000000000
+aest Reserved1: 0x0000000000000000
+aest Error Injection Countdown Rate: 0x0123456789abcdef
+aest Node-specific data (GIC):
+aest Interface Type: 0x00000003
+aest Instance Identifier: 0x77778888
+aest Interface:
+aest Interface Type: 0x00
+aest Reserved: 0x00000000
+aest Flags: 0x00000003
+aest Base Address: 0x0123456789abcdef
+aest Start Error Record Index: 0x00000000
+aest Number Of Error Records: 0x00000001
+aest Error Record Implemented: 0x0000000000000001
+aest Status Reporting Supported: 0x0000000000000000
+aest Addressing Mode: 0x0000000001111111
+aest Interrupt Array
+aest Interrupt Type: 0x00
+aest Reserved: 0x0000
+aest Interrupt Flags: 0x00
+aest Interrupt GSIV: 0xaaaabbbb
+aest ID: 0xcc
+aest Reserved1: 0x00000000
+aest Interrupt Array
+aest Interrupt Type: 0x01
+aest Reserved: 0x0000
+aest Interrupt Flags: 0x01
+aest Interrupt GSIV: 0x78abcdef
+aest ID: 0x56
+aest Reserved1: 0x00000000
+aest
+aest
+aest ==========================================================
+aest 0 passed, 13 failed, 0 warning, 0 aborted, 0 skipped, 0
+aest info only.
+aest ==========================================================
new file mode 100755
@@ -0,0 +1,23 @@
+#!/bin/bash
+#
+TEST="Test acpitables against AEST"
+NAME=test-0001.sh
+TMPLOG=$TMP/aest.log.$$
+
+$FWTS --show-tests | grep aest > /dev/null
+if [ $? -eq 1 ]; then
+ echo SKIP: $TEST, $NAME
+ exit 77
+fi
+
+$FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/aest-0001/acpidump-0001.log aest - | cut -c7- | grep "^aest" > $TMPLOG
+diff $TMPLOG $FWTSTESTDIR/aest-0001/aest-0001.log >> $FAILURE_LOG
+ret=$?
+if [ $ret -eq 0 ]; then
+ echo PASSED: $TEST, $NAME
+else
+ echo FAILED: $TEST, $NAME
+fi
+
+rm $TMPLOG
+exit $ret
new file mode 100755
@@ -0,0 +1,23 @@
+#!/bin/bash
+#
+TEST="Test acpitables against AEST"
+NAME=test-0001.sh
+TMPLOG=$TMP/aest.log.$$
+
+$FWTS --show-tests | grep aest > /dev/null
+if [ $? -eq 1 ]; then
+ echo SKIP: $TEST, $NAME
+ exit 77
+fi
+
+$FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/aest-0001/acpidump-0002.log aest - | cut -c7- | grep "^aest" > $TMPLOG
+diff $TMPLOG $FWTSTESTDIR/aest-0001/aest-0002.log >> $FAILURE_LOG
+ret=$?
+if [ $ret -eq 0 ]; then
+ echo PASSED: $TEST, $NAME
+else
+ echo FAILED: $TEST, $NAME
+fi
+
+rm $TMPLOG
+exit $ret
Signed-off-by: Ivan Hu <ivan.hu@canonical.com> --- Makefile.am | 2 + fwts-test/aest-0001/acpidump-0001.log | 71 +++++++++ fwts-test/aest-0001/acpidump-0002.log | 71 +++++++++ fwts-test/aest-0001/aest-0001.log | 194 ++++++++++++++++++++++ fwts-test/aest-0001/aest-0002.log | 221 ++++++++++++++++++++++++++ fwts-test/aest-0001/test-0001.sh | 23 +++ fwts-test/aest-0001/test-0002.sh | 23 +++ 7 files changed, 605 insertions(+) create mode 100644 fwts-test/aest-0001/acpidump-0001.log create mode 100644 fwts-test/aest-0001/acpidump-0002.log create mode 100644 fwts-test/aest-0001/aest-0001.log create mode 100644 fwts-test/aest-0001/aest-0002.log create mode 100755 fwts-test/aest-0001/test-0001.sh create mode 100755 fwts-test/aest-0001/test-0002.sh