From nobody Tue Feb 10 04:15:19 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+39997+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+39997+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1557042760; cv=none; d=zoho.com; s=zohoarc; b=OvxFzAZuIgWE+/ZZ3tpa8jy03AILCdYfxAKBAr1HydjTCRsDdIxNCpr+M+fW8Tmm/YoQQxTQ4WZqEh7Qyb74+O++ZBJXwzcz04OQhOEleVBOTWUD9jJAiUqRn30Cwk6hV87XRaeokbnACFfCVm9JTQLn9FhJPFOnjkYsHGsoOGU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557042760; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=YhNQlBLJhEt8AGL+CLksi0kaXcFfVCDJqf3n+XS65NY=; b=lZM+6CeqiGGUgfiC/F9Scy2HyRwJ/rK/VZRccwL976OctqCNzneC/aXIxW8F8SgXTg/qDQN7IuFzbTG2Xo+TD7RMEVwDb7KrgdYjfddS5jbAQW42W6RoCxcawt9Dc7VXdgRS8K8T7/Jj92X0D8OhyFiB7mVnYCONCDmVq6itg8c= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+39997+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1557042760443773.38546466245; Sun, 5 May 2019 00:52:40 -0700 (PDT) Return-Path: X-Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by groups.io with SMTP; Sun, 05 May 2019 00:52:39 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 May 2019 00:52:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,433,1549958400"; d="scan'208";a="155041589" X-Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by FMSMGA003.fm.intel.com with ESMTP; 05 May 2019 00:52:24 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Bret Barkelew , Jian J Wang , Hao Wu , Ray Ni , Star Zeng , Liming Gao , Sean Brogan , Michael Turner Subject: [edk2-devel] [PATCH 3/4] MdeModulePkg/CapsuleLib: Transfer reset data Date: Sun, 5 May 2019 15:50:45 +0800 Message-Id: <20190505075046.14464-4-zhichao.gao@intel.com> In-Reply-To: <20190505075046.14464-1-zhichao.gao@intel.com> References: <20190505075046.14464-1-zhichao.gao@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,zhichao.gao@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1557042760; bh=ZJo9vfNUZuEQroiW5DfT6qRfuGnXBCnvDtNfYzxMj6Q=; h=Cc:Date:From:Reply-To:Subject:To; b=HHCWijDf1505gDztdCN78hDZMODtCRUdd+O0KTW0Rugat/bDn/z8zIE8EOWicKr/VKP Ds93kn9IYBqC38q3y5w0p3oKbHAgB0tdK1mXFKoQzVjgU4y21lEC4A+4as4ufcX5VoVGF bzQdj8Niyl9Iqjwxa8IzTJwF6hTmmwhFhNo= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Bret Barkelew REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1772 Transfer reset data start with a null sting and followed by gCapsuleUpdateCompleteResetGuid for capsule update. Cc: Jian J Wang Cc: Hao Wu Cc: Ray Ni Cc: Star Zeng Cc: Liming Gao Cc: Sean Brogan Cc: Michael Turner Cc: Bret Barkelew Signed-off-by: Zhichao Gao --- MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf | 3 ++- .../Library/DxeCapsuleLibFmp/DxeCapsuleProcessLib.c | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf b/MdeM= odulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf index 14c3d19bc3..78e4958995 100644 --- a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf +++ b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf @@ -3,7 +3,7 @@ # # Capsule library instance for DXE_DRIVER module types. # -# Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
+# Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent # ## @@ -74,6 +74,7 @@ gEfiCapsuleReportGuid gEfiCapsuleVendorGuid ## SOMETIMES_CONSUMES ## Variabl= e:L"CapsuleUpdateData" gEfiEndOfDxeEventGroupGuid ## CONSUMES ## Event + gCapsuleUpdateCompleteResetGuid ## SOMETIMES_CONSUMES =20 [Depex] gEfiVariableWriteArchProtocolGuid diff --git a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleProcessLib.c b= /MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleProcessLib.c index 5e2d2b87a8..dbc4287bfa 100644 --- a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleProcessLib.c +++ b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleProcessLib.c @@ -9,7 +9,7 @@ ProcessCapsules(), ProcessTheseCapsules() will receive untrusted input and do basic validation. =20 - Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
+ Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -33,6 +33,8 @@ =20 #include =20 +#include + extern EDKII_FIRMWARE_MANAGEMENT_PROGRESS_PROTOCOL *mFmpProgress; =20 /** @@ -518,7 +520,7 @@ DoResetSystem ( =20 REPORT_STATUS_CODE(EFI_PROGRESS_CODE, (EFI_SOFTWARE | PcdGet32(PcdStatus= CodeSubClassCapsule) | PcdGet32(PcdCapsuleStatusCodeResettingSystem))); =20 - gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL); + gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, sizeof (RESET_DATA_WITH_NULL= _STRING), &gCapsuleUpdateCompleteResetGuid); =20 CpuDeadLoop(); } --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#39997): https://edk2.groups.io/g/devel/message/39997 Mute This Topic: https://groups.io/mt/31507360/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-