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