From nobody Mon Feb 9 23:01:28 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+45068+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+45068+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1565226526; cv=none; d=zoho.com; s=zohoarc; b=VQ3bhj+GFyc4UB1d9EHDwbt76Xym5h6mO1rUxwwT+IVQYoxnQiONeaJT5wqSa/Ea0doERNQObOjkR/mel/+/WVUgGbq5RULhp4GJpmzff/EG6sogqIvGZ0lXIrYLDmHqtszq2ajsu6WXLhDVL9evjA9oWveEKsyEPsLTPbf5KHU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565226526; 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=tXh+pgLG9Lg/i5TsxbRSWWvRJxfMwMA1HA6AVbmdhLI=; b=StIhe1xQYYmdeeszXfmF6k94+KLqI/HnBA3fB1ezKfma2swACjhUdQgUwEct1+GTUUdqK9UMiVI8nMT/sNHns4X6jybM7n9mgFjc4py+Cq+cnft2mhcxW4ZvA8fVTeVQzYM7W5xzw12B3rP31AZrFoNP1Jf3o5FjFNh3RWXeNOA= 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+45068+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 1565226526968476.44345143190037; Wed, 7 Aug 2019 18:08:46 -0700 (PDT) Return-Path: X-Received: from mga06.intel.com (mga06.intel.com []) by groups.io with SMTP; Wed, 07 Aug 2019 18:08:46 -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 orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Aug 2019 18:08:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,358,1559545200"; d="scan'208";a="193036802" X-Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by fmsmga001.fm.intel.com with ESMTP; 07 Aug 2019 18:08:44 -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 V3 13/15] MdeModulePkg/CapsuleLib: Transfer reset data Date: Thu, 8 Aug 2019 09:08:23 +0800 Message-Id: <20190808010825.16784-14-zhichao.gao@intel.com> In-Reply-To: <20190808010825.16784-1-zhichao.gao@intel.com> References: <20190808010825.16784-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=1565226526; bh=fWMxNp+jNG61GUtWuzJSykjPcLwejtedaXj/rVJRvjE=; h=Cc:Date:From:Reply-To:Subject:To; b=YXh/6UfHXO8PFw4gQt2tI6VGKOR9mSMdgE+UEL3MxILSw2jkP4DANmA/XK3YC//8pbV AifHwvTUgfwtReRoq31csQ5KThd01A25j1qHbTLj0/PcToZa4ykb7tK9Fzeup2M/L4ByH +JX2mius7c5VwxHELnwO7eSmfNJ4FbnNDbY= 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 05de4299fb..5fd7e1764b 100644 --- a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf +++ b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf @@ -51,6 +51,7 @@ DisplayUpdateProgressLib FileHandleLib UefiBootManagerLib + ResetUtilityLib =20 [Pcd] gEfiMdeModulePkgTokenSpaceGuid.PcdCapsuleMax = ## CONSUMES @@ -93,6 +94,7 @@ ## 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 2cecc87385..2802962ed1 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 (#45068): https://edk2.groups.io/g/devel/message/45068 Mute This Topic: https://groups.io/mt/32794364/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-