From 2e1241888ee82a5a9b3b30acd83a1f4ea6732f1b 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_HCX by default FEAT_HCX 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_HCX enabled. Change-Id: I01aaed15c5a6850176d092b2f0157744fe0a9e13 Signed-off-by: Andre Przywara --- plat/arm/board/fvp/platform.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/plat/arm/board/fvp/platform.mk b/plat/arm/board/fvp/platform.mk index 2f8284db6..efbf68f00 100644 --- a/plat/arm/board/fvp/platform.mk +++ b/plat/arm/board/fvp/platform.mk @@ -465,6 +465,7 @@ ENABLE_TRF_FOR_NS := 1 # Linux relies on EL3 enablement if those features are present ENABLE_FEAT_FGT := 2 +ENABLE_FEAT_HCX := 2 ifeq (${SPMC_AT_EL3}, 1) PLAT_BL_COMMON_SOURCES += plat/arm/board/fvp/fvp_el3_spmc.c -- 2.39.5