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