Douglas Raillard | 30d7b36 | 2017-06-28 16:14:55 +0100 | [diff] [blame] | 1 | |
| 2 | .. section-numbering:: |
| 3 | :suffix: . |
| 4 | |
| 5 | .. contents:: |
| 6 | |
David Cunado | b158043 | 2018-03-14 17:57:31 +0000 | [diff] [blame] | 7 | Trusted Firmware-A - version 1.5 |
| 8 | ================================ |
| 9 | |
| 10 | New features |
| 11 | ------------ |
| 12 | |
| 13 | - Added new firmware support to enable RAS (Reliability, Availability, and |
| 14 | Serviceability) functionality. |
| 15 | |
| 16 | - Secure Partition Manager (SPM): A Secure Partition is a software execution |
| 17 | environment instantiated in S-EL0 that can be used to implement simple |
| 18 | management and security services. The SPM is the firmware component that |
| 19 | is responsible for managing a Secure Partition. |
| 20 | |
| 21 | - SDEI dispatcher: Support for interrupt-based SDEI events and all |
| 22 | interfaces as defined by the SDEI specification v1.0, see |
| 23 | `SDEI Specification`_ |
| 24 | |
| 25 | - Exception Handling Framework (EHF): Framework that allows dispatching of |
| 26 | EL3 interrupts to their registered handlers which are registered based on |
| 27 | their priorities. Facilitates firmware-first error handling policy where |
| 28 | asynchronous exceptions may be routed to EL3. |
| 29 | |
| 30 | Integrated the TSPD with EHF. |
| 31 | |
| 32 | - Updated PSCI support: |
| 33 | |
| 34 | - Implemented PSCI v1.1 optional features `MEM_PROTECT` and `SYSTEM_RESET2`. |
| 35 | The supported PSCI version was updated to v1.1. |
| 36 | |
| 37 | - Improved PSCI STAT timestamp collection, including moving accounting for |
| 38 | retention states to be inside the locks and fixing handling of wrap-around |
| 39 | when calculating residency in AArch32 execution state. |
| 40 | |
| 41 | - Added optional handler for early suspend that executes when suspending to |
| 42 | a power-down state and with data caches enabled. |
| 43 | |
| 44 | This may provide a performance improvement on platforms where it is safe |
| 45 | to perform some or all of the platform actions from `pwr_domain_suspend` |
| 46 | with the data caches enabled. |
| 47 | |
| 48 | - Enabled build option, BL2_AT_EL3, for BL2 to allow execution at EL3 without |
| 49 | any dependency on TF BL1. |
| 50 | |
| 51 | This allows platforms which already have a non-TF Boot ROM to directly load |
| 52 | and execute BL2 and subsequent BL stages without need for BL1. This was not |
| 53 | previously possible because BL2 executes at S-EL1 and cannot jump straight to |
| 54 | EL3. |
| 55 | |
| 56 | - Implemented support for SMCCC v1.1, including `SMCCC_VERSION` and |
| 57 | `SMCCC_ARCH_FEATURES`. |
| 58 | |
| 59 | Additionally, added support for `SMCCC_VERSION` in PSCI features to enable |
| 60 | discovery of the SMCCC version via PSCI feature call. |
| 61 | |
| 62 | - Added Dynamic Configuration framework which enables each of the boot loader |
| 63 | stages to be dynamically configured at runtime if required by the platform. |
| 64 | The boot loader stage may optionally specify a firmware configuration file |
| 65 | and/or hardware configuration file that can then be shared with the next boot |
| 66 | loader stage. |
| 67 | |
| 68 | Introduced a new BL handover interface that essentially allows passing of 4 |
| 69 | arguments between the different BL stages. |
| 70 | |
| 71 | Updated cert_create and fip_tool to support the dynamic configuration files. |
| 72 | The COT also updated to support these new files. |
| 73 | |
| 74 | - Code hygiene changes and alignment with MISRA guideline: |
| 75 | |
| 76 | - Fix use of undefined macros. |
| 77 | |
| 78 | - Achieved compliance with Mandatory MISRA coding rules. |
| 79 | |
| 80 | - Achieved compliance for following Required MISRA rules for the default |
| 81 | build configurations on FVP and Juno platforms : 7.3, 8.3, 8.4, 8.5 and |
| 82 | 8.8. |
| 83 | |
| 84 | - Added support for Armv8.2-A architectural features: |
| 85 | |
| 86 | - Updated translation table set-up to set the CnP (Common not Private) bit |
| 87 | for secure page tables so that multiple PEs in the same Inner Shareable |
| 88 | domain can use the same translation table entries for a given stage of |
| 89 | translation in a particular translation regime. |
| 90 | |
| 91 | - Extended the supported values of ID_AA64MMFR0_EL1.PARange to include the |
| 92 | 52-bit Physical Address range. |
| 93 | |
| 94 | - Added support for the Scalable Vector Extension to allow Normal world |
| 95 | software to access SVE functionality but disable access to SVE, SIMD and |
| 96 | floating point functionality from the Secure world in order to prevent |
| 97 | corruption of the Z-registers. |
| 98 | |
| 99 | - Added support for Armv8.4-A architectural feature Activity Monitor Unit (AMU) |
| 100 | extensions. |
| 101 | |
| 102 | In addition to the v8.4 architectural extension, AMU support on Cortex-A75 |
| 103 | was implemented. |
| 104 | |
| 105 | - Enhanced OP-TEE support to enable use of pageable OP-TEE image. The Arm |
| 106 | standard platforms are updated to load up to 3 images for OP-TEE; header, |
| 107 | pager image and paged image. |
| 108 | |
| 109 | The chain of trust is extended to support the additional images. |
| 110 | |
| 111 | - Enhancements to the translation table library: |
| 112 | |
| 113 | - Introduced APIs to get and set the memory attributes of a region. |
| 114 | |
| 115 | - Added support to manage both priviledge levels in translation regimes that |
| 116 | describe translations for 2 Exception levels, specifically the EL1&0 |
| 117 | translation regime, and extended the memory map region attributes to |
| 118 | include specifying Non-privileged access. |
| 119 | |
| 120 | - Added support to specify the granularity of the mappings of each region, |
| 121 | for instance a 2MB region can be specified to be mapped with 4KB page |
| 122 | tables instead of a 2MB block. |
| 123 | |
| 124 | - Disabled the higher VA range to avoid unpredictable behaviour if there is |
| 125 | an attempt to access addresses in the higher VA range. |
| 126 | |
| 127 | - Added helpers for Device and Normal memory MAIR encodings that align with |
| 128 | the Arm Architecture Reference Manual for Armv8-A (Arm DDI0487B.b). |
| 129 | |
| 130 | - Code hygiene including fixing type length and signedness of constants, |
| 131 | refactoring of function to enable the MMU, removing all instances where |
| 132 | the virtual address space is hardcoded and added comments that document |
| 133 | alignment needed between memory attributes and attributes specified in |
| 134 | TCR_ELx. |
| 135 | |
| 136 | - Updated GIC support: |
| 137 | |
| 138 | - Introduce new APIs for GICv2 and GICv3 that provide the capability to |
| 139 | specify interrupt properties rather than list of interrupt numbers alone. |
| 140 | The Arm platforms and other upstream platforms are migrated to use |
| 141 | interrupt properties. |
| 142 | |
| 143 | - Added helpers to save / restore the GICv3 context, specifically the |
| 144 | Distributor and Redistributor contexts and architectural parts of the ITS |
| 145 | power management. The Distributor and Redistributor helpers also support |
| 146 | the implementation-defined part of GIC-500 and GIC-600. |
| 147 | |
| 148 | Updated the Arm FVP platform to save / restore the GICv3 context on system |
| 149 | suspend / resume as an example of how to use the helpers. |
| 150 | |
| 151 | Introduced a new TZC secured DDR carve-out for use by Arm platforms for |
| 152 | storing EL3 runtime data such as the GICv3 register context. |
| 153 | |
| 154 | - Added support for Armv7-A architecture via build option ARM_ARCH_MAJOR=7. |
| 155 | This includes following features: |
| 156 | |
| 157 | - Updates GICv2 driver to manage GICv1 with security extensions. |
| 158 | |
| 159 | - Software implementation for 32bit division. |
| 160 | |
| 161 | - Enabled use of generic timer for platforms that do not set |
| 162 | ARM_CORTEX_Ax=yes. |
| 163 | |
| 164 | - Support for Armv7-A Virtualization extensions [DDI0406C_C]. |
| 165 | |
| 166 | - Support for both Armv7-A platforms that only have 32-bit addressing and |
| 167 | Armv7-A platforms that support large page addressing. |
| 168 | |
| 169 | - Included support for following Armv7 CPUs: Cortex-A12, Cortex-A17, |
| 170 | Cortex-A7, Cortex-A5, Cortex-A9, Cortex-A15. |
| 171 | |
| 172 | - Added support in QEMU for Armv7-A/Cortex-A15. |
| 173 | |
| 174 | - Enhancements to Firmware Update feature: |
| 175 | |
| 176 | - Updated the FWU documentation to describe the additional images needed for |
| 177 | Firmware update, and how they are used for both the Juno platform and the |
| 178 | Arm FVP platforms. |
| 179 | |
| 180 | - Enhancements to Trusted Board Boot feature: |
| 181 | |
| 182 | - Added support to cert_create tool for RSA PKCS1# v1.5 and SHA384, SHA512 |
| 183 | and SHA256. |
| 184 | |
| 185 | - For Arm platforms added support to use ECDSA keys. |
| 186 | |
| 187 | - Enhanced the mbed TLS wrapper layer to include support for both RSA and |
| 188 | ECDSA to enable runtime selection between RSA and ECDSA keys. |
| 189 | |
| 190 | - Added support for secure interrupt handling in AArch32 sp_min, hardcoded to |
| 191 | only handle FIQs. |
| 192 | |
| 193 | - Added support to allow a platform to load images from multiple boot sources, |
| 194 | for example from a second flash drive. |
| 195 | |
| 196 | - Added a logging framework that allows platforms to reduce the logging level |
| 197 | at runtime and additionally the prefix string can be defined by the platform. |
| 198 | |
| 199 | - Further improvements to register initialisation: |
| 200 | |
| 201 | - Control register PMCR_EL0 / PMCR is set to prohibit cycle counting in the |
| 202 | secure world. This register is added to the list of registers that are |
| 203 | saved and restored during world switch. |
| 204 | |
| 205 | - When EL3 is running in AArch32 execution state, the Non-secure version of |
| 206 | SCTLR is explicitly initialised during the warmboot flow rather than |
| 207 | relying on the hardware to set the correct reset values. |
| 208 | |
| 209 | - Enhanced support for Arm platforms: |
| 210 | |
| 211 | - Introduced driver for Shared-Data-Structure (SDS) framework which is used |
| 212 | for communication between SCP and the AP CPU, replacing Boot-Over_MHU |
| 213 | (BOM) protocol. |
| 214 | |
| 215 | The Juno platform is migrated to use SDS with the SCMI support added in |
| 216 | v1.3 and is set as default. |
| 217 | |
| 218 | The driver can be found in the plat/arm/css/drivers folder. |
| 219 | |
| 220 | - Improved memory usage by only mapping TSP memory region when the TSPD has |
| 221 | been included in the build. This reduces the memory footprint and avoids |
| 222 | unnecessary memory being mapped. |
| 223 | |
| 224 | - Updated support for multi-threading CPUs for FVP platforms - always check |
| 225 | the MT field in MPDIR and access the bit fields accordingly. |
| 226 | |
| 227 | - Support building for platforms that model DynamIQ configuration by |
| 228 | implementing all CPUs in a single cluster. |
| 229 | |
| 230 | - Improved nor flash driver, for instance clearing status registers before |
| 231 | sending commands. Driver can be found plat/arm/board/common folder. |
| 232 | |
| 233 | - Enhancements to QEMU platform: |
| 234 | |
| 235 | - Added support for TBB. |
| 236 | |
| 237 | - Added support for using OP-TEE pageable image. |
| 238 | |
| 239 | - Added support for LOAD_IMAGE_V2. |
| 240 | |
| 241 | - Migrated to use translation table library v2 by default. |
| 242 | |
| 243 | - Added support for SEPARATE_CODE_AND_RODATA. |
| 244 | |
| 245 | - Applied workarounds CVE-2017-5715 on Arm Cortex-A57, -A72, -A73 and -A75, and |
| 246 | for Armv7-A CPUs Cortex-A9, -A15 and -A17. |
| 247 | |
| 248 | - Applied errata workaround for Arm Cortex-A57: 859972. |
| 249 | |
| 250 | - Applied errata workaround for Arm Cortex-A72: 859971. |
| 251 | |
| 252 | - Added support for Poplar 96Board platform. |
| 253 | |
| 254 | - Added support for Raspberry Pi 3 platform. |
| 255 | |
| 256 | - Added Call Frame Information (CFI) assembler directives to the vector entries |
| 257 | which enables debuggers to display the backtrace of functions that triggered |
| 258 | a synchronous abort. |
| 259 | |
| 260 | - Added ability to build dtb. |
| 261 | |
| 262 | - Added support for pre-tool (cert_create and fiptool) image processing |
| 263 | enabling compression of the image files before processing by cert_create and |
| 264 | fiptool. |
| 265 | |
| 266 | This can reduce fip size and may also speed up loading of images. The image |
| 267 | verification will also get faster because certificates are generated based on |
| 268 | compressed images. |
| 269 | |
| 270 | Imported zlib 1.2.11 to implement gunzip() for data compression. |
| 271 | |
| 272 | - Enhancements to fiptool: |
| 273 | |
| 274 | - Enabled the fiptool to be built using Visual Studio. |
| 275 | |
| 276 | - Added padding bytes at the end of the last image in the fip to be |
| 277 | facilitate transfer by DMA. |
| 278 | |
| 279 | Issues resolved since last release |
| 280 | ---------------------------------- |
| 281 | |
| 282 | - TF-A can be built with optimisations disabled (-O0). |
| 283 | |
| 284 | - Memory layout updated to enable Trusted Board Boot on Juno platform when |
| 285 | running TF-A in AArch32 execution mode (resolving `tf-issue#501`_). |
| 286 | |
| 287 | Known Issues |
| 288 | ------------ |
| 289 | |
| 290 | - DTB creation not supported when building on a windows host. This step in the |
| 291 | build process is skipped when running on a windows host. |
| 292 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 293 | Trusted Firmware-A - version 1.4 |
| 294 | ================================ |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 295 | |
| 296 | New features |
| 297 | ------------ |
| 298 | |
| 299 | - Enabled support for platforms with hardware assisted coherency. |
| 300 | |
| 301 | A new build option HW_ASSISTED_COHERENCY allows platforms to take advantage |
| 302 | of the following optimisations: |
| 303 | |
| 304 | - Skip performing cache maintenance during power-up and power-down. |
| 305 | |
| 306 | - Use spin-locks instead of bakery locks. |
| 307 | |
| 308 | - Enable data caches early on warm-booted CPUs. |
| 309 | |
| 310 | - Added support for Cortex-A75 and Cortex-A55 processors. |
| 311 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 312 | Both Cortex-A75 and Cortex-A55 processors use the Arm DynamIQ Shared Unit |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 313 | (DSU). The power-down and power-up sequences are therefore mostly managed in |
| 314 | hardware, reducing complexity of the software operations. |
| 315 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 316 | - Introduced Arm GIC-600 driver. |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 317 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 318 | Arm GIC-600 IP complies with Arm GICv3 architecture. For FVP platforms, the |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 319 | GIC-600 driver is chosen when FVP_USE_GIC_DRIVER is set to FVP_GIC600. |
| 320 | |
| 321 | - Updated GICv3 support: |
| 322 | |
| 323 | - Introduced power management APIs for GICv3 Redistributor. These APIs |
| 324 | allow platforms to power down the Redistributor during CPU power on/off. |
| 325 | Requires the GICv3 implementations to have power management operations. |
| 326 | |
| 327 | Implemented the power management APIs for FVP. |
| 328 | |
| 329 | - GIC driver data is flushed by the primary CPU so that secondary CPU do |
| 330 | not read stale GIC data. |
| 331 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 332 | - Added support for Arm System Control and Management Interface v1.0 (SCMI). |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 333 | |
| 334 | The SCMI driver implements the power domain management and system power |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 335 | management protocol of the SCMI specification (Arm DEN 0056ASCMI) for |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 336 | communicating with any compliant power controller. |
| 337 | |
| 338 | Support is added for the Juno platform. The driver can be found in the |
| 339 | plat/arm/css/drivers folder. |
| 340 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 341 | - Added support to enable pre-integration of TBB with the Arm TrustZone |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 342 | CryptoCell product, to take advantage of its hardware Root of Trust and |
| 343 | crypto acceleration services. |
| 344 | |
| 345 | - Enabled Statistical Profiling Extensions for lower ELs. |
| 346 | |
| 347 | The firmware support is limited to the use of SPE in the Non-secure state |
| 348 | and accesses to the SPE specific registers from S-EL1 will trap to EL3. |
| 349 | |
| 350 | The SPE are architecturally specified for AArch64 only. |
| 351 | |
| 352 | - Code hygiene changes aligned with MISRA guidelines: |
| 353 | |
| 354 | - Fixed signed / unsigned comparison warnings in the translation table |
| 355 | library. |
| 356 | |
| 357 | - Added U(_x) macro and together with the existing ULL(_x) macro fixed |
| 358 | some of the signed-ness defects flagged by the MISRA scanner. |
| 359 | |
| 360 | - Enhancements to Firmware Update feature: |
| 361 | |
| 362 | - The FWU logic now checks for overlapping images to prevent execution of |
| 363 | unauthenticated arbitary code. |
| 364 | |
| 365 | - Introduced new FWU_SMC_IMAGE_RESET SMC that changes the image loading |
| 366 | state machine to go from COPYING, COPIED or AUTHENTICATED states to |
| 367 | RESET state. Previously, this was only possible when the authentication |
| 368 | of an image failed or when the execution of the image finished. |
| 369 | |
| 370 | - Fixed integer overflow which addressed TFV-1: Malformed Firmware Update |
| 371 | SMC can result in copy of unexpectedly large data into secure memory. |
| 372 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 373 | - Introduced support for Arm Compiler 6 and LLVM (clang). |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 374 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 375 | TF-A can now also be built with the Arm Compiler 6 or the clang compilers. |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 376 | The assembler and linker must be provided by the GNU toolchain. |
| 377 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 378 | Tested with Arm CC 6.7 and clang 3.9.x and 4.0.x. |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 379 | |
| 380 | - Memory footprint improvements: |
| 381 | |
| 382 | - Introduced `tf_snprintf`, a reduced version of `snprintf` which has |
| 383 | support for a limited set of formats. |
| 384 | |
| 385 | The mbedtls driver is updated to optionally use `tf_snprintf` instead of |
| 386 | `snprintf`. |
| 387 | |
| 388 | - The `assert()` is updated to no longer print the function name, and |
| 389 | additional logging options are supported via an optional platform define |
| 390 | `PLAT_LOG_LEVEL_ASSERT`, which controls how verbose the assert output is. |
| 391 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 392 | - Enhancements to TF-A support when running in AArch32 execution state: |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 393 | |
| 394 | - Support booting SP_MIN and BL33 in AArch32 execution mode on Juno. Due to |
| 395 | hardware limitations, BL1 and BL2 boot in AArch64 state and there is |
| 396 | additional trampoline code to warm reset into SP_MIN in AArch32 execution |
| 397 | state. |
| 398 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 399 | - Added support for Arm Cortex-A53/57/72 MPCore processors including the |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 400 | errata workarounds that are already implemented for AArch64 execution |
| 401 | state. |
| 402 | |
| 403 | - For FVP platforms, added AArch32 Trusted Board Boot support, including the |
| 404 | Firmware Update feature. |
| 405 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 406 | - Introduced Arm SiP service for use by Arm standard platforms. |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 407 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 408 | - Added new Arm SiP Service SMCs to enable the Non-secure world to read PMF |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 409 | timestamps. |
| 410 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 411 | Added PMF instrumentation points in TF-A in order to quantify the |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 412 | overall time spent in the PSCI software implementation. |
| 413 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 414 | - Added new Arm SiP service SMC to switch execution state. |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 415 | |
| 416 | This allows the lower exception level to change its execution state from |
| 417 | AArch64 to AArch32, or vice verse, via a request to EL3. |
| 418 | |
| 419 | - Migrated to use SPDX[0] license identifiers to make software license |
| 420 | auditing simpler. |
| 421 | |
| 422 | *NOTE:* Files that have been imported by FreeBSD have not been modified. |
| 423 | |
| 424 | [0]: https://spdx.org/ |
| 425 | |
| 426 | - Enhancements to the translation table library: |
| 427 | |
| 428 | - Added version 2 of translation table library that allows different |
| 429 | translation tables to be modified by using different 'contexts'. Version 1 |
David Cunado | b158043 | 2018-03-14 17:57:31 +0000 | [diff] [blame] | 430 | of the translation table library only allows the current EL's translation |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 431 | tables to be modified. |
| 432 | |
| 433 | Version 2 of the translation table also added support for dynamic |
| 434 | regions; regions that can be added and removed dynamically whilst the |
| 435 | MMU is enabled. Static regions can only be added or removed before the |
| 436 | MMU is enabled. |
| 437 | |
| 438 | The dynamic mapping functionality is enabled or disabled when compiling |
| 439 | by setting the build option PLAT_XLAT_TABLES_DYNAMIC to 1 or 0. This can |
| 440 | be done per-image. |
| 441 | |
| 442 | - Added support for translation regimes with two virtual address spaces |
| 443 | such as the one shared by EL1 and EL0. |
| 444 | |
| 445 | The library does not support initializing translation tables for EL0 |
| 446 | software. |
| 447 | |
| 448 | - Added support to mark the translation tables as non-cacheable using an |
| 449 | additional build option `XLAT_TABLE_NC`. |
| 450 | |
| 451 | - Added support for GCC stack protection. A new build option |
| 452 | ENABLE_STACK_PROTECTOR was introduced that enables compilation of all BL |
| 453 | images with one of the GCC -fstack-protector-* options. |
| 454 | |
| 455 | A new platform function plat_get_stack_protector_canary() was introduced |
| 456 | that returns a value used to initialize the canary for stack corruption |
| 457 | detection. For increased effectiveness of protection platforms must provide |
| 458 | an implementation that returns a random value. |
| 459 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 460 | - Enhanced support for Arm platforms: |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 461 | |
| 462 | - Added support for multi-threading CPUs, indicated by `MT` field in MPDIR. |
| 463 | A new build flag `ARM_PLAT_MT` is added, and when enabled, the functions |
| 464 | accessing MPIDR assume that the `MT` bit is set for the platform and |
| 465 | access the bit fields accordingly. |
| 466 | |
| 467 | Also, a new API `plat_arm_get_cpu_pe_count` is added when `ARM_PLAT_MT` is |
| 468 | enabled, returning the Processing Element count within the physical CPU |
| 469 | corresponding to `mpidr`. |
| 470 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 471 | - The Arm platforms migrated to use version 2 of the translation tables. |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 472 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 473 | - Introduced a new Arm platform layer API `plat_arm_psci_override_pm_ops` |
| 474 | which allows Arm platforms to modify `plat_arm_psci_pm_ops` and therefore |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 475 | dynamically define PSCI capability. |
| 476 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 477 | - The Arm platforms migrated to use IMAGE_LOAD_V2 by default. |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 478 | |
| 479 | - Enhanced reporting of errata workaround status with the following policy: |
| 480 | |
| 481 | - If an errata workaround is enabled: |
| 482 | |
| 483 | - If it applies (i.e. the CPU is affected by the errata), an INFO message |
| 484 | is printed, confirming that the errata workaround has been applied. |
| 485 | |
| 486 | - If it does not apply, a VERBOSE message is printed, confirming that the |
| 487 | errata workaround has been skipped. |
| 488 | |
| 489 | - If an errata workaround is not enabled, but would have applied had it |
| 490 | been, a WARN message is printed, alerting that errata workaround is |
| 491 | missing. |
| 492 | |
| 493 | - Added build options ARM_ARCH_MAJOR and ARM_ARM_MINOR to choose the |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 494 | architecture version to target TF-A. |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 495 | |
| 496 | - Updated the spin lock implementation to use the more efficient CAS (Compare |
| 497 | And Swap) instruction when available. This instruction was introduced in |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 498 | Armv8.1-A. |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 499 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 500 | - Applied errata workaround for Arm Cortex-A53: 855873. |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 501 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 502 | - Applied errata workaround for Arm-Cortex-A57: 813419. |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 503 | |
| 504 | - Enabled all A53 and A57 errata workarounds for Juno, both in AArch64 and |
| 505 | AArch32 execution states. |
| 506 | |
| 507 | - Added support for Socionext UniPhier SoC platform. |
| 508 | |
| 509 | - Added support for Hikey960 and Hikey platforms. |
| 510 | |
| 511 | - Added support for Rockchip RK3328 platform. |
| 512 | |
| 513 | - Added support for NVidia Tegra T186 platform. |
| 514 | |
| 515 | - Added support for Designware emmc driver. |
| 516 | |
| 517 | - Imported libfdt v1.4.2 that addresses buffer overflow in fdt_offset_ptr(). |
| 518 | |
| 519 | - Enhanced the CPU operations framework to allow power handlers to be |
| 520 | registered on per-level basis. This enables support for future CPUs that |
| 521 | have multiple threads which might need powering down individually. |
| 522 | |
| 523 | - Updated register initialisation to prevent unexpected behaviour: |
| 524 | |
| 525 | - Debug registers MDCR-EL3/SDCR and MDCR_EL2/HDCR are initialised to avoid |
| 526 | unexpected traps into the higher exception levels and disable secure |
| 527 | self-hosted debug. Additionally, secure privileged external debug on |
| 528 | Juno is disabled by programming the appropriate Juno SoC registers. |
| 529 | |
| 530 | - EL2 and EL3 configurable controls are initialised to avoid unexpected |
| 531 | traps in the higher exception levels. |
| 532 | |
| 533 | - Essential control registers are fully initialised on EL3 start-up, when |
| 534 | initialising the non-secure and secure context structures and when |
| 535 | preparing to leave EL3 for a lower EL. This gives better alignement with |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 536 | the Arm ARM which states that software must initialise RES0 and RES1 |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 537 | fields with 0 / 1. |
| 538 | |
| 539 | - Enhanced PSCI support: |
| 540 | |
| 541 | - Introduced new platform interfaces that decouple PSCI stat residency |
| 542 | calculation from PMF, enabling platforms to use alternative methods of |
| 543 | capturing timestamps. |
| 544 | |
| 545 | - PSCI stat accounting performed for retention/standby states when |
| 546 | requested at multiple power levels. |
| 547 | |
| 548 | - Simplified fiptool to have a single linked list of image descriptors. |
| 549 | |
| 550 | - For the TSP, resolved corruption of pre-empted secure context by aborting any |
| 551 | pre-empted SMC during PSCI power management requests. |
| 552 | |
| 553 | Issues resolved since last release |
David Cunado | 923fac2 | 2017-07-19 12:31:11 +0100 | [diff] [blame] | 554 | ---------------------------------- |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 555 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 556 | - TF-A can be built with the latest mbed TLS version (v2.4.2). The earlier |
| 557 | version 2.3.0 cannot be used due to build warnings that the TF-A build |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 558 | system interprets as errors. |
| 559 | |
| 560 | - TBBR, including the Firmware Update feature is now supported on FVP |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 561 | platforms when running TF-A in AArch32 state. |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 562 | |
| 563 | - The version of the AEMv8 Base FVP used in this release has resolved the issue |
| 564 | of the model executing a reset instead of terminating in response to a |
| 565 | shutdown request using the PSCI SYSTEM_OFF API. |
| 566 | |
| 567 | Known Issues |
David Cunado | 923fac2 | 2017-07-19 12:31:11 +0100 | [diff] [blame] | 568 | ------------ |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 569 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 570 | - Building TF-A with compiler optimisations disabled (-O0) fails. |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 571 | |
| 572 | - Trusted Board Boot currently does not work on Juno when running Trusted |
| 573 | Firmware in AArch32 execution state due to error when loading the sp_min to |
David Cunado | b158043 | 2018-03-14 17:57:31 +0000 | [diff] [blame] | 574 | memory because of lack of free space available. See `tf-issue#501`_ for more |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 575 | details. |
| 576 | |
| 577 | - The errata workaround for A53 errata 843419 is only available from binutils |
| 578 | 2.26 and is not present in GCC4.9. If this errata is applicable to the |
| 579 | platform, please use GCC compiler version of at least 5.0. See `PR#1002`_ for |
| 580 | more details. |
| 581 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 582 | Trusted Firmware-A - version 1.3 |
| 583 | ================================ |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 584 | |
Douglas Raillard | 30d7b36 | 2017-06-28 16:14:55 +0100 | [diff] [blame] | 585 | |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 586 | New features |
| 587 | ------------ |
| 588 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 589 | - Added support for running TF-A in AArch32 execution state. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 590 | |
| 591 | The PSCI library has been refactored to allow integration with **EL3 Runtime |
| 592 | Software**. This is software that is executing at the highest secure |
| 593 | privilege which is EL3 in AArch64 or Secure SVC/Monitor mode in AArch32. See |
| 594 | `PSCI Integration Guide`_. |
| 595 | |
| 596 | Included is a minimal AArch32 Secure Payload, **SP-MIN**, that illustrates |
| 597 | the usage and integration of the PSCI library with EL3 Runtime Software |
| 598 | running in AArch32 state. |
| 599 | |
| 600 | Booting to the BL1/BL2 images as well as booting straight to the Secure |
| 601 | Payload is supported. |
| 602 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 603 | - Improvements to the initialization framework for the PSCI service and Arm |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 604 | Standard Services in general. |
| 605 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 606 | The PSCI service is now initialized as part of Arm Standard Service |
| 607 | initialization. This consolidates the initializations of any Arm Standard |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 608 | Service that may be added in the future. |
| 609 | |
| 610 | A new function ``get_arm_std_svc_args()`` is introduced to get arguments |
| 611 | corresponding to each standard service and must be implemented by the EL3 |
| 612 | Runtime Software. |
| 613 | |
| 614 | For PSCI, a new versioned structure ``psci_lib_args_t`` is introduced to |
| 615 | initialize the PSCI Library. **Note** this is a compatibility break due to |
| 616 | the change in the prototype of ``psci_setup()``. |
| 617 | |
| 618 | - To support AArch32 builds of BL1 and BL2, implemented a new, alternative |
| 619 | firmware image loading mechanism that adds flexibility. |
| 620 | |
| 621 | The current mechanism has a hard-coded set of images and execution order |
| 622 | (BL31, BL32, etc). The new mechanism is data-driven by a list of image |
| 623 | descriptors provided by the platform code. |
| 624 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 625 | Arm platforms have been updated to support the new loading mechanism. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 626 | |
| 627 | The new mechanism is enabled by a build flag (``LOAD_IMAGE_V2``) which is |
| 628 | currently off by default for the AArch64 build. |
| 629 | |
| 630 | **Note** ``TRUSTED_BOARD_BOOT`` is currently not supported when |
| 631 | ``LOAD_IMAGE_V2`` is enabled. |
| 632 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 633 | - Updated requirements for making contributions to TF-A. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 634 | |
| 635 | Commits now must have a 'Signed-off-by:' field to certify that the |
| 636 | contribution has been made under the terms of the |
| 637 | `Developer Certificate of Origin`_. |
| 638 | |
| 639 | A signed CLA is no longer required. |
| 640 | |
| 641 | The `Contribution Guide`_ has been updated to reflect this change. |
| 642 | |
| 643 | - Introduced Performance Measurement Framework (PMF) which provides support |
| 644 | for capturing, storing, dumping and retrieving time-stamps to measure the |
| 645 | execution time of critical paths in the firmware. This relies on defining |
| 646 | fixed sample points at key places in the code. |
| 647 | |
| 648 | - To support the QEMU platform port, imported libfdt v1.4.1 from |
| 649 | https://git.kernel.org/cgit/utils/dtc/dtc.git |
| 650 | |
| 651 | - Updated PSCI support: |
| 652 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 653 | - Added support for PSCI NODE\_HW\_STATE API for Arm platforms. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 654 | |
| 655 | - New optional platform hook, ``pwr_domain_pwr_down_wfi()``, in |
| 656 | ``plat_psci_ops`` to enable platforms to perform platform-specific actions |
| 657 | needed to enter powerdown, including the 'wfi' invocation. |
| 658 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 659 | - PSCI STAT residency and count functions have been added on Arm platforms |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 660 | by using PMF. |
| 661 | |
| 662 | - Enhancements to the translation table library: |
| 663 | |
| 664 | - Limited memory mapping support for region overlaps to only allow regions |
| 665 | to overlap that are identity mapped or have the same virtual to physical |
| 666 | address offset, and overlap completely but must not cover the same area. |
| 667 | |
| 668 | This limitation will enable future enhancements without having to |
| 669 | support complex edge cases that may not be necessary. |
| 670 | |
| 671 | - The initial translation lookup level is now inferred from the virtual |
| 672 | address space size. Previously, it was hard-coded. |
| 673 | |
| 674 | - Added support for mapping Normal, Inner Non-cacheable, Outer |
| 675 | Non-cacheable memory in the translation table library. |
| 676 | |
| 677 | This can be useful to map a non-cacheable memory region, such as a DMA |
| 678 | buffer. |
| 679 | |
| 680 | - Introduced the MT\_EXECUTE/MT\_EXECUTE\_NEVER memory mapping attributes to |
| 681 | specify the access permissions for instruction execution of a memory |
| 682 | region. |
| 683 | |
| 684 | - Enabled support to isolate code and read-only data on separate memory pages, |
| 685 | allowing independent access control to be applied to each. |
| 686 | |
| 687 | - Enabled SCR\_EL3.SIF (Secure Instruction Fetch) bit in BL1 and BL31 common |
| 688 | architectural setup code, preventing fetching instructions from non-secure |
| 689 | memory when in secure state. |
| 690 | |
| 691 | - Enhancements to FIP support: |
| 692 | |
| 693 | - Replaced ``fip_create`` with ``fiptool`` which provides a more consistent |
| 694 | and intuitive interface as well as additional support to remove an image |
| 695 | from a FIP file. |
| 696 | |
| 697 | - Enabled printing the SHA256 digest with info command, allowing quick |
| 698 | verification of an image within a FIP without having to extract the |
| 699 | image and running sha256sum on it. |
| 700 | |
| 701 | - Added support for unpacking the contents of an existing FIP file into |
| 702 | the working directory. |
| 703 | |
| 704 | - Aligned command line options for specifying images to use same naming |
| 705 | convention as specified by TBBR and already used in cert\_create tool. |
| 706 | |
| 707 | - Refactored the TZC-400 driver to also support memory controllers that |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 708 | integrate TZC functionality, for example Arm CoreLink DMC-500. Also added |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 709 | DMC-500 specific support. |
| 710 | |
| 711 | - Implemented generic delay timer based on the system generic counter and |
| 712 | migrated all platforms to use it. |
| 713 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 714 | - Enhanced support for Arm platforms: |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 715 | |
| 716 | - Updated image loading support to make SCP images (SCP\_BL2 and SCP\_BL2U) |
| 717 | optional. |
| 718 | |
| 719 | - Enhanced topology description support to allow multi-cluster topology |
| 720 | definitions. |
| 721 | |
| 722 | - Added interconnect abstraction layer to help platform ports select the |
| 723 | right interconnect driver, CCI or CCN, for the platform. |
| 724 | |
| 725 | - Added support to allow loading BL31 in the TZC-secured DRAM instead of |
| 726 | the default secure SRAM. |
| 727 | |
| 728 | - Added support to use a System Security Control (SSC) Registers Unit |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 729 | enabling TF-A to be compiled to support multiple Arm platforms and |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 730 | then select one at runtime. |
| 731 | |
| 732 | - Restricted mapping of Trusted ROM in BL1 to what is actually needed by |
| 733 | BL1 rather than entire Trusted ROM region. |
| 734 | |
| 735 | - Flash is now mapped as execute-never by default. This increases security |
| 736 | by restricting the executable region to what is strictly needed. |
| 737 | |
| 738 | - Applied following erratum workarounds for Cortex-A57: 833471, 826977, |
| 739 | 829520, 828024 and 826974. |
| 740 | |
| 741 | - Added support for Mediatek MT6795 platform. |
| 742 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 743 | - Added support for QEMU virtualization Armv8-A target. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 744 | |
| 745 | - Added support for Rockchip RK3368 and RK3399 platforms. |
| 746 | |
| 747 | - Added support for Xilinx Zynq UltraScale+ MPSoC platform. |
| 748 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 749 | - Added support for Arm Cortex-A73 MPCore Processor. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 750 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 751 | - Added support for Arm Cortex-A72 processor. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 752 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 753 | - Added support for Arm Cortex-A35 processor. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 754 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 755 | - Added support for Arm Cortex-A32 MPCore Processor. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 756 | |
| 757 | - Enabled preloaded BL33 alternative boot flow, in which BL2 does not load |
| 758 | BL33 from non-volatile storage and BL31 hands execution over to a preloaded |
| 759 | BL33. The User Guide has been updated with an example of how to use this |
| 760 | option with a bootwrapped kernel. |
| 761 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 762 | - Added support to build TF-A on a Windows-based host machine. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 763 | |
| 764 | - Updated Trusted Board Boot prototype implementation: |
| 765 | |
| 766 | - Enabled the ability for a production ROM with TBBR enabled to boot test |
| 767 | software before a real ROTPK is deployed (e.g. manufacturing mode). |
| 768 | Added support to use ROTPK in certificate without verifying against the |
| 769 | platform value when ``ROTPK_NOT_DEPLOYED`` bit is set. |
| 770 | |
| 771 | - Added support for non-volatile counter authentication to the |
| 772 | Authentication Module to protect against roll-back. |
| 773 | |
| 774 | - Updated GICv3 support: |
| 775 | |
| 776 | - Enabled processor power-down and automatic power-on using GICv3. |
| 777 | |
| 778 | - Enabled G1S or G0 interrupts to be configured independently. |
| 779 | |
| 780 | - Changed FVP default interrupt driver to be the GICv3-only driver. |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 781 | **Note** the default build of TF-A will not be able to boot |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 782 | Linux kernel with GICv2 FDT blob. |
| 783 | |
| 784 | - Enabled wake-up from CPU\_SUSPEND to stand-by by temporarily re-routing |
| 785 | interrupts and then restoring after resume. |
| 786 | |
| 787 | Issues resolved since last release |
| 788 | ---------------------------------- |
| 789 | |
| 790 | Known issues |
| 791 | ------------ |
| 792 | |
| 793 | - The version of the AEMv8 Base FVP used in this release resets the model |
| 794 | instead of terminating its execution in response to a shutdown request using |
| 795 | the PSCI ``SYSTEM_OFF`` API. This issue will be fixed in a future version of |
| 796 | the model. |
| 797 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 798 | - Building TF-A with compiler optimisations disabled (``-O0``) fails. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 799 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 800 | - TF-A cannot be built with mbed TLS version v2.3.0 due to build warnings |
| 801 | that the TF-A build system interprets as errors. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 802 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 803 | - TBBR is not currently supported when running TF-A in AArch32 state. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 804 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 805 | Trusted Firmware-A - version 1.2 |
| 806 | ================================ |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 807 | |
| 808 | New features |
| 809 | ------------ |
| 810 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 811 | - The Trusted Board Boot implementation on Arm platforms now conforms to the |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 812 | mandatory requirements of the TBBR specification. |
| 813 | |
| 814 | In particular, the boot process is now guarded by a Trusted Watchdog, which |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 815 | will reset the system in case of an authentication or loading error. On Arm |
| 816 | platforms, a secure instance of Arm SP805 is used as the Trusted Watchdog. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 817 | |
| 818 | Also, a firmware update process has been implemented. It enables |
| 819 | authenticated firmware to update firmware images from external interfaces to |
| 820 | SoC Non-Volatile memories. This feature functions even when the current |
| 821 | firmware in the system is corrupt or missing; it therefore may be used as |
| 822 | a recovery mode. |
| 823 | |
| 824 | - Improvements have been made to the Certificate Generation Tool |
| 825 | (``cert_create``) as follows. |
| 826 | |
| 827 | - Added support for the Firmware Update process by extending the Chain |
| 828 | of Trust definition in the tool to include the Firmware Update |
| 829 | certificate and the required extensions. |
| 830 | |
| 831 | - Introduced a new API that allows one to specify command line options in |
| 832 | the Chain of Trust description. This makes the declaration of the tool's |
| 833 | arguments more flexible and easier to extend. |
| 834 | |
| 835 | - The tool has been reworked to follow a data driven approach, which |
| 836 | makes it easier to maintain and extend. |
| 837 | |
| 838 | - Extended the FIP tool (``fip_create``) to support the new set of images |
| 839 | involved in the Firmware Update process. |
| 840 | |
| 841 | - Various memory footprint improvements. In particular: |
| 842 | |
| 843 | - The bakery lock structure for coherent memory has been optimised. |
| 844 | |
| 845 | - The mbed TLS SHA1 functions are not needed, as SHA256 is used to |
| 846 | generate the certificate signature. Therefore, they have been compiled |
| 847 | out, reducing the memory footprint of BL1 and BL2 by approximately |
| 848 | 6 KB. |
| 849 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 850 | - On Arm development platforms, each BL stage now individually defines |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 851 | the number of regions that it needs to map in the MMU. |
| 852 | |
| 853 | - Added the following new design documents: |
| 854 | |
| 855 | - `Authentication framework`_ |
| 856 | - `Firmware Update`_ |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 857 | - `TF-A Reset Design`_ |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 858 | - `Power Domain Topology Design`_ |
| 859 | |
| 860 | - Applied the new image terminology to the code base and documentation, as |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 861 | described on the `TF-A wiki on GitHub`_. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 862 | |
| 863 | - The build system has been reworked to improve readability and facilitate |
| 864 | adding future extensions. |
| 865 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 866 | - On Arm standard platforms, BL31 uses the boot console during cold boot |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 867 | but switches to the runtime console for any later logs at runtime. The TSP |
| 868 | uses the runtime console for all output. |
| 869 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 870 | - Implemented a basic NOR flash driver for Arm platforms. It programs the |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 871 | device using CFI (Common Flash Interface) standard commands. |
| 872 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 873 | - Implemented support for booting EL3 payloads on Arm platforms, which |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 874 | reduces the complexity of developing EL3 baremetal code by doing essential |
| 875 | baremetal initialization. |
| 876 | |
| 877 | - Provided separate drivers for GICv3 and GICv2. These expect the entire |
| 878 | software stack to use either GICv2 or GICv3; hybrid GIC software systems |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 879 | are no longer supported and the legacy Arm GIC driver has been deprecated. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 880 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 881 | - Added support for Juno r1 and r2. A single set of Juno TF-A binaries can run |
| 882 | on Juno r0, r1 and r2 boards. Note that this TF-A version depends on a Linaro |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 883 | release that does *not* contain Juno r2 support. |
| 884 | |
| 885 | - Added support for MediaTek mt8173 platform. |
| 886 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 887 | - Implemented a generic driver for Arm CCN IP. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 888 | |
| 889 | - Major rework of the PSCI implementation. |
| 890 | |
| 891 | - Added framework to handle composite power states. |
| 892 | |
| 893 | - Decoupled the notions of affinity instances (which describes the |
| 894 | hierarchical arrangement of cores) and of power domain topology, instead |
| 895 | of assuming a one-to-one mapping. |
| 896 | |
| 897 | - Better alignment with version 1.0 of the PSCI specification. |
| 898 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 899 | - Added support for the SYSTEM\_SUSPEND PSCI API on Arm platforms. When invoked |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 900 | on the last running core on a supported platform, this puts the system |
| 901 | into a low power mode with memory retention. |
| 902 | |
| 903 | - Unified the reset handling code as much as possible across BL stages. |
| 904 | Also introduced some build options to enable optimization of the reset path |
| 905 | on platforms that support it. |
| 906 | |
| 907 | - Added a simple delay timer API, as well as an SP804 timer driver, which is |
| 908 | enabled on FVP. |
| 909 | |
| 910 | - Added support for NVidia Tegra T210 and T132 SoCs. |
| 911 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 912 | - Reorganised Arm platforms ports to greatly improve code shareability and |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 913 | facilitate the reuse of some of this code by other platforms. |
| 914 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 915 | - Added support for Arm Cortex-A72 processor in the CPU specific framework. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 916 | |
| 917 | - Provided better error handling. Platform ports can now define their own |
| 918 | error handling, for example to perform platform specific bookkeeping or |
| 919 | post-error actions. |
| 920 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 921 | - Implemented a unified driver for Arm Cache Coherent Interconnects used for |
| 922 | both CCI-400 & CCI-500 IPs. Arm platforms ports have been migrated to this |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 923 | common driver. The standalone CCI-400 driver has been deprecated. |
| 924 | |
| 925 | Issues resolved since last release |
| 926 | ---------------------------------- |
| 927 | |
| 928 | - The Trusted Board Boot implementation has been redesigned to provide greater |
| 929 | modularity and scalability. See the `Authentication Framework`_ document. |
| 930 | All missing mandatory features are now implemented. |
| 931 | |
| 932 | - The FVP and Juno ports may now use the hash of the ROTPK stored in the |
| 933 | Trusted Key Storage registers to verify the ROTPK. Alternatively, a |
| 934 | development public key hash embedded in the BL1 and BL2 binaries might be |
| 935 | used instead. The location of the ROTPK is chosen at build-time using the |
| 936 | ``ARM_ROTPK_LOCATION`` build option. |
| 937 | |
| 938 | - GICv3 is now fully supported and stable. |
| 939 | |
| 940 | Known issues |
| 941 | ------------ |
| 942 | |
| 943 | - The version of the AEMv8 Base FVP used in this release resets the model |
| 944 | instead of terminating its execution in response to a shutdown request using |
| 945 | the PSCI ``SYSTEM_OFF`` API. This issue will be fixed in a future version of |
| 946 | the model. |
| 947 | |
| 948 | - While this version has low on-chip RAM requirements, there are further |
| 949 | RAM usage enhancements that could be made. |
| 950 | |
| 951 | - The upstream documentation could be improved for structural consistency, |
| 952 | clarity and completeness. In particular, the design documentation is |
| 953 | incomplete for PSCI, the TSP(D) and the Juno platform. |
| 954 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 955 | - Building TF-A with compiler optimisations disabled (``-O0``) fails. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 956 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 957 | Trusted Firmware-A - version 1.1 |
| 958 | ================================ |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 959 | |
| 960 | New features |
| 961 | ------------ |
| 962 | |
| 963 | - A prototype implementation of Trusted Board Boot has been added. Boot |
| 964 | loader images are verified by BL1 and BL2 during the cold boot path. BL1 and |
| 965 | BL2 use the PolarSSL SSL library to verify certificates and images. The |
| 966 | OpenSSL library is used to create the X.509 certificates. Support has been |
| 967 | added to ``fip_create`` tool to package the certificates in a FIP. |
| 968 | |
| 969 | - Support for calling CPU and platform specific reset handlers upon entry into |
| 970 | BL3-1 during the cold and warm boot paths has been added. This happens after |
| 971 | another Boot ROM ``reset_handler()`` has already run. This enables a developer |
| 972 | to perform additional actions or undo actions already performed during the |
| 973 | first call of the reset handlers e.g. apply additional errata workarounds. |
| 974 | |
| 975 | - Support has been added to demonstrate routing of IRQs to EL3 instead of |
| 976 | S-EL1 when execution is in secure world. |
| 977 | |
| 978 | - The PSCI implementation now conforms to version 1.0 of the PSCI |
| 979 | specification. All the mandatory APIs and selected optional APIs are |
| 980 | supported. In particular, support for the ``PSCI_FEATURES`` API has been |
| 981 | added. A capability variable is constructed during initialization by |
| 982 | examining the ``plat_pm_ops`` and ``spd_pm_ops`` exported by the platform and |
| 983 | the Secure Payload Dispatcher. This is used by the PSCI FEATURES function |
| 984 | to determine which PSCI APIs are supported by the platform. |
| 985 | |
| 986 | - Improvements have been made to the PSCI code as follows. |
| 987 | |
| 988 | - The code has been refactored to remove redundant parameters from |
| 989 | internal functions. |
| 990 | |
| 991 | - Changes have been made to the code for PSCI ``CPU_SUSPEND``, ``CPU_ON`` and |
| 992 | ``CPU_OFF`` calls to facilitate an early return to the caller in case a |
| 993 | failure condition is detected. For example, a PSCI ``CPU_SUSPEND`` call |
| 994 | returns ``SUCCESS`` to the caller if a pending interrupt is detected early |
| 995 | in the code path. |
| 996 | |
| 997 | - Optional platform APIs have been added to validate the ``power_state`` and |
| 998 | ``entrypoint`` parameters early in PSCI ``CPU_ON`` and ``CPU_SUSPEND`` code |
| 999 | paths. |
| 1000 | |
| 1001 | - PSCI migrate APIs have been reworked to invoke the SPD hook to determine |
| 1002 | the type of Trusted OS and the CPU it is resident on (if |
| 1003 | applicable). Also, during a PSCI ``MIGRATE`` call, the SPD hook to migrate |
| 1004 | the Trusted OS is invoked. |
| 1005 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1006 | - It is now possible to build TF-A without marking at least an extra page of |
| 1007 | memory as coherent. The build flag ``USE_COHERENT_MEM`` can be used to |
| 1008 | choose between the two implementations. This has been made possible through |
| 1009 | these changes. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1010 | |
| 1011 | - An implementation of Bakery locks, where the locks are not allocated in |
| 1012 | coherent memory has been added. |
| 1013 | |
| 1014 | - Memory which was previously marked as coherent is now kept coherent |
| 1015 | through the use of software cache maintenance operations. |
| 1016 | |
| 1017 | Approximately, 4K worth of memory is saved for each boot loader stage when |
| 1018 | ``USE_COHERENT_MEM=0``. Enabling this option increases the latencies |
| 1019 | associated with acquire and release of locks. It also requires changes to |
| 1020 | the platform ports. |
| 1021 | |
| 1022 | - It is now possible to specify the name of the FIP at build time by defining |
| 1023 | the ``FIP_NAME`` variable. |
| 1024 | |
| 1025 | - Issues with depedencies on the 'fiptool' makefile target have been |
| 1026 | rectified. The ``fip_create`` tool is now rebuilt whenever its source files |
| 1027 | change. |
| 1028 | |
| 1029 | - The BL3-1 runtime console is now also used as the crash console. The crash |
| 1030 | console is changed to SoC UART0 (UART2) from the previous FPGA UART0 (UART0) |
| 1031 | on Juno. In FVP, it is changed from UART0 to UART1. |
| 1032 | |
| 1033 | - CPU errata workarounds are applied only when the revision and part number |
| 1034 | match. This behaviour has been made consistent across the debug and release |
| 1035 | builds. The debug build additionally prints a warning if a mismatch is |
| 1036 | detected. |
| 1037 | |
| 1038 | - It is now possible to issue cache maintenance operations by set/way for a |
| 1039 | particular level of data cache. Levels 1-3 are currently supported. |
| 1040 | |
| 1041 | - The following improvements have been made to the FVP port. |
| 1042 | |
| 1043 | - The build option ``FVP_SHARED_DATA_LOCATION`` which allowed relocation of |
| 1044 | shared data into the Trusted DRAM has been deprecated. Shared data is |
| 1045 | now always located at the base of Trusted SRAM. |
| 1046 | |
| 1047 | - BL2 Translation tables have been updated to map only the region of |
| 1048 | DRAM which is accessible to normal world. This is the region of the 2GB |
| 1049 | DDR-DRAM memory at 0x80000000 excluding the top 16MB. The top 16MB is |
| 1050 | accessible to only the secure world. |
| 1051 | |
| 1052 | - BL3-2 can now reside in the top 16MB of DRAM which is accessible only to |
| 1053 | the secure world. This can be done by setting the build flag |
| 1054 | ``FVP_TSP_RAM_LOCATION`` to the value ``dram``. |
| 1055 | |
| 1056 | - Separate transation tables are created for each boot loader image. The |
| 1057 | ``IMAGE_BLx`` build options are used to do this. This allows each stage to |
| 1058 | create mappings only for areas in the memory map that it needs. |
| 1059 | |
| 1060 | - A Secure Payload Dispatcher (OPTEED) for the OP-TEE Trusted OS has been |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1061 | added. Details of using it with TF-A can be found in `OP-TEE Dispatcher`_ |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1062 | |
| 1063 | Issues resolved since last release |
| 1064 | ---------------------------------- |
| 1065 | |
| 1066 | - The Juno port has been aligned with the FVP port as follows. |
| 1067 | |
| 1068 | - Support for reclaiming all BL1 RW memory and BL2 memory by overlaying |
| 1069 | the BL3-1/BL3-2 NOBITS sections on top of them has been added to the |
| 1070 | Juno port. |
| 1071 | |
| 1072 | - The top 16MB of the 2GB DDR-DRAM memory at 0x80000000 is configured |
| 1073 | using the TZC-400 controller to be accessible only to the secure world. |
| 1074 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1075 | - The Arm GIC driver is used to configure the GIC-400 instead of using a |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1076 | GIC driver private to the Juno port. |
| 1077 | |
| 1078 | - PSCI ``CPU_SUSPEND`` calls that target a standby state are now supported. |
| 1079 | |
| 1080 | - The TZC-400 driver is used to configure the controller instead of direct |
| 1081 | accesses to the registers. |
| 1082 | |
| 1083 | - The Linux kernel version referred to in the user guide has DVFS and HMP |
| 1084 | support enabled. |
| 1085 | |
| 1086 | - DS-5 v5.19 did not detect Version 5.8 of the Cortex-A57-A53 Base FVPs in |
| 1087 | CADI server mode. This issue is not seen with DS-5 v5.20 and Version 6.2 of |
| 1088 | the Cortex-A57-A53 Base FVPs. |
| 1089 | |
| 1090 | Known issues |
| 1091 | ------------ |
| 1092 | |
| 1093 | - The Trusted Board Boot implementation is a prototype. There are issues with |
| 1094 | the modularity and scalability of the design. Support for a Trusted |
| 1095 | Watchdog, firmware update mechanism, recovery images and Trusted debug is |
| 1096 | absent. These issues will be addressed in future releases. |
| 1097 | |
| 1098 | - The FVP and Juno ports do not use the hash of the ROTPK stored in the |
| 1099 | Trusted Key Storage registers to verify the ROTPK in the |
| 1100 | ``plat_match_rotpk()`` function. This prevents the correct establishment of |
| 1101 | the Chain of Trust at the first step in the Trusted Board Boot process. |
| 1102 | |
| 1103 | - The version of the AEMv8 Base FVP used in this release resets the model |
| 1104 | instead of terminating its execution in response to a shutdown request using |
| 1105 | the PSCI ``SYSTEM_OFF`` API. This issue will be fixed in a future version of |
| 1106 | the model. |
| 1107 | |
| 1108 | - GICv3 support is experimental. There are known issues with GICv3 |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1109 | initialization in the TF-A. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1110 | |
| 1111 | - While this version greatly reduces the on-chip RAM requirements, there are |
| 1112 | further RAM usage enhancements that could be made. |
| 1113 | |
| 1114 | - The firmware design documentation for the Test Secure-EL1 Payload (TSP) and |
| 1115 | its dispatcher (TSPD) is incomplete. Similarly for the PSCI section. |
| 1116 | |
| 1117 | - The Juno-specific firmware design documentation is incomplete. |
| 1118 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1119 | Trusted Firmware-A - version 1.0 |
| 1120 | ================================ |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1121 | |
| 1122 | New features |
| 1123 | ------------ |
| 1124 | |
| 1125 | - It is now possible to map higher physical addresses using non-flat virtual |
| 1126 | to physical address mappings in the MMU setup. |
| 1127 | |
| 1128 | - Wider use is now made of the per-CPU data cache in BL3-1 to store: |
| 1129 | |
| 1130 | - Pointers to the non-secure and secure security state contexts. |
| 1131 | |
| 1132 | - A pointer to the CPU-specific operations. |
| 1133 | |
| 1134 | - A pointer to PSCI specific information (for example the current power |
| 1135 | state). |
| 1136 | |
| 1137 | - A crash reporting buffer. |
| 1138 | |
| 1139 | - The following RAM usage improvements result in a BL3-1 RAM usage reduction |
| 1140 | from 96KB to 56KB (for FVP with TSPD), and a total RAM usage reduction |
| 1141 | across all images from 208KB to 88KB, compared to the previous release. |
| 1142 | |
| 1143 | - Removed the separate ``early_exception`` vectors from BL3-1 (2KB code size |
| 1144 | saving). |
| 1145 | |
| 1146 | - Removed NSRAM from the FVP memory map, allowing the removal of one |
| 1147 | (4KB) translation table. |
| 1148 | |
| 1149 | - Eliminated the internal ``psci_suspend_context`` array, saving 2KB. |
| 1150 | |
| 1151 | - Correctly dimensioned the PSCI ``aff_map_node`` array, saving 1.5KB in the |
| 1152 | FVP port. |
| 1153 | |
| 1154 | - Removed calling CPU mpidr from the bakery lock API, saving 160 bytes. |
| 1155 | |
| 1156 | - Removed current CPU mpidr from PSCI common code, saving 160 bytes. |
| 1157 | |
| 1158 | - Inlined the mmio accessor functions, saving 360 bytes. |
| 1159 | |
| 1160 | - Fully reclaimed all BL1 RW memory and BL2 memory on the FVP port by |
| 1161 | overlaying the BL3-1/BL3-2 NOBITS sections on top of these at runtime. |
| 1162 | |
| 1163 | - Made storing the FP register context optional, saving 0.5KB per context |
| 1164 | (8KB on the FVP port, with TSPD enabled and running on 8 CPUs). |
| 1165 | |
| 1166 | - Implemented a leaner ``tf_printf()`` function, allowing the stack to be |
| 1167 | greatly reduced. |
| 1168 | |
| 1169 | - Removed coherent stacks from the codebase. Stacks allocated in normal |
| 1170 | memory are now used before and after the MMU is enabled. This saves 768 |
| 1171 | bytes per CPU in BL3-1. |
| 1172 | |
| 1173 | - Reworked the crash reporting in BL3-1 to use less stack. |
| 1174 | |
| 1175 | - Optimized the EL3 register state stored in the ``cpu_context`` structure |
| 1176 | so that registers that do not change during normal execution are |
| 1177 | re-initialized each time during cold/warm boot, rather than restored |
| 1178 | from memory. This saves about 1.2KB. |
| 1179 | |
| 1180 | - As a result of some of the above, reduced the runtime stack size in all |
| 1181 | BL images. For BL3-1, this saves 1KB per CPU. |
| 1182 | |
| 1183 | - PSCI SMC handler improvements to correctly handle calls from secure states |
| 1184 | and from AArch32. |
| 1185 | |
| 1186 | - CPU contexts are now initialized from the ``entry_point_info``. BL3-1 fully |
| 1187 | determines the exception level to use for the non-trusted firmware (BL3-3) |
| 1188 | based on the SPSR value provided by the BL2 platform code (or otherwise |
| 1189 | provided to BL3-1). This allows platform code to directly run non-trusted |
| 1190 | firmware payloads at either EL2 or EL1 without requiring an EL2 stub or OS |
| 1191 | loader. |
| 1192 | |
| 1193 | - Code refactoring improvements: |
| 1194 | |
| 1195 | - Refactored ``fvp_config`` into a common platform header. |
| 1196 | |
| 1197 | - Refactored the fvp gic code to be a generic driver that no longer has an |
| 1198 | explicit dependency on platform code. |
| 1199 | |
| 1200 | - Refactored the CCI-400 driver to not have dependency on platform code. |
| 1201 | |
| 1202 | - Simplified the IO driver so it's no longer necessary to call ``io_init()`` |
| 1203 | and moved all the IO storage framework code to one place. |
| 1204 | |
| 1205 | - Simplified the interface the the TZC-400 driver. |
| 1206 | |
| 1207 | - Clarified the platform porting interface to the TSP. |
| 1208 | |
| 1209 | - Reworked the TSPD setup code to support the alternate BL3-2 |
| 1210 | intialization flow where BL3-1 generic code hands control to BL3-2, |
| 1211 | rather than expecting the TSPD to hand control directly to BL3-2. |
| 1212 | |
| 1213 | - Considerable rework to PSCI generic code to support CPU specific |
| 1214 | operations. |
| 1215 | |
| 1216 | - Improved console log output, by: |
| 1217 | |
| 1218 | - Adding the concept of debug log levels. |
| 1219 | |
| 1220 | - Rationalizing the existing debug messages and adding new ones. |
| 1221 | |
| 1222 | - Printing out the version of each BL stage at runtime. |
| 1223 | |
| 1224 | - Adding support for printing console output from assembler code, |
| 1225 | including when a crash occurs before the C runtime is initialized. |
| 1226 | |
| 1227 | - Moved up to the latest versions of the FVPs, toolchain, EDK2, kernel, Linaro |
| 1228 | file system and DS-5. |
| 1229 | |
| 1230 | - On the FVP port, made the use of the Trusted DRAM region optional at build |
| 1231 | time (off by default). Normal platforms will not have such a "ready-to-use" |
| 1232 | DRAM area so it is not a good example to use it. |
| 1233 | |
| 1234 | - Added support for PSCI ``SYSTEM_OFF`` and ``SYSTEM_RESET`` APIs. |
| 1235 | |
| 1236 | - Added support for CPU specific reset sequences, power down sequences and |
| 1237 | register dumping during crash reporting. The CPU specific reset sequences |
| 1238 | include support for errata workarounds. |
| 1239 | |
| 1240 | - Merged the Juno port into the master branch. Added support for CPU hotplug |
| 1241 | and CPU idle. Updated the user guide to describe how to build and run on the |
| 1242 | Juno platform. |
| 1243 | |
| 1244 | Issues resolved since last release |
| 1245 | ---------------------------------- |
| 1246 | |
| 1247 | - Removed the concept of top/bottom image loading. The image loader now |
| 1248 | automatically detects the position of the image inside the current memory |
| 1249 | layout and updates the layout to minimize fragementation. This resolves the |
| 1250 | image loader limitations of previously releases. There are currently no |
| 1251 | plans to support dynamic image loading. |
| 1252 | |
| 1253 | - CPU idle now works on the publicized version of the Foundation FVP. |
| 1254 | |
| 1255 | - All known issues relating to the compiler version used have now been |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1256 | resolved. This TF-A version uses Linaro toolchain 14.07 (based on GCC 4.9). |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1257 | |
| 1258 | Known issues |
| 1259 | ------------ |
| 1260 | |
| 1261 | - GICv3 support is experimental. The Linux kernel patches to support this are |
| 1262 | not widely available. There are known issues with GICv3 initialization in |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1263 | the TF-A. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1264 | |
| 1265 | - While this version greatly reduces the on-chip RAM requirements, there are |
| 1266 | further RAM usage enhancements that could be made. |
| 1267 | |
| 1268 | - The firmware design documentation for the Test Secure-EL1 Payload (TSP) and |
| 1269 | its dispatcher (TSPD) is incomplete. Similarly for the PSCI section. |
| 1270 | |
| 1271 | - The Juno-specific firmware design documentation is incomplete. |
| 1272 | |
| 1273 | - Some recent enhancements to the FVP port have not yet been translated into |
| 1274 | the Juno port. These will be tracked via the tf-issues project. |
| 1275 | |
| 1276 | - The Linux kernel version referred to in the user guide has DVFS and HMP |
| 1277 | support disabled due to some known instabilities at the time of this |
| 1278 | release. A future kernel version will re-enable these features. |
| 1279 | |
| 1280 | - DS-5 v5.19 does not detect Version 5.8 of the Cortex-A57-A53 Base FVPs in |
| 1281 | CADI server mode. This is because the ``<SimName>`` reported by the FVP in |
| 1282 | this version has changed. For example, for the Cortex-A57x4-A53x4 Base FVP, |
| 1283 | the ``<SimName>`` reported by the FVP is ``FVP_Base_Cortex_A57x4_A53x4``, while |
| 1284 | DS-5 expects it to be ``FVP_Base_A57x4_A53x4``. |
| 1285 | |
| 1286 | The temporary fix to this problem is to change the name of the FVP in |
| 1287 | ``sw/debugger/configdb/Boards/ARM FVP/Base_A57x4_A53x4/cadi_config.xml``. |
| 1288 | Change the following line: |
| 1289 | |
| 1290 | :: |
| 1291 | |
| 1292 | <SimName>System Generator:FVP_Base_A57x4_A53x4</SimName> |
| 1293 | |
| 1294 | to |
| 1295 | System Generator:FVP\_Base\_Cortex-A57x4\_A53x4 |
| 1296 | |
| 1297 | A similar change can be made to the other Cortex-A57-A53 Base FVP variants. |
| 1298 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1299 | Trusted Firmware-A - version 0.4 |
| 1300 | ================================ |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1301 | |
| 1302 | New features |
| 1303 | ------------ |
| 1304 | |
| 1305 | - Makefile improvements: |
| 1306 | |
| 1307 | - Improved dependency checking when building. |
| 1308 | |
| 1309 | - Removed ``dump`` target (build now always produces dump files). |
| 1310 | |
| 1311 | - Enabled platform ports to optionally make use of parts of the Trusted |
| 1312 | Firmware (e.g. BL3-1 only), rather than being forced to use all parts. |
| 1313 | Also made the ``fip`` target optional. |
| 1314 | |
| 1315 | - Specified the full path to source files and removed use of the ``vpath`` |
| 1316 | keyword. |
| 1317 | |
| 1318 | - Provided translation table library code for potential re-use by platforms |
| 1319 | other than the FVPs. |
| 1320 | |
| 1321 | - Moved architectural timer setup to platform-specific code. |
| 1322 | |
| 1323 | - Added standby state support to PSCI cpu\_suspend implementation. |
| 1324 | |
| 1325 | - SRAM usage improvements: |
| 1326 | |
| 1327 | - Started using the ``-ffunction-sections``, ``-fdata-sections`` and |
| 1328 | ``--gc-sections`` compiler/linker options to remove unused code and data |
| 1329 | from the images. Previously, all common functions were being built into |
| 1330 | all binary images, whether or not they were actually used. |
| 1331 | |
| 1332 | - Placed all assembler functions in their own section to allow more unused |
| 1333 | functions to be removed from images. |
| 1334 | |
| 1335 | - Updated BL1 and BL2 to use a single coherent stack each, rather than one |
| 1336 | per CPU. |
| 1337 | |
| 1338 | - Changed variables that were unnecessarily declared and initialized as |
| 1339 | non-const (i.e. in the .data section) so they are either uninitialized |
| 1340 | (zero init) or const. |
| 1341 | |
| 1342 | - Moved the Test Secure-EL1 Payload (BL3-2) to execute in Trusted SRAM by |
| 1343 | default. The option for it to run in Trusted DRAM remains. |
| 1344 | |
| 1345 | - Implemented a TrustZone Address Space Controller (TZC-400) driver. A |
| 1346 | default configuration is provided for the Base FVPs. This means the model |
| 1347 | parameter ``-C bp.secure_memory=1`` is now supported. |
| 1348 | |
| 1349 | - Started saving the PSCI cpu\_suspend 'power\_state' parameter prior to |
| 1350 | suspending a CPU. This allows platforms that implement multiple power-down |
| 1351 | states at the same affinity level to identify a specific state. |
| 1352 | |
| 1353 | - Refactored the entire codebase to reduce the amount of nesting in header |
| 1354 | files and to make the use of system/user includes more consistent. Also |
| 1355 | split platform.h to separate out the platform porting declarations from the |
| 1356 | required platform porting definitions and the definitions/declarations |
| 1357 | specific to the platform port. |
| 1358 | |
| 1359 | - Optimized the data cache clean/invalidate operations. |
| 1360 | |
| 1361 | - Improved the BL3-1 unhandled exception handling and reporting. Unhandled |
| 1362 | exceptions now result in a dump of registers to the console. |
| 1363 | |
| 1364 | - Major rework to the handover interface between BL stages, in particular the |
| 1365 | interface to BL3-1. The interface now conforms to a specification and is |
| 1366 | more future proof. |
| 1367 | |
| 1368 | - Added support for optionally making the BL3-1 entrypoint a reset handler |
| 1369 | (instead of BL1). This allows platforms with an alternative image loading |
| 1370 | architecture to re-use BL3-1 with fewer modifications to generic code. |
| 1371 | |
| 1372 | - Reserved some DDR DRAM for secure use on FVP platforms to avoid future |
| 1373 | compatibility problems with non-secure software. |
| 1374 | |
| 1375 | - Added support for secure interrupts targeting the Secure-EL1 Payload (SP) |
| 1376 | (using GICv2 routing only). Demonstrated this working by adding an interrupt |
| 1377 | target and supporting test code to the TSP. Also demonstrated non-secure |
| 1378 | interrupt handling during TSP processing. |
| 1379 | |
| 1380 | Issues resolved since last release |
| 1381 | ---------------------------------- |
| 1382 | |
| 1383 | - Now support use of the model parameter ``-C bp.secure_memory=1`` in the Base |
| 1384 | FVPs (see **New features**). |
| 1385 | |
| 1386 | - Support for secure world interrupt handling now available (see **New |
| 1387 | features**). |
| 1388 | |
| 1389 | - Made enough SRAM savings (see **New features**) to enable the Test Secure-EL1 |
| 1390 | Payload (BL3-2) to execute in Trusted SRAM by default. |
| 1391 | |
| 1392 | - The tested filesystem used for this release (Linaro AArch64 OpenEmbedded |
| 1393 | 14.04) now correctly reports progress in the console. |
| 1394 | |
| 1395 | - Improved the Makefile structure to make it easier to separate out parts of |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1396 | the TF-A for re-use in platform ports. Also, improved target dependency |
| 1397 | checking. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1398 | |
| 1399 | Known issues |
| 1400 | ------------ |
| 1401 | |
| 1402 | - GICv3 support is experimental. The Linux kernel patches to support this are |
| 1403 | not widely available. There are known issues with GICv3 initialization in |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1404 | the TF-A. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1405 | |
| 1406 | - Dynamic image loading is not available yet. The current image loader |
| 1407 | implementation (used to load BL2 and all subsequent images) has some |
| 1408 | limitations. Changing BL2 or BL3-1 load addresses in certain ways can lead |
| 1409 | to loading errors, even if the images should theoretically fit in memory. |
| 1410 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1411 | - TF-A still uses too much on-chip Trusted SRAM. A number of RAM usage |
| 1412 | enhancements have been identified to rectify this situation. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1413 | |
| 1414 | - CPU idle does not work on the advertised version of the Foundation FVP. |
| 1415 | Some FVP fixes are required that are not available externally at the time |
| 1416 | of writing. This can be worked around by disabling CPU idle in the Linux |
| 1417 | kernel. |
| 1418 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1419 | - Various bugs in TF-A, UEFI and the Linux kernel have been observed when |
| 1420 | using Linaro toolchain versions later than 13.11. Although most of these |
| 1421 | have been fixed, some remain at the time of writing. These mainly seem to |
| 1422 | relate to a subtle change in the way the compiler converts between 64-bit |
| 1423 | and 32-bit values (e.g. during casting operations), which reveals |
| 1424 | previously hidden bugs in client code. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1425 | |
| 1426 | - The firmware design documentation for the Test Secure-EL1 Payload (TSP) and |
| 1427 | its dispatcher (TSPD) is incomplete. Similarly for the PSCI section. |
| 1428 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1429 | Trusted Firmware-A - version 0.3 |
| 1430 | ================================ |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1431 | |
| 1432 | New features |
| 1433 | ------------ |
| 1434 | |
| 1435 | - Support for Foundation FVP Version 2.0 added. |
| 1436 | The documented UEFI configuration disables some devices that are unavailable |
| 1437 | in the Foundation FVP, including MMC and CLCD. The resultant UEFI binary can |
| 1438 | be used on the AEMv8 and Cortex-A57-A53 Base FVPs, as well as the Foundation |
| 1439 | FVP. |
| 1440 | |
| 1441 | NOTE: The software will not work on Version 1.0 of the Foundation FVP. |
| 1442 | |
| 1443 | - Enabled third party contributions. Added a new contributing.md containing |
| 1444 | instructions for how to contribute and updated copyright text in all files |
| 1445 | to acknowledge contributors. |
| 1446 | |
| 1447 | - The PSCI CPU\_SUSPEND API has been stabilised to the extent where it can be |
| 1448 | used for entry into power down states with the following restrictions: |
| 1449 | |
| 1450 | - Entry into standby states is not supported. |
| 1451 | - The API is only supported on the AEMv8 and Cortex-A57-A53 Base FVPs. |
| 1452 | |
| 1453 | - The PSCI AFFINITY\_INFO api has undergone limited testing on the Base FVPs to |
| 1454 | allow experimental use. |
| 1455 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1456 | - Required C library and runtime header files are now included locally in |
| 1457 | TF-A instead of depending on the toolchain standard include paths. The |
| 1458 | local implementation has been cleaned up and reduced in scope. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1459 | |
| 1460 | - Added I/O abstraction framework, primarily to allow generic code to load |
| 1461 | images in a platform-independent way. The existing image loading code has |
| 1462 | been reworked to use the new framework. Semi-hosting and NOR flash I/O |
| 1463 | drivers are provided. |
| 1464 | |
| 1465 | - Introduced Firmware Image Package (FIP) handling code and tools. A FIP |
| 1466 | combines multiple firmware images with a Table of Contents (ToC) into a |
| 1467 | single binary image. The new FIP driver is another type of I/O driver. The |
| 1468 | Makefile builds a FIP by default and the FVP platform code expect to load a |
| 1469 | FIP from NOR flash, although some support for image loading using semi- |
| 1470 | hosting is retained. |
| 1471 | |
| 1472 | NOTE: Building a FIP by default is a non-backwards-compatible change. |
| 1473 | |
| 1474 | NOTE: Generic BL2 code now loads a BL3-3 (non-trusted firmware) image into |
| 1475 | DRAM instead of expecting this to be pre-loaded at known location. This is |
| 1476 | also a non-backwards-compatible change. |
| 1477 | |
| 1478 | NOTE: Some non-trusted firmware (e.g. UEFI) will need to be rebuilt so that |
| 1479 | it knows the new location to execute from and no longer needs to copy |
| 1480 | particular code modules to DRAM itself. |
| 1481 | |
| 1482 | - Reworked BL2 to BL3-1 handover interface. A new composite structure |
| 1483 | (bl31\_args) holds the superset of information that needs to be passed from |
| 1484 | BL2 to BL3-1, including information on how handover execution control to |
| 1485 | BL3-2 (if present) and BL3-3 (non-trusted firmware). |
| 1486 | |
| 1487 | - Added library support for CPU context management, allowing the saving and |
| 1488 | restoring of |
| 1489 | |
| 1490 | - Shared system registers between Secure-EL1 and EL1. |
| 1491 | - VFP registers. |
| 1492 | - Essential EL3 system registers. |
| 1493 | |
| 1494 | - Added a framework for implementing EL3 runtime services. Reworked the PSCI |
| 1495 | implementation to be one such runtime service. |
| 1496 | |
| 1497 | - Reworked the exception handling logic, making use of both SP\_EL0 and SP\_EL3 |
| 1498 | stack pointers for determining the type of exception, managing general |
| 1499 | purpose and system register context on exception entry/exit, and handling |
| 1500 | SMCs. SMCs are directed to the correct EL3 runtime service. |
| 1501 | |
| 1502 | - Added support for a Test Secure-EL1 Payload (TSP) and a corresponding |
| 1503 | Dispatcher (TSPD), which is loaded as an EL3 runtime service. The TSPD |
| 1504 | implements Secure Monitor functionality such as world switching and |
| 1505 | EL1 context management, and is responsible for communication with the TSP. |
| 1506 | NOTE: The TSPD does not yet contain support for secure world interrupts. |
| 1507 | NOTE: The TSP/TSPD is not built by default. |
| 1508 | |
| 1509 | Issues resolved since last release |
| 1510 | ---------------------------------- |
| 1511 | |
| 1512 | - Support has been added for switching context between secure and normal |
| 1513 | worlds in EL3. |
| 1514 | |
| 1515 | - PSCI API calls ``AFFINITY_INFO`` & ``PSCI_VERSION`` have now been tested (to |
| 1516 | a limited extent). |
| 1517 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1518 | - The TF-A build artifacts are now placed in the ``./build`` directory and |
| 1519 | sub-directories instead of being placed in the root of the project. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1520 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1521 | - TF-A is now free from build warnings. Build warnings are now treated as |
| 1522 | errors. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1523 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1524 | - TF-A now provides C library support locally within the project to maintain |
| 1525 | compatibility between toolchains/systems. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1526 | |
| 1527 | - The PSCI locking code has been reworked so it no longer takes locks in an |
| 1528 | incorrect sequence. |
| 1529 | |
| 1530 | - The RAM-disk method of loading a Linux file-system has been confirmed to |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1531 | work with the TF-A and Linux kernel version (based on version 3.13) used |
| 1532 | in this release, for both Foundation and Base FVPs. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1533 | |
| 1534 | Known issues |
| 1535 | ------------ |
| 1536 | |
| 1537 | The following is a list of issues which are expected to be fixed in the future |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1538 | releases of TF-A. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1539 | |
| 1540 | - The TrustZone Address Space Controller (TZC-400) is not being programmed |
| 1541 | yet. Use of model parameter ``-C bp.secure_memory=1`` is not supported. |
| 1542 | |
| 1543 | - No support yet for secure world interrupt handling. |
| 1544 | |
| 1545 | - GICv3 support is experimental. The Linux kernel patches to support this are |
| 1546 | not widely available. There are known issues with GICv3 initialization in |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1547 | TF-A. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1548 | |
| 1549 | - Dynamic image loading is not available yet. The current image loader |
| 1550 | implementation (used to load BL2 and all subsequent images) has some |
| 1551 | limitations. Changing BL2 or BL3-1 load addresses in certain ways can lead |
| 1552 | to loading errors, even if the images should theoretically fit in memory. |
| 1553 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1554 | - TF-A uses too much on-chip Trusted SRAM. Currently the Test Secure-EL1 |
| 1555 | Payload (BL3-2) executes in Trusted DRAM since there is not enough SRAM. |
| 1556 | A number of RAM usage enhancements have been identified to rectify this |
| 1557 | situation. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1558 | |
| 1559 | - CPU idle does not work on the advertised version of the Foundation FVP. |
| 1560 | Some FVP fixes are required that are not available externally at the time |
| 1561 | of writing. |
| 1562 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1563 | - Various bugs in TF-A, UEFI and the Linux kernel have been observed when |
| 1564 | using Linaro toolchain versions later than 13.11. Although most of these |
| 1565 | have been fixed, some remain at the time of writing. These mainly seem to |
| 1566 | relate to a subtle change in the way the compiler converts between 64-bit |
| 1567 | and 32-bit values (e.g. during casting operations), which reveals |
| 1568 | previously hidden bugs in client code. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1569 | |
| 1570 | - The tested filesystem used for this release (Linaro AArch64 OpenEmbedded |
| 1571 | 14.01) does not report progress correctly in the console. It only seems to |
| 1572 | produce error output, not standard output. It otherwise appears to function |
| 1573 | correctly. Other filesystem versions on the same software stack do not |
| 1574 | exhibit the problem. |
| 1575 | |
| 1576 | - The Makefile structure doesn't make it easy to separate out parts of the |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1577 | TF-A for re-use in platform ports, for example if only BL3-1 is required in |
| 1578 | a platform port. Also, dependency checking in the Makefile is flawed. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1579 | |
| 1580 | - The firmware design documentation for the Test Secure-EL1 Payload (TSP) and |
| 1581 | its dispatcher (TSPD) is incomplete. Similarly for the PSCI section. |
| 1582 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1583 | Trusted Firmware-A - version 0.2 |
| 1584 | ================================ |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1585 | |
| 1586 | New features |
| 1587 | ------------ |
| 1588 | |
| 1589 | - First source release. |
| 1590 | |
| 1591 | - Code for the PSCI suspend feature is supplied, although this is not enabled |
| 1592 | by default since there are known issues (see below). |
| 1593 | |
| 1594 | Issues resolved since last release |
| 1595 | ---------------------------------- |
| 1596 | |
| 1597 | - The "psci" nodes in the FDTs provided in this release now fully comply |
| 1598 | with the recommendations made in the PSCI specification. |
| 1599 | |
| 1600 | Known issues |
| 1601 | ------------ |
| 1602 | |
| 1603 | The following is a list of issues which are expected to be fixed in the future |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1604 | releases of TF-A. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1605 | |
| 1606 | - The TrustZone Address Space Controller (TZC-400) is not being programmed |
| 1607 | yet. Use of model parameter ``-C bp.secure_memory=1`` is not supported. |
| 1608 | |
| 1609 | - No support yet for secure world interrupt handling or for switching context |
| 1610 | between secure and normal worlds in EL3. |
| 1611 | |
| 1612 | - GICv3 support is experimental. The Linux kernel patches to support this are |
| 1613 | not widely available. There are known issues with GICv3 initialization in |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1614 | TF-A. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1615 | |
| 1616 | - Dynamic image loading is not available yet. The current image loader |
| 1617 | implementation (used to load BL2 and all subsequent images) has some |
| 1618 | limitations. Changing BL2 or BL3-1 load addresses in certain ways can lead |
| 1619 | to loading errors, even if the images should theoretically fit in memory. |
| 1620 | |
| 1621 | - Although support for PSCI ``CPU_SUSPEND`` is present, it is not yet stable |
| 1622 | and ready for use. |
| 1623 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1624 | - PSCI API calls ``AFFINITY_INFO`` & ``PSCI_VERSION`` are implemented but have |
| 1625 | not been tested. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1626 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1627 | - The TF-A make files result in all build artifacts being placed in the root |
| 1628 | of the project. These should be placed in appropriate sub-directories. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1629 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1630 | - The compilation of TF-A is not free from compilation warnings. Some of these |
| 1631 | warnings have not been investigated yet so they could mask real bugs. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1632 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1633 | - TF-A currently uses toolchain/system include files like stdio.h. It should |
| 1634 | provide versions of these within the project to maintain compatibility |
| 1635 | between toolchains/systems. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1636 | |
| 1637 | - The PSCI code takes some locks in an incorrect sequence. This may cause |
| 1638 | problems with suspend and hotplug in certain conditions. |
| 1639 | |
| 1640 | - The Linux kernel used in this release is based on version 3.12-rc4. Using |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1641 | this kernel with the TF-A fails to start the file-system as a RAM-disk. It |
| 1642 | fails to execute user-space ``init`` from the RAM-disk. As an alternative, |
| 1643 | the VirtioBlock mechanism can be used to provide a file-system to the |
| 1644 | kernel. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1645 | |
| 1646 | -------------- |
| 1647 | |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1648 | *Copyright (c) 2013-2018, Arm Limited and Contributors. All rights reserved.* |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1649 | |
David Cunado | b158043 | 2018-03-14 17:57:31 +0000 | [diff] [blame] | 1650 | .. _SDEI Specification: http://infocenter.arm.com/help/topic/com.arm.doc.den0054a/ARM_DEN0054A_Software_Delegated_Exception_Interface.pdf |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1651 | .. _PSCI Integration Guide: psci-lib-integration-guide.rst |
| 1652 | .. _Developer Certificate of Origin: ../dco.txt |
| 1653 | .. _Contribution Guide: ../contributing.rst |
| 1654 | .. _Authentication framework: auth-framework.rst |
| 1655 | .. _Firmware Update: firmware-update.rst |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1656 | .. _TF-A Reset Design: reset-design.rst |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1657 | .. _Power Domain Topology Design: psci-pd-tree.rst |
Dan Handley | 610e7e1 | 2018-03-01 18:44:00 +0000 | [diff] [blame] | 1658 | .. _TF-A wiki on GitHub: https://github.com/ARM-software/arm-trusted-firmware/wiki/ARM-Trusted-Firmware-Image-Terminology |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 1659 | .. _Authentication Framework: auth-framework.rst |
| 1660 | .. _OP-TEE Dispatcher: optee-dispatcher.rst |
David Cunado | 1b796fa | 2017-07-03 18:59:07 +0100 | [diff] [blame] | 1661 | .. _tf-issue#501: https://github.com/ARM-software/tf-issues/issues/501 |
| 1662 | .. _PR#1002: https://github.com/ARM-software/arm-trusted-firmware/pull/1002#issuecomment-312650193 |