arm-trusted-firmware/include/lib
Andre Przywara 6503ff2910 refactor(cpufeat): enable FEAT_RAS for FEAT_STATE_CHECKED
At the moment we only support FEAT_RAS to be either unconditionally
compiled in, or to be not supported at all.

Add support for runtime detection (FEAT_RAS=2), by splitting
is_armv8_2_feat_ras_present() into an ID register reading function and
a second function to report the support status. That function considers
both build time settings and runtime information (if needed), and is
used before we access RAS related registers.

Also move the context saving code from assembly to C, and use the new
is_feat_ras_supported() function to guard its execution.

Change the FVP platform default to the now supported dynamic
option (=2), so the right decision can be made by the code at runtime.

Change-Id: I30498f72fd80b136850856244687400456a03d0e
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
2023-05-09 13:20:01 +01:00
..
bl_aux_params style(docs): fix typo s/flase/false/ 2023-03-21 13:41:39 +01:00
cpus feat(cpus): add support for blackhawk cpu 2023-04-04 17:16:53 +02:00
el3_runtime refactor(cpufeat): enable FEAT_RAS for FEAT_STATE_CHECKED 2023-05-09 13:20:01 +01:00
extensions feat(cpufeat): enable FEAT_SVE for FEAT_STATE_CHECKED 2023-03-28 17:19:13 +02:00
fconf feat(fconf): rename 'ns-load-address' to 'secondary-load-address' 2023-02-07 11:26:38 +00:00
gpt_rme fix(gpt_rme): rework delegating/undelegating sequence 2022-03-09 16:08:42 +01:00
libc feat(libc): add support for fallthrough statement 2023-03-20 13:37:36 +00:00
libfdt feat(libfdt): upgrade libfdt source files 2022-10-19 14:07:46 +01:00
mpmm feat(mpmm): add support for MPMM 2021-10-26 12:15:42 +01:00
pmf build: always prefix section names with . 2023-02-20 18:29:33 +00:00
psa feat(psa): interface with RSS for NV counters 2023-02-08 10:33:48 +02:00
psci feat(psci): introduce 'pwr_domain_off_early' hook 2023-04-26 09:53:10 +01:00
xlat_mpu fvp_r: load, auth, and transfer from BL1 to BL33 2021-09-30 17:07:11 +01:00
xlat_tables build: always prefix section names with . 2023-02-20 18:29:33 +00:00
zlib Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
bakery_lock.h build: always prefix section names with . 2023-02-20 18:29:33 +00: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 feat(optee): add loading OP-TEE image via an SMC 2023-01-31 10:38:16 -08: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 fix(smccc): check smc_fid [23:17] bits 2023-03-20 10:12:38 +00: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: add parenthesis for tests in MIN, MAX and CLAMP macros 2022-12-07 14:16:03 +01:00