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=eric.dong@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 170AD21EA15C4 for ; Wed, 11 Oct 2017 01:18:48 -0700 (PDT) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Oct 2017 01:22:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,360,1503385200"; d="scan'208";a="159221057" Received: from ydong10-win10.ccr.corp.intel.com ([10.239.158.57]) by orsmga005.jf.intel.com with ESMTP; 11 Oct 2017 01:22:16 -0700 From: Eric Dong To: edk2-devel@lists.01.org Cc: Ruiyu Ni , Jiewen Yao Date: Wed, 11 Oct 2017 16:22:07 +0800 Message-Id: <1507710130-3044-1-git-send-email-eric.dong@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 Subject: [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: Wed, 11 Oct 2017 08:18:49 -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. 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. 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. 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