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