public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Zhiguang Liu" <zhiguang.liu@intel.com>
To: devel@edk2.groups.io
Subject: [Patch V3 0/9] Create multiple Hobs for Universal Payload
Date: Fri,  4 Jun 2021 17:42:18 +0800	[thread overview]
Message-ID: <20210604094227.1890-1-zhiguang.liu@intel.com> (raw)

V1:
This patch set is based on Universal Payload on https://universalpayload.github.io/documentation/payload-interfaces/index.html
This patch set introduce one general header, three different hob types and how Universal Payload consume these hobs.

V2:
Move all the header files and Guid define to MdeModulePkg
Fix code bug when parsing SmbiosDxe.
Enhance error handling in AcpiTableProtocol.c.
Add AcpiTableDxe.inf in UefiPayload.fdf

V3:
Avoid duplicated code in SmBiosDxe.c

All changes can be seen at https://github.com/LiuZhiguang001/edk2/tree/UniversalPayloadHeaders_v3

Zhiguang Liu (9):
  MdeModulePkg: Add Universal Payload general defination header file
  MdeModulePkg: Add new structure for the PCI Root Bridge Info Hob
  UefiPayloadPkg: UefiPayload retrieve PCI root bridge from Guid Hob
  MdeModulePkg: Add new structure for the Universal Payload SMBios Table
    Info Hob
  MdeModulePkg/Universal/SmbiosDxe: Scan for existing tables
  UefiPayloadPkg: Creat gPldSmbiosTableGuid Hob
  MdeModulePkg: Add new structure for the Universal Payload ACPI Table
    Info Hob
  MdeModulePkg/ACPI: Install ACPI table from HOB.
  UefiPayloadPkg: Creat gPldAcpiTableGuid Hob

 MdeModulePkg/Include/UniversalPayload/AcpiTable.h              |  28 ++++++++++++++++++++++++++++
 MdeModulePkg/Include/UniversalPayload/PciRootBridges.h         |  89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 MdeModulePkg/Include/UniversalPayload/SmbiosTable.h            |  28 ++++++++++++++++++++++++++++
 MdeModulePkg/Include/UniversalPayload/UniversalPayload.h       |  33 +++++++++++++++++++++++++++++++++
 MdeModulePkg/MdeModulePkg.dec                                  |  15 +++++++++++++++
 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiSdt.c             |  92 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------
 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTable.h           |  38 +++++++++++++++++++++++++++++++++++++-
 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf      |   8 +++++---
 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c   | 171 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------
 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c                   | 320 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.h                   |   4 +++-
 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf                 |   5 ++++-
 UefiPayloadPkg/BlSupportDxe/BlSupportDxe.c                     |  28 +---------------------------
 UefiPayloadPkg/BlSupportDxe/BlSupportDxe.h                     |   5 +----
 UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf                   |   4 +---
 UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridge.h        |  40 ++++++++++++++++++++++++++++++++++++++--
 UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c     |  47 ++++++++++++++++++++++++++++++++++++++++++++---
 UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf   |   8 +++++++-
 UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeSupport.c |  73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c             |  23 ++++++++++++++++++++++-
 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h             |   5 +++--
 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf           |   4 +++-
 UefiPayloadPkg/UefiPayloadPkg.dsc                              |   2 +-
 UefiPayloadPkg/UefiPayloadPkg.fdf                              |   4 ++++
 24 files changed, 986 insertions(+), 88 deletions(-)
 create mode 100644 MdeModulePkg/Include/UniversalPayload/AcpiTable.h
 create mode 100644 MdeModulePkg/Include/UniversalPayload/PciRootBridges.h
 create mode 100644 MdeModulePkg/Include/UniversalPayload/SmbiosTable.h
 create mode 100644 MdeModulePkg/Include/UniversalPayload/UniversalPayload.h

-- 
2.30.0.windows.2


             reply	other threads:[~2021-06-04  9:42 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-04  9:42 Zhiguang Liu [this message]
2021-06-04  9:42 ` [Patch V3 1/9] MdeModulePkg: Add Universal Payload general defination header file Zhiguang Liu
2021-06-08  5:20   ` Wu, Hao A
2021-06-08 16:25   ` Michael D Kinney
2021-06-09  2:58     ` [edk2-devel] " Ni, Ray
2021-06-09  3:08       ` Ma, Maurice
2021-06-09  5:45         ` Zhiguang Liu
2021-06-04  9:42 ` [Patch V3 2/9] MdeModulePkg: Add new structure for the PCI Root Bridge Info Hob Zhiguang Liu
2021-06-08  5:20   ` Wu, Hao A
2021-06-04  9:42 ` [Patch V3 3/9] UefiPayloadPkg: UefiPayload retrieve PCI root bridge from Guid Hob Zhiguang Liu
2021-06-04  9:42 ` [Patch V3 4/9] MdeModulePkg: Add new structure for the Universal Payload SMBios Table Info Hob Zhiguang Liu
2021-06-08  5:20   ` Wu, Hao A
2021-06-04  9:42 ` [Patch V3 5/9] MdeModulePkg/Universal/SmbiosDxe: Scan for existing tables Zhiguang Liu
2021-06-08  5:21   ` Wu, Hao A
2021-06-08  9:20   ` Patrick Rudolph
2021-06-10  1:56     ` Zhiguang Liu
2021-06-04  9:42 ` [Patch V3 6/9] UefiPayloadPkg: Creat gPldSmbiosTableGuid Hob Zhiguang Liu
2021-06-04  9:42 ` [Patch V3 7/9] MdeModulePkg: Add new structure for the Universal Payload ACPI Table Info Hob Zhiguang Liu
2021-06-08  5:21   ` Wu, Hao A
2021-06-04  9:42 ` [Patch V3 8/9] MdeModulePkg/ACPI: Install ACPI table from HOB Zhiguang Liu
2021-06-08  5:21   ` Wu, Hao A
2021-06-04  9:42 ` [Patch V3 9/9] UefiPayloadPkg: Creat gPldAcpiTableGuid Hob Zhiguang Liu

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=20210604094227.1890-1-zhiguang.liu@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