From e2705d93d8186ceddcba6995f503559e01ee917f Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Sat, 26 Apr 2025 22:56:14 +0530 Subject: [PATCH] soc/intel/pantherlake: Reduce IGD stolen memory size from 128MB to 64MB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit updates the pre-allocated IGD stolen memory size for Intel Panther Lake SoCs from 128MB to 64MB within the FSP-M configuration parameters. Reducing the IGD stolen memory allocation from 128MB to 64MB significantly optimizes system memory resource utilization (by 64MB). Furthermore, this reduction frees one MTRR. Previously, the 128MB IGD allocation consumed all 10 available BIOS MTRRs; the new 64MB allocation now leaves MTRR index 9 available. BUG=b:413638298 TEST=Able to boot google/fatcat to OS w/ internal and/or external display attached. Change-Id: Ifd60973bc5d37cbbc4ea6c8eaf5d851069d53083 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/87460 Reviewed-by: Jérémy Compostella Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/soc/intel/pantherlake/romstage/fsp_params.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/intel/pantherlake/romstage/fsp_params.c b/src/soc/intel/pantherlake/romstage/fsp_params.c index b83eb18c7a..3f13be2735 100644 --- a/src/soc/intel/pantherlake/romstage/fsp_params.c +++ b/src/soc/intel/pantherlake/romstage/fsp_params.c @@ -36,8 +36,8 @@ static void fill_fspm_igd_params(FSP_M_CONFIG *m_cfg, }; m_cfg->InternalGraphics = !CONFIG(SOC_INTEL_DISABLE_IGD) && is_devfn_enabled(PCI_DEVFN_IGD); if (m_cfg->InternalGraphics) { - /* IGD is enabled, set IGD stolen size to 128MB. */ - m_cfg->IgdDvmt50PreAlloc = IGD_SM_128MB; + /* IGD is enabled, set IGD stolen size to 64MB. */ + m_cfg->IgdDvmt50PreAlloc = IGD_SM_64MB; /* DP port config */ m_cfg->DdiPortAConfig = config->ddi_port_A_config; m_cfg->DdiPortBConfig = config->ddi_port_B_config;