From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) by mx.groups.io with SMTP id smtpd.web11.1603.1675802163128718755 for ; Tue, 07 Feb 2023 12:36:03 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@starlabs-systems.20210112.gappssmtp.com header.s=20210112 header.b=lL3oOSnQ; spf=pass (domain: starlabs.systems, ip: 209.85.208.48, mailfrom: sean@starlabs.systems) Received: by mail-ed1-f48.google.com with SMTP id l14so7833223eds.4 for ; Tue, 07 Feb 2023 12:36:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=starlabs-systems.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=con4VfcYWr2DFDv6cYgZBxczHULcGoHI4cY1m7/XqM0=; b=lL3oOSnQ1bU1UgYW4PqReXSVIgYToPrf4sI3J0xAD15dCJr7O3OQJqcItTjFRNRXiy QBGXFjjz3+mxKQKBpvOs18cJhIedxtNIYRdTWZCIsbD3v/rbrHmuIyJ5AuuNsOg5qpeA 9MkWgIIL0eSgPhUTuX3Tzdx/+woWK08wCX9PZg9yG2OEbFNdG4uIwPlj7ZBYSO1WHFqd o2y3Rftgm7zKgElyt4da/V8XRRS5FK349b2iORyveRtroluTGXtKOs5zJF2hzbpWi0Sf iztA59bpT71o9Iy5iquSBBZ2kQFMGUJlWkdtn6G1LRK6a0afrr1oTyQ/7O+U9+j9uSxZ tb5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=con4VfcYWr2DFDv6cYgZBxczHULcGoHI4cY1m7/XqM0=; b=vtRqUP/6a9A1TdkeObOlk03F3IqvKvEcBNsIiCPHHIqyXKRvwAcnTmClKASgQJyxMY sx1sGiyvUQ/JPpUSkECgdnehIfAzi/YiuX7p+uvsUJAf8xisnrk2AbupwO3rF1BvtRMO ee0yhfIpWs8JZ9GGsCsrw1dWHstxmX2iJi8rhQmGe52s/aTOmK/DF/ZiogTM5quVhtGr 0QHfYmV6r5xtP6pJbOhy7zRMVyA/kesafyORyWW7MB81LQ94esPaLPuV8ct3eoNZfYZ3 tLposSqFfG5Inh+r2nGKNmrqZXAIqe9m29pAzpkuZ/P6Gm6LxrWoWbufGgEsGmiZPQOw VsvQ== X-Gm-Message-State: AO0yUKUiKYmImFSgieA+zGIpK0iZ2hKZwom0+DA1q025HjeZVrgC4tTb VVWUJjYVYP3ydXGdW+eAj0/Ler+uHagdsVSAxtm5ZcLmgyBwJt4= X-Google-Smtp-Source: AK7set9D6ijIm2SHMIsnzJwEdkSI8tIKJMdWVFhOvJfqxCV3M5Ut4RlB37GGqlTURwnqCx678foOjmmdl5mztvMj/YM= X-Received: by 2002:a50:c059:0:b0:4aa:a33d:13ac with SMTP id u25-20020a50c059000000b004aaa33d13acmr1002848edd.6.1675802160734; Tue, 07 Feb 2023 12:36:00 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Sean Rhodes" Date: Tue, 7 Feb 2023 20:35:49 +0000 Message-ID: Subject: Re: [edk2-devel] regarding uefipayload build warning for pcd To: devel@edk2.groups.io, ritul.bits@gmail.com Content-Type: multipart/alternative; boundary="0000000000008138e505f42218f6" --0000000000008138e505f42218f6 Content-Type: text/plain; charset="UTF-8" Why the edk2 changes? Just to fix this issue? Have you seen L36 of payloads/external/edk2/Kconfig On Tue, 7 Feb 2023 at 20:30, ritul guru wrote: > > > Loading driver 378D7B65-8DA9-4773-B6E4-A47826A833E1 > InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 51A3E1C0 > Loading driver at 0x00051DD1000 EntryPoint=0x00051DD5670 PcRtc.efi > InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 51A3ED98 > ProtectUefiImageCommon - 0x51A3E1C0 > - 0x0000000051DD1000 - 0x0000000000008000 > SetUefiImageMemoryAttributes - 0x0000000051DD1000 - 0x0000000000001000 > (0x0000000000004008) > SetUefiImageMemoryAttributes - 0x0000000051DD2000 - 0x0000000000006000 > (0x0000000000020008) > SetUefiImageMemoryAttributes - 0x0000000051DD8000 - 0x0000000000001000 > (0x0000000000004008) > PROGRESS CODE: V03040002 I0 > > ASSERT_EFI_ERROR (Status = Device Error) > > *ASSERT [PcRtc] > /home//src/p/coreboot/payloads/external/edk2/workspace/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c(1)* > getting above assert after changed to FD_BASE to below value, > This error is coming while booting to coreboot with edk2 payload: > > UefiPayloadPkg/UefiPayloadPkg.fdf > DEFINE FD_BASE = 0x02182000 > > need to change FD_BASE, as it was going outside Available memory. > any hint would be appreciated. > > > > > *Thanks & RegardsRitul Guru+91-9916513186* > > > On Tue, Feb 7, 2023 at 10:09 PM ritul guru wrote: > >> UefiPayloadPkg/UefiPayloadPkg.fdf >> DEFINE FD_BASE = 0x00800000 >> >> Is the above address correct in uefipaylaod? >> As observing some regions are getting out of limit of FD limit, >> >> and when setting DEFINE FD_BASE = 0x02200000, then seeing assert in >> [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister]. >> >> >> >> >> >> >> *Thanks & RegardsRitul Guru+91-9916513186* >> >> >> On Tue, Feb 7, 2023 at 8:29 PM ritul guru wrote: >> >>> Hi, >>> I am building edk2 payload and getting below warning for >>> PcdRtcIndexRegister, >>> and if try to boot to then observing that there is assert at: >>> >>> ASSERT_EFI_ERROR (Status = Device Error) >>> >>> DXE_ASSERT!: >>> /home/amd/src///coreboot/payloads/external/tianocore/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c >>> (141): !EFI_ERROR (Status) >>> >>> >>> >>> >>> build time warning: >>> Active Platform = >>> /home//src///coreboot/payloads/external/edk2/workspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc >>> .build: : warning: The PCD was not specified by any INF module in the >>> platform for the given architecture. >>> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister] >>> Platform: [UefiPayloadPkg.dsc] >>> Arch: ['IA32'] >>> build: : warning: The PCD was not specified by any INF module in the >>> platform for the given architecture. >>> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister] >>> Platform: [UefiPayloadPkg.dsc] >>> Arch: ['IA32'] >>> . done! >>> >>> >>> >>> >>> *Thanks & RegardsRitul Guru+91-9916513186* >>> >> > > --0000000000008138e505f42218f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Why the edk2 changes? Just to fix this issue?

Have you seen L36 of=C2=A0payloads/external/edk2/Kconfig

=
On Tue, 7 = Feb 2023 at 20:30, ritul guru <r= itul.bits@gmail.com> wrote:


Load= ing driver 378D7B65-8DA9-4773-B6E4-A47826A833E1
InstallProtocolInterface= : 5B1B31A1-9562-11D2-8E3F-00A0C969723B 51A3E1C0
Loading driver at 0x0005= 1DD1000 EntryPoint=3D0x00051DD5670 PcRtc.efi
InstallProtocolInterface: B= C62157E-3E33-4FEC-9920-2D3B36D750DF 51A3ED98
ProtectUefiImageCommon - 0x= 51A3E1C0
=C2=A0 - 0x0000000051DD1000 - 0x0000000000008000
SetUefiImag= eMemoryAttributes - 0x0000000051DD1000 - 0x0000000000001000 (0x000000000000= 4008)
SetUefiImageMemoryAttributes - 0x0000000051DD2000 - 0x000000000000= 6000 (0x0000000000020008)
SetUefiImageMemoryAttributes - 0x0000000051DD8= 000 - 0x0000000000001000 (0x0000000000004008)
PROGRESS CODE: V03040002 I= 0

ASSERT_EFI_ERROR (Status =3D Device Error)
ASSERT [PcRtc] /h= ome//src/p/coreboot/payloads/external/edk2/workspace/tianocore/PcAtChipsetP= kg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c(1)

getting above assert after changed to FD_BASE to below = value,=C2=A0
This error is coming while = booting to coreboot with edk2 payload:
<= br>
UefiPayloadPkg/UefiPayloadPkg.fdf
DEFINE FD_BASE =C2=A0 =C2=A0 =C2=A0 = =3D 0x02182000

need to change FD_BASE, as it was going outside Availab= le memory.
any hint would be appreciated= .


Thanks & Re= gards
Ritul Guru
+91-9916513186
=


On Tue, Feb 7, 2023 at 10:09 PM ritul guru <ritul.bits@gmail.co= m> wrote:
UefiPayloadPkg/UefiPayloadP= kg.fdf
DEFINE FD_BASE = =C2=A0 =C2=A0 =C2=A0 =3D 0x00800000
=
Is the above=C2=A0address correct i= n uefipaylaod?
As observing=C2=A0some re= gions are getting out of limit of FD limit,

and when setting DEFINE FD_BASE= =C2=A0 =C2=A0 =C2=A0 =3D 0x02200000, then seeing assert in=C2=A0
[gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegiste= r].




Than= ks & Regards
Ritul Guru
+91-9916513186


<= div dir=3D"ltr" class=3D"gmail_attr">On Tue, Feb 7, 2023 at 8:29 PM ritul g= uru <ritul.bit= s@gmail.com> wrote:
Hi,
I am building edk2 payload and getting below warning = for PcdRtcIndexRegister,
and if try to b= oot to then observing that there is assert at:

ASSERT_= EFI_ERROR (Status =3D Device Error)

DXE_ASSERT!: /home/amd/src///core= boot/payloads/external/tianocore/tianocore/PcAtChipsetPkg/PcatRealTimeClock= RuntimeDxe/PcRtcEntry.c (141): !EFI_ERROR (Status)





build time warning:
Active Platform =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D /home//sr= c///coreboot/payloads/external/edk2/workspace/tianocore/UefiPayloadPkg/Uefi= PayloadPkg.dsc
.build: : warning: The PCD was not specified by any INF m= odule in the platform for the given architecture.
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister]
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 Platform: [UefiPayloadPkg.dsc]
=C2=A0 =C2=A0 =C2=A0= =C2=A0 Arch: ['IA32']
build: : warning: The PCD was not specifi= ed by any INF module in the platform for the given architecture.
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegist= er]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Platform: [UefiPayloadPkg.dsc]
=C2=A0= =C2=A0 =C2=A0 =C2=A0 Arch: ['IA32']
. done!


=
Thanks & Regards
Ritul Gu= ru
+91-9916513186
<= /div>

--0000000000008138e505f42218f6--