aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2024-03-12arm/linux-yocto: backport patch to fix 6.5.13 networking issuesyocto-4.3.14.3.1nanbieldJon Mason
Linux kernel commit 9aea191c29e18f7c044a2f95a2da7f7b7fdd0449 (backported to 6.5.13 as part of the stable process) introduces an bug, which is preventing networking from functioning (and logging lots of errors in dmesg). Linux kernel commit 45b3fae4675dc1d4ee2d7aefa19d85ee4f891377 resolves the issue. It is need for everything, but only applying for aarch64 to keep the CI tooling happy. Signed-off-by: Jon Mason <jon.mason@arm.com>
2024-02-21arm-bsp/optee: Improve PIN counter handling robustnessEmekcan Aras
This patches a security issue discovered lately in OP-TEE version earlier than v4.1. The detailed report can be found here: https://github.com/OP-TEE/optee_os/security/advisories/GHSA-2f5m-q4w3-865p Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
2024-02-15CI: use https: to fetch meta-virtualizationRoss Burton
Some firewalls may reject git: traffic, so use https. Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-02-08arm-bsp/tf-a-tests: fix corstone1000Harsimran Singh Tungal
The tftf tests are getting stuck on nanbield for corstone1000 due to incompatible optee version. The optee version on nanbield needs to be upgraded to fix the tftf tests. To avoid that upgrade on the release branch, some tftf tests are skipped for corstone1000 platform to make the tftf tests work. Signed-off-by: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>
2024-01-18arm-bsp/documentation: upgrade Sphinx slightlyRoss Burton
Many Sphinx plugins now require Sphinx 5+ ([1], [2], and more), so sphinx 4.5 isn't usable as the requirements in sphinx itself are not pinned so you end up with a broken setup with errors such as: sphinx.errors.VersionRequirementError: The sphinxcontrib.serializinghtml extension used by this project needs at least Sphinx v5.0; it therefore cannot be built with this version. There's a sufficient number of plugins that manually pinning them all is tedious, so upgrade the documentation to Sphinx 5 (and the corresponding RTD theme). Also remove sphinx-copybutton, as this extension is unused. [1] https://github.com/sphinx-doc/sphinxcontrib-applehelp/commit/ccc77c814a92ef21c300e5ef725b76c40b7ce653 [2] https://github.com/sphinx-doc/sphinxcontrib-devhelp/commit/b2dc14bd8bdd7994c565d254772a0ba3ddecfe51 Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2024-01-18corstone1000:arm-bsp/tftf: Fix tftf tests on mps3Harsimran Singh Tungal
The tftf tests were getting crashed on the MPS3 and two issues were found during investigation. This change set provide fix for those issues: 1. The tftf tests were getting crashed on the MPS3 when compiled with LOG_LEVEL=50. So, reducing the log level and aligning it with the TF-A allows us to get rid of the crash. 2. Once the above crash got resolved, it has been found that tftf tests were getting asserted while reading the value of the register GICD_ITARGETSR. The reason for the crash is that the value of this register is zero. As per the GIC documentation, this register is RAZ/WI for uniprocessor implementation and corstone1000 is uniprocessor implementation for FPGA. So, this change compiles the tftf tests in release mode which allows us to compile out the assert definitions. Signed-off-by: Harsimran Singh Tungal <harsimransingh.tungal@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2024-01-08ci: Add Arm SystemReady firmware and IR ACS buildsDebbie Martin
Add CI builds for Arm SystemReady Firmware within the fvp-base CI job and a new Arm SystemReady IR ACS build job. Add the CI kas config for each of these builds. The ACS build can be controlled by the ACS_TEST GitLab variable to specify whether or not to run the testimage. If this variable is not set, the testimage step will not run. The job tag can be controlled by the ACS_TAG GitLab variable. Signed-off-by: Debbie Martin <Debbie.Martin@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2024-01-08arm-systemready: Add parted dependency and inherit testimageDebbie Martin
Add the parted-native dependency explicitly which is needed to use wic commands. Also explicitly inherit testimage. This means that the kas config is no longer required to include it in IMAGE_CLASSES. Signed-off-by: Debbie Martin <Debbie.Martin@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-12-06arm-bsp/documentation: corstone1000: fix the steps in the user guide and ↵CORSTONE1000-2023.11Harsimran Singh Tungal
instructions Provide updates and fixes in the user guide identified during testing. Signed-off-by: Harsimran Singh Tungal <harsimransingh.tungal@arm.com> Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-24arm-bsp/documentation: corstone1000: fix the requirements.txt and conf.py pathEmekcan Aras
Readthedocs server requires an absolute path from project's root directory to find correct requirements.txt and conf.py. Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com> Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24arm-bsp/documentation: corstone1000: add readthedocs.yaml fileEmekcan Aras
Migrate Corstone-1000 documentation to .readthedocs.yaml configuration file v2. Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com> Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24kas: corstone1000: pin the SHAsAbdellatif El Khlifi
Upgrade the Corstone-1000 YMLs as follows: - Set the layers SHAs - Align with Kas v4 - Update the layers list Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24arm-bsp/documentation: corstone1000: add a note and fix instructionsEmekcan Aras
Add a note for Capsule update negative test scenario and fixes instructions regarding distro-boot in Corstone-1000 user guide. Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com> Signed-off-by: Delane Brandy <delane.brandy@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24arm-bsp/documentation: corstone1000: Add EFI system partition sectionEmekcan Aras
Adds creating an EFI System Partition for Corstone-1000. Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24arm-bsp/documentation: corstone1000: update the user guideAbdellatif El Khlifi
align the user guide with the upcoming CORSTONE1000-2023.11 release Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24arm-bsp/documentation: corstone1000: update the architecture documentEmekcan Aras
align the architecture document with the upcoming CORSTONE1000-2023.11 release Signed-off-by: Emekcan Aras <emekcan.aras@arm.com> Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24arm-bsp/documentation: corstone1000: update the change logAbdellatif El Khlifi
align the change log with the upcoming CORSTONE1000-2023.11 release Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24arm-bsp/documentation: corstone1000: update the release noteAbdellatif El Khlifi
align the release note with the upcoming CORSTONE1000-2023.11 release Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24arm-bsp/u-boot: corstone1000: enable virtio-net support for FVPEmekcan Aras
Use Ethernet over VirtIO on FVP due to lan91c111 Ethernet driver support dropped from U-Boot. This patch enables virtio-net device in u-boot to pass ACS tests related to NIC and PXE. The current ethernet device still works in linux kernel and corstone1000-mps3 Ethernet device is supported by u-boot, so no change is required regarding existing Ethernet device. Signed-off-by: Emekcan Aras <emekcan.aras@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24arm-bsp/corstone1000-fvp: Disable Time AnnotationEmekcan Aras
Timing Annotation is a feature of the model that enables high-level performance estimations to be made [1]. This currently doesn't work properly with the new models and it's recommended to unset FASTSIM_DISABLE_TA. [1] https://developer.arm.com/documentation/100965/1119/Timing-Annotation Signed-off-by: Emekcan Aras <emekcan.aras@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24arm-bsp/corstone1000-fvp: add unpadded image support for MMC card configEmekcan Aras
Enables unpadded image support for MMC cards. Signed-off-by: Emekcan Aras <emekcan.aras@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24arm-bsp/corstone1000-fvp: Add virtio-net configurationEmekcan Aras
Adds virtio-net configuration to use virtio-net in corstone1000-fvp. Signed-off-by: Emekcan Aras <emekcan.aras@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24arm/fvp-corstone1000: upgrade to 11.23_25Emekcan Aras
Upgrade to the 11.23_25 release of the FVP. Signed-off-by: Emekcan Aras <emekcan.aras@arm.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-24arm-bsp/documentation: corstone1000: Update the user guideDelane Brandy
Update the user guide to include Linux distro installation on fvp Signed-off-by: Delane Brandy <delane.brandy@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-24arm-bsp/corstone1000: fix synchronization issue on openamp notificationEmekcan Aras
This fixes a race that is observed rarely in the FVP. It occurs in FVP when tfm sends the notication ack in openamp, and then reset the access request which resets the mhu registers before received by the host processor. It implements the fix both in SE and the host processor openamp wrapper. This solution enables polling on the status register of mhu until the notificaiton is read by the host processor. (Inspired by signal_and_wait_for_signal function in mhu_wrapper_v2_x.c in trusted-firmware-m https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/platform/ext/target/arm/rss/common/native_drivers/mhu_wrapper_v2_x.c#n61) Signed-off-by: Emekcan Aras <emekcan.aras@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-24arm-bsp/optee-os: update Upstream-Status tagsRoss Burton
Fix some formatting, and switch Accepted to Backport. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-13arm-bsp/optee-os: backport fix for CVE-2023-41325yocto-4.34.3Ross Burton
This bug has been fixed in 3.22, backport for 3.20. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-13arm/optee: handle CVE-2021-36133 as disputedRoss Burton
This CVE is specific to NXP i.MX boards which are documented as being shipped unsecure, as they're meant for development. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-10CI: use nanbield branch of meta-clangRoss Burton
Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-11-09arm-bsp/trusted-services: enable signaled handling interrupts for SPsEmekcan Aras
Changes ns-interrupt-action for corstone1000. This will enable preemption in the SPs which is the default way to handle interrupts in trusted-firmware and optee documentation. Signed-off-by: Emekcan Aras <emekcan.aras@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-09arm-bsp/corstone1000: Remove inappropriate kernel delay patchMariam Elshakfy
When booting, the tee driver from kernel side invokes a yielding call to OP-TEE, which gets stuck because OP-TEE never sends Done response: OPTEE_FFA_YIELDING_CALL_RETURN_DONE This issue was previously resolved by introducing an inappropriate patch to the kernel with 1 ms delay in ffa_msg_send_direct_req. Further investigation proved that OP-TEE doesn't get enough processing time and is constantly interrupted by the kernel requests. To remove this patch, TF-A logging level is lowered to default (40 in debug builds and 20 in release builds), which eliminates the time consumed previously by TF-A VERBOSE logs (giving OP-TEE more processing time). Signed-off-by: Mariam Elshakfy <mariam.elshakfy@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-09arm-bsp/u-boot: corstone1000: scatter gather list workaround for ondisk ↵Emekcan Aras
capsule update Corstone1000 capsule update implementation does not support use of scatter_gather_list. This workaround passes 1 as scatter_gather_list value to pass the NULL checks for scatter_gather_list while CAPSULE_FLAGS_PERSIST_ACROSS_RESET flag is set (which is introduced lately to align with UEFI specs). Since these flag checks are not implemented in u-boot properly and corstone1000 does not support scatter_gather_list during capsule update, this patch will skip the check only for on-disk capsule update. This will be fixed with new capsule update design. Signed-off-by: Emekcan Aras <emekcan.aras@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-07CI: use nanbield branch for meta-virtualizationRoss Burton
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-07arm/selftest: add test that DISPLAY is forwarded into the runfvp childRoss Burton
Add an optional env argument to the run_fvp() function, and check that DISPLAY is preserved. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-07scripts/runfvp: exit code should be the FVP exit codeRoss Burton
The __main__ body used the return value of runfvp() as the exit code, but this was never set. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-07arm/lib/fvp/runner: don't pass '' as cwdRoss Burton
Don't pass "" as the cwd as that fails, use None so the cwd doesn't get changed. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-06arm-bsp/documentation: corstone1000: enable debug-tweaksAbdellatif El Khlifi
add debug.yml to the build command so the debug-tweaks image feature is enabled Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-06arm/generic-arm64: remove obsolete SERIAL_CONSOLES_CHECKRoss Burton
This is no longer needed as Nanbield uses ttyrun to avoid re-spawning gettys. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-06arm-bsp: corstone1000 depends on meta-efi-secure-bootRoss Burton
corstone1000's uboot uses efitools-native from meta-efi-secure-boot, so add the layer dependency to make this clear. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-06CI: Add meta-secure-core to pending-upgrades for corstone1000Ross Burton
The corstone1000 machines now need this layer. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-03arm/trusted-firmware-a: update mbedtls to recommended releaseRoss Burton
The TF-A 2.9 documentation[1] says that mbedtls 3.4.0 is the recommended release to use, so switch to that. [1] https://trustedfirmware-a.readthedocs.io/en/v2.9/getting_started/prerequisites.html#software-and-libraries Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-03ci: Add fvpboot to IMAGE_CLASSESDebbie Martin
Use IMAGE_CLASSES rather than a direct INHERIT for fvpboot. This is Yocto best practice as it is used to enable functionality across all image recipes. Signed-off-by: Debbie Martin <Debbie.Martin@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-03kas: Add kas configuration for Arm SystemReady and fvp-baseDebbie Martin
Add systemready firmware, systemready ACS, systemready distros, and fvp-base kas configurations. Update the README file with instructions on how to build and run using them. Signed-off-by: Debbie Martin <Debbie.Martin@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-03arm-bsp/systemready: Bring up the Arm SystemReady IR ACS 2.0 suite on FVP baseDebbie Martin
1. Configure FVP base to allow Arm SystemReady IR ACS console access. 2. Configure FVP base Arm SystemReady IR ACS firmware build. 3. Add the machine-specific report.txt for FVP base. 4. Patch the check-sr-results.yaml and format-sr-results.yaml files to handle the known differences between FVP base and the expected ACS functionality. 5. Add a README with instructions of how to use the meta-arm-systemready layer with fvp-base. Signed-off-by: Debbie Martin <Debbie.Martin@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-03arm-systemready: Introduce the Arm SystemReady layerDebbie Martin
Add the meta-arm-systemready layer. This provides the infrastructure to load and run the Arm SystemReady IR ACS v2.0.0 prebuilt image and analyze the results. The recipes included are as follows: 1. arm-systemready-firmware: Enables the ARM_SYSTEMREADY_FIRMWARE machine conf variable to be used to specify which firmware packages to deploy. 2. arm-systemready-ir-acs: Runs the Arm SystemReady IR ACS tests from the pre-built images and checks the results adhere to the specification. 3. arm-systemready-linux-distros-[debian|opensuse]: Install the distro of choice from CD/DVD image to target disk image. Signed-off-by: Debbie Martin <Debbie.Martin@arm.com> Signed-off-by: Diego Sueiro <diego.sueiro@arm.com> Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Signed-off-by: Qi Feng <qi.feng@arm.com> Signed-off-by: Robbie Cao <robbie.cao@arm.com> Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com> Signed-off-by: Vineeth Raveendran <vineeth.raveendran@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-03arm/fvp-base: Update the default testsuitesDebbie Martin
For fvp-base, update the DEFAULT_TEST_SUITES to include fvp_boot and fvp_devices. This is only the default behaviour; individual recipes can override this using the TEST_SUITES variable. Signed-off-by: Debbie Martin <Debbie.Martin@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-01arm/optee: cleanups from code reviewJon Mason
Comments were made after previous optee changes were committed. Addressing those comments here. Suggested-by: Denys Dmytriyenko <denis@denix.org> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-11-01arm-bsp/documentation: corstone1000: Update the user guideAli Can Ozaslan
Update capsule document procedure and ACS image in user guide. Signed-off-by: Ali Can Ozaslan <ali.oezaslan@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-10-30arm/optee: update to 4.0.0Jon Mason
Update the recipes and patches for OP-TEE 4.0.0. Migrate the 3.22.0 recipe to meta-arm-bsp for corstone1000 and n1sdp. Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-10-30arm/hafnium: update to v2.9Jon Mason
Updating to the latest version of hafnium. Also, dropping tc patches, as they are either experimental or a similar feature has been added. Signed-off-by: Jon Mason <jon.mason@arm.com>