Sandrine Bailleux | f6ee8fb | 2020-04-22 12:09:36 +0200 | [diff] [blame^] | 1 | Trusted Firmware-A Tests - version 2.3 |
| 2 | ====================================== |
| 3 | |
| 4 | The Trusted Firmware-A Tests (TF-A-Tests) is a suite of baremetal tests to |
| 5 | exercise the `Trusted Firmware-A (TF-A)`_ features from the Normal World. It |
| 6 | enables strong TF-A functional testing without dependency on a Rich OS. It |
| 7 | mainly interacts with TF-A through its SMC interface. |
| 8 | |
| 9 | It provides a basis for TF-A developers to validate their own platform ports and |
| 10 | add their own test cases. |
| 11 | |
| 12 | The following TF-A features are currently tested to some extent (this list is |
| 13 | not exhaustive): |
| 14 | |
| 15 | - `SMC Calling Convention`_ |
| 16 | - `Power State Coordination Interface (PSCI)`_ |
| 17 | - `Software Delegated Exception Interface (SDEI)`_ |
| 18 | - `Performance Measurement Framework (PMF)`_ |
| 19 | - Communication and interaction with the `Test Secure Payload (TSP)`_ |
| 20 | - `Firmware update`_ (or recovery mode) |
| 21 | - `EL3 payload`_ boot flow |
| 22 | - `Secure partition`_ support |
| 23 | |
| 24 | These tests are not a compliance test suite for the Arm interface standards used |
| 25 | in TF-A (such as PSCI). |
| 26 | |
| 27 | They do not cover 100% of the TF-A code. The fact that all tests pass does not |
| 28 | mean that TF-A is free of bugs. |
| 29 | |
| 30 | They are not reference code. They should not be considered as the official way |
| 31 | to test hardware/firmware features. Instead, they are provided as example code |
| 32 | to experiment with and improve on. |
| 33 | |
| 34 | License |
| 35 | ------- |
| 36 | |
| 37 | The software is provided under a BSD-3-Clause `license`_. Contributions to this |
| 38 | project are accepted under the same license with developer sign-off as |
| 39 | described in the `Contributing Guidelines`_. |
| 40 | |
| 41 | This project contains code from other projects as listed below. The original |
| 42 | license text is included in those source files. |
| 43 | |
| 44 | - The libc source code is derived from `FreeBSD`_ and `SCC`_. FreeBSD uses |
| 45 | various BSD licenses, including BSD-3-Clause and BSD-2-Clause. The SCC code |
| 46 | is used under the BSD-3-Clause license with the author's permission. |
| 47 | |
| 48 | - The `LLVM compiler-rt`_ source code is disjunctively dual licensed |
| 49 | (NCSA OR MIT). It is used by this project under the terms of the NCSA |
| 50 | license (also known as the University of Illinois/NCSA Open Source License), |
| 51 | which is a permissive license compatible with BSD-3-Clause. Any |
| 52 | contributions to this code must be made under the terms of both licenses. |
| 53 | |
| 54 | This release |
| 55 | ------------ |
| 56 | |
| 57 | This release makes a wide range of tests available for validating the functionality |
| 58 | of TF-A as well as several improvements to test framework and test suite. |
| 59 | |
| 60 | Please refer to the `change log`_ for more details of the features, known issues and |
| 61 | limitations in the current release. |
| 62 | |
| 63 | |
| 64 | Platforms |
| 65 | ````````` |
| 66 | |
| 67 | Juno Arm Development Platform |
| 68 | ''''''''''''''''''''''''''''' |
| 69 | |
| 70 | The AArch64 build of this release has been tested on variants r0, r1 and r2 of |
| 71 | the `Juno Arm Development Platform`_. The AArch32 build has only been tested on |
| 72 | variant r0. |
| 73 | |
| 74 | Armv8 Architecture Fixed Virtual Platforms |
| 75 | '''''''''''''''''''''''''''''''''''''''''' |
| 76 | |
| 77 | The AArch64 build has been tested on the following Armv8 Architecture Fixed |
| 78 | Virtual Platforms (`FVP`_): |
| 79 | |
| 80 | - ``FVP_Base_AEMv8A-AEMv8A`` |
| 81 | - ``FVP_Base_Cortex-A35x4`` |
| 82 | - ``FVP_Base_Cortex-A57x4-A53x4`` |
| 83 | - ``FVP_Base_RevC-2xAEMv8A`` |
| 84 | - ``Foundation_Platform`` |
| 85 | |
| 86 | The AArch32 build has been tested on the following `FVP`_\ s: |
| 87 | |
| 88 | - ``FVP_Base_Cortex-A32x4`` |
| 89 | - ``FVP_Base_RevC-2xAEMv8A`` |
| 90 | |
| 91 | NOTE: Unless otherwise stated, the model version is version 11.9, build 41. |
| 92 | |
| 93 | System Guidance for Infrastructure Fixed Virtual Platforms |
| 94 | '''''''''''''''''''''''''''''''''''''''''''''''''''''''''' |
| 95 | |
| 96 | The AArch64 build has been tested on the following Fixed Virtual Platforms |
| 97 | (`FVP`_): |
| 98 | |
| 99 | - ``FVP_CSS_SGI-575`` |
| 100 | - ``FVP_RD_N1Edge`` |
| 101 | |
| 102 | NOTE: |
| 103 | |
| 104 | - For ``FVP_CSS_SGI-575`` and ``FVP_RD_N1Edge``, internal version of the |
| 105 | models were used. |
| 106 | |
| 107 | Still to come |
| 108 | ````````````` |
| 109 | |
| 110 | - More tests. |
| 111 | - Support for new platforms. |
| 112 | - Design improvements. |
| 113 | - Stability improvements. |
| 114 | - Enhance test framework to make it easier to implement tests. |
| 115 | - Fixing known issues (see the `change log`_ for more details). |
| 116 | |
| 117 | |
| 118 | Getting started |
| 119 | --------------- |
| 120 | |
| 121 | Get the TF-A Tests source code from `trustedfirmware.org`_. |
| 122 | |
| 123 | See the `User Guide`_ for instructions on how to install, build and use the TF-A |
| 124 | Tests. |
| 125 | |
| 126 | See the `Design Guide`_ for information on how the TF-A Tests internally work. |
| 127 | |
| 128 | See the `Porting Guide`_ for information about how to use this software on |
| 129 | another Armv8-A platform. |
| 130 | |
| 131 | See the `Contributing Guidelines`_ for information on how to contribute to this |
| 132 | project. |
| 133 | |
| 134 | -------------- |
| 135 | |
| 136 | *Copyright (c) 2018-2020, Arm Limited. All rights reserved.* |
| 137 | |
| 138 | .. _Contributing Guidelines: contributing.rst |
| 139 | .. _license: license.rst |
| 140 | .. _change log: docs/change-log.rst |
| 141 | .. _Design Guide: docs/design.rst |
| 142 | .. _Porting Guide: docs/porting-guide.rst |
| 143 | .. _User Guide: docs/user-guide.rst |
| 144 | .. _FVP: https://developer.arm.com/products/system-design/fixed-virtual-platforms |
| 145 | .. _Juno Arm Development Platform: https://developer.arm.com/products/system-design/development-boards/juno-development-board |
| 146 | |
| 147 | .. _Power State Coordination Interface (PSCI): PSCI_ |
| 148 | .. _PSCI: http://infocenter.arm.com/help/topic/com.arm.doc.den0022d/Power_State_Coordination_Interface_PDD_v1_1_DEN0022D.pdf |
| 149 | .. _Software Delegated Exception Interface (SDEI): SDEI_ |
| 150 | .. _SDEI: http://infocenter.arm.com/help/topic/com.arm.doc.den0054a/ARM_DEN0054A_Software_Delegated_Exception_Interface.pdf |
| 151 | .. _SMC Calling Convention: http://infocenter.arm.com/help/topic/com.arm.doc.den0028b/ARM_DEN0028B_SMC_Calling_Convention.pdf |
| 152 | |
| 153 | .. _trustedfirmware.org: https://git.trustedfirmware.org/TF-A/tf-a-tests.git |
| 154 | |
| 155 | .. _Trusted Firmware-A (TF-A): TF-A_ |
| 156 | .. _TF-A: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/about |
| 157 | .. _Test Secure Payload (TSP): TSP_ |
| 158 | .. _TSP: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/tree/bl32/tsp |
| 159 | .. _Performance Measurement Framework (PMF): PMF_ |
| 160 | .. _PMF: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/about/docs/firmware-design.rst#performance-measurement-framework |
| 161 | .. _Firmware update: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/about/docs/firmware-update.rst |
| 162 | .. _EL3 payload: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/about/docs/user-guide.rst#el3-payloads-alternative-boot-flow |
| 163 | .. _Secure partition: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/about/docs/secure-partition-manager-design.rst |
| 164 | |
| 165 | .. _issue tracker: https://developer.trustedfirmware.org/project/board/9/ |
| 166 | .. _mailing list: https://lists.trustedfirmware.org/mailman/listinfo/tf-a-tests |