[PATCH 1/1] arm-bsp/trusted-firmware-a: exclude boot requirement test for Corstone-1000

Christophe Thiblot <[email protected]>
Newsgroups org.yoctoproject.lists.meta-arm
Message-ID <[email protected]>
A test compares the value of the Generic Timer register CNTFRQ visible in
two frames CNTBaseN and CNTCTLBase that are linked in Armv8-A and reflect
the same value.

An issue in Corstone-1000 (errata 2142118) makes the CNTFRQ views
inconsistents and the then test fails. There is no workaround and
the test is skipped.

Errata: https://developer.arm.com/documentation/sden2142076/0002/?lang=en
Signed-off-by: Christophe Thiblot <[email protected]>
---
 ...-requirement-tests-for-Corstone-1000.patch | 33 +++++++++++++++++++
 .../trusted-firmware-a/tf-a-tests_%.bbappend  |  5 +++
 2 files changed, 38 insertions(+)
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/corstone1000/tf-a-tests/0001-fix-exclude-Boot-requirement-tests-for-Corstone-1000.patch

diff --git a/meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/corstone1000/tf-a-tests/0001-fix-exclude-Boot-requirement-tests-for-Corstone-1000.patch b/meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/corstone1000/tf-a-tests/0001-fix-exclude-Boot-requirement-tests-for-Corstone-1000.patch
new file mode 100644
index 00000000..8df0e8cf
--- /dev/null
+++ b/meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/corstone1000/tf-a-tests/0001-fix-exclude-Boot-requirement-tests-for-Corstone-1000.patch
@@ -0,0 +1,33 @@
+From 328bfd8cd95bb0973e4966dcb4e3efa05d62f3f9 Mon Sep 17 00:00:00 2001
+From: Christophe Thiblot <[email protected]>
+Date: Wed, 2 Jul 2025 15:03:55 +0000
+Subject: [PATCH] fix: exclude Boot requirement tests for Corstone-1000
+
+A test compares the value of the Generic Timer register CNTFRQ visible in
+two frames CNTBaseN and CNTCTLBase that are linked in Armv8-A and reflect
+the same value.
+    
+An issue in Corstone-1000 (errata 2142118) makes the CNTFRQ views
+inconsistents and the then test fails. There is no workaround and
+the test is skipped.
+    
+Errata: https://developer.arm.com/documentation/sden2142076/0002/?lang=en
+
+Signed-off-by: Christophe Thiblot <[email protected]>
+Upstream-Status: Submitted [https://review.trustedfirmware.org/c/TF-A/tf-a-tests/+/40810]
+---
+ plat/arm/corstone1000/tests_to_skip.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/plat/arm/corstone1000/tests_to_skip.txt b/plat/arm/corstone1000/tests_to_skip.txt
+index d937e42..afa3992 100644
+--- a/plat/arm/corstone1000/tests_to_skip.txt
++++ b/plat/arm/corstone1000/tests_to_skip.txt
+@@ -16,3 +16,4 @@ PSCI CPU Suspend in OSI mode
+ PSCI STAT/for valid composite state CPU suspend
+ FF-A Setup and Discovery/FF-A RXTX remap unmapped region success
+ FF-A Memory Sharing/Normal World VM retrieve request into SPMC
++Boot requirement tests
+-- 
+2.43.0
+
diff --git a/meta-arm-bsp/recipes-bsp/trusted-firmware-a/tf-a-tests_%.bbappend b/meta-arm-bsp/recipes-bsp/trusted-firmware-a/tf-a-tests_%.bbappend
index 8cb5a4c5..344c9f8b 100644
--- a/meta-arm-bsp/recipes-bsp/trusted-firmware-a/tf-a-tests_%.bbappend
+++ b/meta-arm-bsp/recipes-bsp/trusted-firmware-a/tf-a-tests_%.bbappend
@@ -4,3 +4,8 @@ COMPATIBLE_MACHINE:corstone1000 = "corstone1000"
 EXTRA_OEMAKE:append:corstone1000 = " DEBUG=0"
 EXTRA_OEMAKE:append:corstone1000 = " LOG_LEVEL=30"
 TFTF_MODE:corstone1000 = "release"
+
+FILESEXTRAPATHS:prepend:corstone1000 := "${THISDIR}/files/corstone1000/tf-a-tests:"
+SRC_URI:append:corstone1000 = " \
+        file://0001-fix-exclude-Boot-requirement-tests-for-Corstone-1000.patch \
+        "
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.