Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/21341
Change subject: soc/intel/cannonlake: Set IGD stolen memory size to 64MB ......................................................................
soc/intel/cannonlake: Set IGD stolen memory size to 64MB
This patch to override default FSP IGD stolen memory size UPD value which ease the hardware register based CNL memory layout calculation.
TEST=Ensures FSP-M UPD "IgdDvmt50PreAlloc" value is 0x2 (64MB)
Change-Id: I63d992e139810ad203137b34c98d1a463f88b92d Signed-off-by: Subrata Banik subrata.banik@intel.com --- M src/soc/intel/cannonlake/romstage/romstage.c 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/21341/1
diff --git a/src/soc/intel/cannonlake/romstage/romstage.c b/src/soc/intel/cannonlake/romstage/romstage.c index 483f44b..a9ad1d8 100644 --- a/src/soc/intel/cannonlake/romstage/romstage.c +++ b/src/soc/intel/cannonlake/romstage/romstage.c @@ -71,6 +71,8 @@ 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;