Oleksiy:
  I understand your purpose. But, if new definition brings the incompatible 
change to the existing driver, we need to update the driver and avoid the 
impact. So, Wei suggests you to check version and keep current implementation. 
Wei doesn't request to support the new feature. 

Thanks
Liming
> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Oleksiy 
> Yakovlev
> Sent: Tuesday, May 12, 2020 11:00 PM
> To: Xu, Wei6 <wei6...@intel.com>; devel@edk2.groups.io
> Cc: Gao, Liming <liming....@intel.com>; Kinney, Michael D 
> <michael.d.kin...@intel.com>; Wang, Jian J <jian.j.w...@intel.com>; Wu,
> Hao A <hao.a...@intel.com>; Felix Polyudov <fel...@ami.com>
> Subject: Re: [edk2-devel] [PATCH V3 5/5] MdeModulePkg: Add FMP Capsule Image 
> Header extension
> 
> Hi Wei.
> 
> The intention of this patch series was to add headers to MdePkg, to make it 
> possible start working on features implementation.
> Implementing all features in all affected files through all possible module 
> was not in my intentions at all.
> I agreed to change DxeCapsuleLib to speed up adoption of this series. We need 
> this headers ASAP to start implementing those
> features in our own products.  So we need headers before  soft freeze.
> 
> Regards, Oleksiy.
> 
> -----Original Message-----
> From: Xu, Wei6 [mailto:wei6...@intel.com]
> Sent: Monday, May 11, 2020 10:39 PM
> To: devel@edk2.groups.io; Oleksiy Yakovlev
> Cc: Gao, Liming; Kinney, Michael D; Wang, Jian J; Wu, Hao A; Felix Polyudov
> Subject: RE: [edk2-devel] [PATCH V3 5/5] MdeModulePkg: Add FMP Capsule Image 
> Header extension
> 
> Hi Oleksiy,
> 
> Thanks a lot for the update. But besides it, there are several other places 
> need to be updated as well:
> https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Application/CapsuleApp/CapsuleDump.c#L99
> https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c#L522
> https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c#L926
> https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c#L946
> https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c#L1242
> https://github.com/tianocore/edk2/blob/master/SignedCapsulePkg/Universal/RecoveryModuleLoadPei/RecoveryModuleLoadPei.c#L3
> 31
> https://github.com/tianocore/edk2/blob/master/SignedCapsulePkg/Universal/RecoveryModuleLoadPei/RecoveryModuleLoadPei.c#L6
> 37
> 
> BR,
> Wei
> 
> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Oleksiy 
> Yakovlev
> Sent: Tuesday, May 12, 2020 5:51 AM
> To: devel@edk2.groups.io
> Cc: Gao, Liming <liming....@intel.com>; Kinney, Michael D 
> <michael.d.kin...@intel.com>; Wang, Jian J <jian.j.w...@intel.com>; Wu,
> Hao A <hao.a...@intel.com>; fel...@ami.com; oleks...@ami.com
> Subject: [edk2-devel] [PATCH V3 5/5] MdeModulePkg: Add FMP Capsule Image 
> Header extension
> 
> Add bitmask to structure which gives a binary-inspectable mechanism to 
> determine if a capsule contains an authentication section or
> depex section.
> (UEFI 2.8 errata a, mantis 2026)
> 
> Signed-off-by: Oleksiy Yakovlev <oleks...@ami.com>
> ---
>  MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c 
> b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c
> index 5dda561..af80039 100644
> --- a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c
> +++ b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c
> @@ -285,8 +285,10 @@ ValidateFmpCapsule (
>        DEBUG((DEBUG_ERROR, "ImageHeader->Version(0x%x) Unknown\n", 
> ImageHeader->Version));
>        return EFI_INVALID_PARAMETER;
>      }
> -    if (ImageHeader->Version < 
> EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER_INIT_VERSION) {
> +    if (ImageHeader->Version == 1) {
>        FmpImageHeaderSize = 
> OFFSET_OF(EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER, 
> UpdateHardwareInstance);
> +    } else {
> +      FmpImageHeaderSize =
> + OFFSET_OF(EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER,
> + ImageCapsuleSupport);
>      }
>      if (FmpImageSize < FmpImageHeaderSize) {
>        DEBUG((DEBUG_ERROR, "FmpImageSize(0x%lx) < 
> FmpImageHeaderSize(0x%x)\n", FmpImageSize, FmpImageHeaderSize));
> --
> 2.9.0.windows.1
> 
> 
> Please consider the environment before printing this email.
> 
> The information contained in this message may be confidential and proprietary 
> to American Megatrends (AMI).  This communication
> is intended to be read only by the individual or entity to whom it is 
> addressed or by their designee. If the reader of this message is
> not the intended recipient, you are on notice that any distribution of this 
> message, in any form, is strictly prohibited.  Please
> promptly notify the sender by reply e-mail or by telephone at 770-246-8600, 
> and then delete or destroy all copies of the transmission.
> 
> 
> 
> 
> Please consider the environment before printing this email.
> 
> The information contained in this message may be confidential and proprietary 
> to American Megatrends (AMI).  This communication
> is intended to be read only by the individual or entity to whom it is 
> addressed or by their designee. If the reader of this message is
> not the intended recipient, you are on notice that any distribution of this 
> message, in any form, is strictly prohibited.  Please
> promptly notify the sender by reply e-mail or by telephone at 770-246-8600, 
> and then delete or destroy all copies of the transmission.
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#59296): https://edk2.groups.io/g/devel/message/59296
Mute This Topic: https://groups.io/mt/74146781/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to