[PATCH 2/2] fwts-test: sync up with fpdt records adding

Ivan Hu ivan.hu at canonical.com
Tue Nov 18 07:23:55 UTC 2025


Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
---
 fwts-test/fpdt-0001/acpidump-0001.log |  9 +++---
 fwts-test/fpdt-0001/acpidump-0002.log | 12 ++++----
 fwts-test/fpdt-0001/fpdt-0001.log     | 19 ++++++++++--
 fwts-test/fpdt-0001/fpdt-0002.log     | 43 ++++++++++++++++++++++-----
 4 files changed, 62 insertions(+), 21 deletions(-)

diff --git a/fwts-test/fpdt-0001/acpidump-0001.log b/fwts-test/fpdt-0001/acpidump-0001.log
index 66f59a0d..1973fc88 100644
--- a/fwts-test/fpdt-0001/acpidump-0001.log
+++ b/fwts-test/fpdt-0001/acpidump-0001.log
@@ -24,9 +24,10 @@ FACP @ 0x00000000
   00f0: 00 00 00 00                                      ....
 
 FPDT @ 0x00000000
-  0000: 46 50 44 54 44 00 00 00 01 90 41 4C 41 53 4B 41  FPDTD.....ALASKA
-  0010: 41 20 4D 20 49 00 00 00 09 20 07 01 41 4D 49 20  A M I.... ..AMI
+  0000: 46 50 44 54 6C 00 00 00 01 06 41 4C 41 53 4B 41  FPDTl.....ALASKA
+  0010: 41 20 4D 20 49 00 00 00 09 20 07 01 41 4D 49 20  A M I.... ..AMI 
   0020: 13 00 01 00 01 00 10 01 00 00 00 00 18 00 EC D9  ................
   0030: 00 00 00 00 00 00 10 01 00 00 00 00 38 00 EC D9  ............8...
-  0040: 00 00 00 00                                      ....
-
+  0040: 00 00 00 00 02 00 10 01 00 00 00 00 58 00 EC D9  ............X...
+  0050: 00 00 00 00 03 00 18 01 00 00 00 00 02 00 00 00  ................
+  0060: 00 00 00 00 78 56 34 12 00 00 00 00              ....xV4.....
diff --git a/fwts-test/fpdt-0001/acpidump-0002.log b/fwts-test/fpdt-0001/acpidump-0002.log
index 1868c635..1476d848 100644
--- a/fwts-test/fpdt-0001/acpidump-0002.log
+++ b/fwts-test/fpdt-0001/acpidump-0002.log
@@ -24,10 +24,10 @@ FACP @ 0x00000000
   00f0: 00 00 00 00                                      ....
 
 FPDT @ 0x00000000
-  0000: 46 50 44 54 44 00 00 00 01 90 41 4C 41 53 4B 41  FPDTD.....ALASKA
+  0000: 46 50 44 54 6C 00 00 00 01 90 41 4C 41 53 4B 41  FPDTD.....ALASKA
   0010: 41 20 4D 20 49 00 00 00 09 20 07 01 41 4D 49 20  A M I.... ..AMI
-  0020: 13 00 01 00 01 00 10 01 00 00 00 00 18 00 EC D9  ................
-  0030: 00 00 00 00 00 00 11 01 00 00 00 00 38 00 EC D9  ............8...
-  0040: 00 00 00 00 00 00 40 10 01 00 00 00 00 38 00 EC  .............8..
-  0050: D9 00 00 00 00                                   .....
-
+  0020: 13 00 01 00 01 00 10 01 00 00 00 FF 18 00 EC D9  ................
+  0030: 00 00 00 00 00 00 10 02 11 00 00 00 38 00 EC D9  ............8...
+  0040: 00 00 00 00 02 00 10 01 00 00 00 01 58 00 EC D9  ............X...
+  0050: 00 00 00 00 03 00 18 05 01 00 00 00 02 00 00 00  ................
+  0060: 00 00 00 00 78 56 34 12 00 00 00 00              ....xV4.....
diff --git a/fwts-test/fpdt-0001/fpdt-0001.log b/fwts-test/fpdt-0001/fpdt-0001.log
index 91d23636..f8f72e62 100644
--- a/fwts-test/fpdt-0001/fpdt-0001.log
+++ b/fwts-test/fpdt-0001/fpdt-0001.log
@@ -9,14 +9,27 @@ fpdt                Reserved:	0x00000000
 fpdt                S3PT Pointer:	0x00000000d9ec0018
 fpdt            Note: currently fwts does not check S3PT validity and the
 fpdt            associated data
-fpdt                Firmware Basic Boot Performance Pointer Record:
+fpdt                Host Firmware Boot Performance Pointer Record:
 fpdt                Perf Rec Type:	0x0000
 fpdt                Rec Length:	0x10
 fpdt                Revision:	0x01
 fpdt                Reserved:	0x00000000
 fpdt                FBPT Pointer:	0x00000000d9ec0038
-fpdt            Note: currently fwts does not check FBPT validity and the
-fpdt            associated data
+fpdt            Note: currently fwts does not check Host Firmware Boot
+fpdt            Performance Table validity and the associated data
+fpdt              Microcontroller Boot Performance Table Pointer Record:
+fpdt                Perf Rec Type:	0x0002
+fpdt                Rec Length:	0x10
+fpdt                Revision:	0x01
+fpdt                Reserved:	0x00000000
+fpdt                MBPT Pointer:	0x00000000d9ec0058
+fpdt              Timestamp Delta Record:
+fpdt                Perf Rec Type:	0x0003
+fpdt                Rec Length:	0x18
+fpdt                Revision:	0x01
+fpdt                Reserved:	0x00000000
+fpdt                Timestamp Domain ID:	0x0000000000000002
+fpdt                Timestamp Delta:	0x0000000012345678
 fpdt            PASSED: Test 1, No issues found in FPDT table.
 fpdt            
 fpdt            ==========================================================
diff --git a/fwts-test/fpdt-0001/fpdt-0002.log b/fwts-test/fpdt-0001/fpdt-0002.log
index 306801b9..1ad81998 100644
--- a/fwts-test/fpdt-0001/fpdt-0002.log
+++ b/fwts-test/fpdt-0001/fpdt-0002.log
@@ -5,18 +5,45 @@ fpdt              S3 Performance Table Pointer Record:
 fpdt                Perf Rec Type:	0x0001
 fpdt                Rec Length:	0x10
 fpdt                Revision:	0x01
-fpdt                Reserved:	0x00000000
+fpdt                Reserved:	0xff000000
 fpdt                S3PT Pointer:	0x00000000d9ec0018
+fpdt            FAILED [MEDIUM] FPDTReservedNonZero: Test 1, FPDT Reserved
+fpdt            field must be zero, got 0xff000000 instead
 fpdt            Note: currently fwts does not check S3PT validity and the
 fpdt            associated data
-fpdt            FAILED [HIGH] FPDTFWBootPerfPrtRecBadLength: Test 1, FPDT
-fpdt            Firmware Basic Boot Performance Pointer Record is 17 bytes
-fpdt            and should be 16 bytes in size
-fpdt            FAILED [HIGH] FPDTPerformanceRecordTypeInvalid: Test 1,
-fpdt            FPDT Performance Record Type is 0x4000 which is a reserved
-fpdt            type for future use only
+fpdt                Host Firmware Boot Performance Pointer Record:
+fpdt                Perf Rec Type:	0x0000
+fpdt                Rec Length:	0x10
+fpdt                Revision:	0x02
+fpdt                Reserved:	0x00000011
+fpdt                FBPT Pointer:	0x00000000d9ec0038
+fpdt            FAILED [MEDIUM] FPDTReservedNonZero: Test 1, FPDT Reserved
+fpdt            field must be zero, got 0x00000011 instead
+fpdt            Note: currently fwts does not check Host Firmware Boot
+fpdt            Performance Table validity and the associated data
+fpdt            FAILED [MEDIUM] FPDTBadFieldValue: Test 1, FPDT FBPT
+fpdt            Revision field must be 1, got 2 instead.
+fpdt              Microcontroller Boot Performance Table Pointer Record:
+fpdt                Perf Rec Type:	0x0002
+fpdt                Rec Length:	0x10
+fpdt                Revision:	0x01
+fpdt                Reserved:	0x01000000
+fpdt                MBPT Pointer:	0x00000000d9ec0058
+fpdt            FAILED [MEDIUM] FPDTReservedNonZero: Test 1, FPDT Reserved
+fpdt            field must be zero, got 0x01000000 instead
+fpdt              Timestamp Delta Record:
+fpdt                Perf Rec Type:	0x0003
+fpdt                Rec Length:	0x18
+fpdt                Revision:	0x05
+fpdt                Reserved:	0x00000001
+fpdt                Timestamp Domain ID:	0x0000000000000002
+fpdt                Timestamp Delta:	0x0000000012345678
+fpdt            FAILED [MEDIUM] FPDTReservedNonZero: Test 1, FPDT Reserved
+fpdt            field must be zero, got 0x00000001 instead
+fpdt            FAILED [MEDIUM] FPDTBadFieldValue: Test 1, FPDT Timestamp
+fpdt            Delta Revision field must be 1, got 5 instead.
 fpdt            
 fpdt            ==========================================================
-fpdt            0 passed, 2 failed, 0 warning, 0 aborted, 0 skipped, 0
+fpdt            0 passed, 6 failed, 0 warning, 0 aborted, 0 skipped, 0
 fpdt            info only.
 fpdt            ==========================================================
-- 
2.43.0




More information about the fwts-devel mailing list