From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: redhat.com, ip: 209.132.183.28, mailfrom: lersek@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by groups.io with SMTP; Wed, 03 Jul 2019 14:35:01 -0700 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5B28D308FBB1; Wed, 3 Jul 2019 21:34:47 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-89.ams2.redhat.com [10.36.116.89]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5BD1F1001B20; Wed, 3 Jul 2019 21:34:45 +0000 (UTC) Subject: Re: [edk2-devel] [Patch v3 0/2] Enable new MM MP protocol To: devel@edk2.groups.io, eric.dong@intel.com Cc: Ray Ni References: <20190703024242.33572-1-eric.dong@intel.com> From: "Laszlo Ersek" Message-ID: <2079925a-4728-bb11-e150-fd0f23520024@redhat.com> Date: Wed, 3 Jul 2019 23:34:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190703024242.33572-1-eric.dong@intel.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Wed, 03 Jul 2019 21:34:52 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 07/03/19 04:42, Dong, Eric wrote: > v3 changes: > 1. Fix Token clean up too early caused CheckProcedure return error. > > 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. > UefiCpuPkg/PiSmmCpuDxeSmm: Enable MM MP Protocol. > > MdePkg/Include/Pi/PiMultiPhase.h | 16 + > MdePkg/Include/Protocol/MmMp.h | 333 +++++++++++ > MdePkg/MdePkg.dec | 3 + > UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 555 ++++++++++++++++++- > UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 11 + > UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 160 +++++- > UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 3 + > UefiCpuPkg/PiSmmCpuDxeSmm/SmmMp.c | 372 +++++++++++++ > UefiCpuPkg/PiSmmCpuDxeSmm/SmmMp.h | 286 ++++++++++ > 9 files changed, 1722 insertions(+), 17 deletions(-) > create mode 100644 MdePkg/Include/Protocol/MmMp.h > create mode 100644 UefiCpuPkg/PiSmmCpuDxeSmm/SmmMp.c > create mode 100644 UefiCpuPkg/PiSmmCpuDxeSmm/SmmMp.h > Regression-tested-by: Laszlo Ersek