From: "Guo Dong" <guo.dong@intel.com>
To: devel@edk2.groups.io
Cc: maurice.ma@intel.com, benjamin.you@intel.com
Subject: [edk2-devel] [PATCH V2 0/1] UefiPayloadPkg: Remove PEI phase from Payload
Date: Sun, 15 Nov 2020 17:35:21 -0700 [thread overview]
Message-ID: <cover.1605475852.git.guo.dong@intel.com> (raw)
Hi All,
This patch removed UEFI payload PEI phase to make UEFI payload simple.
It uses UefiPayloadEntry module to bridge bootloader and DXE phase.
Original DSC files UefiPayloadIa32.dsc and UefiPayloadIa32X64.dsc
are replaced by a single DSC UefiPayloadPkg.dsc. Pure IA32 support
is replaced by Pure X64 support. IA32 Entry point with X64 DXE phase
is still supported.
Changes in V2:
Addressed all the review comments from Maurice.
Fixed debug msg in UefiPayloadEntry.
Updated the Handoff HOB to DXE core to include Payload FV.
Synced the GHCB changes from DxeIpl to UefiPayloadEntry.
V1:
It is not necessary to have a PEI phase in the UEFI payload since no
specific PEI task is required. This patch adds a UefiPayloadEntry
driver to get UEFI Payload required information from the bootloaders,
convert them into a HOB list, load DXE core and transfer control to it.
Here is the change details:
1) Removed PEI phase, including Peicore, BlSupportPei, SecCore, etc.
2) Added UefiPayloadEntry driver. this is the only driver before DXE core.
3) Added Pure X64 support, dropped Pure IA32 (Could add later if required)
64bit payload with 32bit entry point is still supported.
4) Use one DSC file UefiPayloadPkg.dsc to support X64 and IA32X64 build.
Removed UefiPayloadIa32.dsc and UefiPayloadIa32X64.dsc
Tested with SBL and coreboot on QEMU.
Refs: https://github.com/tianocore/edk2/pull/1127
CC: maurice.ma@intel.com
CC: benjamin.you@intel.com
Signed-off-by: Guo Dong <guo.dong@intel.com>
Guo Dong (1):
UefiPayloadPkg: Remove PEI phase from Payload
UefiPayloadPkg/BlSupportPei/BlSupportPei.h | 39 -
UefiPayloadPkg/BlSupportPei/BlSupportPei.inf | 73 --
UefiPayloadPkg/BuildAndIntegrationInstructions.txt | 32 +-
UefiPayloadPkg/Include/Library/BlParseLib.h | 4 +-
UefiPayloadPkg/Library/HobLib/Hob.c | 706 ++++++++++++++++
UefiPayloadPkg/Library/HobLib/HobLib.inf | 39 +
UefiPayloadPkg/SecCore/FindPeiCore.c | 193 -----
UefiPayloadPkg/SecCore/Ia32/SecEntry.nasm | 78 --
UefiPayloadPkg/SecCore/Ia32/Stack.nasm | 72 --
UefiPayloadPkg/SecCore/SecCore.inf | 58 --
UefiPayloadPkg/SecCore/SecMain.c | 288 -------
UefiPayloadPkg/SecCore/SecMain.h | 131 ---
UefiPayloadPkg/UefiPayloadEntry/Ia32/DxeLoadFunc.c | 365 ++++++++
.../UefiPayloadEntry/Ia32/IdtVectorAsm.nasm | 71 ++
UefiPayloadPkg/UefiPayloadEntry/Ia32/SecEntry.nasm | 46 +
UefiPayloadPkg/UefiPayloadEntry/LoadDxeCore.c | 307 +++++++
UefiPayloadPkg/UefiPayloadEntry/MemoryAllocation.c | 201 +++++
.../UefiPayloadEntry.c} | 451 ++++------
UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h | 134 +++
.../UefiPayloadEntry/UefiPayloadEntry.inf | 93 ++
UefiPayloadPkg/UefiPayloadEntry/X64/DxeLoadFunc.c | 107 +++
UefiPayloadPkg/UefiPayloadEntry/X64/SecEntry.nasm | 47 ++
.../UefiPayloadEntry/X64/VirtualMemory.c | 939 +++++++++++++++++++++
.../UefiPayloadEntry/X64/VirtualMemory.h | 330 ++++++++
UefiPayloadPkg/UefiPayloadPkg.dec | 5 +-
...efiPayloadPkgIa32X64.dsc => UefiPayloadPkg.dsc} | 57 +-
UefiPayloadPkg/UefiPayloadPkg.fdf | 32 +-
UefiPayloadPkg/UefiPayloadPkgIa32.dsc | 585 -------------
28 files changed, 3576 insertions(+), 1907 deletions(-)
delete mode 100644 UefiPayloadPkg/BlSupportPei/BlSupportPei.h
delete mode 100644 UefiPayloadPkg/BlSupportPei/BlSupportPei.inf
create mode 100644 UefiPayloadPkg/Library/HobLib/Hob.c
create mode 100644 UefiPayloadPkg/Library/HobLib/HobLib.inf
delete mode 100644 UefiPayloadPkg/SecCore/FindPeiCore.c
delete mode 100644 UefiPayloadPkg/SecCore/Ia32/SecEntry.nasm
delete mode 100644 UefiPayloadPkg/SecCore/Ia32/Stack.nasm
delete mode 100644 UefiPayloadPkg/SecCore/SecCore.inf
delete mode 100644 UefiPayloadPkg/SecCore/SecMain.c
delete mode 100644 UefiPayloadPkg/SecCore/SecMain.h
create mode 100644 UefiPayloadPkg/UefiPayloadEntry/Ia32/DxeLoadFunc.c
create mode 100644 UefiPayloadPkg/UefiPayloadEntry/Ia32/IdtVectorAsm.nasm
create mode 100644 UefiPayloadPkg/UefiPayloadEntry/Ia32/SecEntry.nasm
create mode 100644 UefiPayloadPkg/UefiPayloadEntry/LoadDxeCore.c
create mode 100644 UefiPayloadPkg/UefiPayloadEntry/MemoryAllocation.c
rename UefiPayloadPkg/{BlSupportPei/BlSupportPei.c => UefiPayloadEntry/UefiPayloadEntry.c} (52%)
create mode 100644 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h
create mode 100644 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
create mode 100644 UefiPayloadPkg/UefiPayloadEntry/X64/DxeLoadFunc.c
create mode 100644 UefiPayloadPkg/UefiPayloadEntry/X64/SecEntry.nasm
create mode 100644 UefiPayloadPkg/UefiPayloadEntry/X64/VirtualMemory.c
create mode 100644 UefiPayloadPkg/UefiPayloadEntry/X64/VirtualMemory.h
rename UefiPayloadPkg/{UefiPayloadPkgIa32X64.dsc => UefiPayloadPkg.dsc} (90%)
delete mode 100644 UefiPayloadPkg/UefiPayloadPkgIa32.dsc
--
2.16.2.windows.1
next reply other threads:[~2020-11-16 0:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-16 0:35 Guo Dong [this message]
2020-11-16 0:35 ` [edk2-devel] [PATCH V2 1/1] UefiPayloadPkg: Remove PEI phase from Payload Guo Dong
2020-11-16 21:39 ` Ma, Maurice
2021-01-26 16:21 ` Patrick Rudolph
[not found] ` <DM6PR11MB27932D059A84A78B3CEB53E389BB9@DM6PR11MB2793.namprd11.prod.outlook.com>
2021-01-27 16:10 ` Guo Dong
2021-01-28 7:40 ` Patrick Rudolph
2021-01-28 22:34 ` Guo Dong
[not found] <1647D5DAE0E6DDAF.27572@groups.io>
2020-11-16 21:58 ` [edk2-devel] [PATCH V2 0/1] " Guo Dong
2020-11-17 0:48 ` 回复: " gaoliming
2020-11-17 19:47 ` Guo Dong
2020-12-02 8:28 ` Patrick Rudolph
2020-12-02 23:14 ` Guo Dong
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=cover.1605475852.git.guo.dong@intel.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