arm-trusted-firmware/include/lib
Madhukar Pappireddy c2d32a5f85 Fix exception handlers in BL31: Use DSB to synchronize pending EA
For SoCs which do not implement RAS, use DSB as a barrier to
synchronize pending external aborts at the entry and exit of
exception handlers. This is needed to isolate the SErrors to
appropriate context.

However, this introduces an unintended side effect as discussed
in the https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/3440
A summary of the side effect and a quick workaround is provided as
part of this patch and summarized here:

The explicit DSB at the entry of various exception vectors in BL31
for handling exceptions from lower ELs can inadvertently trigger an
SError exception in EL3 due to pending asyncrhonouus aborts in lower
ELs. This will end up being handled by serror_sp_elx in EL3 which will
ultimately panic and die.

The way to workaround is to update a flag to indicate if the exception
truly came from EL3. This flag is allocated in the cpu_context
structure. This is not a bullet proof solution to the problem at hand
because we assume the instructions following "isb" that help to update
the flag (lines 100-102 & 139-141) execute without causing further
exceptions.

Change-Id: I4d345b07d746a727459435ddd6abb37fda24a9bf
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
2021-01-29 10:30:18 -06:00
..
bl_aux_params Factor out cross-BL API into export headers suitable for 3rd party code 2019-07-23 20:25:34 -07:00
cpus Workaround for Cortex A78 erratum 1951500 2021-01-13 13:54:18 -06:00
el3_runtime Fix exception handlers in BL31: Use DSB to synchronize pending EA 2021-01-29 10:30:18 -06:00
extensions TF-A AMU extension: fix detection of group 1 counters. 2020-08-10 10:40:53 +00:00
fconf lib/fconf: Update 'set_fw_config_info' function 2020-07-23 02:11:13 +00:00
libc libc: Import strtok_r from FreeBSD project 2020-09-18 11:58:41 -05:00
libfdt libfdt: Upgrade libfdt source files 2020-10-02 12:15:48 +00:00
pmf Increase type widths to satisfy width requirements 2020-10-12 10:55:03 -05:00
psci psci: utility api to invoke stop for other cores 2020-09-03 09:29:22 +00:00
xlat_tables Increase type widths to satisfy width requirements 2020-10-12 10:55:03 -05:00
zlib Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
bakery_lock.h Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__ 2019-08-01 13:14:12 -07:00
cassert.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
coreboot.h Update in coreboot_get_memory_type API to include size as well 2020-10-16 02:23:35 +05:30
debugfs.h debugfs: add SMC channel 2019-12-18 09:59:12 +01:00
mmio.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
object_pool.h fconf: Fix misra issues 2020-02-27 16:14:07 +00:00
optee_utils.h Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
runtime_instr.h Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__ 2019-08-01 13:14:12 -07:00
semihosting.h qemu: Implement qemu_system_off via semihosting. 2020-01-23 10:53:45 +00:00
smccc.h Increase type widths to satisfy width requirements 2020-10-12 10:55:03 -05:00
spinlock.h Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__ 2019-08-01 13:14:12 -07:00
utils.h arm: gicv3: Fix compiler dependent behavior 2019-12-10 15:53:44 -06:00
utils_def.h Fix MISRA C issues in BL1/BL2/BL31 2020-04-03 16:20:59 -05:00