From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: zhichao.gao@intel.com) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by groups.io with SMTP; Sun, 09 Jun 2019 22:20:40 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jun 2019 22:20:40 -0700 X-ExtLoop1: 1 Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by fmsmga006.fm.intel.com with ESMTP; 09 Jun 2019 22:20:38 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Ray Ni , Star Zeng , Liming Gao , Sean Brogan , Michael Turner , Bret Barkelew , Leif Lindholm Subject: [PATCH v5 0/5] MdeModulePkg/CapsulePei: Optimize the CapsulePei Date: Mon, 10 Jun 2019 13:20:31 +0800 Message-Id: <20190610052036.11924-1-zhichao.gao@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit v1: Sperate the capsule check function from GetCapsuleDescriptors and name it to AreCapsulesStaged. Rename GetCapsuleDescriptors to GetScatterGatherHeadEntries. And optimize its to remove the duplicated code. V2: Clarify the changes of the patch and descript in the commit message. V3: Add the code change repo location in Mu and add description of the changes on it. Do not need to remain 2 byte for the null-terminate while using UnicodeValueToStringS. V4: Separate the patch into 2 part. first part is changes from MU. Second part is the substantial change on it. V5: Separate the substantial change in 2/2 base on the purpose. Cc: Jian J Wang Cc: Hao A Wu Cc: Ray Ni Cc: Star Zeng Cc: Liming Gao Cc: Sean Brogan Cc: Michael Turner Cc: Bret Barkelew Cc: Leif Lindholm Bret Barkelew (1): MdeModulePkg/CapsulePei: Optimize the CapsulePei Zhichao Gao (4): MdeMoudlePkg/CapsulePei: Fix coding style issue MdeMoudlePkg/CapsulePei: Optimize AreCapsulesStaged MdeMoudlePkg/CapsulePei: Optimize GetScatterGatherHeadEntries MdeMoudlePkg/CapsulePei: No need to remain space for null-terminate MdeModulePkg/Universal/CapsulePei/Capsule.h | 1 + .../Universal/CapsulePei/CapsulePei.inf | 1 + .../Universal/CapsulePei/UefiCapsule.c | 356 +++++++++--------- 3 files changed, 190 insertions(+), 168 deletions(-) -- 2.21.0.windows.1