From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=jiewen.yao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 A428C21EA15DF for ; Wed, 11 Oct 2017 19:00:52 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Oct 2017 19:04:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,363,1503385200"; d="scan'208";a="909116129" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 11 Oct 2017 19:04:21 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 11 Oct 2017 19:04:21 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.159]) with mapi id 14.03.0319.002; Thu, 12 Oct 2017 10:04:19 +0800 From: "Yao, Jiewen" To: "Dong, Eric" , "edk2-devel@lists.01.org" CC: "Ni, Ruiyu" Thread-Topic: [Patch v3 0/3] Add SmmEndOfS3Resume event. Thread-Index: AQHTQmoUxg+Bg4nK6EGq7z5xi8Q/RaLfd/Ng Date: Thu, 12 Oct 2017 02:04:18 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503A9DC60A@shsmsx102.ccr.corp.intel.com> References: <1507710130-3044-1-git-send-email-eric.dong@intel.com> In-Reply-To: <1507710130-3044-1-git-send-email-eric.dong@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch v3 0/3] Add SmmEndOfS3Resume event. 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: , X-List-Received-Date: Thu, 12 Oct 2017 02:00:52 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiewen.yao@intel.com > -----Original Message----- > From: Dong, Eric > Sent: Wednesday, October 11, 2017 4:22 PM > To: edk2-devel@lists.01.org > Cc: Ni, Ruiyu ; Yao, Jiewen > Subject: [Patch v3 0/3] Add SmmEndOfS3Resume event. >=20 > This patch series add new SmmEndOfS3Resume event which required by some > SMM drivers. > It will implmented by SmmCore to install the > gEdkiiSmmEndOfS3ResumeProtocolGuid > Protocol. Smm drivers can install this protocol's notification functions = to > hoot this envet. > It will be trigged right after the EndOfPei event in S3 resume phase. >=20 > V2 Changes: > Only change patch 2/3 > 1. Change structures name to avoid they start with EFI_. > 2. Base on DXE phase bits to provide communication buffer, current impl= ement > check both PEI and DXE phase. >=20 > V3 Changes: > for 2/3 patch:UefiCpuPkg/S3Resume2Pei: Send S3 resume finished event to > SmmCore. > 1. Change structure name for better understanding. > 2. Enhance communication buffer calculate logic to more accurate. >=20 > for 3/3 patch: MdeModulePkg/PiSmmCore: Install Protocol when S3 resume > finished. > 1. Uninstall the protocol right after install it to avoid run out of = memory. >=20 > Cc: Ruiyu Ni > Cc: Jiewen Yao > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Eric Dong >=20 > Eric Dong (3): > MdeModulePkg/SmmEndOfS3Resume.h: Add new protocol definition. > UefiCpuPkg/S3Resume2Pei: Send S3 resume finished event to SmmCore. > MdeModulePkg/PiSmmCore: Install Protocol when S3 resume finished. >=20 > MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | 55 > ++++++++++++-- > MdeModulePkg/Core/PiSmmCore/PiSmmCore.h | 24 ++++++ > MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf | 1 + > MdeModulePkg/Include/Protocol/SmmEndOfS3Resume.h | 31 ++++++++ > MdeModulePkg/MdeModulePkg.dec | 3 + > UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c | 85 > ++++++++++++++++++++++ > .../Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf | 4 + > 7 files changed, 196 insertions(+), 7 deletions(-) > create mode 100644 MdeModulePkg/Include/Protocol/SmmEndOfS3Resume.h >=20 > -- > 2.7.0.windows.1