From 84c4987eae9f8686e6d92e38ee18744d69576f2d Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Sat, 2 Sep 2017 12:52:12 +0530 Subject: [PATCH] soc/intel/cannonlake: Set IGD stolen memory size to 64MB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch overrides default FSP IGD stolen memory size UPD value. TEST=Ensures FSP-M UPD “IgdDvmt50PreAlloc” value is 0x2 (64MB) Change-Id: I63d992e139810ad203137b34c98d1a463f88b92d Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/21341 Tested-by: build bot (Jenkins) Reviewed-by: Lijian Zhao Reviewed-by: Arthur Heymans Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel --- src/soc/intel/cannonlake/romstage/romstage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/intel/cannonlake/romstage/romstage.c b/src/soc/intel/cannonlake/romstage/romstage.c index 483f44b9d0..a9ad1d804e 100644 --- a/src/soc/intel/cannonlake/romstage/romstage.c +++ b/src/soc/intel/cannonlake/romstage/romstage.c @@ -71,6 +71,8 @@ static void soc_memory_init_params(FSP_M_CONFIG *m_cfg, const config_t *config) unsigned int i; uint32_t mask = 0; + /* Set IGD stolen size to 64MB. */ + m_cfg->IgdDvmt50PreAlloc = 2; m_cfg->TsegSize = CONFIG_SMM_TSEG_SIZE; m_cfg->IedSize = CONFIG_IED_REGION_SIZE; m_cfg->SaGv = config->SaGv;