From 15107daad6b83b4ee1edfebf420b6779a054318e Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Thu, 10 Nov 2022 14:42:07 +0000 Subject: [PATCH] feat(fvp): enable FEAT_FGT by default FEAT_FGT is one of the features for which Linux necessarily requires EL3 enablement, when the feature is present on a PE. To cover the effect of different FVP command line parameters, include the feature into the standard FVP build, but use FEAT_STATE_CHECK, to always do runtime checks before accessing feature specific registers. This prevents a Linux crash when the FVP is called with FEAT_FGT enabled. Signed-off-by: Andre Przywara Change-Id: I55fbb2706aefbc3ab67c476e3f8b6ea74ae0d66c --- plat/arm/board/fvp/platform.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plat/arm/board/fvp/platform.mk b/plat/arm/board/fvp/platform.mk index f28a6ff75..2f8284db6 100644 --- a/plat/arm/board/fvp/platform.mk +++ b/plat/arm/board/fvp/platform.mk @@ -463,6 +463,9 @@ ENABLE_SYS_REG_TRACE_FOR_NS := 1 # enable trace filter control registers access to NS by default ENABLE_TRF_FOR_NS := 1 +# Linux relies on EL3 enablement if those features are present +ENABLE_FEAT_FGT := 2 + ifeq (${SPMC_AT_EL3}, 1) PLAT_BL_COMMON_SOURCES += plat/arm/board/fvp/fvp_el3_spmc.c endif