From 09adda95b93864f909dc8b77cb45268aca84212b Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Sat, 10 May 2025 16:42:33 -0500 Subject: [PATCH] soc/intel/meteorlake: Hook up IGD config to option API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hook up the IGD UPD for configuring the DVMT allocated memory to the option API, so it can be configured via CMOS/CFR. Default value is set to the existing fixed value of 128MB if option API is not used. Change-Id: I413e958e3c02632c3920b39dd370b89ecc99613f Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/87622 Tested-by: build bot (Jenkins) Reviewed-by: Jérémy Compostella Reviewed-by: Maxim Polyakov --- src/soc/intel/meteorlake/romstage/fsp_params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/intel/meteorlake/romstage/fsp_params.c b/src/soc/intel/meteorlake/romstage/fsp_params.c index 8e49afa101..2001cdc79f 100644 --- a/src/soc/intel/meteorlake/romstage/fsp_params.c +++ b/src/soc/intel/meteorlake/romstage/fsp_params.c @@ -118,7 +118,7 @@ static void fill_fspm_igd_params(FSP_M_CONFIG *m_cfg, m_cfg->InternalGfx = !CONFIG(SOC_INTEL_DISABLE_IGD) && is_devfn_enabled(PCI_DEVFN_IGD); if (m_cfg->InternalGfx) { /* IGD is enabled, set IGD stolen size to 128MB. */ - m_cfg->IgdDvmt50PreAlloc = IGD_SM_128MB; + m_cfg->IgdDvmt50PreAlloc = get_uint_option("igd_dvmt_prealloc", IGD_SM_128MB); /* DP port config */ m_cfg->DdiPortAConfig = config->ddi_port_A_config; m_cfg->DdiPortBConfig = config->ddi_port_B_config;