Age | Commit message (Collapse) | Author |
|
|
|
SPs(at S-EL1) can only access virtual counters which is calculated as:
Virtual Count = Physical Count - <offset>
Offset value is specified in the register CNTVOFF_EL2, which is set
as 0 by hafnium.
This patch changes sp_sleep() to use virtual counter instead of
physical counter.
Change-Id: I4245b5efbc0a982686e8fd22060110faa764a729
Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
|
|
* changes:
[SPM] checks if SIMD vectors are preserved
[SPM] tidying common code to tftf and cactus
|
|
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
|
|
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
|
|
|
|
|
|
This includes changing to 8 cores for header file, dts
and topology. The missing uart node is also added to
cactus.dts.
Signed-off-by: Usama Arif <usama.arif@arm.com>
Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
Change-Id: I1c70f9fd92273d7b5dc97875707e469d7f39c12d
|
|
|
|
Removed reference to Hafnium in name from helper function and macro to
make them generic.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I5bdba013b3a0478dc1ef9058e71747480ba5ff1d
|
|
Change from macros to static inline functions, to enforce type checking.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I2cbaf99683ca5b2a5689256240894ed05d99e0d8
|
|
* changes:
Cactus: cmd for mem share tests
TFTF: tests to request SP-to-SP memory share
cactus: test SP-to-SP memory share operations
cactus: add command to request memory sharing between SPs
TFTF: Refactor FF-A memory sharing tests
|
|
* changes:
TFTF: SP-to-SP direct messaging deadlock test
cactus: testing deadlock by FF-A direct message
TFTF: trigger direct messaging between SPs
cactus: handle 'CACTUS_REQ_ECHO_CMD' and 'CACTUS_ECHO_CMD'
cactus: add commands CACTUS_ECHO_CMD and CACTUS_REQ_ECHO_CMD
|
|
Previously there was no cmd id for the mem share tests in
'cactus_test_cmds.h', the func id was being reused. For consistency
added the cmd id 'CACTUS_MEM_SEND_CMD'.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Ia2cee00d444d2b753855f2323578df0f9bcf4fb2
|
|
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I06cd2aedf48232dff4c530f1930297f2d962b3f3
|
|
Handle 'CACTUS_REQ_MEM_SEND_CMD' by sending memory to the receiver SP.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I4ca1ff91c52640f3a7204cc63041a091c210d8b7
|
|
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Id6f2557b7ae0f9f5d74f194a2cb35f5a571192ff
|
|
- Created helper functions to initialize ffa_memory_region and to send
the respective memory region to the SP, making it possible
to reuse the logic in SP-to-SP memory share tests.
- Added comments to document relevant aspects about memory sharing.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Id3c6db092d5b5eeed746a5fae30b8c853876fc53
|
|
TFTF sends CACTUS_REQ_DEADLOCK_CMD to cactus SP.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I1dc243fc5d22a6fe23b453648d69b7405091e05e
|
|
Added command CACTUS_DEADLOCK_CMD to file cactus_test_cmds.h to create
a deadlock scenario using FF-A direct message interfaces.
Added command CACTUS_REQ_DEADLOCK_CMD to trigger the sequence
of CACTUS_DEADLOCK_CMD necessary for the deadlock to occur.
Handled both commands in cactus message loop.
The purpose is to verify a deadlock by FF-A direct messaging cannot
happen in Hafnium implementation.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Ia5d6e92a955cd73d8997edaeef055f7b8184850e
|
|
Use cactus command 'CACTUS_REQ_ECHO_SEND_CMD' to make cactus SPs
communicate with each other using direct message interfaces.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Idc266cfb8b5661d1b2386d20a2758489f8ac894e
|
|
Changing message loop to handle newly added commands.
The intent is to use these commands to validate FF-A direct messaging
between SPs.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Id0ecbfafb13918fa2d349e70164b735f9ade6841
|
|
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Ide72ffab984b59400b4bdf84fd0ba6542969d0eb
|
|
* changes:
spm: update README with list of sample partitions
cactus: remove reference to PSA from xml test file
|
|
|
|
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: I94f90d8863c718b042a12c13869617d9c6254c04
|
|
Update few NOTICE messages to VERBOSE/INFO.
Update VM ids to be displayed in hex provided secure partitions
use IDs greater than 0x8000.
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: I737d7ef9e71ad9328be9fc599a986a8df4e60810
|
|
The FF-A specification as been renamed from PSA FF-A v1.0
to FF-A v1.0.
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: Ieef68c270e6213ff58ff9940b1337c43fb7bd25d
|
|
|
|
* changes:
SPM: Fix conversion issues on cactus responses
TFTF: helpers for SPM tests
cactus: Use RXTX mapping helper macros
SPM: RXTX map test on TFTF
FFA: RXTX map/configure helper macros
|
|
The checks of cactus responses in TFTF spm tests were failing to detect
CACTUS_ERROR, which is used to notify that some tests went wrong.
Thus, tests were being logged as finalized with success, when that was
not the case.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Id4d915453cd137c9a4a2ec0072c9674f5c5fe0e5
|
|
Added functions and macros to help check at the beginning of the test,
that system is as expected for SPM tests in which Hafnium is deployed as
SPMC.
This includes:
- Checking SPMC has expected FFA_VERSION;
- Checking that expected FF-A endpoints are deployed in the system;
- Getting global TFTF mailbox.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I9195bcff8ed93156e838b192bb70a9634e18fbbf
|
|
This patch replaces '.inst' AArch64 machine directives with CPU
Memory Tagging Extension instructions in 'test_mte_instructions'
function. The test code for executing MTE instructions must be
compiled with '-march=armv8.5-memtag' option which is provided
by setting 'ARM_ARCH_FEATURE=memtag' and 'ARM_ARCH_MINOR=5'
build flags in 'tftf_config/fvp-cpu-extensions' when this CI
configuration is built separately. Otherwise this compiler's
option must be specified explicitly.
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Change-Id: I90f1381733113798069bf77d3a03fcb284607fe5
|
|
|
|
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I2774435d85dd9a5c697c19f759994eecd349a236
|
|
Some FF-A interfaces use RXTX buffers to exchange information with SPMC.
To avoid repetition of RXTX mapping across the spm-related tests, and
prevent allocation of multiple pages for RXTX buffers within TFTF
runtime:
- Implemented test helpers that hold address of RXTX buffers;
- Implemented test to FFA_RXTX_MAP ABI, that also sets value of RXTX
buffers;
- Cleaned up memory sharing tests that previously implemented RXTX
mapping.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I4a67982d3d185bf83809156e4fce03c6edb967d9
|
|
Configuring/mapping RXTX buffers results in repetitive code, therefore
created helper macros.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I089b072b8b8fc49a445dcfb3967ddd4783b97628
|
|
This patch adds a new ARM_ARCH_FEATURE build option
to add support for compiler's feature modifiers.
It has the form '[no]feature+...' and defaults to
'none'. This option translates into compiler option
'-march=armvX[.Y]-a+[no]feature+...'.
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Change-Id: I115a921c777b7932523d2dff8e8e03377d87bb78
|
|
* changes:
spm: update OP-TEE version used for testing to 3.10
cactus: add uart2 to device-regions node
|
|
SPMC as S-EL1 tests using OP-TEE depend on a static binary
stored as a CI file. This binary corresponds to a build of
OP-TEE v3.10. Update the version reported to TFTF accordingly.
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: I23f51f8a126152a1345c8180c6e55fe7e2f471b8
|
|
Now first secure partition behaves equally to other secure
partitions. It does no longer have an open access to the
full system peripheral range and devices must be explicitelly
declared in the SP manifest.
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: I720beaf6b5874098afee19aafb6d81e53450cdad
|
|
|
|
Updated the minor version to '4' to indicate 2.4 release
Change-Id: I0cef2f3aa58808beca2fc48acb3ad39e01619105
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
|
|
|
|
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
Change-Id: I73a6041b23186e9bcc53239de8919d818f980db3
|
|
|
|
tftf/tests/misc_tests/inject_serror.S clears a flag, serror_received,
then waits for it to be set by an error handler. However, it
currently clears the flag after having started the count down timer
to generate the error, so there is a data race between it and
the error handler.
This can cause the test to fail, if the error is generated and the
flag set before it is first cleared.
Fix this by clearing the serror_received flag before starting the
count down timer.
Change-Id: I919ef2a1bba66b19f47bccfcdbee944357881e8f
Signed-off-by: David Horstmann <david.horstmann@arm.com>
|
|
|
|
Array 'receivers' of 'struct ffa_memory_region' was being accessed
without being initialized, in function 'ffa_memory_management_test'.
Changed it to process 'ffa_memory_region' transaction descriptor
from the partition's mailbox.
Change-Id: If240a3d0bc554558cd06bc8200a2f66d501b7f4f
Signed-off-by: J-Alves <joao.alves@arm.com>
|
|
* changes:
TFTF: tests for FF-A memory sharing operations
SPM: FFA endpoints header
SPM: TFTF skip test if FFA endpoint absent
cactus: adding memory sharing tests
cactus: macros for processing of commands
SPM: memory sharing functions and structures
FFA: Mem sharing ABIs
|