blob: 123fe24db292bd7aa2235b8cdcb4678945fabcd9 [file] [log] [blame]
Douglas Raillard668c5022017-06-28 16:14:55 +01001
2.. section-numbering::
3 :suffix: .
4
5.. contents::
6
Paul Beesley9e437f22019-03-25 12:21:57 +00007Trusted Firmware-A - version 2.1
8================================
9
10New Features
11------------
12
13- Architecture
14 - Support for ARMv8.3 pointer authentication in the normal and secure worlds
15
16 The use of pointer authentication in the normal world is enabled whenever
17 architectural support is available, without the need for additional build
18 flags.
19
20 Use of pointer authentication in the secure world remains an
21 experimental configuration at this time. Using both the ``ENABLE_PAUTH``
22 and ``CTX_INCLUDE_PAUTH_REGS`` build flags, pointer authentication can be
23 enabled in EL3 and S-EL1/0.
24
25 See the `Firmware Design`_ document for additional details on the use of
26 pointer authentication.
27
28 - Enable Data Independent Timing (DIT) in EL3, where supported
29
30- Build System
31 - Support for BL-specific build flags
32
33 - Support setting compiler target architecture based on ``ARM_ARCH_MINOR``
34 build option.
35
36 - New ``RECLAIM_INIT_CODE`` build flag:
37
38 A significant amount of the code used for the initialization of BL31 is
39 not needed again after boot time. In order to reduce the runtime memory
40 footprint, the memory used for this code can be reclaimed after
41 initialization.
42
43 Certain boot-time functions were marked with the ``__init`` attribute to
44 enable this reclamation.
45
46- CPU Support
47 - cortex-a76: Workaround for erratum 1073348
48 - cortex-a76: Workaround for erratum 1220197
49 - cortex-a76: Workaround for erratum 1130799
50
51 - cortex-a75: Workaround for erratum 790748
52 - cortex-a75: Workaround for erratum 764081
53
54 - cortex-a73: Workaround for erratum 852427
55 - cortex-a73: Workaround for erratum 855423
56
57 - cortex-a57: Workaround for erratum 817169
58 - cortex-a57: Workaround for erratum 814670
59
60 - cortex-a55: Workaround for erratum 903758
61 - cortex-a55: Workaround for erratum 846532
62 - cortex-a55: Workaround for erratum 798797
63 - cortex-a55: Workaround for erratum 778703
64 - cortex-a55: Workaround for erratum 768277
65
66 - cortex-a53: Workaround for erratum 819472
67 - cortex-a53: Workaround for erratum 824069
68 - cortex-a53: Workaround for erratum 827319
69
70 - cortex-a17: Workaround for erratum 852423
71 - cortex-a17: Workaround for erratum 852421
72
73 - cortex-a15: Workaround for erratum 816470
74 - cortex-a15: Workaround for erratum 827671
75
76- Documentation
77 - Exception Handling Framework documentation
78
79 - Library at ROM (romlib) documentation
80
81 - RAS framework documentation
82
83 - Coding Guidelines document
84
85- Drivers
86 - ccn: Add API for setting and reading node registers
87 - Adds ``ccn_read_node_reg`` function
88 - Adds ``ccn_write_node_reg`` function
89
90 - partition: Support MBR partition entries
91
92 - scmi: Add ``plat_css_get_scmi_info`` function
93
94 Adds a new API ``plat_css_get_scmi_info`` which lets the platform
95 register a platform-specific instance of ``scmi_channel_plat_info_t`` and
96 remove the default values
97
98 - tzc380: Add TZC380 TrustZone Controller driver
99
100 - tzc-dmc620: Add driver to manage the TrustZone Controller within the
101 DMC-620 Dynamic Memory Controller
102
103- Library at ROM (romlib)
104 - Add platform-specific jump table list
105
106 - Allow patching of romlib functions
107
108 This change allows patching of functions in the romlib. This can be done by
109 adding "patch" at the end of the jump table entry for the function that
110 needs to be patched in the file jmptbl.i.
111
112- Library Code
113 - Support non-LPAE-enabled MMU tables in AArch32
114
115 - mmio: Add ``mmio_clrsetbits_16`` function
116 - 16-bit variant of ``mmio_clrsetbits``
117
118 - object_pool: Add Object Pool Allocator
119 - Manages object allocation using a fixed-size static array
120 - Adds ``pool_alloc`` and ``pool_alloc_n`` functions
121 - Does not provide any functions to free allocated objects (by design)
122
123 - libc: Added ``strlcpy`` function
124
125 - libc: Import ``strrchr`` function from FreeBSD
126
127 - xlat_tables: Add support for ARMv8.4-TTST
128
129 - xlat_tables: Support mapping regions without an explicitly specified VA
130
131- Math
132 - Added softudiv macro to support software division
133
134- Memory Partitioning And Monitoring (MPAM)
135 - Enabled MPAM EL2 traps (``MPAMHCR_EL2`` and ``MPAM_EL2``)
136
137- Platforms
138 - amlogic: Add support for Meson S905 (GXBB)
139
140 - arm/fvp_ve: Add support for FVP Versatile Express platform
141
142 - arm/n1sdp: Add support for Neoverse N1 System Development platform
143
144 - arm/rde1edge: Add support for Neoverse E1 platform
145
146 - arm/rdn1edge: Add support for Neoverse N1 platform
147
148 - arm: Add support for booting directly to Linux without an intermediate
149 loader (AArch32)
150
151 - arm/juno: Enable new CPU errata workarounds for A53 and A57
152
153 - arm/juno: Add romlib support
154
155 Building a combined BL1 and ROMLIB binary file with the correct page
156 alignment is now supported on the Juno platform. When ``USE_ROMLIB`` is set
157 for Juno, it generates the combined file ``bl1_romlib.bin`` which needs to
158 be used instead of bl1.bin.
159
160 - intel/stratix: Add support for Intel Stratix 10 SoC FPGA platform
161
162 - marvell: Add support for Armada-37xx SoC platform
163
164 - nxp: Add support for i.MX8M and i.MX7 Warp7 platforms
165
166 - renesas: Add support for R-Car Gen3 platform
167
168 - xilinx: Add support for Versal ACAP platforms
169
170- Position-Independent Executable (PIE)
171
172 PIE support has initially been added to BL31. The ``ENABLE_PIE`` build flag is
173 used to enable or disable this functionality as required.
174
175- Secure Partition Manager
176 - New, SPCI-compliant SPM implementation
177
178 A new version of SPM has been implemented based on draft specifications of
179 the SPCI (Secure Partition Client Interface) and SPRT (Secure
180 Partition Runtime) specifications.
181
182 The new implementation is a prototype that is expected to undergo intensive
183 rework as the specifications change. It has basic support for multiple
184 Secure Partitions and Resource Descriptions.
185
186 The old version of SPM, based on MM (ARM Management Mode Interface
187 Specification), is still present in the codebase. A new build flag,
188 ``SPM_MM`` has been added to allow selection of the desired implementation.
189 This flag defaults to 1, selecting the MM-based implementation.
190
191- Security
192 - Spectre Variant-1 mitigations (``CVE-2017-5753``)
193
194 - Use Speculation Store Bypass Safe (SSBS) functionality where available
195
196 Provides mitigation against ``CVE-2018-19440`` (Not saving x0 to x3
197 registers can leak information from one Normal World SMC client to another)
198
199
200Changed
201-------
202
203- Build System
204 - Warning levels are now selectable with ``W=<1,2,3>``
205
206 - Removed unneeded include paths in PLAT_INCLUDES
207
208 - "Warnings as errors" (Werror) can be disabled using ``E=0``
209
210 - Support totally quiet output with ``-s`` flag
211
212 - Support passing options to checkpatch using ``CHECKPATCH_OPTS=<opts>``
213
214 - Invoke host compiler with ``HOSTCC / HOSTCCFLAGS`` instead of ``CC / CFLAGS``
215
216 - Make device tree pre-processing similar to U-boot/Linux by:
217 - Creating separate ``CPPFLAGS`` for DT preprocessing so that compiler
218 options specific to it can be accommodated.
219 - Replacing ``CPP`` with ``PP`` for DT pre-processing
220
221- CPU Support
222 - Errata report function definition is now mandatory for CPU support files
223
224 CPU operation files must now define a ``<name>_errata_report`` function to
225 print errata status. This is no longer a weak reference.
226
227- Documentation
228 - Migrated some content from GitHub wiki to ``docs/`` directory
229
230 - Security advisories now have CVE links
231
232 - Updated copyright guidelines
233
234 - Miscellaneous small fixes
235
236- Drivers
237 - console: The ``MULTI_CONSOLE_API`` framework has been rewritten in C
238 - console: Ported multi-console driver to AArch32
239
240 - gic: Remove 'lowest priority' constants
241
242 Removed ``GIC_LOWEST_SEC_PRIORITY`` and ``GIC_LOWEST_NS_PRIORITY``.
243 Platforms should define these if required, or instead determine the correct
244 priority values at runtime.
245
246 - delay_timer: Check that the Generic Timer extension is present
247
248 - mmc: Increase command reply timeout to 10 milliseconds
249
250 - mmc: Poll eMMC device status to ensure ``EXT_CSD`` command completion
251
252 - mmc: Correctly check return code from ``mmc_fill_device_info``
253
254- External Libraries
255
256 - libfdt: Upgraded from 1.4.2 to 1.4.6-9
257
258 - mbed TLS: Upgraded from 2.12 to 2.16
259
260 This change incorporates fixes for security issues that should be reviewed
261 to determine if they are relevant for software implementations using
262 Trusted Firmware-A. See the `mbed TLS releases`_ page for details on
263 changes from the 2.12 to the 2.16 release.
264
265- Library Code
266 - compiler-rt: Updated ``lshrdi3.c`` and ``int_lib.h`` with changes from
267 LLVM master branch (r345645)
268
269 - cpu: Updated macro that checks need for ``CVE-2017-5715`` mitigation
270
271 - libc: Made setjmp and longjmp C standard compliant
272
273 - libc: Allowed overriding the default libc (use ``OVERRIDE_LIBC``)
274
275 - libc: Moved setjmp and longjmp to the ``libc/`` directory
276
277- Platforms
278 - Removed Mbed TLS dependency from plat_bl_common.c
279
280 - arm: Removed unused ``ARM_MAP_BL_ROMLIB`` macro
281
282 - arm: Removed ``ARM_BOARD_OPTIMISE_MEM`` feature and build flag
283
284 - arm: Moved several components into ``drivers/`` directory
285
286 This affects the SDS, SCP, SCPI, MHU and SCMI components
287
288 - arm/juno: Increased maximum BL2 image size to ``0xF000``
289
290 This change was required to accommodate a larger ``libfdt`` library
291
292- SCMI
293 - Optimized bakery locks when hardware-assisted coherency is enabled using the
294 ``HW_ASSISTED_COHERENCY`` build flag
295
296- SDEI
297 - Added support for unconditionally resuming secure world execution after
298 SDEI event processing completes
299
300 SDEI interrupts, although targeting EL3, occur on behalf of the non-secure
301 world, and may have higher priority than secure world
302 interrupts. Therefore they might preempt secure execution and yield
303 execution to the non-secure SDEI handler. Upon completion of SDEI event
304 handling, resume secure execution if it was preempted.
305
306- Translation Tables (XLAT)
307 - Dynamically detect need for ``Common not Private (TTBRn_ELx.CnP)`` bit
308
309 Properly handle the case where ``ARMv8.2-TTCNP`` is implemented in a CPU
310 that does not implement all mandatory v8.2 features (and so must claim to
311 implement a lower architecture version).
312
313
314Resolved Issues
315---------------
316
317- Architecture
318 - Incorrect check for SSBS feature detection
319
320 - Unintentional register clobber in AArch32 reset_handler function
321
322- Build System
323 - Dependency issue during DTB image build
324
325 - Incorrect variable expansion in Arm platform makefiles
326
327 - Building on Windows with verbose mode (``V=1``) enabled is broken
328
329 - AArch32 compilation flags is missing ``$(march32-directive)``
330
331- BL-Specific Issues
332 - bl2: ``uintptr_t is not defined`` error when ``BL2_IN_XIP_MEM`` is defined
333
334 - bl2: Missing prototype warning in ``bl2_arch_setup``
335
336 - bl31: Omission of Global Offset Table (GOT) section
337
338- Code Quality Issues
339 - Multiple MISRA compliance issues
340
341 - Potential NULL pointer dereference (Coverity-detected)
342
343- Drivers
344 - mmc: Local declaration of ``scr`` variable causes a cache issue when
345 invalidating after the read DMA transfer completes
346
347 - mmc: ``ACMD41`` does not send voltage information during initialization,
348 resulting in the command being treated as a query. This prevents the
349 command from initializing the controller.
350
351 - mmc: When checking device state using ``mmc_device_state()`` there are no
352 retries attempted in the event of an error
353
354 - ccn: Incorrect Region ID calculation for RN-I nodes
355
356 - console: ``Fix MULTI_CONSOLE_API`` when used as a crash console
357
358 - partition: Improper NULL checking in gpt.c
359
360 - partition: Compilation failure in ``VERBOSE`` mode (``V=1``)
361
362- Library Code
363 - common: Incorrect check for Address Authentication support
364
365 - xlat: Fix XLAT_V1 / XLAT_V2 incompatibility
366
367 The file ``arm_xlat_tables.h`` has been renamed to ``xlat_tables_compat.h``
368 and has been moved to a common folder. This header can be used to guarantee
369 compatibility, as it includes the correct header based on
370 ``XLAT_TABLES_LIB_V2``.
371
372 - xlat: armclang unused-function warning on ``xlat_clean_dcache_range``
373
374 - xlat: Invalid ``mm_cursor`` checks in ``mmap_add`` and ``mmap_add_ctx``
375
376 - sdei: Missing ``context.h`` header
377
378- Platforms
379 - common: Missing prototype warning for ``plat_log_get_prefix``
380
381 - arm: Insufficient maximum BL33 image size
382
383 - arm: Potential memory corruption during BL2-BL31 transition
384
385 On Arm platforms, the BL2 memory can be overlaid by BL31/BL32. The memory
386 descriptors describing the list of executable images are created in BL2
387 R/W memory, which could be possibly corrupted later on by BL31/BL32 due
388 to overlay. This patch creates a reserved location in SRAM for these
389 descriptors and are copied over by BL2 before handing over to next BL
390 image.
391
392 - juno: Invalid behaviour when ``CSS_USE_SCMI_SDS_DRIVER`` is not set
393
394 In ``juno_pm.c`` the ``css_scmi_override_pm_ops`` function was used
395 regardless of whether the build flag was set. The original behaviour has
396 been restored in the case where the build flag is not set.
397
398- Tools
399 - fiptool: Incorrect UUID parsing of blob parameters
400
401 - doimage: Incorrect object rules in Makefile
402
403
404Deprecations
405------------
406
407- Common Code
408 - ``plat_crash_console_init`` function
409
410 - ``plat_crash_console_putc`` function
411
412 - ``plat_crash_console_flush`` function
413
414 - ``finish_console_register`` macro
415
416- AArch64-specific Code
417 - helpers: ``get_afflvl_shift``
418
419 - helpers: ``mpidr_mask_lower_afflvls``
420
421 - helpers: ``eret``
422
423- Secure Partition Manager (SPM)
424 - Boot-info structure
425
426
427Known Issues
428------------
429
430- Build System Issues
431 - dtb: DTB creation not supported when building on a Windows host.
432
433 This step in the build process is skipped when running on a Windows host. A
434 known issue from the 1.6 release.
435
436- Platform Issues
437 - arm/juno: System suspend from Linux does not function as documented in the
438 user guide
439
440 Following the instructions provided in the user guide document does not
441 result in the platform entering system suspend state as expected. A message
442 relating to the hdlcd driver failing to suspend will be emitted on the
443 Linux terminal.
444
445 - mediatek/mt6795: This platform does not build in this release
446
Joanna Farleyf9f26a52018-09-28 08:38:17 +0100447Trusted Firmware-A - version 2.0
448================================
449
450New Features
451------------
452
Paul Beesley8aabea32019-01-11 18:26:51 +0000453- Removal of a number of deprecated APIs
Joanna Farleyf9f26a52018-09-28 08:38:17 +0100454
455 - A new Platform Compatibility Policy document has been created which
456 references a wiki page that maintains a listing of deprecated
457 interfaces and the release after which they will be removed.
458
459 - All deprecated interfaces except the MULTI_CONSOLE_API have been removed
460 from the code base.
461
462 - Various Arm and partner platforms have been updated to remove the use of
Paul Beesley8aabea32019-01-11 18:26:51 +0000463 removed APIs in this release.
Joanna Farleyf9f26a52018-09-28 08:38:17 +0100464
465 - This release is otherwise unchanged from 1.6 release
466
467Issues resolved since last release
468----------------------------------
469
470- No issues known at 1.6 release resolved in 2.0 release
471
472Known Issues
473------------
474
475- DTB creation not supported when building on a Windows host. This step in the
476 build process is skipped when running on a Windows host. Known issue from
477 1.6 version.
478
479- As a result of removal of deprecated interfaces the Nvidia Tegra, Marvell
480 Armada 8K and MediaTek MT6795 platforms do not build in this release.
481 Also MediaTek MT8173, NXP QorIQ LS1043A, NXP i.MX8QX, NXP i.MX8QMa,
482 Rockchip RK3328, Rockchip RK3368 and Rockchip RK3399 platforms have not been
483 confirmed to be working after the removal of the deprecated interfaces
484 although they do build.
485
Joanna Farleyd83bf0b2018-09-11 15:51:31 +0100486Trusted Firmware-A - version 1.6
487================================
488
489New Features
490------------
491
Joanna Farleyf9f26a52018-09-28 08:38:17 +0100492- Addressing Speculation Security Vulnerabilities
Joanna Farleyd83bf0b2018-09-11 15:51:31 +0100493
494 - Implement static workaround for CVE-2018-3639 for AArch32 and AArch64
495
496 - Add support for dynamic mitigation for CVE-2018-3639
497
498 - Implement dynamic mitigation for CVE-2018-3639 on Cortex-A76
499
500 - Ensure SDEI handler executes with CVE-2018-3639 mitigation enabled
501
502- Introduce RAS handling on AArch64
503
John Tsichritzisfadd2152018-10-05 14:16:26 +0100504 - Some RAS extensions are mandatory for Armv8.2 CPUs, with others
505 mandatory for Armv8.4 CPUs however, all extensions are also optional
506 extensions to the base Armv8.0 architecture.
Joanna Farleyd83bf0b2018-09-11 15:51:31 +0100507
John Tsichritzisfadd2152018-10-05 14:16:26 +0100508 - The Armv8 RAS Extensions introduced Standard Error Records which are a
Joanna Farleyd83bf0b2018-09-11 15:51:31 +0100509 set of standard registers to configure RAS node policy and allow RAS
510 Nodes to record and expose error information for error handling agents.
511
512 - Capabilities are provided to support RAS Node enumeration and iteration
513 along with individual interrupt registrations and fault injections
514 support.
515
516 - Introduce handlers for Uncontainable errors, Double Faults and EL3
517 External Aborts
518
519- Enable Memory Partitioning And Monitoring (MPAM) for lower EL's
520
521 - Memory Partitioning And Monitoring is an Armv8.4 feature that enables
522 various memory system components and resources to define partitions.
523 Software running at various ELs can then assign themselves to the
524 desired partition to control their performance aspects.
525
526 - When ENABLE_MPAM_FOR_LOWER_ELS is set to 1, EL3 allows
527 lower ELs to access their own MPAM registers without trapping to EL3.
528 This patch however, doesn't make use of partitioning in EL3; platform
529 initialisation code should configure and use partitions in EL3 if
530 required.
531
532- Introduce ROM Lib Feature
533
534 - Support combining several libraries into a self-called "romlib" image,
535 that may be shared across images to reduce memory footprint. The romlib
536 image is stored in ROM but is accessed through a jump-table that may be
537 stored in read-write memory, allowing for the library code to be patched.
538
539- Introduce Backtrace Feature
540
541 - This function displays the backtrace, the current EL and security state
542 to allow a post-processing tool to choose the right binary to interpret
543 the dump.
544
545 - Print backtrace in assert() and panic() to the console.
546
547- Code hygiene changes and alignment with MISRA C-2012 guideline with fixes
548 addressing issues complying to the following rules:
549
550 - MISRA rules 4.9, 5.1, 5.3, 5.7, 8.2-8.5, 8.8, 8.13, 9.3, 10.1,
551 10.3-10.4, 10.8, 11.3, 11.6, 12.1, 14.4, 15.7, 16.1-16.7, 17.7-17.8,
552 20.7, 20.10, 20.12, 21.1, 21.15, 22.7
553
554 - Clean up the usage of void pointers to access symbols
555
556 - Increase usage of static qualifier to locally used functions and data
557
558 - Migrated to use of u_register_t for register read/write to better
559 match AArch32 and AArch64 type sizes
560
561 - Use int-ll64 for both AArch32 and AArch64 to assist in consistent
562 format strings between architectures
563
564 - Clean up TF-A libc by removing non arm copyrighted implementations
565 and replacing them with modified FreeBSD and SCC implementations
566
567- Various changes to support Clang linker and assembler
568
John Tsichritzisfadd2152018-10-05 14:16:26 +0100569 - The clang assembler/preprocessor is used when Clang is selected. However,
Joanna Farleyd83bf0b2018-09-11 15:51:31 +0100570 the clang linker is not used because it is unable to link TF-A objects
571 due to immaturity of clang linker functionality at this time.
572
Paul Beesley8aabea32019-01-11 18:26:51 +0000573- Refactor support APIs into Libraries
Joanna Farleyd83bf0b2018-09-11 15:51:31 +0100574
575 - Evolve libfdt, mbed TLS library and standard C library sources as
576 proper libraries that TF-A may be linked against.
577
578- CPU Enhancements
579
580 - Add CPU support for Cortex-Ares and Cortex-A76
581
582 - Add AMU support for Cortex-Ares
583
584 - Add initial CPU support for Cortex-Deimos
585
586 - Add initial CPU support for Cortex-Helios
587
588 - Implement dynamic mitigation for CVE-2018-3639 on Cortex-A76
589
590 - Implement Cortex-Ares erratum 1043202 workaround
591
592 - Implement DSU erratum 936184 workaround
593
594 - Check presence of fix for errata 843419 in Cortex-A53
595
596 - Check presence of fix for errata 835769 in Cortex-A53
597
598- Translation Tables Enhancements
599
600 - The xlat v2 library has been refactored in order to be reused by
601 different TF components at different EL's including the addition of EL2.
602 Some refactoring to make the code more generic and less specific to TF,
603 in order to reuse the library outside of this project.
604
605- SPM Enhancements
606
607 - General cleanups and refactoring to pave the way to multiple partitions
608 support
609
610- SDEI Enhancements
611
612 - Allow platforms to define explicit events
613
614 - Determine client EL from NS context's SCR_EL3
615
616 - Make dispatches synchronous
617
618 - Introduce jump primitives for BL31
619
620 - Mask events after CPU wakeup in SDEI dispatcher to conform to the
621 specification
622
623- Misc TF-A Core Common Code Enhancements
624
625 - Add support for eXecute In Place (XIP) memory in BL2
626
627 - Add support for the SMC Calling Convention 2.0
628
629 - Introduce External Abort handling on AArch64
630 External Abort routed to EL3 was reported as an unhandled exception
631 and caused a panic. This change enables Arm Trusted Firmware-A to
632 handle External Aborts routed to EL3.
633
634 - Save value of ACTLR_EL1 implementation-defined register in the CPU
635 context structure rather than forcing it to 0.
636
637 - Introduce ARM_LINUX_KERNEL_AS_BL33 build option, which allows BL31 to
638 directly jump to a Linux kernel. This makes for a quicker and simpler
639 boot flow, which might be useful in some test environments.
640
641 - Add dynamic configurations for BL31, BL32 and BL33 enabling support for
642 Chain of Trust (COT).
643
644 - Make TF UUID RFC 4122 compliant
645
646- New Platform Support
647
648 - Arm SGI-575
649
650 - Arm SGM-775
651
652 - Allwinner sun50i_64
653
654 - Allwinner sun50i_h6
655
John Tsichritzisfadd2152018-10-05 14:16:26 +0100656 - NXP QorIQ LS1043A
Joanna Farleyd83bf0b2018-09-11 15:51:31 +0100657
658 - NXP i.MX8QX
659
660 - NXP i.MX8QM
661
John Tsichritzisfadd2152018-10-05 14:16:26 +0100662 - NXP i.MX7Solo WaRP7
663
Joanna Farleyd83bf0b2018-09-11 15:51:31 +0100664 - TI K3
665
666 - Socionext Synquacer SC2A11
667
668 - Marvell Armada 8K
669
670 - STMicroelectronics STM32MP1
671
672- Misc Generic Platform Common Code Enhancements
673
674 - Add MMC framework that supports both eMMC and SD card devices
675
676- Misc Arm Platform Common Code Enhancements
677
678 - Demonstrate PSCI MEM_PROTECT from el3_runtime
679
680 - Provide RAS support
681
682 - Migrate AArch64 port to the multi console driver. The old API is
683 deprecated and will eventually be removed.
684
685 - Move BL31 below BL2 to enable BL2 overlay resulting in changes in the
686 layout of BL images in memory to enable more efficient use of available
687 space.
688
689 - Add cpp build processing for dtb that allows processing device tree
690 with external includes.
691
692 - Extend FIP io driver to support multiple FIP devices
693
694 - Add support for SCMI AP core configuration protocol v1.0
695
696 - Use SCMI AP core protocol to set the warm boot entrypoint
697
698 - Add support to Mbed TLS drivers for shared heap among different
699 BL images to help optimise memory usage
700
701 - Enable non-secure access to UART1 through a build option to support
702 a serial debug port for debugger connection
703
704- Enhancements for Arm Juno Platform
705
706 - Add support for TrustZone Media Protection 1 (TZMP1)
707
708- Enhancements for Arm FVP Platform
709
710 - Dynamic_config: remove the FVP dtb files
711
712 - Set DYNAMIC_WORKAROUND_CVE_2018_3639=1 on FVP by default
713
714 - Set the ability to dynamically disable Trusted Boot Board
715 authentication to be off by default with DYN_DISABLE_AUTH
716
717 - Add librom enhancement support in FVP
718
719 - Support shared Mbed TLS heap between BL1 and BL2 that allow a
720 reduction in BL2 size for FVP
721
722- Enhancements for Arm SGI/SGM Platform
723
724 - Enable ARM_PLAT_MT flag for SGI-575
725
726 - Add dts files to enable support for dynamic config
727
728 - Add RAS support
729
730 - Support shared Mbed TLS heap for SGI and SGM between BL1 and BL2
731
732- Enhancements for Non Arm Platforms
733
734 - Raspberry Pi Platform
735
736 - Hikey Platforms
737
738 - Xilinx Platforms
739
740 - QEMU Platform
741
742 - Rockchip rk3399 Platform
743
744 - TI Platforms
745
746 - Socionext Platforms
747
748 - Allwinner Platforms
749
750 - NXP Platforms
751
752 - NVIDIA Tegra Platform
753
754 - Marvell Platforms
755
756 - STMicroelectronics STM32MP1 Platform
757
758Issues resolved since last release
759----------------------------------
760
761- No issues known at 1.5 release resolved in 1.6 release
762
763Known Issues
764------------
765
766- DTB creation not supported when building on a Windows host. This step in the
767 build process is skipped when running on a Windows host. Known issue from
768 1.5 version.
769
David Cunado230326f2018-03-14 17:57:31 +0000770Trusted Firmware-A - version 1.5
771================================
772
773New features
774------------
775
776- Added new firmware support to enable RAS (Reliability, Availability, and
777 Serviceability) functionality.
778
779 - Secure Partition Manager (SPM): A Secure Partition is a software execution
780 environment instantiated in S-EL0 that can be used to implement simple
781 management and security services. The SPM is the firmware component that
782 is responsible for managing a Secure Partition.
783
784 - SDEI dispatcher: Support for interrupt-based SDEI events and all
785 interfaces as defined by the SDEI specification v1.0, see
786 `SDEI Specification`_
787
788 - Exception Handling Framework (EHF): Framework that allows dispatching of
789 EL3 interrupts to their registered handlers which are registered based on
790 their priorities. Facilitates firmware-first error handling policy where
791 asynchronous exceptions may be routed to EL3.
792
793 Integrated the TSPD with EHF.
794
795- Updated PSCI support:
796
797 - Implemented PSCI v1.1 optional features `MEM_PROTECT` and `SYSTEM_RESET2`.
798 The supported PSCI version was updated to v1.1.
799
800 - Improved PSCI STAT timestamp collection, including moving accounting for
801 retention states to be inside the locks and fixing handling of wrap-around
802 when calculating residency in AArch32 execution state.
803
804 - Added optional handler for early suspend that executes when suspending to
805 a power-down state and with data caches enabled.
806
807 This may provide a performance improvement on platforms where it is safe
808 to perform some or all of the platform actions from `pwr_domain_suspend`
809 with the data caches enabled.
810
811- Enabled build option, BL2_AT_EL3, for BL2 to allow execution at EL3 without
812 any dependency on TF BL1.
813
814 This allows platforms which already have a non-TF Boot ROM to directly load
815 and execute BL2 and subsequent BL stages without need for BL1. This was not
816 previously possible because BL2 executes at S-EL1 and cannot jump straight to
817 EL3.
818
819- Implemented support for SMCCC v1.1, including `SMCCC_VERSION` and
820 `SMCCC_ARCH_FEATURES`.
821
822 Additionally, added support for `SMCCC_VERSION` in PSCI features to enable
823 discovery of the SMCCC version via PSCI feature call.
824
825- Added Dynamic Configuration framework which enables each of the boot loader
826 stages to be dynamically configured at runtime if required by the platform.
827 The boot loader stage may optionally specify a firmware configuration file
828 and/or hardware configuration file that can then be shared with the next boot
829 loader stage.
830
831 Introduced a new BL handover interface that essentially allows passing of 4
832 arguments between the different BL stages.
833
834 Updated cert_create and fip_tool to support the dynamic configuration files.
835 The COT also updated to support these new files.
836
837- Code hygiene changes and alignment with MISRA guideline:
838
839 - Fix use of undefined macros.
840
841 - Achieved compliance with Mandatory MISRA coding rules.
842
843 - Achieved compliance for following Required MISRA rules for the default
844 build configurations on FVP and Juno platforms : 7.3, 8.3, 8.4, 8.5 and
845 8.8.
846
847- Added support for Armv8.2-A architectural features:
848
849 - Updated translation table set-up to set the CnP (Common not Private) bit
850 for secure page tables so that multiple PEs in the same Inner Shareable
851 domain can use the same translation table entries for a given stage of
852 translation in a particular translation regime.
853
854 - Extended the supported values of ID_AA64MMFR0_EL1.PARange to include the
855 52-bit Physical Address range.
856
857 - Added support for the Scalable Vector Extension to allow Normal world
858 software to access SVE functionality but disable access to SVE, SIMD and
859 floating point functionality from the Secure world in order to prevent
860 corruption of the Z-registers.
861
862- Added support for Armv8.4-A architectural feature Activity Monitor Unit (AMU)
863 extensions.
864
865 In addition to the v8.4 architectural extension, AMU support on Cortex-A75
866 was implemented.
867
868- Enhanced OP-TEE support to enable use of pageable OP-TEE image. The Arm
869 standard platforms are updated to load up to 3 images for OP-TEE; header,
870 pager image and paged image.
871
872 The chain of trust is extended to support the additional images.
873
874- Enhancements to the translation table library:
875
876 - Introduced APIs to get and set the memory attributes of a region.
877
Paul Beesley8aabea32019-01-11 18:26:51 +0000878 - Added support to manage both privilege levels in translation regimes that
David Cunado230326f2018-03-14 17:57:31 +0000879 describe translations for 2 Exception levels, specifically the EL1&0
880 translation regime, and extended the memory map region attributes to
881 include specifying Non-privileged access.
882
883 - Added support to specify the granularity of the mappings of each region,
884 for instance a 2MB region can be specified to be mapped with 4KB page
885 tables instead of a 2MB block.
886
887 - Disabled the higher VA range to avoid unpredictable behaviour if there is
888 an attempt to access addresses in the higher VA range.
889
890 - Added helpers for Device and Normal memory MAIR encodings that align with
891 the Arm Architecture Reference Manual for Armv8-A (Arm DDI0487B.b).
892
893 - Code hygiene including fixing type length and signedness of constants,
894 refactoring of function to enable the MMU, removing all instances where
895 the virtual address space is hardcoded and added comments that document
896 alignment needed between memory attributes and attributes specified in
897 TCR_ELx.
898
899- Updated GIC support:
900
901 - Introduce new APIs for GICv2 and GICv3 that provide the capability to
902 specify interrupt properties rather than list of interrupt numbers alone.
903 The Arm platforms and other upstream platforms are migrated to use
904 interrupt properties.
905
906 - Added helpers to save / restore the GICv3 context, specifically the
907 Distributor and Redistributor contexts and architectural parts of the ITS
908 power management. The Distributor and Redistributor helpers also support
909 the implementation-defined part of GIC-500 and GIC-600.
910
911 Updated the Arm FVP platform to save / restore the GICv3 context on system
912 suspend / resume as an example of how to use the helpers.
913
914 Introduced a new TZC secured DDR carve-out for use by Arm platforms for
915 storing EL3 runtime data such as the GICv3 register context.
916
917- Added support for Armv7-A architecture via build option ARM_ARCH_MAJOR=7.
918 This includes following features:
919
920 - Updates GICv2 driver to manage GICv1 with security extensions.
921
922 - Software implementation for 32bit division.
923
924 - Enabled use of generic timer for platforms that do not set
925 ARM_CORTEX_Ax=yes.
926
927 - Support for Armv7-A Virtualization extensions [DDI0406C_C].
928
929 - Support for both Armv7-A platforms that only have 32-bit addressing and
930 Armv7-A platforms that support large page addressing.
931
932 - Included support for following Armv7 CPUs: Cortex-A12, Cortex-A17,
933 Cortex-A7, Cortex-A5, Cortex-A9, Cortex-A15.
934
935 - Added support in QEMU for Armv7-A/Cortex-A15.
936
937- Enhancements to Firmware Update feature:
938
939 - Updated the FWU documentation to describe the additional images needed for
940 Firmware update, and how they are used for both the Juno platform and the
941 Arm FVP platforms.
942
943- Enhancements to Trusted Board Boot feature:
944
945 - Added support to cert_create tool for RSA PKCS1# v1.5 and SHA384, SHA512
946 and SHA256.
947
948 - For Arm platforms added support to use ECDSA keys.
949
950 - Enhanced the mbed TLS wrapper layer to include support for both RSA and
951 ECDSA to enable runtime selection between RSA and ECDSA keys.
952
953- Added support for secure interrupt handling in AArch32 sp_min, hardcoded to
954 only handle FIQs.
955
956- Added support to allow a platform to load images from multiple boot sources,
957 for example from a second flash drive.
958
959- Added a logging framework that allows platforms to reduce the logging level
960 at runtime and additionally the prefix string can be defined by the platform.
961
962- Further improvements to register initialisation:
963
964 - Control register PMCR_EL0 / PMCR is set to prohibit cycle counting in the
965 secure world. This register is added to the list of registers that are
966 saved and restored during world switch.
967
968 - When EL3 is running in AArch32 execution state, the Non-secure version of
969 SCTLR is explicitly initialised during the warmboot flow rather than
970 relying on the hardware to set the correct reset values.
971
972- Enhanced support for Arm platforms:
973
974 - Introduced driver for Shared-Data-Structure (SDS) framework which is used
975 for communication between SCP and the AP CPU, replacing Boot-Over_MHU
976 (BOM) protocol.
977
978 The Juno platform is migrated to use SDS with the SCMI support added in
979 v1.3 and is set as default.
980
981 The driver can be found in the plat/arm/css/drivers folder.
982
983 - Improved memory usage by only mapping TSP memory region when the TSPD has
984 been included in the build. This reduces the memory footprint and avoids
985 unnecessary memory being mapped.
986
987 - Updated support for multi-threading CPUs for FVP platforms - always check
988 the MT field in MPDIR and access the bit fields accordingly.
989
990 - Support building for platforms that model DynamIQ configuration by
991 implementing all CPUs in a single cluster.
992
993 - Improved nor flash driver, for instance clearing status registers before
994 sending commands. Driver can be found plat/arm/board/common folder.
995
996- Enhancements to QEMU platform:
997
998 - Added support for TBB.
999
1000 - Added support for using OP-TEE pageable image.
1001
1002 - Added support for LOAD_IMAGE_V2.
1003
1004 - Migrated to use translation table library v2 by default.
1005
1006 - Added support for SEPARATE_CODE_AND_RODATA.
1007
1008- Applied workarounds CVE-2017-5715 on Arm Cortex-A57, -A72, -A73 and -A75, and
1009 for Armv7-A CPUs Cortex-A9, -A15 and -A17.
1010
1011- Applied errata workaround for Arm Cortex-A57: 859972.
1012
1013- Applied errata workaround for Arm Cortex-A72: 859971.
1014
1015- Added support for Poplar 96Board platform.
1016
1017- Added support for Raspberry Pi 3 platform.
1018
1019- Added Call Frame Information (CFI) assembler directives to the vector entries
1020 which enables debuggers to display the backtrace of functions that triggered
1021 a synchronous abort.
1022
1023- Added ability to build dtb.
1024
1025- Added support for pre-tool (cert_create and fiptool) image processing
1026 enabling compression of the image files before processing by cert_create and
1027 fiptool.
1028
1029 This can reduce fip size and may also speed up loading of images. The image
1030 verification will also get faster because certificates are generated based on
1031 compressed images.
1032
1033 Imported zlib 1.2.11 to implement gunzip() for data compression.
1034
1035- Enhancements to fiptool:
1036
1037 - Enabled the fiptool to be built using Visual Studio.
1038
1039 - Added padding bytes at the end of the last image in the fip to be
1040 facilitate transfer by DMA.
1041
1042Issues resolved since last release
1043----------------------------------
1044
1045- TF-A can be built with optimisations disabled (-O0).
1046
1047- Memory layout updated to enable Trusted Board Boot on Juno platform when
1048 running TF-A in AArch32 execution mode (resolving `tf-issue#501`_).
1049
1050Known Issues
1051------------
1052
Joanna Farleyd83bf0b2018-09-11 15:51:31 +01001053- DTB creation not supported when building on a Windows host. This step in the
1054 build process is skipped when running on a Windows host.
David Cunado230326f2018-03-14 17:57:31 +00001055
Dan Handley4def07d2018-03-01 18:44:00 +00001056Trusted Firmware-A - version 1.4
1057================================
David Cunadoaee3ef42017-07-03 18:59:07 +01001058
1059New features
1060------------
1061
1062- Enabled support for platforms with hardware assisted coherency.
1063
1064 A new build option HW_ASSISTED_COHERENCY allows platforms to take advantage
1065 of the following optimisations:
1066
1067 - Skip performing cache maintenance during power-up and power-down.
1068
1069 - Use spin-locks instead of bakery locks.
1070
1071 - Enable data caches early on warm-booted CPUs.
1072
1073- Added support for Cortex-A75 and Cortex-A55 processors.
1074
Dan Handley4def07d2018-03-01 18:44:00 +00001075 Both Cortex-A75 and Cortex-A55 processors use the Arm DynamIQ Shared Unit
David Cunadoaee3ef42017-07-03 18:59:07 +01001076 (DSU). The power-down and power-up sequences are therefore mostly managed in
1077 hardware, reducing complexity of the software operations.
1078
Dan Handley4def07d2018-03-01 18:44:00 +00001079- Introduced Arm GIC-600 driver.
David Cunadoaee3ef42017-07-03 18:59:07 +01001080
Dan Handley4def07d2018-03-01 18:44:00 +00001081 Arm GIC-600 IP complies with Arm GICv3 architecture. For FVP platforms, the
David Cunadoaee3ef42017-07-03 18:59:07 +01001082 GIC-600 driver is chosen when FVP_USE_GIC_DRIVER is set to FVP_GIC600.
1083
1084- Updated GICv3 support:
1085
1086 - Introduced power management APIs for GICv3 Redistributor. These APIs
1087 allow platforms to power down the Redistributor during CPU power on/off.
1088 Requires the GICv3 implementations to have power management operations.
1089
1090 Implemented the power management APIs for FVP.
1091
1092 - GIC driver data is flushed by the primary CPU so that secondary CPU do
1093 not read stale GIC data.
1094
Dan Handley4def07d2018-03-01 18:44:00 +00001095- Added support for Arm System Control and Management Interface v1.0 (SCMI).
David Cunadoaee3ef42017-07-03 18:59:07 +01001096
1097 The SCMI driver implements the power domain management and system power
Dan Handley4def07d2018-03-01 18:44:00 +00001098 management protocol of the SCMI specification (Arm DEN 0056ASCMI) for
David Cunadoaee3ef42017-07-03 18:59:07 +01001099 communicating with any compliant power controller.
1100
1101 Support is added for the Juno platform. The driver can be found in the
1102 plat/arm/css/drivers folder.
1103
Dan Handley4def07d2018-03-01 18:44:00 +00001104- Added support to enable pre-integration of TBB with the Arm TrustZone
David Cunadoaee3ef42017-07-03 18:59:07 +01001105 CryptoCell product, to take advantage of its hardware Root of Trust and
1106 crypto acceleration services.
1107
1108- Enabled Statistical Profiling Extensions for lower ELs.
1109
1110 The firmware support is limited to the use of SPE in the Non-secure state
1111 and accesses to the SPE specific registers from S-EL1 will trap to EL3.
1112
1113 The SPE are architecturally specified for AArch64 only.
1114
1115- Code hygiene changes aligned with MISRA guidelines:
1116
1117 - Fixed signed / unsigned comparison warnings in the translation table
1118 library.
1119
1120 - Added U(_x) macro and together with the existing ULL(_x) macro fixed
1121 some of the signed-ness defects flagged by the MISRA scanner.
1122
1123- Enhancements to Firmware Update feature:
1124
1125 - The FWU logic now checks for overlapping images to prevent execution of
Paul Beesley8aabea32019-01-11 18:26:51 +00001126 unauthenticated arbitrary code.
David Cunadoaee3ef42017-07-03 18:59:07 +01001127
1128 - Introduced new FWU_SMC_IMAGE_RESET SMC that changes the image loading
1129 state machine to go from COPYING, COPIED or AUTHENTICATED states to
1130 RESET state. Previously, this was only possible when the authentication
1131 of an image failed or when the execution of the image finished.
1132
1133 - Fixed integer overflow which addressed TFV-1: Malformed Firmware Update
1134 SMC can result in copy of unexpectedly large data into secure memory.
1135
Dan Handley4def07d2018-03-01 18:44:00 +00001136- Introduced support for Arm Compiler 6 and LLVM (clang).
David Cunadoaee3ef42017-07-03 18:59:07 +01001137
Dan Handley4def07d2018-03-01 18:44:00 +00001138 TF-A can now also be built with the Arm Compiler 6 or the clang compilers.
David Cunadoaee3ef42017-07-03 18:59:07 +01001139 The assembler and linker must be provided by the GNU toolchain.
1140
Dan Handley4def07d2018-03-01 18:44:00 +00001141 Tested with Arm CC 6.7 and clang 3.9.x and 4.0.x.
David Cunadoaee3ef42017-07-03 18:59:07 +01001142
1143- Memory footprint improvements:
1144
1145 - Introduced `tf_snprintf`, a reduced version of `snprintf` which has
1146 support for a limited set of formats.
1147
1148 The mbedtls driver is updated to optionally use `tf_snprintf` instead of
1149 `snprintf`.
1150
1151 - The `assert()` is updated to no longer print the function name, and
1152 additional logging options are supported via an optional platform define
1153 `PLAT_LOG_LEVEL_ASSERT`, which controls how verbose the assert output is.
1154
Dan Handley4def07d2018-03-01 18:44:00 +00001155- Enhancements to TF-A support when running in AArch32 execution state:
David Cunadoaee3ef42017-07-03 18:59:07 +01001156
1157 - Support booting SP_MIN and BL33 in AArch32 execution mode on Juno. Due to
1158 hardware limitations, BL1 and BL2 boot in AArch64 state and there is
1159 additional trampoline code to warm reset into SP_MIN in AArch32 execution
1160 state.
1161
Dan Handley4def07d2018-03-01 18:44:00 +00001162 - Added support for Arm Cortex-A53/57/72 MPCore processors including the
David Cunadoaee3ef42017-07-03 18:59:07 +01001163 errata workarounds that are already implemented for AArch64 execution
1164 state.
1165
1166 - For FVP platforms, added AArch32 Trusted Board Boot support, including the
1167 Firmware Update feature.
1168
Dan Handley4def07d2018-03-01 18:44:00 +00001169- Introduced Arm SiP service for use by Arm standard platforms.
David Cunadoaee3ef42017-07-03 18:59:07 +01001170
Dan Handley4def07d2018-03-01 18:44:00 +00001171 - Added new Arm SiP Service SMCs to enable the Non-secure world to read PMF
David Cunadoaee3ef42017-07-03 18:59:07 +01001172 timestamps.
1173
Dan Handley4def07d2018-03-01 18:44:00 +00001174 Added PMF instrumentation points in TF-A in order to quantify the
David Cunadoaee3ef42017-07-03 18:59:07 +01001175 overall time spent in the PSCI software implementation.
1176
Dan Handley4def07d2018-03-01 18:44:00 +00001177 - Added new Arm SiP service SMC to switch execution state.
David Cunadoaee3ef42017-07-03 18:59:07 +01001178
1179 This allows the lower exception level to change its execution state from
1180 AArch64 to AArch32, or vice verse, via a request to EL3.
1181
1182- Migrated to use SPDX[0] license identifiers to make software license
1183 auditing simpler.
1184
1185 *NOTE:* Files that have been imported by FreeBSD have not been modified.
1186
1187 [0]: https://spdx.org/
1188
1189- Enhancements to the translation table library:
1190
1191 - Added version 2 of translation table library that allows different
1192 translation tables to be modified by using different 'contexts'. Version 1
David Cunado230326f2018-03-14 17:57:31 +00001193 of the translation table library only allows the current EL's translation
David Cunadoaee3ef42017-07-03 18:59:07 +01001194 tables to be modified.
1195
1196 Version 2 of the translation table also added support for dynamic
1197 regions; regions that can be added and removed dynamically whilst the
1198 MMU is enabled. Static regions can only be added or removed before the
1199 MMU is enabled.
1200
1201 The dynamic mapping functionality is enabled or disabled when compiling
1202 by setting the build option PLAT_XLAT_TABLES_DYNAMIC to 1 or 0. This can
1203 be done per-image.
1204
1205 - Added support for translation regimes with two virtual address spaces
1206 such as the one shared by EL1 and EL0.
1207
1208 The library does not support initializing translation tables for EL0
1209 software.
1210
1211 - Added support to mark the translation tables as non-cacheable using an
1212 additional build option `XLAT_TABLE_NC`.
1213
1214- Added support for GCC stack protection. A new build option
1215 ENABLE_STACK_PROTECTOR was introduced that enables compilation of all BL
1216 images with one of the GCC -fstack-protector-* options.
1217
1218 A new platform function plat_get_stack_protector_canary() was introduced
1219 that returns a value used to initialize the canary for stack corruption
1220 detection. For increased effectiveness of protection platforms must provide
1221 an implementation that returns a random value.
1222
Dan Handley4def07d2018-03-01 18:44:00 +00001223- Enhanced support for Arm platforms:
David Cunadoaee3ef42017-07-03 18:59:07 +01001224
1225 - Added support for multi-threading CPUs, indicated by `MT` field in MPDIR.
1226 A new build flag `ARM_PLAT_MT` is added, and when enabled, the functions
1227 accessing MPIDR assume that the `MT` bit is set for the platform and
1228 access the bit fields accordingly.
1229
1230 Also, a new API `plat_arm_get_cpu_pe_count` is added when `ARM_PLAT_MT` is
1231 enabled, returning the Processing Element count within the physical CPU
1232 corresponding to `mpidr`.
1233
Dan Handley4def07d2018-03-01 18:44:00 +00001234 - The Arm platforms migrated to use version 2 of the translation tables.
David Cunadoaee3ef42017-07-03 18:59:07 +01001235
Dan Handley4def07d2018-03-01 18:44:00 +00001236 - Introduced a new Arm platform layer API `plat_arm_psci_override_pm_ops`
1237 which allows Arm platforms to modify `plat_arm_psci_pm_ops` and therefore
David Cunadoaee3ef42017-07-03 18:59:07 +01001238 dynamically define PSCI capability.
1239
Dan Handley4def07d2018-03-01 18:44:00 +00001240 - The Arm platforms migrated to use IMAGE_LOAD_V2 by default.
David Cunadoaee3ef42017-07-03 18:59:07 +01001241
1242- Enhanced reporting of errata workaround status with the following policy:
1243
1244 - If an errata workaround is enabled:
1245
1246 - If it applies (i.e. the CPU is affected by the errata), an INFO message
1247 is printed, confirming that the errata workaround has been applied.
1248
1249 - If it does not apply, a VERBOSE message is printed, confirming that the
1250 errata workaround has been skipped.
1251
1252 - If an errata workaround is not enabled, but would have applied had it
1253 been, a WARN message is printed, alerting that errata workaround is
1254 missing.
1255
1256- Added build options ARM_ARCH_MAJOR and ARM_ARM_MINOR to choose the
Dan Handley4def07d2018-03-01 18:44:00 +00001257 architecture version to target TF-A.
David Cunadoaee3ef42017-07-03 18:59:07 +01001258
1259- Updated the spin lock implementation to use the more efficient CAS (Compare
1260 And Swap) instruction when available. This instruction was introduced in
Dan Handley4def07d2018-03-01 18:44:00 +00001261 Armv8.1-A.
David Cunadoaee3ef42017-07-03 18:59:07 +01001262
Dan Handley4def07d2018-03-01 18:44:00 +00001263- Applied errata workaround for Arm Cortex-A53: 855873.
David Cunadoaee3ef42017-07-03 18:59:07 +01001264
Dan Handley4def07d2018-03-01 18:44:00 +00001265- Applied errata workaround for Arm-Cortex-A57: 813419.
David Cunadoaee3ef42017-07-03 18:59:07 +01001266
1267- Enabled all A53 and A57 errata workarounds for Juno, both in AArch64 and
1268 AArch32 execution states.
1269
1270- Added support for Socionext UniPhier SoC platform.
1271
1272- Added support for Hikey960 and Hikey platforms.
1273
1274- Added support for Rockchip RK3328 platform.
1275
1276- Added support for NVidia Tegra T186 platform.
1277
1278- Added support for Designware emmc driver.
1279
1280- Imported libfdt v1.4.2 that addresses buffer overflow in fdt_offset_ptr().
1281
1282- Enhanced the CPU operations framework to allow power handlers to be
1283 registered on per-level basis. This enables support for future CPUs that
1284 have multiple threads which might need powering down individually.
1285
1286- Updated register initialisation to prevent unexpected behaviour:
1287
1288 - Debug registers MDCR-EL3/SDCR and MDCR_EL2/HDCR are initialised to avoid
1289 unexpected traps into the higher exception levels and disable secure
1290 self-hosted debug. Additionally, secure privileged external debug on
1291 Juno is disabled by programming the appropriate Juno SoC registers.
1292
1293 - EL2 and EL3 configurable controls are initialised to avoid unexpected
1294 traps in the higher exception levels.
1295
1296 - Essential control registers are fully initialised on EL3 start-up, when
1297 initialising the non-secure and secure context structures and when
Paul Beesley8aabea32019-01-11 18:26:51 +00001298 preparing to leave EL3 for a lower EL. This gives better alignment with
Dan Handley4def07d2018-03-01 18:44:00 +00001299 the Arm ARM which states that software must initialise RES0 and RES1
David Cunadoaee3ef42017-07-03 18:59:07 +01001300 fields with 0 / 1.
1301
1302- Enhanced PSCI support:
1303
1304 - Introduced new platform interfaces that decouple PSCI stat residency
1305 calculation from PMF, enabling platforms to use alternative methods of
1306 capturing timestamps.
1307
1308 - PSCI stat accounting performed for retention/standby states when
1309 requested at multiple power levels.
1310
1311- Simplified fiptool to have a single linked list of image descriptors.
1312
1313- For the TSP, resolved corruption of pre-empted secure context by aborting any
1314 pre-empted SMC during PSCI power management requests.
1315
1316Issues resolved since last release
David Cunado1a3a1672017-07-19 12:31:11 +01001317----------------------------------
David Cunadoaee3ef42017-07-03 18:59:07 +01001318
Dan Handley4def07d2018-03-01 18:44:00 +00001319- TF-A can be built with the latest mbed TLS version (v2.4.2). The earlier
1320 version 2.3.0 cannot be used due to build warnings that the TF-A build
David Cunadoaee3ef42017-07-03 18:59:07 +01001321 system interprets as errors.
1322
1323- TBBR, including the Firmware Update feature is now supported on FVP
Dan Handley4def07d2018-03-01 18:44:00 +00001324 platforms when running TF-A in AArch32 state.
David Cunadoaee3ef42017-07-03 18:59:07 +01001325
1326- The version of the AEMv8 Base FVP used in this release has resolved the issue
1327 of the model executing a reset instead of terminating in response to a
1328 shutdown request using the PSCI SYSTEM_OFF API.
1329
1330Known Issues
David Cunado1a3a1672017-07-19 12:31:11 +01001331------------
David Cunadoaee3ef42017-07-03 18:59:07 +01001332
Dan Handley4def07d2018-03-01 18:44:00 +00001333- Building TF-A with compiler optimisations disabled (-O0) fails.
David Cunadoaee3ef42017-07-03 18:59:07 +01001334
1335- Trusted Board Boot currently does not work on Juno when running Trusted
1336 Firmware in AArch32 execution state due to error when loading the sp_min to
David Cunado230326f2018-03-14 17:57:31 +00001337 memory because of lack of free space available. See `tf-issue#501`_ for more
David Cunadoaee3ef42017-07-03 18:59:07 +01001338 details.
1339
1340- The errata workaround for A53 errata 843419 is only available from binutils
1341 2.26 and is not present in GCC4.9. If this errata is applicable to the
1342 platform, please use GCC compiler version of at least 5.0. See `PR#1002`_ for
1343 more details.
1344
Dan Handley4def07d2018-03-01 18:44:00 +00001345Trusted Firmware-A - version 1.3
1346================================
Douglas Raillard6f625742017-06-28 15:23:03 +01001347
Douglas Raillard668c5022017-06-28 16:14:55 +01001348
Douglas Raillard6f625742017-06-28 15:23:03 +01001349New features
1350------------
1351
Dan Handley4def07d2018-03-01 18:44:00 +00001352- Added support for running TF-A in AArch32 execution state.
Douglas Raillard6f625742017-06-28 15:23:03 +01001353
1354 The PSCI library has been refactored to allow integration with **EL3 Runtime
1355 Software**. This is software that is executing at the highest secure
1356 privilege which is EL3 in AArch64 or Secure SVC/Monitor mode in AArch32. See
1357 `PSCI Integration Guide`_.
1358
1359 Included is a minimal AArch32 Secure Payload, **SP-MIN**, that illustrates
1360 the usage and integration of the PSCI library with EL3 Runtime Software
1361 running in AArch32 state.
1362
1363 Booting to the BL1/BL2 images as well as booting straight to the Secure
1364 Payload is supported.
1365
Dan Handley4def07d2018-03-01 18:44:00 +00001366- Improvements to the initialization framework for the PSCI service and Arm
Douglas Raillard6f625742017-06-28 15:23:03 +01001367 Standard Services in general.
1368
Dan Handley4def07d2018-03-01 18:44:00 +00001369 The PSCI service is now initialized as part of Arm Standard Service
1370 initialization. This consolidates the initializations of any Arm Standard
Douglas Raillard6f625742017-06-28 15:23:03 +01001371 Service that may be added in the future.
1372
1373 A new function ``get_arm_std_svc_args()`` is introduced to get arguments
1374 corresponding to each standard service and must be implemented by the EL3
1375 Runtime Software.
1376
1377 For PSCI, a new versioned structure ``psci_lib_args_t`` is introduced to
1378 initialize the PSCI Library. **Note** this is a compatibility break due to
1379 the change in the prototype of ``psci_setup()``.
1380
1381- To support AArch32 builds of BL1 and BL2, implemented a new, alternative
1382 firmware image loading mechanism that adds flexibility.
1383
1384 The current mechanism has a hard-coded set of images and execution order
1385 (BL31, BL32, etc). The new mechanism is data-driven by a list of image
1386 descriptors provided by the platform code.
1387
Dan Handley4def07d2018-03-01 18:44:00 +00001388 Arm platforms have been updated to support the new loading mechanism.
Douglas Raillard6f625742017-06-28 15:23:03 +01001389
1390 The new mechanism is enabled by a build flag (``LOAD_IMAGE_V2``) which is
1391 currently off by default for the AArch64 build.
1392
1393 **Note** ``TRUSTED_BOARD_BOOT`` is currently not supported when
1394 ``LOAD_IMAGE_V2`` is enabled.
1395
Dan Handley4def07d2018-03-01 18:44:00 +00001396- Updated requirements for making contributions to TF-A.
Douglas Raillard6f625742017-06-28 15:23:03 +01001397
1398 Commits now must have a 'Signed-off-by:' field to certify that the
1399 contribution has been made under the terms of the
1400 `Developer Certificate of Origin`_.
1401
1402 A signed CLA is no longer required.
1403
1404 The `Contribution Guide`_ has been updated to reflect this change.
1405
1406- Introduced Performance Measurement Framework (PMF) which provides support
1407 for capturing, storing, dumping and retrieving time-stamps to measure the
1408 execution time of critical paths in the firmware. This relies on defining
1409 fixed sample points at key places in the code.
1410
1411- To support the QEMU platform port, imported libfdt v1.4.1 from
Paul Beesleydd4e9a72019-02-08 16:43:05 +00001412 https://git.kernel.org/pub/scm/utils/dtc/dtc.git
Douglas Raillard6f625742017-06-28 15:23:03 +01001413
1414- Updated PSCI support:
1415
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01001416 - Added support for PSCI NODE_HW_STATE API for Arm platforms.
Douglas Raillard6f625742017-06-28 15:23:03 +01001417
1418 - New optional platform hook, ``pwr_domain_pwr_down_wfi()``, in
1419 ``plat_psci_ops`` to enable platforms to perform platform-specific actions
1420 needed to enter powerdown, including the 'wfi' invocation.
1421
Dan Handley4def07d2018-03-01 18:44:00 +00001422 - PSCI STAT residency and count functions have been added on Arm platforms
Douglas Raillard6f625742017-06-28 15:23:03 +01001423 by using PMF.
1424
1425- Enhancements to the translation table library:
1426
1427 - Limited memory mapping support for region overlaps to only allow regions
1428 to overlap that are identity mapped or have the same virtual to physical
1429 address offset, and overlap completely but must not cover the same area.
1430
1431 This limitation will enable future enhancements without having to
1432 support complex edge cases that may not be necessary.
1433
1434 - The initial translation lookup level is now inferred from the virtual
1435 address space size. Previously, it was hard-coded.
1436
1437 - Added support for mapping Normal, Inner Non-cacheable, Outer
1438 Non-cacheable memory in the translation table library.
1439
1440 This can be useful to map a non-cacheable memory region, such as a DMA
1441 buffer.
1442
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01001443 - Introduced the MT_EXECUTE/MT_EXECUTE_NEVER memory mapping attributes to
Douglas Raillard6f625742017-06-28 15:23:03 +01001444 specify the access permissions for instruction execution of a memory
1445 region.
1446
1447- Enabled support to isolate code and read-only data on separate memory pages,
1448 allowing independent access control to be applied to each.
1449
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01001450- Enabled SCR_EL3.SIF (Secure Instruction Fetch) bit in BL1 and BL31 common
Douglas Raillard6f625742017-06-28 15:23:03 +01001451 architectural setup code, preventing fetching instructions from non-secure
1452 memory when in secure state.
1453
1454- Enhancements to FIP support:
1455
1456 - Replaced ``fip_create`` with ``fiptool`` which provides a more consistent
1457 and intuitive interface as well as additional support to remove an image
1458 from a FIP file.
1459
1460 - Enabled printing the SHA256 digest with info command, allowing quick
1461 verification of an image within a FIP without having to extract the
1462 image and running sha256sum on it.
1463
1464 - Added support for unpacking the contents of an existing FIP file into
1465 the working directory.
1466
1467 - Aligned command line options for specifying images to use same naming
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01001468 convention as specified by TBBR and already used in cert_create tool.
Douglas Raillard6f625742017-06-28 15:23:03 +01001469
1470- Refactored the TZC-400 driver to also support memory controllers that
Dan Handley4def07d2018-03-01 18:44:00 +00001471 integrate TZC functionality, for example Arm CoreLink DMC-500. Also added
Douglas Raillard6f625742017-06-28 15:23:03 +01001472 DMC-500 specific support.
1473
1474- Implemented generic delay timer based on the system generic counter and
1475 migrated all platforms to use it.
1476
Dan Handley4def07d2018-03-01 18:44:00 +00001477- Enhanced support for Arm platforms:
Douglas Raillard6f625742017-06-28 15:23:03 +01001478
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01001479 - Updated image loading support to make SCP images (SCP_BL2 and SCP_BL2U)
Douglas Raillard6f625742017-06-28 15:23:03 +01001480 optional.
1481
1482 - Enhanced topology description support to allow multi-cluster topology
1483 definitions.
1484
1485 - Added interconnect abstraction layer to help platform ports select the
1486 right interconnect driver, CCI or CCN, for the platform.
1487
1488 - Added support to allow loading BL31 in the TZC-secured DRAM instead of
1489 the default secure SRAM.
1490
1491 - Added support to use a System Security Control (SSC) Registers Unit
Dan Handley4def07d2018-03-01 18:44:00 +00001492 enabling TF-A to be compiled to support multiple Arm platforms and
Douglas Raillard6f625742017-06-28 15:23:03 +01001493 then select one at runtime.
1494
1495 - Restricted mapping of Trusted ROM in BL1 to what is actually needed by
1496 BL1 rather than entire Trusted ROM region.
1497
1498 - Flash is now mapped as execute-never by default. This increases security
1499 by restricting the executable region to what is strictly needed.
1500
1501- Applied following erratum workarounds for Cortex-A57: 833471, 826977,
1502 829520, 828024 and 826974.
1503
1504- Added support for Mediatek MT6795 platform.
1505
Dan Handley4def07d2018-03-01 18:44:00 +00001506- Added support for QEMU virtualization Armv8-A target.
Douglas Raillard6f625742017-06-28 15:23:03 +01001507
1508- Added support for Rockchip RK3368 and RK3399 platforms.
1509
1510- Added support for Xilinx Zynq UltraScale+ MPSoC platform.
1511
Dan Handley4def07d2018-03-01 18:44:00 +00001512- Added support for Arm Cortex-A73 MPCore Processor.
Douglas Raillard6f625742017-06-28 15:23:03 +01001513
Dan Handley4def07d2018-03-01 18:44:00 +00001514- Added support for Arm Cortex-A72 processor.
Douglas Raillard6f625742017-06-28 15:23:03 +01001515
Dan Handley4def07d2018-03-01 18:44:00 +00001516- Added support for Arm Cortex-A35 processor.
Douglas Raillard6f625742017-06-28 15:23:03 +01001517
Dan Handley4def07d2018-03-01 18:44:00 +00001518- Added support for Arm Cortex-A32 MPCore Processor.
Douglas Raillard6f625742017-06-28 15:23:03 +01001519
1520- Enabled preloaded BL33 alternative boot flow, in which BL2 does not load
1521 BL33 from non-volatile storage and BL31 hands execution over to a preloaded
1522 BL33. The User Guide has been updated with an example of how to use this
1523 option with a bootwrapped kernel.
1524
Dan Handley4def07d2018-03-01 18:44:00 +00001525- Added support to build TF-A on a Windows-based host machine.
Douglas Raillard6f625742017-06-28 15:23:03 +01001526
1527- Updated Trusted Board Boot prototype implementation:
1528
1529 - Enabled the ability for a production ROM with TBBR enabled to boot test
1530 software before a real ROTPK is deployed (e.g. manufacturing mode).
1531 Added support to use ROTPK in certificate without verifying against the
1532 platform value when ``ROTPK_NOT_DEPLOYED`` bit is set.
1533
1534 - Added support for non-volatile counter authentication to the
1535 Authentication Module to protect against roll-back.
1536
1537- Updated GICv3 support:
1538
1539 - Enabled processor power-down and automatic power-on using GICv3.
1540
1541 - Enabled G1S or G0 interrupts to be configured independently.
1542
1543 - Changed FVP default interrupt driver to be the GICv3-only driver.
Dan Handley4def07d2018-03-01 18:44:00 +00001544 **Note** the default build of TF-A will not be able to boot
Douglas Raillard6f625742017-06-28 15:23:03 +01001545 Linux kernel with GICv2 FDT blob.
1546
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01001547 - Enabled wake-up from CPU_SUSPEND to stand-by by temporarily re-routing
Douglas Raillard6f625742017-06-28 15:23:03 +01001548 interrupts and then restoring after resume.
1549
1550Issues resolved since last release
1551----------------------------------
1552
1553Known issues
1554------------
1555
1556- The version of the AEMv8 Base FVP used in this release resets the model
1557 instead of terminating its execution in response to a shutdown request using
1558 the PSCI ``SYSTEM_OFF`` API. This issue will be fixed in a future version of
1559 the model.
1560
Dan Handley4def07d2018-03-01 18:44:00 +00001561- Building TF-A with compiler optimisations disabled (``-O0``) fails.
Douglas Raillard6f625742017-06-28 15:23:03 +01001562
Dan Handley4def07d2018-03-01 18:44:00 +00001563- TF-A cannot be built with mbed TLS version v2.3.0 due to build warnings
1564 that the TF-A build system interprets as errors.
Douglas Raillard6f625742017-06-28 15:23:03 +01001565
Dan Handley4def07d2018-03-01 18:44:00 +00001566- TBBR is not currently supported when running TF-A in AArch32 state.
Douglas Raillard6f625742017-06-28 15:23:03 +01001567
Dan Handley4def07d2018-03-01 18:44:00 +00001568Trusted Firmware-A - version 1.2
1569================================
Douglas Raillard6f625742017-06-28 15:23:03 +01001570
1571New features
1572------------
1573
Dan Handley4def07d2018-03-01 18:44:00 +00001574- The Trusted Board Boot implementation on Arm platforms now conforms to the
Douglas Raillard6f625742017-06-28 15:23:03 +01001575 mandatory requirements of the TBBR specification.
1576
1577 In particular, the boot process is now guarded by a Trusted Watchdog, which
Dan Handley4def07d2018-03-01 18:44:00 +00001578 will reset the system in case of an authentication or loading error. On Arm
1579 platforms, a secure instance of Arm SP805 is used as the Trusted Watchdog.
Douglas Raillard6f625742017-06-28 15:23:03 +01001580
1581 Also, a firmware update process has been implemented. It enables
1582 authenticated firmware to update firmware images from external interfaces to
1583 SoC Non-Volatile memories. This feature functions even when the current
1584 firmware in the system is corrupt or missing; it therefore may be used as
1585 a recovery mode.
1586
1587- Improvements have been made to the Certificate Generation Tool
1588 (``cert_create``) as follows.
1589
1590 - Added support for the Firmware Update process by extending the Chain
1591 of Trust definition in the tool to include the Firmware Update
1592 certificate and the required extensions.
1593
1594 - Introduced a new API that allows one to specify command line options in
1595 the Chain of Trust description. This makes the declaration of the tool's
1596 arguments more flexible and easier to extend.
1597
1598 - The tool has been reworked to follow a data driven approach, which
1599 makes it easier to maintain and extend.
1600
1601- Extended the FIP tool (``fip_create``) to support the new set of images
1602 involved in the Firmware Update process.
1603
1604- Various memory footprint improvements. In particular:
1605
1606 - The bakery lock structure for coherent memory has been optimised.
1607
1608 - The mbed TLS SHA1 functions are not needed, as SHA256 is used to
1609 generate the certificate signature. Therefore, they have been compiled
1610 out, reducing the memory footprint of BL1 and BL2 by approximately
1611 6 KB.
1612
Dan Handley4def07d2018-03-01 18:44:00 +00001613 - On Arm development platforms, each BL stage now individually defines
Douglas Raillard6f625742017-06-28 15:23:03 +01001614 the number of regions that it needs to map in the MMU.
1615
1616- Added the following new design documents:
1617
1618 - `Authentication framework`_
1619 - `Firmware Update`_
Dan Handley4def07d2018-03-01 18:44:00 +00001620 - `TF-A Reset Design`_
Douglas Raillard6f625742017-06-28 15:23:03 +01001621 - `Power Domain Topology Design`_
1622
1623- Applied the new image terminology to the code base and documentation, as
Dan Handley4def07d2018-03-01 18:44:00 +00001624 described on the `TF-A wiki on GitHub`_.
Douglas Raillard6f625742017-06-28 15:23:03 +01001625
1626- The build system has been reworked to improve readability and facilitate
1627 adding future extensions.
1628
Dan Handley4def07d2018-03-01 18:44:00 +00001629- On Arm standard platforms, BL31 uses the boot console during cold boot
Douglas Raillard6f625742017-06-28 15:23:03 +01001630 but switches to the runtime console for any later logs at runtime. The TSP
1631 uses the runtime console for all output.
1632
Dan Handley4def07d2018-03-01 18:44:00 +00001633- Implemented a basic NOR flash driver for Arm platforms. It programs the
Douglas Raillard6f625742017-06-28 15:23:03 +01001634 device using CFI (Common Flash Interface) standard commands.
1635
Dan Handley4def07d2018-03-01 18:44:00 +00001636- Implemented support for booting EL3 payloads on Arm platforms, which
Douglas Raillard6f625742017-06-28 15:23:03 +01001637 reduces the complexity of developing EL3 baremetal code by doing essential
1638 baremetal initialization.
1639
1640- Provided separate drivers for GICv3 and GICv2. These expect the entire
1641 software stack to use either GICv2 or GICv3; hybrid GIC software systems
Dan Handley4def07d2018-03-01 18:44:00 +00001642 are no longer supported and the legacy Arm GIC driver has been deprecated.
Douglas Raillard6f625742017-06-28 15:23:03 +01001643
Dan Handley4def07d2018-03-01 18:44:00 +00001644- Added support for Juno r1 and r2. A single set of Juno TF-A binaries can run
1645 on Juno r0, r1 and r2 boards. Note that this TF-A version depends on a Linaro
Douglas Raillard6f625742017-06-28 15:23:03 +01001646 release that does *not* contain Juno r2 support.
1647
1648- Added support for MediaTek mt8173 platform.
1649
Dan Handley4def07d2018-03-01 18:44:00 +00001650- Implemented a generic driver for Arm CCN IP.
Douglas Raillard6f625742017-06-28 15:23:03 +01001651
1652- Major rework of the PSCI implementation.
1653
1654 - Added framework to handle composite power states.
1655
1656 - Decoupled the notions of affinity instances (which describes the
1657 hierarchical arrangement of cores) and of power domain topology, instead
1658 of assuming a one-to-one mapping.
1659
1660 - Better alignment with version 1.0 of the PSCI specification.
1661
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01001662- Added support for the SYSTEM_SUSPEND PSCI API on Arm platforms. When invoked
Douglas Raillard6f625742017-06-28 15:23:03 +01001663 on the last running core on a supported platform, this puts the system
1664 into a low power mode with memory retention.
1665
1666- Unified the reset handling code as much as possible across BL stages.
1667 Also introduced some build options to enable optimization of the reset path
1668 on platforms that support it.
1669
1670- Added a simple delay timer API, as well as an SP804 timer driver, which is
1671 enabled on FVP.
1672
1673- Added support for NVidia Tegra T210 and T132 SoCs.
1674
Dan Handley4def07d2018-03-01 18:44:00 +00001675- Reorganised Arm platforms ports to greatly improve code shareability and
Douglas Raillard6f625742017-06-28 15:23:03 +01001676 facilitate the reuse of some of this code by other platforms.
1677
Dan Handley4def07d2018-03-01 18:44:00 +00001678- Added support for Arm Cortex-A72 processor in the CPU specific framework.
Douglas Raillard6f625742017-06-28 15:23:03 +01001679
1680- Provided better error handling. Platform ports can now define their own
1681 error handling, for example to perform platform specific bookkeeping or
1682 post-error actions.
1683
Dan Handley4def07d2018-03-01 18:44:00 +00001684- Implemented a unified driver for Arm Cache Coherent Interconnects used for
1685 both CCI-400 & CCI-500 IPs. Arm platforms ports have been migrated to this
Douglas Raillard6f625742017-06-28 15:23:03 +01001686 common driver. The standalone CCI-400 driver has been deprecated.
1687
1688Issues resolved since last release
1689----------------------------------
1690
1691- The Trusted Board Boot implementation has been redesigned to provide greater
1692 modularity and scalability. See the `Authentication Framework`_ document.
1693 All missing mandatory features are now implemented.
1694
1695- The FVP and Juno ports may now use the hash of the ROTPK stored in the
1696 Trusted Key Storage registers to verify the ROTPK. Alternatively, a
1697 development public key hash embedded in the BL1 and BL2 binaries might be
1698 used instead. The location of the ROTPK is chosen at build-time using the
1699 ``ARM_ROTPK_LOCATION`` build option.
1700
1701- GICv3 is now fully supported and stable.
1702
1703Known issues
1704------------
1705
1706- The version of the AEMv8 Base FVP used in this release resets the model
1707 instead of terminating its execution in response to a shutdown request using
1708 the PSCI ``SYSTEM_OFF`` API. This issue will be fixed in a future version of
1709 the model.
1710
1711- While this version has low on-chip RAM requirements, there are further
1712 RAM usage enhancements that could be made.
1713
1714- The upstream documentation could be improved for structural consistency,
1715 clarity and completeness. In particular, the design documentation is
1716 incomplete for PSCI, the TSP(D) and the Juno platform.
1717
Dan Handley4def07d2018-03-01 18:44:00 +00001718- Building TF-A with compiler optimisations disabled (``-O0``) fails.
Douglas Raillard6f625742017-06-28 15:23:03 +01001719
Dan Handley4def07d2018-03-01 18:44:00 +00001720Trusted Firmware-A - version 1.1
1721================================
Douglas Raillard6f625742017-06-28 15:23:03 +01001722
1723New features
1724------------
1725
1726- A prototype implementation of Trusted Board Boot has been added. Boot
1727 loader images are verified by BL1 and BL2 during the cold boot path. BL1 and
1728 BL2 use the PolarSSL SSL library to verify certificates and images. The
1729 OpenSSL library is used to create the X.509 certificates. Support has been
1730 added to ``fip_create`` tool to package the certificates in a FIP.
1731
1732- Support for calling CPU and platform specific reset handlers upon entry into
1733 BL3-1 during the cold and warm boot paths has been added. This happens after
1734 another Boot ROM ``reset_handler()`` has already run. This enables a developer
1735 to perform additional actions or undo actions already performed during the
1736 first call of the reset handlers e.g. apply additional errata workarounds.
1737
1738- Support has been added to demonstrate routing of IRQs to EL3 instead of
1739 S-EL1 when execution is in secure world.
1740
1741- The PSCI implementation now conforms to version 1.0 of the PSCI
1742 specification. All the mandatory APIs and selected optional APIs are
1743 supported. In particular, support for the ``PSCI_FEATURES`` API has been
1744 added. A capability variable is constructed during initialization by
1745 examining the ``plat_pm_ops`` and ``spd_pm_ops`` exported by the platform and
1746 the Secure Payload Dispatcher. This is used by the PSCI FEATURES function
1747 to determine which PSCI APIs are supported by the platform.
1748
1749- Improvements have been made to the PSCI code as follows.
1750
1751 - The code has been refactored to remove redundant parameters from
1752 internal functions.
1753
1754 - Changes have been made to the code for PSCI ``CPU_SUSPEND``, ``CPU_ON`` and
1755 ``CPU_OFF`` calls to facilitate an early return to the caller in case a
1756 failure condition is detected. For example, a PSCI ``CPU_SUSPEND`` call
1757 returns ``SUCCESS`` to the caller if a pending interrupt is detected early
1758 in the code path.
1759
1760 - Optional platform APIs have been added to validate the ``power_state`` and
1761 ``entrypoint`` parameters early in PSCI ``CPU_ON`` and ``CPU_SUSPEND`` code
1762 paths.
1763
1764 - PSCI migrate APIs have been reworked to invoke the SPD hook to determine
1765 the type of Trusted OS and the CPU it is resident on (if
1766 applicable). Also, during a PSCI ``MIGRATE`` call, the SPD hook to migrate
1767 the Trusted OS is invoked.
1768
Dan Handley4def07d2018-03-01 18:44:00 +00001769- It is now possible to build TF-A without marking at least an extra page of
1770 memory as coherent. The build flag ``USE_COHERENT_MEM`` can be used to
1771 choose between the two implementations. This has been made possible through
1772 these changes.
Douglas Raillard6f625742017-06-28 15:23:03 +01001773
1774 - An implementation of Bakery locks, where the locks are not allocated in
1775 coherent memory has been added.
1776
1777 - Memory which was previously marked as coherent is now kept coherent
1778 through the use of software cache maintenance operations.
1779
1780 Approximately, 4K worth of memory is saved for each boot loader stage when
1781 ``USE_COHERENT_MEM=0``. Enabling this option increases the latencies
1782 associated with acquire and release of locks. It also requires changes to
1783 the platform ports.
1784
1785- It is now possible to specify the name of the FIP at build time by defining
1786 the ``FIP_NAME`` variable.
1787
Paul Beesley8aabea32019-01-11 18:26:51 +00001788- Issues with dependencies on the 'fiptool' makefile target have been
Douglas Raillard6f625742017-06-28 15:23:03 +01001789 rectified. The ``fip_create`` tool is now rebuilt whenever its source files
1790 change.
1791
1792- The BL3-1 runtime console is now also used as the crash console. The crash
1793 console is changed to SoC UART0 (UART2) from the previous FPGA UART0 (UART0)
1794 on Juno. In FVP, it is changed from UART0 to UART1.
1795
1796- CPU errata workarounds are applied only when the revision and part number
1797 match. This behaviour has been made consistent across the debug and release
1798 builds. The debug build additionally prints a warning if a mismatch is
1799 detected.
1800
1801- It is now possible to issue cache maintenance operations by set/way for a
1802 particular level of data cache. Levels 1-3 are currently supported.
1803
1804- The following improvements have been made to the FVP port.
1805
1806 - The build option ``FVP_SHARED_DATA_LOCATION`` which allowed relocation of
1807 shared data into the Trusted DRAM has been deprecated. Shared data is
1808 now always located at the base of Trusted SRAM.
1809
1810 - BL2 Translation tables have been updated to map only the region of
1811 DRAM which is accessible to normal world. This is the region of the 2GB
1812 DDR-DRAM memory at 0x80000000 excluding the top 16MB. The top 16MB is
1813 accessible to only the secure world.
1814
1815 - BL3-2 can now reside in the top 16MB of DRAM which is accessible only to
1816 the secure world. This can be done by setting the build flag
1817 ``FVP_TSP_RAM_LOCATION`` to the value ``dram``.
1818
Paul Beesley8aabea32019-01-11 18:26:51 +00001819- Separate translation tables are created for each boot loader image. The
Douglas Raillard6f625742017-06-28 15:23:03 +01001820 ``IMAGE_BLx`` build options are used to do this. This allows each stage to
1821 create mappings only for areas in the memory map that it needs.
1822
1823- A Secure Payload Dispatcher (OPTEED) for the OP-TEE Trusted OS has been
Dan Handley4def07d2018-03-01 18:44:00 +00001824 added. Details of using it with TF-A can be found in `OP-TEE Dispatcher`_
Douglas Raillard6f625742017-06-28 15:23:03 +01001825
1826Issues resolved since last release
1827----------------------------------
1828
1829- The Juno port has been aligned with the FVP port as follows.
1830
1831 - Support for reclaiming all BL1 RW memory and BL2 memory by overlaying
1832 the BL3-1/BL3-2 NOBITS sections on top of them has been added to the
1833 Juno port.
1834
1835 - The top 16MB of the 2GB DDR-DRAM memory at 0x80000000 is configured
1836 using the TZC-400 controller to be accessible only to the secure world.
1837
Dan Handley4def07d2018-03-01 18:44:00 +00001838 - The Arm GIC driver is used to configure the GIC-400 instead of using a
Douglas Raillard6f625742017-06-28 15:23:03 +01001839 GIC driver private to the Juno port.
1840
1841 - PSCI ``CPU_SUSPEND`` calls that target a standby state are now supported.
1842
1843 - The TZC-400 driver is used to configure the controller instead of direct
1844 accesses to the registers.
1845
1846- The Linux kernel version referred to in the user guide has DVFS and HMP
1847 support enabled.
1848
1849- DS-5 v5.19 did not detect Version 5.8 of the Cortex-A57-A53 Base FVPs in
1850 CADI server mode. This issue is not seen with DS-5 v5.20 and Version 6.2 of
1851 the Cortex-A57-A53 Base FVPs.
1852
1853Known issues
1854------------
1855
1856- The Trusted Board Boot implementation is a prototype. There are issues with
1857 the modularity and scalability of the design. Support for a Trusted
1858 Watchdog, firmware update mechanism, recovery images and Trusted debug is
1859 absent. These issues will be addressed in future releases.
1860
1861- The FVP and Juno ports do not use the hash of the ROTPK stored in the
1862 Trusted Key Storage registers to verify the ROTPK in the
1863 ``plat_match_rotpk()`` function. This prevents the correct establishment of
1864 the Chain of Trust at the first step in the Trusted Board Boot process.
1865
1866- The version of the AEMv8 Base FVP used in this release resets the model
1867 instead of terminating its execution in response to a shutdown request using
1868 the PSCI ``SYSTEM_OFF`` API. This issue will be fixed in a future version of
1869 the model.
1870
1871- GICv3 support is experimental. There are known issues with GICv3
Dan Handley4def07d2018-03-01 18:44:00 +00001872 initialization in the TF-A.
Douglas Raillard6f625742017-06-28 15:23:03 +01001873
1874- While this version greatly reduces the on-chip RAM requirements, there are
1875 further RAM usage enhancements that could be made.
1876
1877- The firmware design documentation for the Test Secure-EL1 Payload (TSP) and
1878 its dispatcher (TSPD) is incomplete. Similarly for the PSCI section.
1879
1880- The Juno-specific firmware design documentation is incomplete.
1881
Dan Handley4def07d2018-03-01 18:44:00 +00001882Trusted Firmware-A - version 1.0
1883================================
Douglas Raillard6f625742017-06-28 15:23:03 +01001884
1885New features
1886------------
1887
1888- It is now possible to map higher physical addresses using non-flat virtual
1889 to physical address mappings in the MMU setup.
1890
1891- Wider use is now made of the per-CPU data cache in BL3-1 to store:
1892
1893 - Pointers to the non-secure and secure security state contexts.
1894
1895 - A pointer to the CPU-specific operations.
1896
1897 - A pointer to PSCI specific information (for example the current power
1898 state).
1899
1900 - A crash reporting buffer.
1901
1902- The following RAM usage improvements result in a BL3-1 RAM usage reduction
1903 from 96KB to 56KB (for FVP with TSPD), and a total RAM usage reduction
1904 across all images from 208KB to 88KB, compared to the previous release.
1905
1906 - Removed the separate ``early_exception`` vectors from BL3-1 (2KB code size
1907 saving).
1908
1909 - Removed NSRAM from the FVP memory map, allowing the removal of one
1910 (4KB) translation table.
1911
1912 - Eliminated the internal ``psci_suspend_context`` array, saving 2KB.
1913
1914 - Correctly dimensioned the PSCI ``aff_map_node`` array, saving 1.5KB in the
1915 FVP port.
1916
1917 - Removed calling CPU mpidr from the bakery lock API, saving 160 bytes.
1918
1919 - Removed current CPU mpidr from PSCI common code, saving 160 bytes.
1920
1921 - Inlined the mmio accessor functions, saving 360 bytes.
1922
1923 - Fully reclaimed all BL1 RW memory and BL2 memory on the FVP port by
1924 overlaying the BL3-1/BL3-2 NOBITS sections on top of these at runtime.
1925
1926 - Made storing the FP register context optional, saving 0.5KB per context
1927 (8KB on the FVP port, with TSPD enabled and running on 8 CPUs).
1928
1929 - Implemented a leaner ``tf_printf()`` function, allowing the stack to be
1930 greatly reduced.
1931
1932 - Removed coherent stacks from the codebase. Stacks allocated in normal
1933 memory are now used before and after the MMU is enabled. This saves 768
1934 bytes per CPU in BL3-1.
1935
1936 - Reworked the crash reporting in BL3-1 to use less stack.
1937
1938 - Optimized the EL3 register state stored in the ``cpu_context`` structure
1939 so that registers that do not change during normal execution are
1940 re-initialized each time during cold/warm boot, rather than restored
1941 from memory. This saves about 1.2KB.
1942
1943 - As a result of some of the above, reduced the runtime stack size in all
1944 BL images. For BL3-1, this saves 1KB per CPU.
1945
1946- PSCI SMC handler improvements to correctly handle calls from secure states
1947 and from AArch32.
1948
1949- CPU contexts are now initialized from the ``entry_point_info``. BL3-1 fully
1950 determines the exception level to use for the non-trusted firmware (BL3-3)
1951 based on the SPSR value provided by the BL2 platform code (or otherwise
1952 provided to BL3-1). This allows platform code to directly run non-trusted
1953 firmware payloads at either EL2 or EL1 without requiring an EL2 stub or OS
1954 loader.
1955
1956- Code refactoring improvements:
1957
1958 - Refactored ``fvp_config`` into a common platform header.
1959
1960 - Refactored the fvp gic code to be a generic driver that no longer has an
1961 explicit dependency on platform code.
1962
1963 - Refactored the CCI-400 driver to not have dependency on platform code.
1964
1965 - Simplified the IO driver so it's no longer necessary to call ``io_init()``
1966 and moved all the IO storage framework code to one place.
1967
1968 - Simplified the interface the the TZC-400 driver.
1969
1970 - Clarified the platform porting interface to the TSP.
1971
1972 - Reworked the TSPD setup code to support the alternate BL3-2
Paul Beesley8aabea32019-01-11 18:26:51 +00001973 initialization flow where BL3-1 generic code hands control to BL3-2,
Douglas Raillard6f625742017-06-28 15:23:03 +01001974 rather than expecting the TSPD to hand control directly to BL3-2.
1975
1976 - Considerable rework to PSCI generic code to support CPU specific
1977 operations.
1978
1979- Improved console log output, by:
1980
1981 - Adding the concept of debug log levels.
1982
1983 - Rationalizing the existing debug messages and adding new ones.
1984
1985 - Printing out the version of each BL stage at runtime.
1986
1987 - Adding support for printing console output from assembler code,
1988 including when a crash occurs before the C runtime is initialized.
1989
1990- Moved up to the latest versions of the FVPs, toolchain, EDK2, kernel, Linaro
1991 file system and DS-5.
1992
1993- On the FVP port, made the use of the Trusted DRAM region optional at build
1994 time (off by default). Normal platforms will not have such a "ready-to-use"
1995 DRAM area so it is not a good example to use it.
1996
1997- Added support for PSCI ``SYSTEM_OFF`` and ``SYSTEM_RESET`` APIs.
1998
1999- Added support for CPU specific reset sequences, power down sequences and
2000 register dumping during crash reporting. The CPU specific reset sequences
2001 include support for errata workarounds.
2002
2003- Merged the Juno port into the master branch. Added support for CPU hotplug
2004 and CPU idle. Updated the user guide to describe how to build and run on the
2005 Juno platform.
2006
2007Issues resolved since last release
2008----------------------------------
2009
2010- Removed the concept of top/bottom image loading. The image loader now
2011 automatically detects the position of the image inside the current memory
Paul Beesley8aabea32019-01-11 18:26:51 +00002012 layout and updates the layout to minimize fragmentation. This resolves the
Douglas Raillard6f625742017-06-28 15:23:03 +01002013 image loader limitations of previously releases. There are currently no
2014 plans to support dynamic image loading.
2015
2016- CPU idle now works on the publicized version of the Foundation FVP.
2017
2018- All known issues relating to the compiler version used have now been
Dan Handley4def07d2018-03-01 18:44:00 +00002019 resolved. This TF-A version uses Linaro toolchain 14.07 (based on GCC 4.9).
Douglas Raillard6f625742017-06-28 15:23:03 +01002020
2021Known issues
2022------------
2023
2024- GICv3 support is experimental. The Linux kernel patches to support this are
2025 not widely available. There are known issues with GICv3 initialization in
Dan Handley4def07d2018-03-01 18:44:00 +00002026 the TF-A.
Douglas Raillard6f625742017-06-28 15:23:03 +01002027
2028- While this version greatly reduces the on-chip RAM requirements, there are
2029 further RAM usage enhancements that could be made.
2030
2031- The firmware design documentation for the Test Secure-EL1 Payload (TSP) and
2032 its dispatcher (TSPD) is incomplete. Similarly for the PSCI section.
2033
2034- The Juno-specific firmware design documentation is incomplete.
2035
2036- Some recent enhancements to the FVP port have not yet been translated into
2037 the Juno port. These will be tracked via the tf-issues project.
2038
2039- The Linux kernel version referred to in the user guide has DVFS and HMP
2040 support disabled due to some known instabilities at the time of this
2041 release. A future kernel version will re-enable these features.
2042
2043- DS-5 v5.19 does not detect Version 5.8 of the Cortex-A57-A53 Base FVPs in
2044 CADI server mode. This is because the ``<SimName>`` reported by the FVP in
2045 this version has changed. For example, for the Cortex-A57x4-A53x4 Base FVP,
2046 the ``<SimName>`` reported by the FVP is ``FVP_Base_Cortex_A57x4_A53x4``, while
2047 DS-5 expects it to be ``FVP_Base_A57x4_A53x4``.
2048
2049 The temporary fix to this problem is to change the name of the FVP in
2050 ``sw/debugger/configdb/Boards/ARM FVP/Base_A57x4_A53x4/cadi_config.xml``.
2051 Change the following line:
2052
2053 ::
2054
2055 <SimName>System Generator:FVP_Base_A57x4_A53x4</SimName>
2056
2057 to
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01002058 System Generator:FVP_Base_Cortex-A57x4_A53x4
Douglas Raillard6f625742017-06-28 15:23:03 +01002059
2060 A similar change can be made to the other Cortex-A57-A53 Base FVP variants.
2061
Dan Handley4def07d2018-03-01 18:44:00 +00002062Trusted Firmware-A - version 0.4
2063================================
Douglas Raillard6f625742017-06-28 15:23:03 +01002064
2065New features
2066------------
2067
2068- Makefile improvements:
2069
2070 - Improved dependency checking when building.
2071
2072 - Removed ``dump`` target (build now always produces dump files).
2073
2074 - Enabled platform ports to optionally make use of parts of the Trusted
2075 Firmware (e.g. BL3-1 only), rather than being forced to use all parts.
2076 Also made the ``fip`` target optional.
2077
2078 - Specified the full path to source files and removed use of the ``vpath``
2079 keyword.
2080
2081- Provided translation table library code for potential re-use by platforms
2082 other than the FVPs.
2083
2084- Moved architectural timer setup to platform-specific code.
2085
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01002086- Added standby state support to PSCI cpu_suspend implementation.
Douglas Raillard6f625742017-06-28 15:23:03 +01002087
2088- SRAM usage improvements:
2089
2090 - Started using the ``-ffunction-sections``, ``-fdata-sections`` and
2091 ``--gc-sections`` compiler/linker options to remove unused code and data
2092 from the images. Previously, all common functions were being built into
2093 all binary images, whether or not they were actually used.
2094
2095 - Placed all assembler functions in their own section to allow more unused
2096 functions to be removed from images.
2097
2098 - Updated BL1 and BL2 to use a single coherent stack each, rather than one
2099 per CPU.
2100
2101 - Changed variables that were unnecessarily declared and initialized as
2102 non-const (i.e. in the .data section) so they are either uninitialized
2103 (zero init) or const.
2104
2105- Moved the Test Secure-EL1 Payload (BL3-2) to execute in Trusted SRAM by
2106 default. The option for it to run in Trusted DRAM remains.
2107
2108- Implemented a TrustZone Address Space Controller (TZC-400) driver. A
2109 default configuration is provided for the Base FVPs. This means the model
2110 parameter ``-C bp.secure_memory=1`` is now supported.
2111
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01002112- Started saving the PSCI cpu_suspend 'power_state' parameter prior to
Douglas Raillard6f625742017-06-28 15:23:03 +01002113 suspending a CPU. This allows platforms that implement multiple power-down
2114 states at the same affinity level to identify a specific state.
2115
2116- Refactored the entire codebase to reduce the amount of nesting in header
2117 files and to make the use of system/user includes more consistent. Also
2118 split platform.h to separate out the platform porting declarations from the
2119 required platform porting definitions and the definitions/declarations
2120 specific to the platform port.
2121
2122- Optimized the data cache clean/invalidate operations.
2123
2124- Improved the BL3-1 unhandled exception handling and reporting. Unhandled
2125 exceptions now result in a dump of registers to the console.
2126
2127- Major rework to the handover interface between BL stages, in particular the
2128 interface to BL3-1. The interface now conforms to a specification and is
2129 more future proof.
2130
2131- Added support for optionally making the BL3-1 entrypoint a reset handler
2132 (instead of BL1). This allows platforms with an alternative image loading
2133 architecture to re-use BL3-1 with fewer modifications to generic code.
2134
2135- Reserved some DDR DRAM for secure use on FVP platforms to avoid future
2136 compatibility problems with non-secure software.
2137
2138- Added support for secure interrupts targeting the Secure-EL1 Payload (SP)
2139 (using GICv2 routing only). Demonstrated this working by adding an interrupt
2140 target and supporting test code to the TSP. Also demonstrated non-secure
2141 interrupt handling during TSP processing.
2142
2143Issues resolved since last release
2144----------------------------------
2145
2146- Now support use of the model parameter ``-C bp.secure_memory=1`` in the Base
2147 FVPs (see **New features**).
2148
2149- Support for secure world interrupt handling now available (see **New
2150 features**).
2151
2152- Made enough SRAM savings (see **New features**) to enable the Test Secure-EL1
2153 Payload (BL3-2) to execute in Trusted SRAM by default.
2154
2155- The tested filesystem used for this release (Linaro AArch64 OpenEmbedded
2156 14.04) now correctly reports progress in the console.
2157
2158- Improved the Makefile structure to make it easier to separate out parts of
Dan Handley4def07d2018-03-01 18:44:00 +00002159 the TF-A for re-use in platform ports. Also, improved target dependency
2160 checking.
Douglas Raillard6f625742017-06-28 15:23:03 +01002161
2162Known issues
2163------------
2164
2165- GICv3 support is experimental. The Linux kernel patches to support this are
2166 not widely available. There are known issues with GICv3 initialization in
Dan Handley4def07d2018-03-01 18:44:00 +00002167 the TF-A.
Douglas Raillard6f625742017-06-28 15:23:03 +01002168
2169- Dynamic image loading is not available yet. The current image loader
2170 implementation (used to load BL2 and all subsequent images) has some
2171 limitations. Changing BL2 or BL3-1 load addresses in certain ways can lead
2172 to loading errors, even if the images should theoretically fit in memory.
2173
Dan Handley4def07d2018-03-01 18:44:00 +00002174- TF-A still uses too much on-chip Trusted SRAM. A number of RAM usage
2175 enhancements have been identified to rectify this situation.
Douglas Raillard6f625742017-06-28 15:23:03 +01002176
2177- CPU idle does not work on the advertised version of the Foundation FVP.
2178 Some FVP fixes are required that are not available externally at the time
2179 of writing. This can be worked around by disabling CPU idle in the Linux
2180 kernel.
2181
Dan Handley4def07d2018-03-01 18:44:00 +00002182- Various bugs in TF-A, UEFI and the Linux kernel have been observed when
2183 using Linaro toolchain versions later than 13.11. Although most of these
2184 have been fixed, some remain at the time of writing. These mainly seem to
2185 relate to a subtle change in the way the compiler converts between 64-bit
2186 and 32-bit values (e.g. during casting operations), which reveals
2187 previously hidden bugs in client code.
Douglas Raillard6f625742017-06-28 15:23:03 +01002188
2189- The firmware design documentation for the Test Secure-EL1 Payload (TSP) and
2190 its dispatcher (TSPD) is incomplete. Similarly for the PSCI section.
2191
Dan Handley4def07d2018-03-01 18:44:00 +00002192Trusted Firmware-A - version 0.3
2193================================
Douglas Raillard6f625742017-06-28 15:23:03 +01002194
2195New features
2196------------
2197
2198- Support for Foundation FVP Version 2.0 added.
2199 The documented UEFI configuration disables some devices that are unavailable
2200 in the Foundation FVP, including MMC and CLCD. The resultant UEFI binary can
2201 be used on the AEMv8 and Cortex-A57-A53 Base FVPs, as well as the Foundation
2202 FVP.
2203
2204 NOTE: The software will not work on Version 1.0 of the Foundation FVP.
2205
2206- Enabled third party contributions. Added a new contributing.md containing
2207 instructions for how to contribute and updated copyright text in all files
2208 to acknowledge contributors.
2209
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01002210- The PSCI CPU_SUSPEND API has been stabilised to the extent where it can be
Douglas Raillard6f625742017-06-28 15:23:03 +01002211 used for entry into power down states with the following restrictions:
2212
2213 - Entry into standby states is not supported.
2214 - The API is only supported on the AEMv8 and Cortex-A57-A53 Base FVPs.
2215
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01002216- The PSCI AFFINITY_INFO api has undergone limited testing on the Base FVPs to
Douglas Raillard6f625742017-06-28 15:23:03 +01002217 allow experimental use.
2218
Dan Handley4def07d2018-03-01 18:44:00 +00002219- Required C library and runtime header files are now included locally in
2220 TF-A instead of depending on the toolchain standard include paths. The
2221 local implementation has been cleaned up and reduced in scope.
Douglas Raillard6f625742017-06-28 15:23:03 +01002222
2223- Added I/O abstraction framework, primarily to allow generic code to load
2224 images in a platform-independent way. The existing image loading code has
2225 been reworked to use the new framework. Semi-hosting and NOR flash I/O
2226 drivers are provided.
2227
2228- Introduced Firmware Image Package (FIP) handling code and tools. A FIP
2229 combines multiple firmware images with a Table of Contents (ToC) into a
2230 single binary image. The new FIP driver is another type of I/O driver. The
2231 Makefile builds a FIP by default and the FVP platform code expect to load a
2232 FIP from NOR flash, although some support for image loading using semi-
2233 hosting is retained.
2234
2235 NOTE: Building a FIP by default is a non-backwards-compatible change.
2236
2237 NOTE: Generic BL2 code now loads a BL3-3 (non-trusted firmware) image into
2238 DRAM instead of expecting this to be pre-loaded at known location. This is
2239 also a non-backwards-compatible change.
2240
2241 NOTE: Some non-trusted firmware (e.g. UEFI) will need to be rebuilt so that
2242 it knows the new location to execute from and no longer needs to copy
2243 particular code modules to DRAM itself.
2244
2245- Reworked BL2 to BL3-1 handover interface. A new composite structure
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01002246 (bl31_args) holds the superset of information that needs to be passed from
Douglas Raillard6f625742017-06-28 15:23:03 +01002247 BL2 to BL3-1, including information on how handover execution control to
2248 BL3-2 (if present) and BL3-3 (non-trusted firmware).
2249
2250- Added library support for CPU context management, allowing the saving and
2251 restoring of
2252
2253 - Shared system registers between Secure-EL1 and EL1.
2254 - VFP registers.
2255 - Essential EL3 system registers.
2256
2257- Added a framework for implementing EL3 runtime services. Reworked the PSCI
2258 implementation to be one such runtime service.
2259
Sandrine Bailleuxf3cacad2019-02-08 15:26:36 +01002260- Reworked the exception handling logic, making use of both SP_EL0 and SP_EL3
Douglas Raillard6f625742017-06-28 15:23:03 +01002261 stack pointers for determining the type of exception, managing general
2262 purpose and system register context on exception entry/exit, and handling
2263 SMCs. SMCs are directed to the correct EL3 runtime service.
2264
2265- Added support for a Test Secure-EL1 Payload (TSP) and a corresponding
2266 Dispatcher (TSPD), which is loaded as an EL3 runtime service. The TSPD
2267 implements Secure Monitor functionality such as world switching and
2268 EL1 context management, and is responsible for communication with the TSP.
2269 NOTE: The TSPD does not yet contain support for secure world interrupts.
2270 NOTE: The TSP/TSPD is not built by default.
2271
2272Issues resolved since last release
2273----------------------------------
2274
2275- Support has been added for switching context between secure and normal
2276 worlds in EL3.
2277
2278- PSCI API calls ``AFFINITY_INFO`` & ``PSCI_VERSION`` have now been tested (to
2279 a limited extent).
2280
Dan Handley4def07d2018-03-01 18:44:00 +00002281- The TF-A build artifacts are now placed in the ``./build`` directory and
2282 sub-directories instead of being placed in the root of the project.
Douglas Raillard6f625742017-06-28 15:23:03 +01002283
Dan Handley4def07d2018-03-01 18:44:00 +00002284- TF-A is now free from build warnings. Build warnings are now treated as
2285 errors.
Douglas Raillard6f625742017-06-28 15:23:03 +01002286
Dan Handley4def07d2018-03-01 18:44:00 +00002287- TF-A now provides C library support locally within the project to maintain
2288 compatibility between toolchains/systems.
Douglas Raillard6f625742017-06-28 15:23:03 +01002289
2290- The PSCI locking code has been reworked so it no longer takes locks in an
2291 incorrect sequence.
2292
2293- The RAM-disk method of loading a Linux file-system has been confirmed to
Dan Handley4def07d2018-03-01 18:44:00 +00002294 work with the TF-A and Linux kernel version (based on version 3.13) used
2295 in this release, for both Foundation and Base FVPs.
Douglas Raillard6f625742017-06-28 15:23:03 +01002296
2297Known issues
2298------------
2299
2300The following is a list of issues which are expected to be fixed in the future
Dan Handley4def07d2018-03-01 18:44:00 +00002301releases of TF-A.
Douglas Raillard6f625742017-06-28 15:23:03 +01002302
2303- The TrustZone Address Space Controller (TZC-400) is not being programmed
2304 yet. Use of model parameter ``-C bp.secure_memory=1`` is not supported.
2305
2306- No support yet for secure world interrupt handling.
2307
2308- GICv3 support is experimental. The Linux kernel patches to support this are
2309 not widely available. There are known issues with GICv3 initialization in
Dan Handley4def07d2018-03-01 18:44:00 +00002310 TF-A.
Douglas Raillard6f625742017-06-28 15:23:03 +01002311
2312- Dynamic image loading is not available yet. The current image loader
2313 implementation (used to load BL2 and all subsequent images) has some
2314 limitations. Changing BL2 or BL3-1 load addresses in certain ways can lead
2315 to loading errors, even if the images should theoretically fit in memory.
2316
Dan Handley4def07d2018-03-01 18:44:00 +00002317- TF-A uses too much on-chip Trusted SRAM. Currently the Test Secure-EL1
2318 Payload (BL3-2) executes in Trusted DRAM since there is not enough SRAM.
2319 A number of RAM usage enhancements have been identified to rectify this
2320 situation.
Douglas Raillard6f625742017-06-28 15:23:03 +01002321
2322- CPU idle does not work on the advertised version of the Foundation FVP.
2323 Some FVP fixes are required that are not available externally at the time
2324 of writing.
2325
Dan Handley4def07d2018-03-01 18:44:00 +00002326- Various bugs in TF-A, UEFI and the Linux kernel have been observed when
2327 using Linaro toolchain versions later than 13.11. Although most of these
2328 have been fixed, some remain at the time of writing. These mainly seem to
2329 relate to a subtle change in the way the compiler converts between 64-bit
2330 and 32-bit values (e.g. during casting operations), which reveals
2331 previously hidden bugs in client code.
Douglas Raillard6f625742017-06-28 15:23:03 +01002332
2333- The tested filesystem used for this release (Linaro AArch64 OpenEmbedded
2334 14.01) does not report progress correctly in the console. It only seems to
2335 produce error output, not standard output. It otherwise appears to function
2336 correctly. Other filesystem versions on the same software stack do not
2337 exhibit the problem.
2338
2339- The Makefile structure doesn't make it easy to separate out parts of the
Dan Handley4def07d2018-03-01 18:44:00 +00002340 TF-A for re-use in platform ports, for example if only BL3-1 is required in
2341 a platform port. Also, dependency checking in the Makefile is flawed.
Douglas Raillard6f625742017-06-28 15:23:03 +01002342
2343- The firmware design documentation for the Test Secure-EL1 Payload (TSP) and
2344 its dispatcher (TSPD) is incomplete. Similarly for the PSCI section.
2345
Dan Handley4def07d2018-03-01 18:44:00 +00002346Trusted Firmware-A - version 0.2
2347================================
Douglas Raillard6f625742017-06-28 15:23:03 +01002348
2349New features
2350------------
2351
2352- First source release.
2353
2354- Code for the PSCI suspend feature is supplied, although this is not enabled
2355 by default since there are known issues (see below).
2356
2357Issues resolved since last release
2358----------------------------------
2359
2360- The "psci" nodes in the FDTs provided in this release now fully comply
2361 with the recommendations made in the PSCI specification.
2362
2363Known issues
2364------------
2365
2366The following is a list of issues which are expected to be fixed in the future
Dan Handley4def07d2018-03-01 18:44:00 +00002367releases of TF-A.
Douglas Raillard6f625742017-06-28 15:23:03 +01002368
2369- The TrustZone Address Space Controller (TZC-400) is not being programmed
2370 yet. Use of model parameter ``-C bp.secure_memory=1`` is not supported.
2371
2372- No support yet for secure world interrupt handling or for switching context
2373 between secure and normal worlds in EL3.
2374
2375- GICv3 support is experimental. The Linux kernel patches to support this are
2376 not widely available. There are known issues with GICv3 initialization in
Dan Handley4def07d2018-03-01 18:44:00 +00002377 TF-A.
Douglas Raillard6f625742017-06-28 15:23:03 +01002378
2379- Dynamic image loading is not available yet. The current image loader
2380 implementation (used to load BL2 and all subsequent images) has some
2381 limitations. Changing BL2 or BL3-1 load addresses in certain ways can lead
2382 to loading errors, even if the images should theoretically fit in memory.
2383
2384- Although support for PSCI ``CPU_SUSPEND`` is present, it is not yet stable
2385 and ready for use.
2386
Dan Handley4def07d2018-03-01 18:44:00 +00002387- PSCI API calls ``AFFINITY_INFO`` & ``PSCI_VERSION`` are implemented but have
2388 not been tested.
Douglas Raillard6f625742017-06-28 15:23:03 +01002389
Dan Handley4def07d2018-03-01 18:44:00 +00002390- The TF-A make files result in all build artifacts being placed in the root
2391 of the project. These should be placed in appropriate sub-directories.
Douglas Raillard6f625742017-06-28 15:23:03 +01002392
Dan Handley4def07d2018-03-01 18:44:00 +00002393- The compilation of TF-A is not free from compilation warnings. Some of these
2394 warnings have not been investigated yet so they could mask real bugs.
Douglas Raillard6f625742017-06-28 15:23:03 +01002395
Dan Handley4def07d2018-03-01 18:44:00 +00002396- TF-A currently uses toolchain/system include files like stdio.h. It should
2397 provide versions of these within the project to maintain compatibility
2398 between toolchains/systems.
Douglas Raillard6f625742017-06-28 15:23:03 +01002399
2400- The PSCI code takes some locks in an incorrect sequence. This may cause
2401 problems with suspend and hotplug in certain conditions.
2402
2403- The Linux kernel used in this release is based on version 3.12-rc4. Using
Dan Handley4def07d2018-03-01 18:44:00 +00002404 this kernel with the TF-A fails to start the file-system as a RAM-disk. It
2405 fails to execute user-space ``init`` from the RAM-disk. As an alternative,
2406 the VirtioBlock mechanism can be used to provide a file-system to the
2407 kernel.
Douglas Raillard6f625742017-06-28 15:23:03 +01002408
2409--------------
2410
Dan Handley4def07d2018-03-01 18:44:00 +00002411*Copyright (c) 2013-2018, Arm Limited and Contributors. All rights reserved.*
Douglas Raillard6f625742017-06-28 15:23:03 +01002412
David Cunado230326f2018-03-14 17:57:31 +00002413.. _SDEI Specification: http://infocenter.arm.com/help/topic/com.arm.doc.den0054a/ARM_DEN0054A_Software_Delegated_Exception_Interface.pdf
Douglas Raillard6f625742017-06-28 15:23:03 +01002414.. _PSCI Integration Guide: psci-lib-integration-guide.rst
2415.. _Developer Certificate of Origin: ../dco.txt
2416.. _Contribution Guide: ../contributing.rst
2417.. _Authentication framework: auth-framework.rst
2418.. _Firmware Update: firmware-update.rst
Dan Handley4def07d2018-03-01 18:44:00 +00002419.. _TF-A Reset Design: reset-design.rst
Douglas Raillard6f625742017-06-28 15:23:03 +01002420.. _Power Domain Topology Design: psci-pd-tree.rst
Dan Handley4def07d2018-03-01 18:44:00 +00002421.. _TF-A wiki on GitHub: https://github.com/ARM-software/arm-trusted-firmware/wiki/ARM-Trusted-Firmware-Image-Terminology
Douglas Raillard6f625742017-06-28 15:23:03 +01002422.. _Authentication Framework: auth-framework.rst
2423.. _OP-TEE Dispatcher: optee-dispatcher.rst
David Cunadoaee3ef42017-07-03 18:59:07 +01002424.. _tf-issue#501: https://github.com/ARM-software/tf-issues/issues/501
2425.. _PR#1002: https://github.com/ARM-software/arm-trusted-firmware/pull/1002#issuecomment-312650193
Paul Beesley9e437f22019-03-25 12:21:57 +00002426.. _mbed TLS releases: https://tls.mbed.org/tech-updates/releases
2427.. _Firmware Design: firmware-design.rst