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.93; helo=mga11.intel.com; envelope-from=eric.dong@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 F3DB521EA15CD for ; Tue, 10 Oct 2017 22:28:22 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Oct 2017 22:31:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,360,1503385200"; d="scan'208";a="145120346" Received: from ydong10-win10.ccr.corp.intel.com ([10.239.158.57]) by orsmga002.jf.intel.com with ESMTP; 10 Oct 2017 22:31:49 -0700 From: Eric Dong To: edk2-devel@lists.01.org Cc: Ruiyu Ni , Jiewen Yao Date: Wed, 11 Oct 2017 13:31:44 +0800 Message-Id: <1507699907-7448-1-git-send-email-eric.dong@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 Subject: [Patch v2 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: Wed, 11 Oct 2017 05:28:24 -0000 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. 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 implement check both PEI and DXE phase. Cc: Ruiyu Ni Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong 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. 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 -- 2.7.0.windows.1