[edk2-devel] [PATCH] MdeModulePkg/PCD: Pcd initialize DXE have assert

Guo, Gua gua.guo at intel.com
Mon May 9 01:31:13 UTC 2022


@gaoliming<mailto:gaoliming at byosoft.com.cn>



May I get your help to add push Label on the PR ?
https://github.com/tianocore/edk2/pull/2844


It seems I don't have access right to add push Label by myself.



If have any concern please also share me.

Thanks,
Gua



-----Original Message-----
From: gaoliming <gaoliming at byosoft.com.cn>
Sent: Sunday, May 8, 2022 10:44 PM
To: devel at edk2.groups.io; guo.guo at intel.com
Cc: Guo, Gua <gua.guo at intel.com>
Subject: 回复: [edk2-devel] [PATCH] MdeModulePkg/PCD: Pcd initialize DXE have assert



Guo:

  This change is good to me. Reviewed-by: Liming Gao <gaoliming at byosoft.com.

cn>



Thanks

Liming

> -----邮件原件-----

> 发件人: devel at edk2.groups.io<mailto:devel at edk2.groups.io> <devel at edk2.groups.io<mailto:devel at edk2.groups.io>> 代表

> guo.guo at intel.com<mailto:guo.guo at intel.com>

> 发送时间: 2022年5月6日 5:30

> 收件人: devel at edk2.groups.io<mailto:devel at edk2.groups.io>

> 抄送: Gua Guo <gua.guo at intel.com<mailto:gua.guo at intel.com>>

> 主题: [edk2-devel] [PATCH] MdeModulePkg/PCD: Pcd initialize DXE have

> assert

>

> From: Gua Guo <gua.guo at intel.com<mailto:gua.guo at intel.com>>

>

> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3917

>

> When PlatformPkg.dsc has multiple SKU IDs but didn't exist delta PCD,

> System will hang on BuildPcdDxeDataBase.

>

> Ideally, if didn't exist delta PCD by different SKU ID,

> UpdatePcdDatabase () shouldn't return EFI_NOT_FOUND.

>

> Signed-off-by: Gua Guo <gua.guo at intel.com<mailto:gua.guo at intel.com>>

> ---

>  MdeModulePkg/Universal/PCD/Dxe/Service.c | 5 +++++

>  1 file changed, 5 insertions(+)

>

> diff --git a/MdeModulePkg/Universal/PCD/Dxe/Service.c

> b/MdeModulePkg/Universal/PCD/Dxe/Service.c

> index 3965846b93..5ade8d988b 100644

> --- a/MdeModulePkg/Universal/PCD/Dxe/Service.c

> +++ b/MdeModulePkg/Universal/PCD/Dxe/Service.c

> @@ -817,6 +817,11 @@ UpdatePcdDatabase (

>    //

>

>    Index    = (mPcdDatabase.DxeDb->Length + 7) & (~7);

>

>    SkuDelta = NULL;

>

> +

>

> +  if (Index == mDxePcdDbSize) {

>

> +    return EFI_SUCCESS;

>

> +  }

>

> +

>

>    while (Index < mDxePcdDbSize) {

>

>      SkuDelta = (PCD_DATABASE_SKU_DELTA *)((UINT8 *)mDxePcdDbBinary

> + Index);

>

>      if ((SkuDelta->SkuId == SkuId) && (SkuDelta->SkuIdCompared == 0))

> {

>

> --

> 2.31.1.windows.1

>

>

>

> -=-=-=-=-=-=

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

> View/Reply Online (#89557):

> https://edk2.groups.io/g/devel/message/89557

> Mute This Topic: https://groups.io/mt/90934230/4905953

> Group Owner: devel+owner at edk2.groups.io<mailto:devel+owner at edk2.groups.io>

> Unsubscribe: https://edk2.groups.io/g/devel/unsub

> [gaoliming at byosoft.com.cn]

> -=-=-=-=-=-=

>








-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#89619): https://edk2.groups.io/g/devel/message/89619
Mute This Topic: https://groups.io/mt/90994444/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20220509/d0416db6/attachment-0001.htm>


More information about the edk2-devel-archive mailing list