aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
8 daysMerge "fix(ff-a): fix tc0 platform SP manifests"HEADmasterManish Pandey
12 daysfix(ff-a): fix tc0 platform SP manifestsMaksims Svecovs
Fix tc0 platform SP manifests to align with messaging method field changes introduced by b596eab in hafnium repository. Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com> Change-Id: I5fbdabe0de2ffd748c9dda7c68768485f2f2888d
2021-07-16Merge changes from topic "acs_depend"Madhukar Pappireddy
* changes: fix(tftf): test ffa_partition_info_get from NWd refactor(ff-a): partition info test functions
2021-07-15fix(tftf): test ffa_partition_info_get from NWdMax Shvetsov
Test if the normal world can get partition information of SPs. Testing for both individual partition information as well as information for all deployed SPs. Signed-off-by: Max Shvetsov <maksims.svecovs@arm.com> Change-Id: I4bc061c2658a10e6925eb9f621930edb703b0f10
2021-07-15refactor(ff-a): partition info test functionsMax Shvetsov
Move common ffa_partition_info_get functions to the spm_common. Secure test target now supports both sending and receiving direct messages. Changes in SP manifests to align with a new messaging method representation in partition manifests. Signed-off-by: Max Shvetsov <maksims.svecovs@arm.com> Change-Id: I9f6f24d6b800283a07e84a2a27708c0313b68fdc
2021-06-30Merge changes from topic "tc0_tfa_v25"Olivier Deprez
* changes: plat: tc0: enable managed exit for primary cactus plat: tc0: set PLAT_CACTUS_CORE_COUNT, disable SMMUv3 tests plat: tc0: Update GICR base address
2021-06-30Merge "feat(sve): enable SVE tests in tftf"Olivier Deprez
2021-06-29Merge changes from topic "db/sel0"Olivier Deprez
* changes: SPM: S-EL0 partitions support build for TC0 SPM: Split S-EL1 shim from S-EL0 application SPM: Use FF-A for message handling in Ivy SPM: Extract common debug code used for SPs SPM: Define Ivy partition manifest SPM: Add shim layer to Ivy partition and enable PIE Change vector_entry names to match tftf code style
2021-06-29feat(sve): enable SVE tests in tftfMax Shvetsov
Adding two tests to check that floating point context is preserved. 1. Use SIMD instructions on SVE-enabled system. 2. Use SVE instruction on a full-length vectors. Both tests check that floating point context is preserved after returning from the secure world. Signed-off-by: Max Shvetsov <maksims.svecovs@arm.com> Change-Id: Idccff7c3f1658cc66b64e144cc00cda6e0aeea50
2021-06-28SPM: S-EL0 partitions support build for TC0Olivier Deprez
Add support for building Ivy for the TC0 platform. To do this extend the Ivy build system to support building for multiple platforms. Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I47298f00ba91f498826dd3ddd690309df01cc13e
2021-06-28SPM: Split S-EL1 shim from S-EL0 applicationRuari Phipps
The shim prepares the S-EL1/0 environment (stack, VBAR, MMU, I-cache, BSS clear, PIE fixup) for usage by the S-EL0 application. Split ivy and shim parition code into separate folders. Signed-off-by: Ruari Phipps <ruari.phipps@arm.com> Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Signed-off-by: Daniel Boulby <daniel.boulby@arm.com> Change-Id: I203bbc0d379b12bd5cf1991b95e4f3a7d78d63d4
2021-06-28SPM: Use FF-A for message handling in IvyDaniel Boulby
Replace the use of SPRT for message handling with FF-A. Signed-off-by: Daniel Boulby <daniel.boulby@arm.com> Change-Id: I489d33a958f8c43aef7c9074f5c570f0c8b37518
2021-06-28SPM: Extract common debug code used for SPsRuari Phipps
In later patches we will want to use the debug code defined in cactus_debug.c for the Ivy partition, so create a common sp_debug file for code re-use. Signed-off-by: Ruari Phipps <ruari.phipps@arm.com> Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Signed-off-by: Daniel Boulby <daniel.boulby@arm.com> Change-Id: Ifc9cf0043f3f7549b1668623b44d10cae64ddab0
2021-06-23Merge "fix(TFTF): ensure robustness of SError inject test"Manish Pandey
2021-06-21plat: tc0: enable managed exit for primary cactusArunachalam Ganapathy
Change-Id: Ica641c18868dd040f78fe4dce5964f1c4154b3e5 Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
2021-06-21plat: tc0: set PLAT_CACTUS_CORE_COUNT, disable SMMUv3 testsArunachalam Ganapathy
Define platform specific SMMUv3 test driver macros. These macros will be set to proper values once SMMUv3 is enabled for TC platform. Disables SMMUv3 tests. Enables PSCI NODE_HW_STATE API test. Change-Id: I1bd0f362521d892d4b33a2188bf8c5065c45d6f0 Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
2021-06-21plat: tc0: Update GICR base addressArunachalam Ganapathy
Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com> Change-Id: I336a815a722dfa387d5d9720ea9f22fedac55bbf
2021-06-18SPM: Define Ivy partition manifestRuari Phipps
Define the partition properties for Ivy and add the Ivy partition to the default generated sp layout JSON. Signed-off-by: Ruari Phipps <ruari.phipps@arm.com> Change-Id: Ic7a1269890c32c587c86cc59917a7e045aaa52e8
2021-06-18SPM: Add shim layer to Ivy partition and enable PIERuari Phipps
Add a shim layer that runs at S-EL1 to the Ivy partition. Also enable Ivy to be built with PIE. Signed-off-by: Ruari Phipps <ruari.phipps@arm.com> Signed-off-by: Daniel Boulby <daniel.boulby@arm.com> Change-Id: I821a8ac99d07200aec93ca29d182f8ab6716616c
2021-06-18Change vector_entry names to match tftf code styleDaniel Boulby
Change the exception vector names from CamelCase to lowercase with underscores to better match the tftf code style. Change-Id: Ieffc54edc12cf960af8bca1de36848e7e607d4a2 Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
2021-06-18Merge changes from topic "db/spm_id_get"Olivier Deprez
* changes: Group FF-A Setup and Discovery interface tests Add tests for FFA function FFA_SPM_ID_GET Change the name of type ffa_vm_id_t
2021-06-11Group FF-A Setup and Discovery interface testsDaniel Boulby
Group all the tests that test FF-A Setup and Discovery interfaces into a common testsuite. Signed-off-by: Daniel Boulby <daniel.boulby@arm.com> Change-Id: I2dd98eb8af75fff4d1893ed6e5677ad4766ddcf9
2021-06-11Add tests for FFA function FFA_SPM_ID_GETDaniel Boulby
Also add the ability for ffa_features_test to only use the expected return if the minimum FF-A version for the feature is met. Signed-off-by: Daniel Boulby <daniel.boulby@arm.com> Change-Id: I276500c666365c563a117aa7b250b18f51dcace7
2021-06-04Merge changes from topic "tests_tidy_log"Olivier Deprez
* changes: fix(spm): change error logs to verbose fix(cactus): remove misleading ERROR log
2021-06-03fix(spm): change error logs to verboseJ-Alves
Helper functions to validate return of FF-A calls or responses from other endpoints in 'spm_common', were printing ERROR also in cases where this was actually expected. Changing those ERROR messages to VERBOSE, given ERROR as referred was misleading. Signed-off-by: J-Alves <joao.alves@arm.com> Change-Id: Id3feac197e8dbff78a616392b5ac7ca914c219df
2021-06-03fix(cactus): remove misleading ERROR logJ-Alves
The cactus message loop the log message for unhandled commands is misleading because it is expected to receive some direct messages for set-up configuration discovery. These messages are not handled by cactus and could indicate when a given test must be skipped or not. Namely, some SPM tests are skipped if OPTEE deployed as SP. This discovery "protocol" is executed at the beginning of most SPM related tests, which lead to a lot of ERROR messages, that often mislead developers into thinking there was a problem in the system. Signed-off-by: J-Alves <joao.alves@arm.com> Change-Id: Ib14dc3bf7f9c916fd5addf24675ea111eef5248e
2021-05-17Merge "Change log for tf-a-tests v2.5 release"v2.5Madhukar Pappireddy
2021-05-14Change log for tf-a-tests v2.5 releaseBipin Ravi
Signed-off-by: Bipin Ravi <bipin.ravi@arm.com> Change-Id: I4bd90e70b4632c794d36f9205a8c4435d8eaf497
2021-05-14Merge "makefile: incrementing minor version to reflect v2.5 release"Mark Dykes
2021-05-14Merge "docs: refreshed spm tests section"Olivier Deprez
2021-05-12makefile: incrementing minor version to reflect v2.5 releaseMadhukar Pappireddy
Updated the minor version in the makefile Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com> Change-Id: I5dcaaa37979898e7b758e1a239a2552b931a7008
2021-05-12docs: refreshed spm tests sectionOlivier Deprez
Change-Id: I2fb8d3f390c861333d47ac14a6043751ed2cdbb3 Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
2021-05-04fix(TFTF): ensure robustness of SError inject testDavid Horstmann
A previous patch [1] fixed a race condition by moving a store instruction earlier in the SError inject test. However, this was not made robust by introducing the correct data barrier instructions. This patch introduces dsb instructions to ensure the race condition does not return. [1] https://review.trustedfirmware.org/c/TF-A/tf-a-tests/+/6892 Signed-off-by: David Horstmann <david.horstmann@arm.com> Change-Id: I7ec6b0acba7c8661284c572fe373ead902727b10
2021-05-04Change the name of type ffa_vm_id_tDaniel Boulby
The type ffa_vm_id_t is used for all ffa_id variables not just ones specific to vms so remove this element from the name to make it simple ffa_id_t Signed-off-by: Daniel Boulby <daniel.boulby@arm.com> Change-Id: I29d751880c29b0a401cbc698f856c3651cc02789
2021-04-30Merge "Cactus test for exercising SMMUv3 driver to perform stage2 translation"v2.5-rc1v2.5-rc0Olivier Deprez
2021-04-30Cactus test for exercising SMMUv3 driver to perform stage2 translationMadhukar Pappireddy
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com> Change-Id: I498cb63aed497ab469a38e486a7943dd634e5b36
2021-04-29Merge "Revert "Enable spurious test on Juno""Olivier Deprez
2021-04-28Revert "Enable spurious test on Juno"Madhukar Pappireddy
This reverts commit 424db295a8ee571efc92fc29c46ece28313c6b3d. Reason for revert: The test is unstable on Juno and intermittently fails. Change-Id: Id1b14068789a1219b1c2528e66690e7e5d8c6979
2021-04-26Merge "Enable spurious test on Juno"Lauren Wehrmeister
2021-04-21Enable spurious test on JunoMadhukar Pappireddy
The corresponding bug fix in tspd component of TF-A was merged https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/9011 Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com> Change-Id: I2499f2ecef1c6f0a5687c66e67cfabc9f21bc6b0
2021-04-21Merge changes from topic "od/ns-interrupts"Olivier Deprez
* changes: Cactus: enable managed exit for primary cactus SPM: test handling of non-secure interrupt while running SP Cactus: helper commands needed for interrupt testing Cactus: add handler from managed exit FIQ interrupt Cactus: make ffa_id global Cactus: implement hvc call to enable an interrupt Cactus: decouple exception handling from tftf framework spmc: hypervisor calls moved to a separate module
2021-04-21Merge "spm: invalidate the data cache for the cactus image"Olivier Deprez
2021-04-14spm: invalidate the data cache for the cactus imageOlivier Deprez
There may be stale data cache entries prior to enabling MMU left by earlier boot stages. With this change ensure that the region used for the cactus image at SEL1 is invalidated in the data cache prior to enabling MMU. Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I8683dfe59919a90ecf97ffc9ce62715394afcc9a
2021-04-13Cactus: enable managed exit for primary cactusManish Pandey
Change-Id: I7dfe6ef8ec9bd936fbd987c1cc96aa3682e274cb Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
2021-04-13SPM: test handling of non-secure interrupt while running SPManish Pandey
This patch introduces following test scenario 1. Start a NS timer of 100ms from test framework(TFTF) 2. Send a command to Cactus to block for 200ms so that when NS timer expires, Cactus is still executing. 3. NS timer interrupt traped as FIQ in SPMC which injects Managed exit interrupt in Cactus. 4. Cactus interrupt handler acknowledges handling of interrupt by sending MSG_SEND_DIRECT_RESP to SPMC which in turn forwards it to TFTF. 5. PASS condition for the test is to make sure that - Interrupt occured in Cactus. - Timer interrupt has been forwarded/handled in TFTF. - Time lapsed in whole test is more than 200ms. Change-Id: Iac7a35ac7fa8dd57a1d6bbc0c0797498e09c9b65 Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
2021-04-13Cactus: helper commands needed for interrupt testingManish Pandey
Following commands added 1. CACTUS_SLEEP_CMD: request to run cactus in a busy loop for given time. Returns time lapsed in this routine. 2. CACTUS_INTERRUPT_CMD: request to enable/disable given interrupt ID, returns success on completion. Change-Id: I9c7903f1e483d3ea0dc91db5f07135995da77862 Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
2021-04-13Cactus: add handler from managed exit FIQ interruptManish Pandey
Change-Id: I6d4a8c39287dc5102e5fca7af1a4c92bb2d8fbc7 Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
2021-04-13Cactus: make ffa_id globalManish Pandey
Change-Id: Ic6744c726bbd452782a08b0791186b10f69981b0 Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
2021-04-13Cactus: implement hvc call to enable an interruptManish Pandey
INTERRUPT_ENABLE hvc call can be used by SP to let SPMC(S-EL2) know about its capability to handle a particular interrupt. All interrupt specific hvc calls have "interrupt_type" as an argument to distinguish between IRQ/FIQ. This patch also introduces enum for interrupt types and modifies spm_interrupt_get() accordingly. Change-Id: I65e42645330be0787449be850579e1a9fa35127b Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
2021-04-13Cactus: decouple exception handling from tftf frameworkManish Pandey
So far, tftf framework's exception handling was used for Cactus exceptions also. With new interrupt related tests coming up in Cactus, we need a separate exception handler code for Cactus. This patch enables irq/fiq for Cactus and adds placeholder handlers for them. Change-Id: Ifd89c4ba8b4491345948bf342540b37fdbc91b8d Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>