From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: eric.dong@intel.com) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by groups.io with SMTP; Wed, 10 Jul 2019 00:56:26 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2019 00:56:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,473,1557212400"; d="scan'208";a="167654042" Received: from ydong10-win10.ccr.corp.intel.com ([10.239.158.133]) by fmsmga007.fm.intel.com with ESMTP; 10 Jul 2019 00:56:24 -0700 From: "Dong, Eric" To: devel@edk2.groups.io Cc: Ray Ni , Laszlo Ersek Subject: [Patch v5 0/2] Enable new MM MP protocol Date: Wed, 10 Jul 2019 15:56:22 +0800 Message-Id: <20190710075624.16420-1-eric.dong@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit V5: 1. Some small enhancement. V4 changes: 1. Use link list to save the used tokens. V3 changes: 1. Fix Token clean up too early caused CheckProcedure return error. V1 changes: RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=1937 PI spec added a new protocol named MM MP protocol. This protocol allows for better remote queuing of execution of procedures on an AP. This extends the existing procedures to allow: 1. A function to be called in blocking and non-blocking manner explicitly 2. Allow broadcasts. 3. Allow execution of a procedure when a processor powers up. This patch serial enable this new protocol. Cc: Ray Ni Cc: Laszlo Ersek Eric Dong (2): MdePkg: Add new MM MP Protocol definition. V5 changes: 1. some small enhancement. MdePkg/Include/Pi/PiMultiPhase.h | 16 + MdePkg/Include/Protocol/MmMp.h | 333 +++++++++++ MdePkg/MdePkg.dec | 3 + UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 570 ++++++++++++++++++- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 18 + UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 193 ++++++- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 3 + UefiCpuPkg/PiSmmCpuDxeSmm/SmmMp.c | 344 +++++++++++ UefiCpuPkg/PiSmmCpuDxeSmm/SmmMp.h | 286 ++++++++++ 9 files changed, 1743 insertions(+), 23 deletions(-) create mode 100644 MdePkg/Include/Protocol/MmMp.h create mode 100644 UefiCpuPkg/PiSmmCpuDxeSmm/SmmMp.c create mode 100644 UefiCpuPkg/PiSmmCpuDxeSmm/SmmMp.h -- 2.21.0.windows.1