AgeCommit message (Collapse)Author
3 hoursMerge changes I37626f90,I26555391HEADmasterMadhukar Pappireddy
* changes: cactus: implement hvc call to get interrupt id cactus: add exception/interrupt framework
12 hourscactus: implement hvc call to get interrupt idManish Pandey
Since an SP cannot access GIC directly, it relies on SPMC(S-EL2) to get the interrupt ID. This patch introduces a new hvc call "SPM_INTERRUPT_GET" to get interrupt ID in S-EL1. Change-Id: I37626f907174ae57a24dc6b86e89d26ba8ebbddf Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
13 hourscactus: add exception/interrupt frameworkOlivier Deprez
This patch adds following changes to cactus 1. Set up exception vector base address. 2. Add skeleton interrupt handler. 3. Install default tftf cpu exception handler. Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Change-Id: I265553918b45a0e7e80ef0d7c48c09abfbec1a5f
14 hoursMerge "cactus: remove deprecated hypervisor calls"Manish Pandey
33 hourscactus: remove deprecated hypervisor callsOlivier Deprez
Hafnium provided VM get count and vcpu get count hypervisor calls which are now deprecated [1]. The preference is to use FFA_PARTITION_INFO_GET discovery ABI. [1] https://git.trustedfirmware.org/hafnium/hafnium.git/ commit/?id=ae3840dbc9372fd407893f32a5d624828c8933ae Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: Idad95a0804a05d845dc45c2a0f0463f0120d4815
37 hoursMerge changes from topic "od/ffa-id"Manish Pandey
* changes: cactus: break the message loop on bad message request cactus: re-align secure partition id cactus: adjust the number of EC context to max number of PEs
7 dayscactus: break the message loop on bad message requestOlivier Deprez
When the FF-A direct message request is not received as expected prefer breaking the message loop and panicing rather than replying with the FF-A error ABI to the SPMC. It is improper to use this latter ABI in context of Hafnium as this is treated as an invalid SMC issued by the SP. Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I77cd0831a850e775f9996f4ecd1b5a81e6244a53
7 dayscactus: re-align secure partition idOlivier Deprez
According to [1] and [2] secure partition ids are defined from 0x8001 to 0xfffe. Update the cactus test payload and TFTF such that it uses the appropriate IDs. 0x8000 and 0xffff are reserved FF-A IDs respectively for the SPMC and the SPMD. Conversely in the NWd, the Hypervisor ID is 0 and VMs are numbered in the range of 1 to 0x7fff. [1] https://trustedfirmware-a.readthedocs.io/en/latest/components/ secure-partition-manager.html#ffa-id-get [2] https://review.trustedfirmware.org/c/hafnium/hafnium/+/5165 Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I3e9786212b227e6637a7650e60ddc4e59ad05a46
8 dayscactus: adjust the number of EC context to max number of PEsOlivier Deprez
According to [1] and in context of FF-A v1.0 a secure partition must have either one EC (migratable UP) or a number of ECs equal to the number of PEs (pinned MP). Adjust the cactus manifest execution-context fields to maximum number of PEs. [1] https://trustedfirmware-a.readthedocs.io/en/latest/components/ secure-partition-manager.html#platform-topology Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I79aec4b685c8774acb9b52dd6b05674cebc6ad2e
2020-09-03Merge "Minor bug fixes in multicore IRQ spurious test"Mark Dykes
2020-09-02Minor bug fixes in multicore IRQ spurious testMadhukar Pappireddy
Program the memory mapped GIC_ITARGETSR register with appropriate cpu mask and assert the expected value is returned upon reading the register. Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com> Change-Id: I356111d763569c229d7f4c9ea3cd4899305a4954
2020-08-20Merge "Makefile: add missing help_tests info on help target"Manish Pandey
2020-08-19Merge "Cactus: Map RXTX region to third partion."Madhukar Pappireddy
2020-08-19Merge "Cactus: Add third partion to ffa tests"Madhukar Pappireddy
2020-08-19Merge "Cactus: Create tertiary partition"Madhukar Pappireddy
2020-08-19Cactus: Map RXTX region to third partion.Ruari Phipps
When the third cactus partition is booted, map the RXTX region using the FFA_RXTX_MAP ABI. If this is successful, point the mailbox to this RXTX region. Signed-off-by: Ruari Phipps <ruari.phipps@arm.com> Change-Id: Ifbe3bc70b187f75f29ef66356e714e8a905d2db8
2020-08-19Cactus: Add third partion to ffa testsRuari Phipps
Add the third partition to the ffa_partition_info_get test to test that a partition can successfully get information about the third cactus partition Signed-off-by: Ruari Phipps <ruari.phipps@arm.com> Change-Id: Ib8c69f16e217f9631be005c7759753d05704afd2
2020-08-19Cactus: Create tertiary partitionMax Shvetsov
In order to test the RXTX_MAP API a tertiary cactus partition without a RX_TX region specified in its manifest is required. This patch adds this SP which is loaded at 0x730000. The primary and secondary SP's RX_TX regions are moved to allow for this. Signed-off-by: Ruari Phipps <ruari.phipps@arm.com> Change-Id: Idefe4bd7b589e974a0f011ba702763cadfec5df9
2020-08-18Makefile: add missing help_tests info on help targetLeonardo Sandoval
Although 'help_tests' target has been present for a long time, it is not shown on the main 'help' target output. This commits includes basic 'help_tests' info on the latter, making it visible. Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org> Change-Id: Ief510ae7f340207d416412f81e97e30017866b17
2020-08-18Merge changes from topic "af/add_branch_protection_makefiles"Olivier Deprez
* changes: TFTF: Add ARMv8.5 BTI support in makefiles TFTF: Add ARMv8.5 BTI support in xlat_tables_v2 library TFTF: Add ARMv8.5 BTI support in assembler files TFTF: Add ARMv8.5 BTI-related definitions
2020-08-18TFTF: Add ARMv8.5 BTI support in makefilesAlexei Fedorov
This patch adds 'BRANCH_PROTECTION' build option in TFTF makefiles which corresponds to that in TF-A. The option values are documented in 'build-options.rst' Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com> Change-Id: Iad5083aee339cec574acf5e7ab1fd8142877a122
2020-08-18TFTF: Add ARMv8.5 BTI support in xlat_tables_v2 libraryAlexei Fedorov
This patch adds BTI-related changes in xlat_tables_v2 library which fully correspond to those in TF-A source tree. Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com> Change-Id: I77f3ae7e9a365406ebb3edd500dbc71d3f07ecad
2020-08-18TFTF: Add ARMv8.5 BTI support in assembler filesAlexei Fedorov
This patch adds BTI support in assembler files which fully correspond to those in TF-A source tree. Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com> Change-Id: Ie6a7b248c967684c6b2b86b915f0499fe095bba3
2020-08-18TFTF: Add ARMv8.5 BTI-related definitionsAlexei Fedorov
This patch adds BTI-related definitions in header files which fully correspond to those in TF-A source tree. Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com> Change-Id: I1ae4c13dab41b0099517dd1bead221909511f2fc
2020-08-17Merge changes from topic "tegra194-ras-tests"Manish Pandey
* changes: Tegra194: support for RAS corrected error testing Tegra194: introduce RAS uncorrectable error injection tests
2020-08-17Tegra194: support for RAS corrected error testingVarun Wadekar
This patch introduces a test to inject RAS corrected errors for all supported nodes from all CPUs. On injecting an error, the CPU verifies that the error was detected with the help of an IRQ. Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Change-Id: I4a679e432d36e20aac64e7062fbaab438e96dfc0
2020-08-17Tegra194: introduce RAS uncorrectable error injection testsVarun Wadekar
Platform vendors have some tests that are specific to their platforms. This patch introduces a test suite for Tegra194 platfoms. As the first test, the platform will inject the RAS uncorrectable errors and verify that the platform detects and reports them. Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Change-Id: Id7b26d35dd4c638c2bd92959f18f12423ec1fd8b
2020-08-14Merge "SPM: Add owner to sp_layout gen"Manish Pandey
2020-08-12SPM: Add owner to sp_layout genRuari Phipps
Signed-off-by: Ruari Phipps <ruari.phipps@arm.com> Change-Id: Icd57ba44d81b7d6acfc6db4221c9a7e5f56e49df
2020-08-11Merge "TFTF: Fix Aarch32 zeromem() function"Manish Pandey
2020-07-28Merge "Update SMCCC_ARCH_SOC_ID test case"Madhukar Pappireddy
2020-07-28Merge "doc: use docker to build documentation"Sandrine Bailleux
2020-07-28Update SMCCC_ARCH_SOC_ID test caseManish V Badarkhe
Skip the test result if SMCCC_ARCH_SOC_ID feature is not available for the platform and also, return failure in case of SMCCC_ARCH_SOC_ID feature is available but platform unable to provide either soc-revision or soc-version information. Change-Id: I447adb78814a902a4344d98e4f7fafe67000316f Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
2020-07-27Merge changes from topic "ffa_tests"Manish Pandey
* changes: Cactus: tidying FFA_VERSION test. Cactus: FFA_PARTITION_INFO_GET test. Cactus: FFA_FEATURES test. SPM: TFTF test of FFA_FEATURES interface.
2020-07-27Cactus: tidying FFA_VERSION test.Max Shvetsov
Moving FFA_VERSION test to separate test function. Signed-off-by: Max Shvetsov <maksims.svecovs@arm.com> Change-Id: I09f1ca726eddbcaba0416f981eae292ba88c64b4
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-07-27Cactus: FFA_FEATURES test.Max Shvetsov
Calls FFA_FEATURES API from the secure virtual FF-A instance which is serviced by SPMC. Expected responses should be edited according to the feature implementation progress. Removing obsolete SPRT version check and cactus_tests_misc.c as a result. Signed-off-by: Max Shvetsov <maksims.svecovs@arm.com> Change-Id: I8a2e569a3bce31a735e1af04994984fda2168296
2020-07-27SPM: TFTF test of FFA_FEATURES interface.Max Shvetsov
Forwards FFA_FEATURES call to SPMC via SPMD from the normal world. Expected responses should be edited according to the feature implementation progress. Signed-off-by: Max Shvetsov <maksims.svecovs@arm.com> Change-Id: I057100b4086108b0779e3fa76fbd86e0818f765c
2020-07-23TFTF: Fix Aarch32 zeromem() functionAlexei Fedorov
This patch fixes the following bugs in zeromem() Aarch32 variant: - Removed ASM_ASSERT for length parameter passed in R1 register. This is causing assertion in tftf_entrypoint() code ldr r0, =__BSS_START__ ldr r1, =__BSS_SIZE__ bl zeromem when __BSS_SIZE__ is not 4-byte aligned: 0x000000000000cced __BSS_SIZE__ = SIZEOF (.bss) - With ENABLE_ASSERTIONS = 0 for RELEASE builds and R1 not 4-bytes aligned zeromem() was writing 0 into all the memory in infinite z_loop, because of the code: z_loop: cmp r2, r0 beq z_end str r1, [r0], #4 b z_loop with R0 being increased by 4 on each step and R2 = R0 condition would never be met. - BLT instruction was used for 'unsigned int length' value in R1 changed to BLO. This patch also fixes BLO instruction bug in 'memcpy4()' and function itself is optimised. Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com> Change-Id: I8128399681def8ba80241882e355c3ca2778605f
2020-07-21Merge "plat/arm: Move defines to platform specific header file"Madhukar Pappireddy
2020-07-20plat/arm: Move defines to platform specific header fileManish V Badarkhe
Some platform specific defines found in 'fwu_nvm.h' header hence moved such define to platform specific header file. Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com> Change-Id: I1cfd1c95306e2ded5b78d1d6424ad159a958c502
2020-07-17doc: use docker to build documentationLeonardo Sandoval
docker (container) is another way to build the documentation and fortunately there is already a docker image (sphinxdoc/sphinx) with sphinx so we can use it to generate the documentation. Change-Id: I33fba6c5e4810e20546559c80a8f2eecabd4c123 Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
2020-07-17Merge "remove dashes and and sort tests"joanna.farley
2020-07-15Merge "TFTF doesn't need to boot Secondary Cactus"Manish Pandey
2020-07-14remove dashes and and sort testsLeonardo Sandoval
remove dashes on 'make help_tests' output aligns a bit more to main 'make help' output. Also, sort tests sets so users find quicker the name of the test. Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org> Change-Id: If09992ddff95865233b1a311f9a52600d3756556
2020-07-08Merge "Add explicit barrier before sev() in tftf_send_event_common API"Sandrine Bailleux
2020-07-04Add explicit barrier before sev() in tftf_send_event_common APIMadhukar Pappireddy
Consider the following scenario: If sev() gets reordered above the event->cnt+=inc operation in tftf_send_event_common() on core 0, and lets say core 1 is in wfe in tftf_wait_for_event, core 1 receives the event before the write to event->cnt from core 0 propagates to core 1. Later, core 1 wakes up, reads event->cnt, sees that it is 0 and goes back to wfe, thereby leading to hang. Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com> Change-Id: I2e8a5ab7c220b02d5b637dc7cdf3562ca73dbfdc
2020-07-02Merge "TFTF: Fix regions' mapping with no NS bit set"Mark Dykes
2020-07-01Merge "include 'path/to' prefix when specifying tftf.bin on make fip cmd"Lauren Wehrmeister
2020-07-01Merge "sgi575: Reenable PSCI NODE_HW_STATE test"Sandrine Bailleux