From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by mx.groups.io with SMTP id smtpd.web10.7377.1675920049425961506 for ; Wed, 08 Feb 2023 21:20:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DM5N6JlN; spf=pass (domain: gmail.com, ip: 209.85.218.45, mailfrom: ritul.bits@gmail.com) Received: by mail-ej1-f45.google.com with SMTP id gr7so3116578ejb.5 for ; Wed, 08 Feb 2023 21:20:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FKlsdwErBMP8yie1NGKdVozIGkzAHAZSjzPAtFmNUhQ=; b=DM5N6JlNdRlxC6QGb0XmkhJbCDxbdJ+LpFMr6TJOdK7XnoHTAbvBXHc/c8V4seUjCR 2OsSBSjJiPHE3gDp5x3wZuQa1+XSzIzeOIoISsbr2b4A5C9XnP5V7+rzQtkoX+csCDVU oNKcNj52VJjPLySs2szqkgFKWNdBVq+G8c+Q9hAz1vR2YZ1ekreFNy2+UE/YeRbOn3r8 Xe+SKLG3idCD4dfcDXD7Unq7MDbDQ7LaujHIkj2pWRyHOtJnLwbkR9+xw6F3RmTDpwuS KdcYcPcjqmQ4Fa1w6Jxo2Krtn5g3fLwunSFj9AiwhOamhrqpYVhGSla2oHoWqqulvIF7 5X5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc: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=FKlsdwErBMP8yie1NGKdVozIGkzAHAZSjzPAtFmNUhQ=; b=1nZ2C8EtnEHvE+wAxrQmZEqAnAQ2z+LmJKR5ZRKDplQCD/uZToVzxhKE/qhBshJzGB e1pcuMkr6kkHDWpQeYMVu8t6fz24C1uriQdAs7QJQ7LvTKZ1Ye/M/TDUKGgv2dUJ+/4K M6D5o/F1KD4u3Nks9CeAXUfOoCcx7UVwPDPfAXnptqi9/qzf7NFvBcHs0Logc3hEeZ0m OK3/8UqXINOSk3ZYxBO9UPNWllGrsd1mQhfZoTDWrflLWXcLi3jxGDiLVwMHJ/O8RHUM JiG4BvISSEfe4O70Mk1uEdzCvtc8SbgsCg0qwBlEKzjlaMrbbpNhqbGjb+HBxfXHVyQ5 vtfA== X-Gm-Message-State: AO0yUKXjrRRHhNRTTNOLi4tbuQ76xXX1ZIe8L3PXC7O4Rv4VqEGzmzOg YZKBXdbPpaG4otsf/lUYRgGu2Rn4tC6oN34jfK1CjN7+iPasKg== X-Google-Smtp-Source: AK7set+swJgx1cFahj+40mjRMCUJNFMebHVd3NT1Xe17MIGCR5nlog8CxCJNFJ8qXPe+mVpKmyBGSQ/68Ffe8UaoWqo= X-Received: by 2002:a17:906:5ac1:b0:879:e5b2:e12d with SMTP id x1-20020a1709065ac100b00879e5b2e12dmr236891ejs.13.1675920047483; Wed, 08 Feb 2023 21:20:47 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: ritul guru Date: Thu, 9 Feb 2023 10:50:34 +0530 Message-ID: Subject: Re: [edk2-devel] regarding uefipayload build warning for pcd To: Sean Rhodes Cc: devel@edk2.groups.io Content-Type: multipart/alternative; boundary="0000000000001a301105f43d8b7b" --0000000000001a301105f43d8b7b Content-Type: text/plain; charset="UTF-8" Any idea, what is the cause of below error? any workaround can be tried for this? 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)* *Thanks & RegardsRitul Guru+91-9916513186* On Wed, Feb 8, 2023 at 8:43 AM ritul guru wrote: > Any idea why the below error comes? > > 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)* > > > *anything to do with warning:* > > 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* > > > On Wed, Feb 8, 2023 at 3:40 AM Sean Rhodes wrote: > >> L36 is help text that says what you are trying to do, wont work >> >> On Tue, 7 Feb 2023 at 20:51, ritul guru wrote: >> >>> fatal: repository 'payloads/external/edk2/workspace/tianocore' does not >>> exist >>> make[1]: *** [Makefile:123: >>> /home/amd/src/phx2/coreboot_phx2/coreboot/payloads/external/edk2/workspace/edk2] >>> Error 128 >>> make: *** [payloads/external/Makefile.inc:158: build/UEFIPAYLOAD.fd] >>> Error 2 >>> >>> >>> >>> >>> >>> *Thanks & RegardsRitul Guru+91-9916513186* >>> >>> >>> On Wed, Feb 8, 2023 at 2:19 AM ritul guru wrote: >>> >>>> I do not get debug logs from edk2 payload even though debug payload is >>>> selected in menuconfig of coreboot. >>>> and also updated FD_BASE, if not then getting GCD assert while adding >>>> regions in phit table. >>>> >>>> below path should be give at L36 for custom edk2 repo? >>>> payloads/external/edk2/workspace/tianocore/ >>>> >>>> >>>> >>>> *Thanks & RegardsRitul Guru+91-9916513186* >>>> >>>> >>>> On Wed, Feb 8, 2023 at 2:06 AM Sean Rhodes >>>> wrote: >>>> >>>>> 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* >>>>>>>> >>>>>>> >>>>>> >>>>>> --0000000000001a301105f43d8b7b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Any idea, what is the cause of be= low error?
any workaround can be tried for th= is?

Loading driver 378D7B65-8DA9-4773-B6E4-A47826A833E1<= br>InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 51A3E1C0<= br>Loading driver at 0x00051DD1000 EntryPoint=3D0x00051DD5670 PcRtc.efi
= InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 51A3ED98
= ProtectUefiImageCommon - 0x51A3E1C0
=C2=A0 - 0x0000000051DD1000 - 0x0000= 000000008000
SetUefiImageMemoryAttributes - 0x0000000051DD1000 - 0x00000= 00000001000 (0x0000000000004008)
SetUefiImageMemoryAttributes - 0x000000= 0051DD2000 - 0x0000000000006000 (0x0000000000020008)
SetUefiImageMemoryA= ttributes - 0x0000000051DD8000 - 0x0000000000001000 (0x0000000000004008)PROGRESS CODE: V03040002 I0

ASSE= RT_EFI_ERROR (Status =3D Device Error)
ASSERT [PcRtc] /home//s= rc/p/coreboot/payloads/external/edk2/worksp= ace/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c(1)


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


On Wed, Feb 8, 2023 at 8:43 AM ritul guru <ritul.bits@gmail.com> wrote:
<= div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-si= ze:small;color:rgb(0,0,153)">Any idea why the below error comes?

Loading dr= iver 378D7B65-8DA9-4773-B6E4-A47826A833E1
InstallProtocolInterface: 5B1B= 31A1-9562-11D2-8E3F-00A0C969723B 51A3E1C0
Loading driver at 0x00051DD100= 0 EntryPoint=3D0x00051DD5670 PcRtc.efi
InstallProtocolInterface: BC62157= E-3E33-4FEC-9920-2D3B36D750DF 51A3ED98
ProtectUefiImageCommon - 0x51A3E1= C0
=C2=A0 - 0x0000000051DD1000 - 0x0000000000008000
SetUefiImageMemor= yAttributes - 0x0000000051DD1000 - 0x0000000000001000 (0x0000000000004008)<= br>SetUefiImageMemoryAttributes - 0x0000000051DD2000 - 0x0000000000006000 (= 0x0000000000020008)
SetUefiImageMemoryAttributes - 0x0000000051DD8000 - = 0x0000000000001000 (0x0000000000004008)
PROGRESS CODE: V03040002 I0

ASSERT_EFI_ERROR (Status =3D Device E= rror)
ASSERT [PcRtc] /home//src/p/coreboot/payloads/external/e= dk2/workspace/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEnt= ry.c(1)


a= nything to do with warning:

<= /b>
build t= ime warning:
Active Platform =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0=3D /home//src///coreboot/payloads/external/edk2/wo= rkspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc
.build: : warning: T= he PCD was not specified by any INF module in the platform for the given ar= chitecture.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 PCD: [gPcAtChipsetPkgTokenSpaceG= uid.PcdRtcIndexRegister]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Platform: [UefiPayl= oadPkg.dsc]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Arch: ['IA32']
build:= : warning: The PCD was not specified by any INF module in the platform for= the given architecture.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 PCD: [gPcAtChipsetP= kgTokenSpaceGuid.PcdRtcTargetRegister]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Platf= orm: [UefiPayloadPkg.dsc]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Arch: ['IA32&#= 39;]
. done!



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

On Wed, Feb 8, 2023 at 3:40 AM Sean Rhodes <sean@starlabs.syste= ms> wrote:
L36 is help text that says what you are trying t= o do, wont=C2=A0work


=
I do not get debug logs from= edk2 payload even though debug payload is selected in menuconfig of corebo= ot.
and also updated FD_BASE, if not the= n getting GCD assert while adding regions in phit table.

below path should = be give at L36 for custom edk2 repo?
pay= loads/external/edk2/workspace/tianocore/
=C2=A0
Thanks &am= p; Regards
Ritul Guru
+91-9916513186


On Wed, Feb 8, 2023 at 2:06 AM Sean Rhodes &= lt;sean@starlabs.systems> wrote:
Why the edk2 changes? Just= to fix this issue?

Have you seen L3= 6 of=C2=A0payloads/external/edk2/Kconfig

On Tue, 7 Feb 2023 at 20:30, = ritul guru <ri= tul.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>

--0000000000001a301105f43d8b7b--