From c16891ecbd17200f303a5e57eaa6240f8f8065b4 Mon Sep 17 00:00:00 2001 From: Jeremy Compostella Date: Tue, 27 May 2025 08:59:39 -0700 Subject: [PATCH] soc/intel/meteorlake: Use CACHE_TMP_RAMTOP for TME exclusion range This commit updates the fill_tme_params() function to utilize the CACHE_TMP_RAMTOP constant instead of hardcoded values for calculating the TME exclusion range. Change-Id: I199182de8b8b219b0c45b27746b7415527cb9976 Signed-off-by: Jeremy Compostella Reviewed-on: https://review.coreboot.org/c/coreboot/+/87868 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik --- src/soc/intel/meteorlake/romstage/fsp_params.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/soc/intel/meteorlake/romstage/fsp_params.c b/src/soc/intel/meteorlake/romstage/fsp_params.c index 190cb73085..57e56595a9 100644 --- a/src/soc/intel/meteorlake/romstage/fsp_params.c +++ b/src/soc/intel/meteorlake/romstage/fsp_params.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -202,8 +203,8 @@ static void fill_tme_params(FSP_M_CONFIG *m_cfg) "Full memory encryption is enabled.\n"); return; } - m_cfg->TmeExcludeBase = (ram_top - 16*MiB); - m_cfg->TmeExcludeSize = 16*MiB; + m_cfg->TmeExcludeBase = (ram_top - CACHE_TMP_RAMTOP); + m_cfg->TmeExcludeSize = CACHE_TMP_RAMTOP; } }