From nobody Tue Apr 30 18:57:21 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 1522724351499159.48956128371094; Mon, 2 Apr 2018 19:59:11 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id DB54221FB7D3E; Mon, 2 Apr 2018 19:59:09 -0700 (PDT) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 0ECA821FB7D35 for ; Mon, 2 Apr 2018 19:59:08 -0700 (PDT) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Apr 2018 19:59:08 -0700 Received: from zwei4-mobl1.ccr.corp.intel.com ([10.239.193.115]) by fmsmga006.fm.intel.com with ESMTP; 02 Apr 2018 19:59:07 -0700 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=192.55.52.93; helo=mga11.intel.com; envelope-from=david.wei@intel.com; receiver=edk2-devel@lists.01.org X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,398,1517904000"; d="scan'208";a="217009531" From: zwei4 To: edk2-devel@lists.01.org Date: Tue, 3 Apr 2018 10:59:04 +0800 Message-Id: <20180403025904.12624-1-david.wei@intel.com> X-Mailer: git-send-email 2.14.1.windows.1 Subject: [edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Add Memory test code. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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" Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: zwei4 --- .../PlatformBootManagerLib/PlatformBootManager.c | 23 ++++++++++++++++++= +++- .../PlatformBootManagerLib.inf | 1 + 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManager= Lib/PlatformBootManager.c b/Platform/BroxtonPlatformPkg/Common/Library/Plat= formBootManagerLib/PlatformBootManager.c index 7c7a98e2b9..6715d9073b 100644 --- a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/Pla= tformBootManager.c +++ b/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/Pla= tformBootManager.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -1000,10 +1001,30 @@ PlatformBootManagerAfterConsole ( VOID ) { - EFI_BOOT_MODE LocalBootMode; + EFI_STATUS Status; + EFI_BOOT_MODE LocalBootMode; + BOOLEAN RequireSoftECCInit; + EFI_GENERIC_MEMORY_TEST_PROTOCOL *GenMemoryTest; =20 DEBUG ((EFI_D_INFO, "PlatformBootManagerAfterConsole\n")); =20 + // + // Run memory test code at this point. + // + Status =3D gBS->LocateProtocol ( + &gEfiGenericMemTestProtocolGuid, + NULL, + (VOID **) &GenMemoryTest + ); + + if (!EFI_ERROR (Status)) { + Status =3D GenMemoryTest->MemoryTestInit ( + GenMemoryTest, + IGNORE, + &RequireSoftECCInit + ); + }=20 + // // Get current Boot Mode. // diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManager= Lib/PlatformBootManagerLib.inf b/Platform/BroxtonPlatformPkg/Common/Library= /PlatformBootManagerLib/PlatformBootManagerLib.inf index 8e429fbf9f..9f476a14d0 100644 --- a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/Pla= tformBootManagerLib.inf +++ b/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/Pla= tformBootManagerLib.inf @@ -92,6 +92,7 @@ gEfiFormBrowser2ProtocolGuid gExitPmAuthProtocolGuid gEfiGraphicsOutputProtocolGuid + gEfiGenericMemTestProtocolGuid =20 [Guids] gEfiGlobalVariableGuid --=20 2.14.1.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel