public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ni, Ray" <ray.ni@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"Xie, Yuanhao" <yuanhao.xie@intel.com>
Subject: Re: [edk2-devel] [Patch V4 0/5] Eliminate the second INIT-SIPI-SIPI sequence
Date: Wed, 5 Jul 2023 02:48:30 +0000	[thread overview]
Message-ID: <MN6PR11MB82440403D1A6940D097A62CA8C2FA@MN6PR11MB8244.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20230628084724.57574-1-yuanhao.xie@intel.com>

Reviewed-by: Ray Ni <Ray.ni@intel.com>

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Yuanhao Xie
> Sent: Wednesday, June 28, 2023 4:47 PM
> To: devel@edk2.groups.io
> Subject: [edk2-devel] [Patch V4 0/5] Eliminate the second INIT-SIPI-SIPI
> sequence
> 
> To speed up MP initialization, this set of patches replaces the
> time-consuming init-sipi-sipi process in the DXE phase. Instead,
> a start-up signal is used to wake up the APs and switch context
>  from the PEI phase to the DXE phase. This optimization is
>  effective when both PEI and DXE operate in the same bit mode.
> The current HOB characterized by mCpuInitMpLibHobGuid has
> two purposes:
>   Acting as a global variable for the PEI phase.
>   Transferring information from the PEI phase to the DXE phase.
> This series of patches creates a new HOB specifically designed
> to transfer only the minimal necessary information
> (MpHandoff structure) from the PEI phase to the DXE phase.
> 
> YuanhaoXie (5):
>   UefiCpuPkg: Refactor the logic for placing APs in HltLoop.
>   UefiCpuPkg: Refactor the logic for placing APs in Mwait/Runloop.
>   UefiCpuPkg: Create MpHandOff.
>   UefiCpuPkg: ApWakeupFunction directly use CpuMpData.
>   UefiCpuPkg: Eliminate the second INIT-SIPI-SIPI sequence.
> 
>  UefiCpuPkg/Library/MpInitLib/AmdSev.c          |  17 +++++++++++++++++
>  UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf  |   1 +
>  UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm |   4 ++--
>  UefiCpuPkg/Library/MpInitLib/MpHandOff.h       |  47
> +++++++++++++++++++++++++++++++++++++++++++++++
>  UefiCpuPkg/Library/MpInitLib/MpLib.c           | 345
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ++++++++++++++++++++-----------------------------------------------------------------
>  UefiCpuPkg/Library/MpInitLib/MpLib.h           |  28
> ++++++++++++++++++++++++++++
>  UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf  |   2 +-
>  UefiCpuPkg/Library/MpInitLib/PeiMpLib.c        |  32
> +++++++++++++++++++++++++++++++-
>  UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm  |   3 +--
>  9 files changed, 408 insertions(+), 71 deletions(-)
>  create mode 100644 UefiCpuPkg/Library/MpInitLib/MpHandOff.h
> 
> --
> 2.36.1.windows.1
> 
> 
> 
> 
> 


  parent reply	other threads:[~2023-07-05  2:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-28  8:47 [Patch V4 0/5] Eliminate the second INIT-SIPI-SIPI sequence Yuanhao Xie
2023-06-28  8:47 ` [Patch V4 1/5] UefiCpuPkg: Refactor the logic for placing APs in HltLoop Yuanhao Xie
2023-06-28  8:47 ` [Patch V4 2/5] UefiCpuPkg: Refactor the logic for placing APs in Mwait/Runloop Yuanhao Xie
2023-06-28  8:47 ` [Patch V4 3/5] UefiCpuPkg: Create MpHandOff Yuanhao Xie
2023-06-28  8:47 ` [Patch V4 4/5] UefiCpuPkg: ApWakeupFunction directly use CpuMpData Yuanhao Xie
2023-06-28  8:47 ` [Patch V4 5/5] UefiCpuPkg: Eliminate the second INIT-SIPI-SIPI sequence Yuanhao Xie
2023-07-05  2:48 ` Ni, Ray [this message]
     [not found] ` <176ED8D3FC1743E3.25260@groups.io>
2023-07-05  7:22   ` [edk2-devel] [Patch V4 0/5] " Ni, Ray
2023-07-06  9:45     ` Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MN6PR11MB82440403D1A6940D097A62CA8C2FA@MN6PR11MB8244.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox