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.88; helo=mga01.intel.com; envelope-from=star.zeng@intel.com; receiver=edk2-devel@lists.01.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (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 BAFE022546B82 for ; Thu, 1 Mar 2018 21:09:47 -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 fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Mar 2018 21:15:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,409,1515484800"; d="scan'208";a="21960017" Received: from shwdeopenpsi068.ccr.corp.intel.com ([10.239.158.46]) by orsmga008.jf.intel.com with ESMTP; 01 Mar 2018 21:15:55 -0800 From: Star Zeng To: edk2-devel@lists.01.org Cc: Star Zeng Date: Fri, 2 Mar 2018 13:15:46 +0800 Message-Id: <1519967749-5112-1-git-send-email-star.zeng@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 Subject: [PATCH 0/3] Add S3SmmInitDone point 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:09:48 -0000 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. S3Resume will install the PPI and signal to SMM by communication, and then PiSmmCore will install the protocol. Star Zeng (3): MdeModulePkg: Add S3SmmInitDone definition MdeModulePkg PiSmmCore: Register SMI handler to install S3SmmInitDone UefiCpuPkg S3ResumePei: Signal S3SmmInitDone MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | 62 +++++++++++++++++++++- MdeModulePkg/Core/PiSmmCore/PiSmmCore.h | 26 ++++++++- MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf | 3 +- MdeModulePkg/Include/Guid/S3SmmInitDone.h | 27 ++++++++++ MdeModulePkg/MdeModulePkg.dec | 3 ++ UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c | 42 ++++++++++----- .../Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf | 3 ++ 7 files changed, 151 insertions(+), 15 deletions(-) create mode 100644 MdeModulePkg/Include/Guid/S3SmmInitDone.h -- 2.7.0.windows.1