From be0590c3e17ea2e6adc6d9c718318a9885c5bce3 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Tue, 14 Feb 2023 18:44:09 +0530 Subject: soc/intel/cmn/gfx: Skip warning msg in ChromeOS normal mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch ensures avoiding displaying wrong warning msg as `Graphics hand-off block not found` during ChromeOS normal mode booting as FSP is not executing GFX PEIM hence, GFX hand-off HOB is expected to be missing.  TEST=Able to build and boot google/rex in normal mode w/o having warning msg.  Change-Id: Ia9192129852195f6183c0c43369cd33b253f9140 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/73028 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Kapil Porwal Reviewed-by: Ivy Jian --- src/soc/intel/common/block/graphics/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/intel/common/block/graphics/graphics.c b/src/soc/intel/common/block/graphics/graphics.c index 14e7597573..acef488675 100644 --- a/src/soc/intel/common/block/graphics/graphics.c +++ b/src/soc/intel/common/block/graphics/graphics.c @@ -57,7 +57,7 @@ static void gma_init(struct device *const dev) * In case of non-FSP solution, SoC need to select another * Kconfig to perform GFX initialization. */ - if (CONFIG(RUN_FSP_GOP)) { + if (CONFIG(RUN_FSP_GOP) && display_init_required()) { const struct soc_intel_common_config *config = chip_get_common_soc_structure(); fsp_report_framebuffer_info(graphics_get_framebuffer_address(), config->panel_orientation); -- cgit v1.2.3