aboutsummaryrefslogtreecommitdiff
path: root/spm/cactus/cactus_tests.h
AgeCommit message (Collapse)Author
2022-05-19test(spm): run ffa_tests on ivyDaniel Boulby
Move cactus_test_ffa.c to a common directory for SPs so the ivy partition can also run the same tests. We also create a sp_platform_def.h file which contains various plaform defines required for the tests. This header is defined in both cactus and ivy directories and then fvp and tc0 subdirectories within those. The appropriate header for the sp and platform being built is then included in the build scripts. Signed-off-by: Daniel Boulby <daniel.boulby@arm.com> Change-Id: If65d099d43cd930ef730539b5ad1596e686f788a
2021-03-12SPM: Tidying FF-A Memory Sharing testsJ-Alves
Moving code about memory sharing tests to comply with recent changes: - Placed helper functions that can be used by TFTF and Cactus in files spm_common.c/h. - Removed 'ffa_memory_sharing_test' and added its body to handler of test command CACTUS_MEM_SEND_CMD. Signed-off-by: J-Alves <joao.alves@arm.com> Change-Id: I58af9b475730d171306581741becbb0665e1859d
2021-02-10[SPM] checks if SIMD vectors are preservedOlivier Deprez
Populates the SIMD registers in the normal world, then modifies those in the secure world. Upon return to the normal world checks that vectors are restored to the original values. Note: Does not check if SIMD vectors are preserved when returning back to the secure world. Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Signed-off-by: Max Shvetsov <maksims.svecovs@arm.com> Change-Id: I3ae223af64597f83afa6624122109db2cf0077f7
2021-02-10[SPM] tidying common code to tftf and cactusMax Shvetsov
This patch moves the code used to test SPM functionality, not explicitly described in FF-A specification, from ffa_helpers to spm_common which is built for both tftf and cactus. Signed-off-by: Max Shvetsov <maksims.svecovs@arm.com> Change-Id: I461efad977cc4d02701feea7b2215a61453716ef
2020-10-27cactus: adding memory sharing testsJ-Alves
Added tests to FF-A memory sharing interface. To enable them: - The message loop was refactored to support multiple requests/commands coming through direct messaging, leveraging command wrappers from the previous commit. - Enabled adding dynamic memory regions to translation table, according to xlat_tables_v2 library documentation [1]; - Mapped translation tables into cactus memory mapping so that they can be updated after a memory retrieve. [1] https://trustedfirmware-a.readthedocs.io/en/latest/components/xlat-tables-lib-v2-design.html?highlight=xlat Signed-off-by: J-Alves <joao.alves@arm.com> Change-Id: I73c9ba66dd89c53c50eca6ba6aca2e0ad115cb35
2020-07-27Cactus: FFA_PARTITION_INFO_GET test.Max Shvetsov
Calls FFA_PARTITION_INFO_GET API from secure virtual FFA-A instance. * Gets information about primary SP. * Gets information about secondary SP. * Gets information about all SP running. * Attempts to get information about non-existing SP. Signed-off-by: Max Shvetsov <maksims.svecovs@arm.com> Change-Id: Ief4de45b4d7decb1e1dba9bdb0e7e05516062dd2
2020-06-19Cactus: FFA Version TestJ-Alves
Added simple test of the FFA interface to cactus: - FFA version ABI helper; - New test file for test to FFA ABIs; - Invoking "ffa_tests" from cactus main. Signed-off-by: J-Alves <joao.alves@arm.com> Change-Id: I8c8445ad6d9da79f1880d143836e7a6da68eaff7
2018-12-10cactus: Remove boot info structAntonio Nino Diaz
This struct is now unused. Rather than keeping unused code in the repository, it's better to remove it. Change-Id: I2eb0f8c1a273df15c228ba72372b152e54f0fb27 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-10-10Trusted Firmware-A Tests, version 2.0v2.0Sandrine Bailleux
This is the first public version of the tests for the Trusted Firmware-A project. Please see the documentation provided in the source tree for more details. Change-Id: I6f3452046a1351ac94a71b3525c30a4ca8db7867 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com> Co-authored-by: amobal01 <amol.balasokamble@arm.com> Co-authored-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com> Co-authored-by: Asha R <asha.r@arm.com> Co-authored-by: Chandni Cherukuri <chandni.cherukuri@arm.com> Co-authored-by: David Cunado <david.cunado@arm.com> Co-authored-by: Dimitris Papastamos <dimitris.papastamos@arm.com> Co-authored-by: Douglas Raillard <douglas.raillard@arm.com> Co-authored-by: dp-arm <dimitris.papastamos@arm.com> Co-authored-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com> Co-authored-by: Jonathan Wright <jonathan.wright@arm.com> Co-authored-by: Kévin Petit <kevin.petit@arm.com> Co-authored-by: Roberto Vargas <roberto.vargas@arm.com> Co-authored-by: Sathees Balya <sathees.balya@arm.com> Co-authored-by: Shawon Roy <Shawon.Roy@arm.com> Co-authored-by: Soby Mathew <soby.mathew@arm.com> Co-authored-by: Thomas Abraham <thomas.abraham@arm.com> Co-authored-by: Vikram Kanigiri <vikram.kanigiri@arm.com> Co-authored-by: Yatharth Kochar <yatharth.kochar@arm.com>