<div dir="ltr"><div dir="ltr">Hi Ray,<div><br></div><div>1. UefiPayloadPkg: Add LINUXBOOT payload target<br>  a. Why is IO/MEM align in AdjustRootBridgeResource() skipped for Linux Payload?</div><div>-> This alignment is too conservative and causes the system to run out of IO resources. AFAIK, we do not need this in UEFI OS and our use case involves larger systems (let's say server) .<br>  b. can you please run ECC to make sure the C source code complains to EDKII coding standard?</div><div>-> sure will do.</div><div><br></div><div>2. UefiPayloadPkg: Use legacy timer in Linuxboot payload<br>  a. Can you kindly explain the reason of HPET timer failure? Is this patch a temporary workaround?<br></div><div> ->  This is taken from OvmfPkg's Xen package. Current Hpet driver does not work well after we hand over control to OS. Yes we can consider this as a workaround. This should not affect functionality because we will go back to the regular TSC/HPET timer in linux after booting to the next OS.</div><div><br></div><div>4. UefiPayloadPkg: Reserve Payload <span>config</span> in <span>runtime</span> <span>services</span> <span>data</span><br>  a. Why?</div><div>-> Currently, due to some design issue, this Hook will also be called in BDS. Dong said he will work on a fix for this and he suggested that I gate it LINUXBOOT_PAYLOAD and he will clean it up in his fix.</div><div> For more details, please see earlier mail thread titled [PATCH v1 4/6] UefiPayloadPkg: Reserve Payload config in runtime services data</div></div><div><br></div><div><br></div>> By the way, can you please add me to the CC list since I am the maintainer of UefiPayloadPkg (newly become so you might not notice that😊) next time you send updates?<br><div class="gmail_quote"><div class="gmail_attr">Sure.</div><div class="gmail_attr"><br></div><div class="gmail_attr">--</div><div class="gmail_attr">Cheng-Chieh</div><div dir="ltr" class="gmail_attr">On Thu, Aug 12, 2021 at 12:49 PM Ni, Ray <<a href="mailto:ray.ni@intel.com" target="_blank">ray.ni@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I will leave all comments to the patches here since I have difficulty to find individual patches without these patches sending to me directly.<br>
<br>
In general, the commit messages are too short to explain the background/reason of the code change. Can you please put more explanation in the commit message?<br>
<br>
1. UefiPayloadPkg: Add LINUXBOOT payload target<br>
  a. Why is IO/MEM align in AdjustRootBridgeResource() skipped for Linux Payload?<br>
  b. can you please run ECC to make sure the C source code complains to EDKII coding standard?<br>
<br>
2. UefiPayloadPkg: Use legacy timer in Linuxboot payload<br>
  a. Can you kindly explain the reason of HPET timer failure? Is this patch a temporary workaround?<br>
<br>
3. UefiPayloadPkg: Update maximum logic processor to 256<br>
  a. It still has the limitation of 256 threads. I am ok with your code change.<br>
<br>
4. UefiPayloadPkg: Reserve Payload config in runtime services data<br>
  a. Why?<br>
<br>
<br>
By the way, can you please add me to the CC list since I am the maintainer of UefiPayloadPkg (newly become so you might not notice that😊) next time you send updates?<br>
<br>
Thanks,<br>
ray<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:devel@edk2.groups.io" target="_blank">devel@edk2.groups.io</a> <<a href="mailto:devel@edk2.groups.io" target="_blank">devel@edk2.groups.io</a>> On Behalf Of Cheng-Chieh Huang via <a href="http://groups.io" rel="noreferrer" target="_blank">groups.io</a><br>
Sent: Saturday, August 7, 2021 10:51 PM<br>
To: <a href="mailto:devel@edk2.groups.io" target="_blank">devel@edk2.groups.io</a><br>
Cc: Cheng-Chieh Huang <<a href="mailto:chengchieh@google.com" target="_blank">chengchieh@google.com</a>>; Schaefer, Daniel <<a href="mailto:daniel.schaefer@hpe.com" target="_blank">daniel.schaefer@hpe.com</a>>; Trammell Hudson <<a href="mailto:hudson@trmm.net" target="_blank">hudson@trmm.net</a>>; Ma, Maurice <<a href="mailto:maurice.ma@intel.com" target="_blank">maurice.ma@intel.com</a>>; Dong, Guo <<a href="mailto:guo.dong@intel.com" target="_blank">guo.dong@intel.com</a>>; You, Benjamin <<a href="mailto:benjamin.you@intel.com" target="_blank">benjamin.you@intel.com</a>><br>
Subject: [edk2-devel] [PATCH v2 0/4] UefiPayloadPkg: LinuxBoot Support in UefiPayload<br>
<br>
These are necessary patches to Support LinuxBoot in UefiPayload.<br>
With these paches, we can boot to ESXi and Windows from a linux in QEMU.<br>
<br>
This is second parse. In addition to fixing reviwer's suggestions, I removed the following CLs.<br>
* Add DISABLE_MMX_SSE to avoid generating floating points operation<br>
-> will send a seperate patch to add these flags to BaseTools<br>
<br>
* LinuxBoot: use a text format for the configuration block.<br>
-> will work with Trammell Hudson to cover this patch to EDK2 style.<br>
<br>
LinuxBoot README:<br>
<a href="https://github.com/linuxboot/edk2/blob/uefipayload/UefiPayloadPkg/README.md" rel="noreferrer" target="_blank">https://github.com/linuxboot/edk2/blob/uefipayload/UefiPayloadPkg/README.md</a><br>
<br>
v2 PR to tianocore:<br>
<a href="https://github.com/tianocore/edk2/pull/1873" rel="noreferrer" target="_blank">https://github.com/tianocore/edk2/pull/1873</a><br>
<br>
Cheng-Chieh Huang (4):<br>
  UefiPayloadPkg: Add LINUXBOOT payload target<br>
  UefiPayloadPkg: Use legacy timer in Linuxboot payload<br>
  UefiPayloadPkg: Update maximum logic processor to 256<br>
  UefiPayloadPkg: Reserve Payload config in runtime services data<br>
<br>
 UefiPayloadPkg/UefiPayloadPkg.dsc                              |  24 ++-<br>
 UefiPayloadPkg/UefiPayloadPkg.fdf                              |   5 +<br>
 UefiPayloadPkg/Library/LbParseLib/LbParseLib.inf               |  39 +++++<br>
 UefiPayloadPkg/Library/LbParseLib/Linuxboot.h                  |  47 +++++<br>
 UefiPayloadPkg/Library/LbParseLib/LbParseLib.c                 | 182 ++++++++++++++++++++<br>
 UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeSupport.c |   6 +-<br>
 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c             |   4 +<br>
 7 files changed, 299 insertions(+), 8 deletions(-)  create mode 100644 UefiPayloadPkg/Library/LbParseLib/LbParseLib.inf<br>
 create mode 100644 UefiPayloadPkg/Library/LbParseLib/Linuxboot.h<br>
 create mode 100644 UefiPayloadPkg/Library/LbParseLib/LbParseLib.c<br>
<br>
Cc: Cheng-Chieh Huang <<a href="mailto:chengchieh@google.com" target="_blank">chengchieh@google.com</a>><br>
Cc: Daniel Schaefer <<a href="mailto:daniel.schaefer@hpe.com" target="_blank">daniel.schaefer@hpe.com</a>><br>
Cc: Trammell Hudson <<a href="mailto:hudson@trmm.net" target="_blank">hudson@trmm.net</a>><br>
Cc: Maurice Ma <<a href="mailto:maurice.ma@intel.com" target="_blank">maurice.ma@intel.com</a>><br>
Cc: Guo Dong <<a href="mailto:guo.dong@intel.com" target="_blank">guo.dong@intel.com</a>><br>
Cc: Benjamin You <<a href="mailto:benjamin.you@intel.com" target="_blank">benjamin.you@intel.com</a>><br>
<br>
<br>
--<br>
2.32.0.605.g8dce9f2422-goog<br>
<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div>
</div>


 <div width="1" style="color:white;clear:both">_._,_._,_</div> <hr>   Groups.io Links:<p>   You receive all messages sent to this group.    <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/79187">View/Reply Online (#79187)</a> |    |  <a target="_blank" href="https://groups.io/mt/84731094/1813853">Mute This Topic</a>  | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>    <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |  <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>  [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>