From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id B35937803CF for ; Fri, 10 May 2024 10:09:08 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=1ecps0w3tY9gegz+HNjCe29AVAENUvCYCaEnPfR2eUM=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1715335747; v=1; b=1e8E/OLQc3Q5jnv7OLgvZdk/K0Y5gCyDBtVwdvR9uQ4gKdbHN1J1HaAeks20eAPjs+5uYzNi Ru8sW0VWiUv0XuK8alHt6Dlm8feLAyFioBEOK1GsBTpJRTwRfJR8YXSr6FUjTk1m7ARyICidL2+ qNnCjTxh4eG2IdUXwmRSN6KZndpuf5qt/8BGujH6LudGT6s8BEtoGMtHWhm4cjYqgvktaje0LKt 2VPScLhIw/W+fIQrMTLqLaryVVsUVPQ339uLCJSB88AYB6gUiIoUPtVrpyb+MtBfOsXitdTp0AE nimJwqkjmW//+xlq+D9p5cIMdV5HPm4qot4MgWJW5qLNw== X-Received: by 127.0.0.2 with SMTP id ZbEiYY7687511xDuT6yEoknq; Fri, 10 May 2024 03:09:07 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by mx.groups.io with SMTP id smtpd.web10.9485.1715335727366928454 for ; Fri, 10 May 2024 03:09:06 -0700 X-CSE-ConnectionGUID: /rAgyyUCQr+g2VY5MZNLjg== X-CSE-MsgGUID: ScWipWs8Rq2zJFrgNlX+hQ== X-IronPort-AV: E=McAfee;i="6600,9927,11068"; a="28819160" X-IronPort-AV: E=Sophos;i="6.08,150,1712646000"; d="scan'208";a="28819160" X-Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2024 03:09:06 -0700 X-CSE-ConnectionGUID: Qi2LqGrURkGjJSKHAmFI6w== X-CSE-MsgGUID: pS8fhmttS1Wzs+x9yNNYYQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,150,1712646000"; d="scan'208";a="60424266" X-Received: from unknown (HELO shwdeopenlab702.ccr.corp.intel.com) ([10.239.55.43]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2024 03:09:05 -0700 From: "duntan" To: devel@edk2.groups.io Cc: Ray Ni , Laszlo Ersek , Rahul Kumar , Gerd Hoffmann , Jiaxin Wu Subject: [edk2-devel] [PATCH 07/18] UefiCpuPkg: Install gEdkiiEndOfS3ResumeGuid in S3Resume Date: Fri, 10 May 2024 18:08:16 +0800 Message-Id: <20240510100827.1903-8-dun.tan@intel.com> In-Reply-To: <20240510100827.1903-1-dun.tan@intel.com> References: <20240510100827.1903-1-dun.tan@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Fri, 10 May 2024 03:09:06 -0700 Resent-From: dun.tan@intel.com Reply-To: devel@edk2.groups.io,dun.tan@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: mWkdHqhk3qsiymzbEPFpyIcmx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b="1e8E/OLQ"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io Install gEdkiiEndOfS3ResumeGuid in S3Resume to trigger callback registered by PeiMpLib. The callback is to relocate Ap to new safe memory before jump to OS waking vector in S3 boot flow. Signed-off-by: Dun Tan Cc: Ray Ni Cc: Laszlo Ersek Cc: Rahul Kumar Cc: Gerd Hoffmann Cc: Jiaxin Wu --- UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c b/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c index a8e9c92a93..98badc74ae 100644 --- a/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c +++ b/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c @@ -260,6 +260,12 @@ EFI_PEI_PPI_DESCRIPTOR mPpiListS3SmmInitDoneTable = { 0 }; +EFI_PEI_PPI_DESCRIPTOR mPpiListEndOfS3ResumeTable = { + (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST), + &gEdkiiEndOfS3ResumeGuid, + 0 +}; + // // Global Descriptor Table (GDT) // @@ -490,6 +496,13 @@ S3ResumeBootOs ( PERF_INMODULE_BEGIN ("EndOfS3Resume"); DEBUG ((DEBUG_INFO, "Signal EndOfS3Resume\n")); + + // + // Install EndOfS3Resume. + // + Status = PeiServicesInstallPpi (&mPpiListEndOfS3ResumeTable); + ASSERT_EFI_ERROR (Status); + // // Signal EndOfS3Resume to SMM. // -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118799): https://edk2.groups.io/g/devel/message/118799 Mute This Topic: https://groups.io/mt/106018131/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-