From nobody Wed Dec 25 02:24:15 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1510181306467575.8532444608293; Wed, 8 Nov 2017 14:48:26 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id B22C120355222; Wed, 8 Nov 2017 14:44:23 -0800 (PST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 15FA2202E5E70 for ; Wed, 8 Nov 2017 14:44:22 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP; 08 Nov 2017 14:48:22 -0800 Received: from mdkinney-mobl2.amr.corp.intel.com ([10.241.98.40]) by fmsmga002.fm.intel.com with ESMTP; 08 Nov 2017 14:48:22 -0800 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=michael.d.kinney@intel.com; receiver=edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,365,1505804400"; d="scan'208";a="1241722630" From: Michael D Kinney To: edk2-devel@lists.01.org Date: Wed, 8 Nov 2017 14:48:16 -0800 Message-Id: <20171108224816.1952-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.14.2.windows.3 Subject: [edk2] [Patch] QuarkPlatformPkg/PlatformBootManagerLib: Update boot mode handling X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jiewen Yao MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" https://bugzilla.tianocore.org/show_bug.cgi?id=3D768 Update and simplify boot mode handling logic. This includes performing minimum connects for the following boot modes: BOOT_ASSUMING_NO_CONFIGURATION_CHANGES BOOT_WITH_MINIMAL_CONFIGURATION BOOT_ON_S4_RESUME Cc: Kelly Steele Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney Reviewed-by: Steele, Kelly --- .../PlatformBootManagerLib/PlatformBootManager.c | 30 +++++++++---------= ---- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/QuarkPlatformPkg/Library/PlatformBootManagerLib/PlatformBootMa= nager.c b/QuarkPlatformPkg/Library/PlatformBootManagerLib/PlatformBootManag= er.c index 3c21318069..53391c6077 100644 --- a/QuarkPlatformPkg/Library/PlatformBootManagerLib/PlatformBootManager.c +++ b/QuarkPlatformPkg/Library/PlatformBootManagerLib/PlatformBootManager.c @@ -2,7 +2,7 @@ This file include all platform action which can be customized by IBV/OEM. =20 -Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.
+Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD = License which accompanies this distribution. The full text of the license may be = found at @@ -354,9 +354,17 @@ PlatformBootManagerAfterConsole ( } =20 BootMode =3D GetBootModeHob(); + + DEBUG((DEBUG_INFO, "PlatformBootManagerAfterConsole(): BootMode =3D %02x= \n", BootMode)); + switch (BootMode) { + case BOOT_ASSUMING_NO_CONFIGURATION_CHANGES: + case BOOT_WITH_MINIMAL_CONFIGURATION: + case BOOT_ON_S4_RESUME: + EfiBootManagerRefreshAllBootOption (); + break; + case BOOT_ON_FLASH_UPDATE: - DEBUG((DEBUG_INFO, "Capsule Mode detected\n")); if (FeaturePcdGet(PcdSupportUpdateCapsuleReset)) { EfiBootManagerConnectAll (); EfiBootManagerRefreshAllBootOption (); @@ -374,15 +382,6 @@ PlatformBootManagerAfterConsole ( } break; =20 - case BOOT_IN_RECOVERY_MODE: - DEBUG((DEBUG_INFO, "Recovery Mode detected\n")); - // Passthrough - - case BOOT_ASSUMING_NO_CONFIGURATION_CHANGES: - case BOOT_WITH_MINIMAL_CONFIGURATION: - case BOOT_WITH_FULL_CONFIGURATION: - case BOOT_WITH_FULL_CONFIGURATION_PLUS_DIAGNOSTICS: - case BOOT_WITH_DEFAULT_SETTINGS: default: EfiBootManagerConnectAll (); EfiBootManagerRefreshAllBootOption (); @@ -390,14 +389,9 @@ PlatformBootManagerAfterConsole ( // // Sync ESRT Cache from FMP Instance on demand after Connect All // - if ((BootMode !=3D BOOT_ASSUMING_NO_CONFIGURATION_CHANGES) && - (BootMode !=3D BOOT_WITH_MINIMAL_CONFIGURATION) && - (BootMode !=3D BOOT_ON_S4_RESUME)) { - if (EsrtManagement !=3D NULL) { - EsrtManagement->SyncEsrtFmp(); - } + if (EsrtManagement !=3D NULL) { + EsrtManagement->SyncEsrtFmp(); } - break; } =20 --=20 2.14.2.windows.3 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel