From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id A3F6F740034 for ; Thu, 27 Jul 2023 02:20:58 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=k2GYUvxxqocyuNB5UMRUaqx3owA3qTnUaWsxmMLiwJ0=; c=relaxed/simple; d=groups.io; h=X-Received:X-Received:X-IronPort-AV:X-IronPort-AV:X-Received:X-ExtLoop1:X-IronPort-AV:X-IronPort-AV:X-Received:From:To:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:X-Gm-Message-State:Content-Transfer-Encoding; s=20140610; t=1690424457; v=1; b=qej45ym3yUk9atOt4inYBSyVvHH8TlXa4aCjRT1hmC69LmIlvJn6OJfbqIxEQfSTb1A1gcG5 nHQBgmPeMGmK6WcKJrn8hCaK/WVi3xCNE32XDOeMPDOLcdkXFwEMbv6ZacPyDBiVpiMwK/wsQhC N9cOgzuSawPh4f5fI+ozJN9w= X-Received: by 127.0.0.2 with SMTP id mCSzYY7687511xoTzGNEi78o; Wed, 26 Jul 2023 19:20:57 -0700 X-Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.4235.1690424456424173367 for ; Wed, 26 Jul 2023 19:20:56 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10783"; a="399122554" X-IronPort-AV: E=Sophos;i="6.01,233,1684825200"; d="scan'208";a="399122554" X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2023 19:20:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10783"; a="756460953" X-IronPort-AV: E=Sophos;i="6.01,233,1684825200"; d="scan'208";a="756460953" X-Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.158]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2023 19:20:54 -0700 From: "duntan" To: devel@edk2.groups.io Subject: [edk2-devel] [PATCH 0/5] Use MpService2Ppi to wakeup CPU in Smm CpuS3 Date: Thu, 27 Jul 2023 10:20:35 +0800 Message-Id: <20230727022040.1910-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 Reply-To: devel@edk2.groups.io,dun.tan@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: dlbHTDs08pN0wOZuDWLaitSGx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=qej45ym3; 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 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io This patch set is to prepare MpService2Ppi in S3Resume when PEI and SMM env run in the same execution mode, and use MpService2Ppi to wakeup Cpu to do CPU initialization in Smm CpuS3 boot flow if MpService2Ppi is not 0 in mSmmS3ResumeState. Dun Tan (5): MdeModulePkg: add MpService2Ppi field in SMM_S3_RESUME_STATE UefiCpuPkg/S3Resume2Pei: prepare MpService2Ppi in S3Resume UefiCpuPkg/S3Resume2Pei: assert for invalid excution mode combo UefiCpuPkg/PiSmmCpuDxe: code refinement for CpuS3.c UefiCpuPkg/PiSmmCpuDxe: use MpService2Ppi to wakeup AP in s3 MdeModulePkg/Include/Guid/AcpiS3Context.h | 3 ++- UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c | 175 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------- UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c | 25 ++++++++++++++++++++++++- UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf | 3 ++- 4 files changed, 141 insertions(+), 65 deletions(-) -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107278): https://edk2.groups.io/g/devel/message/107278 Mute This Topic: https://groups.io/mt/100383956/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-