From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.136; helo=mga12.intel.com; envelope-from=jiewen.yao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (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 DD6B722492758 for ; Thu, 1 Mar 2018 21:53:25 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Mar 2018 21:59:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,411,1515484800"; d="scan'208";a="21968369" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga008.jf.intel.com with ESMTP; 01 Mar 2018 21:59:34 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 1 Mar 2018 21:59:33 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.124]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.116]) with mapi id 14.03.0319.002; Fri, 2 Mar 2018 13:59:01 +0800 From: "Yao, Jiewen" To: "Zeng, Star" , "edk2-devel@lists.01.org" Thread-Topic: [PATCH 1/3] MdeModulePkg: Add S3SmmInitDone definition Thread-Index: AQHTseWNmQkMEN9eD0yiSNgTxCPbp6O8c0dQ Date: Fri, 2 Mar 2018 05:59:00 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503AAD9DAE@shsmsx102.ccr.corp.intel.com> References: <1519967749-5112-1-git-send-email-star.zeng@intel.com> <1519967749-5112-2-git-send-email-star.zeng@intel.com> In-Reply-To: <1519967749-5112-2-git-send-email-star.zeng@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzBkMzE2M2YtODM1NC00NjE3LWE3ZWItZDQ3MjUwYzM1ZWEzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJDaFJMemJPdVwvMUNJXC9rOXRpdlliWEhUbTNmcWhOUGFzXC8wYU01ZlhyczRGM1JBUDkrMHQ4YldQYjQ1eDVqMjJYIn0= x-ctpclassification: CTP_NT 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 1/3] MdeModulePkg: Add S3SmmInitDone definition X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2018 05:53:26 -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: Zeng, Star > Sent: Friday, March 2, 2018 1:16 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Yao, Jiewen > Subject: [PATCH 1/3] MdeModulePkg: Add S3SmmInitDone definition >=20 > Add gEdkiiS3SmmInitDoneGuid, after S3 SMM initialization is done and > before S3 boot script is executed, this GUID is installed as PPI in > PEI and protocol in SMM environment. It allows for PEIMs or SMM > drivers to hook this point and do the required tasks. >=20 > Cc: Jiewen Yao > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Star Zeng > --- > MdeModulePkg/Include/Guid/S3SmmInitDone.h | 27 > +++++++++++++++++++++++++++ > MdeModulePkg/MdeModulePkg.dec | 3 +++ > 2 files changed, 30 insertions(+) > create mode 100644 MdeModulePkg/Include/Guid/S3SmmInitDone.h >=20 > diff --git a/MdeModulePkg/Include/Guid/S3SmmInitDone.h > b/MdeModulePkg/Include/Guid/S3SmmInitDone.h > new file mode 100644 > index 000000000000..53fef8ed19ef > --- /dev/null > +++ b/MdeModulePkg/Include/Guid/S3SmmInitDone.h > @@ -0,0 +1,27 @@ > +/** @file > + After S3 SMM initialization is done and before S3 boot script is execu= ted, > + this GUID is installed as PPI in PEI and protocol in SMM environment. > + It allows for PEIMs or SMM drivers to hook this point and do the requi= red > tasks. > + > + Copyright (c) 2018, Intel Corporation. All rights reserved.
> + This program and the accompanying materials > + are licensed and made available under the terms and conditions of the = BSD > License > + which accompanies this distribution. The full text of the license may= be > found at > + http://opensource.org/licenses/bsd-license.php > + > + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" > BASIS, > + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER > EXPRESS OR IMPLIED. > + > +**/ > + > +#ifndef __S3_SMM_INIT_DONE_H__ > +#define __S3_SMM_INIT_DONE_H__ > + > +#define EDKII_S3_SMM_INIT_DONE_GUID \ > + { \ > + 0x8f9d4825, 0x797d, 0x48fc, { 0x84, 0x71, 0x84, 0x50, 0x25, 0x79, 0x= 2e, > 0xf6 } \ > + } > + > +extern EFI_GUID gEdkiiS3SmmInitDoneGuid; > + > +#endif > diff --git a/MdeModulePkg/MdeModulePkg.dec > b/MdeModulePkg/MdeModulePkg.dec > index 455979386e3f..2b24ba506832 100644 > --- a/MdeModulePkg/MdeModulePkg.dec > +++ b/MdeModulePkg/MdeModulePkg.dec > @@ -406,6 +406,9 @@ [Guids] > ## Include/Guid/EndofS3Resume.h > gEdkiiEndOfS3ResumeGuid =3D { 0x96f5296d, 0x05f7, 0x4f3c, {0x84, 0x67, > 0xe4, 0x56, 0x89, 0x0e, 0x0c, 0xb5 } } >=20 > + ## Include/Guid/S3SmmInitDone.h > + gEdkiiS3SmmInitDoneGuid =3D { 0x8f9d4825, 0x797d, 0x48fc, { 0x84, 0x71= , > 0x84, 0x50, 0x25, 0x79, 0x2e, 0xf6 } } > + > [Ppis] > ## Include/Ppi/AtaController.h > gPeiAtaControllerPpiGuid =3D { 0xa45e60d1, 0xc719, 0x44aa, { 0xb= 0, > 0x7a, 0xaa, 0x77, 0x7f, 0x85, 0x90, 0x6d }} > -- > 2.7.0.windows.1