]> git.baikalelectronics.ru Git - arm-tf.git/commit
feat(cpufeat): enable FEAT_SVE for FEAT_STATE_CHECKED
authorJayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
Tue, 7 Mar 2023 10:43:19 +0000 (10:43 +0000)
committerManish V Badarkhe <manish.badarkhe@arm.com>
Tue, 28 Mar 2023 15:19:13 +0000 (17:19 +0200)
commit2b0bc4e028a75d75c6d6942ddd404ef331db29be
tree43ffe9ea8787fcf8e71c411045d59a36df313936
parent45007acd46981b9f289f03b283eb53e7ba37bb67
feat(cpufeat): enable FEAT_SVE for FEAT_STATE_CHECKED

Add support for runtime detection (ENABLE_SVE_FOR_NS=2), by splitting
sve_supported() 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 do SVE specific setup.

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: I1caaba2216e8e2a651452254944a003607503216
Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
12 files changed:
Makefile
bl31/bl31.mk
common/feat_detect.c
docs/getting_started/build-options.rst
include/arch/aarch64/arch_features.h
include/lib/extensions/sve.h
lib/el3_runtime/aarch64/context_mgmt.c
lib/extensions/sme/sme.c
lib/extensions/sve/sve.c
make_helpers/defaults.mk
services/std_svc/rmmd/rmmd_main.c
services/std_svc/spm/spm_mm/spm_mm.mk