Wonkyu Kim has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/84210?usp=email )
Change subject: src/intel/cmm/block: Update sa_get_tseg_size function ......................................................................
src/intel/cmm/block: Update sa_get_tseg_size function
Use CONFIG_SMM_TSEG_SIZE rather than calulating based on gsm base and tseg base as gsm base may not be configured when internal graphic IP is disabled and CONFIG_SMM_TSEG_SIZE is passed by FSP UPD.
Signed-off-by: Wonkyu Kim wonkyu.kim@intel.com Change-Id: Ic3d5175add1f7dc6e2c9f1c38133b36ffc59e789 --- M src/soc/intel/common/block/systemagent/systemagent_early.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/84210/1
diff --git a/src/soc/intel/common/block/systemagent/systemagent_early.c b/src/soc/intel/common/block/systemagent/systemagent_early.c index aecdfbb..773e74c 100644 --- a/src/soc/intel/common/block/systemagent/systemagent_early.c +++ b/src/soc/intel/common/block/systemagent/systemagent_early.c @@ -148,6 +148,10 @@
size_t sa_get_tseg_size(void) { + if (CONFIG_SMM_TSEG_SIZE) { + return CONFIG_SMM_TSEG_SIZE; + } + return sa_get_gsm_base() - sa_get_tseg_base(); }