audk/MdeModulePkg
Bret Barkelew 27052c21c4 MdeModulePkg/CapsulePei: Optimize the CapsulePei
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1853

Code change form Mu project:
https://github.com/microsoft/mu_basecore/blob/release/201903/
MdeModulePkg/Universal/CapsulePei/UefiCapsule.c#L801

Separate the capsule check function from GetCapsuleDescriptors
to AreCapsulesStaged. The original one is unclear.

Avoid querying the capsule variable twice. Use a fixed array
to cache the SG list during count the number of SG list. Then
allocate memory buffer to save the SG list from array.

Using MemoryAllocationLib instead of memory function in Pei
services.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Michael Turner <Michael.Turner@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Zhichao gao <zhichao.gao@intel.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
2019-06-24 09:18:31 +08:00
..
Application Revert "Capsule-on-Disk entire Patch 2019-06-21 10:25:25 +08:00
Bus MdeModulePkg/NvmExpressPei: Produce NVM Express PassThru PPI 2019-06-24 09:07:58 +08:00
Core Revert "Capsule-on-Disk entire Patch 2019-06-21 10:25:25 +08:00
Include MdeModulePkg: Add definitions for NVM Express Passthru PPI 2019-06-24 09:07:55 +08:00
Library Revert "Capsule-on-Disk entire Patch 2019-06-21 10:25:25 +08:00
Logo MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
Universal MdeModulePkg/CapsulePei: Optimize the CapsulePei 2019-06-24 09:18:31 +08:00
MdeModulePkg.dec MdeModulePkg: Add definitions for NVM Express Passthru PPI 2019-06-24 09:07:55 +08:00
MdeModulePkg.dsc Revert "Capsule-on-Disk entire Patch 2019-06-21 10:25:25 +08:00
MdeModulePkg.uni Revert "Capsule-on-Disk entire Patch 2019-06-21 10:25:25 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00