The customer has a server environment where PXE and HTTP service run in same 
Linux Server. In this environment a SUT trying to boot to SLES 15 OS via PXE 
from the Boot Menu. After PXE Boot file downloaded and grub Loaded without 
continuing for installation Exit is pressed and control back to Setup.
Now the HTTP boot to SLES 15 OS tried in the same environment and failed to 
download the file. If there is a reconnect -r performed before this HTTP Boot 
then boot file download and installation is getting success.
Root cause of the issue is, when Exit from grub performed, boot Loader Stops 
the SNP Driver and starts the same. During this process SNP is in Initialized 
State. When HTTP boot is performed immediately after PXE Failure, the MNP 
configure method initiates the SNP Start again. Since the SNP already started 
by grub it returns EFI_ALREADY_STARTED and none of the upper Layer drivers are 
getting started.
As a work around in MNPConfigure(), if the SNP Start failed with Already 
Started and in Initialized state we can return success so that rest of the 
drivers can be loaded and HTTP boot can work.


Cc: Saloni Kasbekar <saloni.kasbe...@intel.com>
Cc: Zachary Clark-williams <zachary.clark-willi...@intel.com>

Signed-off-by: SanthoshKumar <santhoshkum...@ami.com>
---
 NetworkPkg/MnpDxe/MnpConfig.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/NetworkPkg/MnpDxe/MnpConfig.c b/NetworkPkg/MnpDxe/MnpConfig.c
index 93587d53aa..0f2df28d73 100644
--- a/NetworkPkg/MnpDxe/MnpConfig.c
+++ b/NetworkPkg/MnpDxe/MnpConfig.c
@@ -1120,7 +1120,9 @@ MnpStartSnp (
   // Start the simple network.

   //

   Status = Snp->Start (Snp);

-

+  if ((Status == EFI_ALREADY_STARTED ) && (Snp->Mode->State == 
EfiSimpleNetworkInitialized)) {

+      return EFI_SUCCESS;

+  }

   if (!EFI_ERROR (Status)) {

     //

     // Initialize the simple network.

--
2.42.0.windows.2
-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 (#115750): https://edk2.groups.io/g/devel/message/115750
Mute This Topic: https://groups.io/mt/104498511/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to