From nobody Tue Feb 10 12:43:00 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+45386+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+45386+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1565579316; cv=none; d=zoho.com; s=zohoarc; b=jbn6N4k9cpM0u0g58OFMLft2juyb/g+0HzRPGXREsAWPf/rqzyws55VyAbLw+1xLvHmzALweha0PLG5wa4mxXr6iT1WvdPzCMaN8RZ/qn33NGFGFkumBKlbSBVSj9Ll7RXdr9H0sjwcIElpwNrewrgTG2rKFVb9aaaUCKgDh/gM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565579316; 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=80dgHe67c2vhWiS5PPPl42Zo1Oo8vesFwbdbeG+Mrsc=; b=D5AcM6ikdzp7BewKggJW0ZoLgzPQc12liTLLGIr/cY/HSfxvG7ikBNoNh3lPp+BSfXC31Krq4dXpJQBXDaS0ITR8DtuvaKwP/H1OWUAmhYsDWjK6OdHwZxbiHH+Q9WCJRoSy4p7b2AjZLSEld+hXT1Y5Wihv+wp80dFEGWAJh2E= 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+45386+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 1565579316354137.6283099656623; Sun, 11 Aug 2019 20:08:36 -0700 (PDT) Return-Path: X-Received: from mga02.intel.com (mga02.intel.com []) by groups.io with SMTP; Sun, 11 Aug 2019 20:08:35 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Aug 2019 20:08:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,375,1559545200"; d="scan'208";a="193859746" X-Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by fmsmga001.fm.intel.com with ESMTP; 11 Aug 2019 20:08:18 -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 v4 13/15] MdeModulePkg/CapsuleLib: Transfer reset data Date: Mon, 12 Aug 2019 11:07:56 +0800 Message-Id: <20190812030758.10324-14-zhichao.gao@intel.com> In-Reply-To: <20190812030758.10324-1-zhichao.gao@intel.com> References: <20190812030758.10324-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=1565579316; bh=amzThVB5ZwTjdbTb/tI9U0b5vnWS5X04rubMet8y10s=; h=Cc:Date:From:Reply-To:Subject:To; b=DRdHaLznkBpT5VPPLO+423nReZvudyGJgyjt/SjHj3F/J8JFXa1UKOCEL/IYsk9Qolg HYTlGWqN8CNrjTtUUP0FLzmCUkwUVDb6kEJCZcwxDtfdhIYAvM3mGf2bms7zmP9MTd9xr 6Q7QC637uCSqYNk5WF7f1LpF2nsbHRZ8Dk0= 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 gEdkiiCapsuleUpdateCompleteResetGuid for DoResetSystem function. 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 | 2 ++ MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleProcessLib.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf b/MdeM= odulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf index 05de4299fba9..5fd7e1764b0b 100644 --- a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf +++ b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf @@ -51,6 +51,7 @@ [LibraryClasses] DisplayUpdateProgressLib FileHandleLib UefiBootManagerLib + ResetUtilityLib =20 [Pcd] gEfiMdeModulePkgTokenSpaceGuid.PcdCapsuleMax = ## CONSUMES @@ -93,6 +94,7 @@ [Guids] ## SOMETIMES_PRODUCES ## Variable:L"BootNext" gEfiGlobalVariableGuid gEdkiiCapsuleOnDiskNameGuid ## SOMETIMES_CONSUMES ## GUID + gEdkiiCapsuleUpdateCompleteResetGuid ## SOMETIMES_CONSUMES =20 [Depex] gEfiVariableWriteArchProtocolGuid diff --git a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleProcessLib.c b= /MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleProcessLib.c index 2cecc87385b3..2802962ed1b6 100644 --- a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleProcessLib.c +++ b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleProcessLib.c @@ -30,6 +30,7 @@ #include #include #include +#include =20 #include =20 @@ -623,7 +624,7 @@ DoResetSystem ( =20 REPORT_STATUS_CODE(EFI_PROGRESS_CODE, (EFI_SOFTWARE | PcdGet32(PcdStatus= CodeSubClassCapsule) | PcdGet32(PcdCapsuleStatusCodeResettingSystem))); =20 - gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL); + ResetSystemWithSubtype (EfiResetCold, &gEdkiiCapsuleUpdateCompleteResetG= uid); =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 (#45386): https://edk2.groups.io/g/devel/message/45386 Mute This Topic: https://groups.io/mt/32836907/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-