From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web08.34931.1624204037148521455 for ; Sun, 20 Jun 2021 08:47:17 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: zhiguang.liu@intel.com) IronPort-SDR: GHllNpeIn8DkY6KSqQHeASnEMl303B9xBczOXXoYFalj9hkggt/bSK6mYH8K7F1PbGFVQS34bE mX0RiRGoa+Yg== X-IronPort-AV: E=McAfee;i="6200,9189,10021"; a="194044373" X-IronPort-AV: E=Sophos;i="5.83,287,1616482800"; d="scan'208";a="194044373" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2021 08:47:15 -0700 IronPort-SDR: cb4G8qz9GDIJX5lukaBefzezBHyBdIN971r6+nCYgWdy+t4suPoSOMBaGpHT0errU+njR31hwk 1cbVvxAn/0Xg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,287,1616482800"; d="scan'208";a="451932595" Received: from fieedk002.ccr.corp.intel.com ([10.239.158.144]) by orsmga008.jf.intel.com with ESMTP; 20 Jun 2021 08:47:14 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Subject: [PATCH 00/12] Enable Universal Payload in UefiPayloadPkg Date: Sun, 20 Jun 2021 23:46:50 +0800 Message-Id: <20210620154702.2681-1-zhiguang.liu@intel.com> X-Mailer: git-send-email 2.30.0.windows.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This whole patch set will enable some basic feature of Universal Payload in UefiPayloadPkg. Zhiguang Liu (12): UefiPayloadPkg: Add HobLib for UniversalPayload MdeModulePkg: Add new structure for the Universal Payload Serial Port Info UefiPayloadPkg: Add a separate PlatformHookLib for Universal Payload UefiPayloaPkg: Update the function definition of HobConstructor UefiPayloadPkg: Create separate Payload Entry for UniversalPayload UefiPayloadPkg: Get and enter DxeCore for Universal Payload UefiPayloadPkg: Fix up UPL Pcd database UefiPayloadPkg: Include UniversalPayLoad modules in UefiPayloadPkg.dsc UefiPayloadPkg: Remove assert when reserve MMIO/IO resource for devices UefiPayloadPkg: Add macro to disable some drivers UefiPayloadPkg: Add PcdInstallAcpiSdtProtocol feature in UefiPayloadPkg UefiPayloadPkg: Add PcdResetOnMemoryTypeInformationChange in UefiPayloadPkg MdeModulePkg/Include/UniversalPayload/SerialPortInfo.h | 30 ++++++++++++++++++++++++++++++ MdeModulePkg/MdeModulePkg.dec | 3 +++ UefiPayloadPkg/BlSupportDxe/BlSupportDxe.c | 20 +++++++++++--------- UefiPayloadPkg/Include/Library/DxeHobListLib.h | 27 +++++++++++++++++++++++++++ UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.inf | 40 ++++++++++++++++++++++++++++++++++++++++ UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.uni | 17 +++++++++++++++++ UefiPayloadPkg/Library/DxeHobLib/HobLib.c | 597 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.inf | 35 +++++++++++++++++++++++++++++++++++ UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.c | 20 ++++++++++++++++++++ UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf | 28 ++++++++++++++++++++++++++++ UefiPayloadPkg/Library/{HobLib => PayloadEntryHobLib}/Hob.c | 28 ++++++++++++++-------------- UefiPayloadPkg/Library/{HobLib => PayloadEntryHobLib}/HobLib.inf | 2 +- UefiPayloadPkg/Library/UniversalPayloadPlatformHookLib/PlatformHookLib.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ UefiPayloadPkg/Library/UniversalPayloadPlatformHookLib/PlatformHookLib.inf | 41 +++++++++++++++++++++++++++++++++++++++++ UefiPayloadPkg/UefiPayloadEntry/LoadDxeCore.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----- UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c | 5 +---- UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------- UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c | 406 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ UefiPayloadPkg/UefiPayloadEntry/X64/DxeLoadFunc.c | 4 ++-- UefiPayloadPkg/UefiPayloadPkg.dec | 2 ++ UefiPayloadPkg/UefiPayloadPkg.dsc | 52 +++++++++++++++++++++++++++++++++++++++++++--------- UefiPayloadPkg/UefiPayloadPkg.fdf | 10 +++++++++- 24 files changed, 1697 insertions(+), 53 deletions(-) create mode 100644 MdeModulePkg/Include/UniversalPayload/SerialPortInfo.h create mode 100644 UefiPayloadPkg/Include/Library/DxeHobListLib.h create mode 100644 UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.inf create mode 100644 UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.uni create mode 100644 UefiPayloadPkg/Library/DxeHobLib/HobLib.c create mode 100644 UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.c create mode 100644 UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.inf create mode 100644 UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.c create mode 100644 UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf rename UefiPayloadPkg/Library/{HobLib => PayloadEntryHobLib}/Hob.c (92%) rename UefiPayloadPkg/Library/{HobLib => PayloadEntryHobLib}/HobLib.inf (87%) create mode 100644 UefiPayloadPkg/Library/UniversalPayloadPlatformHookLib/PlatformHookLib.c create mode 100644 UefiPayloadPkg/Library/UniversalPayloadPlatformHookLib/PlatformHookLib.inf create mode 100644 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c create mode 100644 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf -- 2.16.2.windows.1