]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(cpufeat): enable FEAT_RAS for FEAT_STATE_CHECKED
authorAndre Przywara <andre.przywara@arm.com>
Fri, 27 Jan 2023 12:25:49 +0000 (12:25 +0000)
committerManish Pandey <manish.pandey2@arm.com>
Tue, 9 May 2023 12:20:01 +0000 (13:20 +0100)
commit6503ff2910ae5edba9edc505c8c19dce7be4d45c
tree109d33fbd2431966038bce2360622aa9e1fdc810
parent9202d51990c192e8bc041e6f53d5ce63ee908665
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>
Makefile
common/feat_detect.c
include/arch/aarch64/arch.h
include/arch/aarch64/arch_features.h
include/arch/aarch64/arch_helpers.h
include/lib/el3_runtime/aarch64/context.h
lib/el3_runtime/aarch64/context.S
lib/el3_runtime/aarch64/context_mgmt.c
plat/arm/board/fvp/platform.mk