]> git.baikalelectronics.ru Git - arm-tf.git/commit
feat(cpufeat): enable FEAT_SME for FEAT_STATE_CHECKED
authorJayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
Mon, 6 Mar 2023 23:56:14 +0000 (23:56 +0000)
committerManish V Badarkhe <manish.badarkhe@arm.com>
Tue, 28 Mar 2023 15:19:07 +0000 (17:19 +0200)
commit45007acd46981b9f289f03b283eb53e7ba37bb67
treedf4d289c742923fcb05a61d7fa85400272b7873d
parentcfe6a82ee87ff178e05f542f65549520cf764956
feat(cpufeat): enable FEAT_SME for FEAT_STATE_CHECKED

Add support for runtime detection (ENABLE_SME_FOR_NS=2), by splitting
feat_sme_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 SME 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: Ida9ccf737db5be20865b84f42b1f9587be0626ab
Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
13 files changed:
Makefile
bl31/bl31.mk
common/feat_detect.c
docs/getting_started/build-options.rst
include/arch/aarch64/arch.h
include/arch/aarch64/arch_features.h
include/lib/extensions/sme.h
lib/el3_runtime/aarch64/context_mgmt.c
lib/extensions/sme/sme.c
make_helpers/defaults.mk
plat/arm/board/fvp/platform.mk
services/std_svc/spm/spm_mm/spm_mm.mk
services/std_svc/spmd/spmd.mk