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.43, mailfrom: zhichao.gao@intel.com) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by groups.io with SMTP; Thu, 30 May 2019 18:46:18 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 May 2019 18:46:18 -0700 X-ExtLoop1: 1 Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga005.fm.intel.com with ESMTP; 30 May 2019 18:46:18 -0700 Received: from fmsmsx162.amr.corp.intel.com (10.18.125.71) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 30 May 2019 18:46:17 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx162.amr.corp.intel.com (10.18.125.71) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 30 May 2019 18:46:16 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.10]) by shsmsx102.ccr.corp.intel.com ([169.254.2.134]) with mapi id 14.03.0415.000; Fri, 31 May 2019 09:46:15 +0800 From: "Gao, Zhichao" To: Leif Lindholm , "devel@edk2.groups.io" CC: Bret Barkelew , "Wang, Jian J" , "Wu, Hao A" , "Ni, Ray" , "Zeng, Star" , "Gao, Liming" , Sean Brogan , "Michael Turner" Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/CapsulePei: Optimize the CapsulePei Thread-Topic: [edk2-devel] [PATCH] MdeModulePkg/CapsulePei: Optimize the CapsulePei Thread-Index: AQHVFbfnkfGMh9DmmU2l06xK0pI9fqaBbQuAgADEstD//32mAIACx0HQ Date: Fri, 31 May 2019 01:46:14 +0000 Message-ID: <3CE959C139B4C44DBEA1810E3AA6F9000B7E1D64@SHSMSX101.ccr.corp.intel.com> References: <20190529004555.45364-1-zhichao.gao@intel.com> <20190529111143.whfxiphgc3y6jap4@bivouac.eciton.net> <3CE959C139B4C44DBEA1810E3AA6F9000B7DB95D@SHSMSX101.ccr.corp.intel.com> <20190529150910.bxrhcbu4j7pezuc2@bivouac.eciton.net> In-Reply-To: <20190529150910.bxrhcbu4j7pezuc2@bivouac.eciton.net> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: zhichao.gao@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: Leif Lindholm [mailto:leif.lindholm@linaro.org] > Sent: Wednesday, May 29, 2019 11:09 PM > To: devel@edk2.groups.io; Gao, Zhichao > Cc: Bret Barkelew ; Wang, Jian J > ; Wu, Hao A ; Ni, Ray > ; Zeng, Star ; Gao, Liming > ; Sean Brogan ; > Michael Turner > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/CapsulePei: Optimize the > CapsulePei >=20 > On Wed, May 29, 2019 at 03:01:12PM +0000, Gao, Zhichao wrote: > > I just update the date of copyright. And the code in Mu project didn't= add > its own copyright. > > If it is required, I would add it for them. >=20 > Well, hopefully Microsoft will add their own copyright to the original > :) >=20 > Although it would certainly be better to add it here as well anyway. I think it is better to let MS to add the copyright by themselves. >=20 > So what modifications were made to the code on the way from the project > Mu repository? That would be useful to mention in the commit message. I would add this info blow commit message(not in commit message). It is he= lpful for review. But it may not be useful to add them in the commit messag= e. On my opinion, the commit message should contain the summary and impact of= the changes. Thanks, Zhichao >=20 > Regards, >=20 > Leif >=20 > > And I also make some minor changes on it. > > > > Thanks, > > Zhichao > > > > > -----Original Message----- > > > From: Leif Lindholm [mailto:leif.lindholm@linaro.org] > > > Sent: Wednesday, May 29, 2019 7:12 PM > > > To: devel@edk2.groups.io; Gao, Zhichao > > > Cc: Bret Barkelew ; Wang, Jian J > > > ; Wu, Hao A ; Ni, Ray > > > ; Zeng, Star ; Gao, Liming > > > ; Sean Brogan ; > > > Michael Turner > > > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/CapsulePei: Optimize > > > the CapsulePei > > > > > > On Wed, May 29, 2019 at 08:45:55AM +0800, Gao, Zhichao wrote: > > > > From: Bret Barkelew > > > > > > If this code is from Microsoft... > > > > > > > > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1853 > > > > > > > > Sperate the capsule check function from GetCapsuleDescriptors and > > > > name it to AreCapsulesStaged. > > > > Rename GetCapsuleDescriptors to GetScatterGatherHeadEntries. > > > > And optimize its to remove the duplicated code. > > > > > > > > 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 > > > > Signed-off-by: Zhichao gao > > > > --- > > > > MdeModulePkg/Universal/CapsulePei/Capsule.h | 3 +- > > > > .../Universal/CapsulePei/CapsulePei.inf | 3 +- > > > > .../Universal/CapsulePei/UefiCapsule.c | 357 ++++++++++---= ----- > > > > 3 files changed, 194 insertions(+), 169 deletions(-) > > > > > > > > diff --git a/MdeModulePkg/Universal/CapsulePei/Capsule.h > > > > b/MdeModulePkg/Universal/CapsulePei/Capsule.h > > > > index baf40423af..fc20dd8b92 100644 > > > > --- a/MdeModulePkg/Universal/CapsulePei/Capsule.h > > > > +++ b/MdeModulePkg/Universal/CapsulePei/Capsule.h > > > > @@ -1,6 +1,6 @@ > > > > /** @file > > > > > > > > -Copyright (c) 2006 - 2018, Intel Corporation. All rights > > > > reserved.
> > > > +Copyright (c) 2006 - 2019, Intel Corporation. All rights > > > > +reserved.
> > > > > > > > SPDX-License-Identifier: BSD-2-Clause-Patent > > > > > > > > @@ -30,6 +30,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent > > > > #include #include > > > > #include > > > > +#include > > > > #include #include > > > > "Common/CommonHeader.h" > > > > > > > > diff --git a/MdeModulePkg/Universal/CapsulePei/CapsulePei.inf > > > > b/MdeModulePkg/Universal/CapsulePei/CapsulePei.inf > > > > index 5d43df3075..9c88b3986f 100644 > > > > --- a/MdeModulePkg/Universal/CapsulePei/CapsulePei.inf > > > > +++ b/MdeModulePkg/Universal/CapsulePei/CapsulePei.inf > > > > @@ -6,7 +6,7 @@ > > > > # This external input must be validated carefully to avoid > > > > security issue like # buffer overflow, integer overflow. > > > > # > > > > -# Copyright (c) 2006 - 2018, Intel Corporation. All rights > > > > reserved.
> > > > +# Copyright (c) 2006 - 2019, Intel Corporation. All rights > > > > +reserved.
> > > > > > ...why does Intel get the copyright? > > > > > > / > > > Leif > > > >=20 > >