From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 2CAC2941D4A for ; Wed, 21 Feb 2024 22:22:21 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=RICrT+3cTTEbI1OvlIZ743dZC+mg2t6P8eWKMpAUxW4=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1708554140; v=1; b=wo1KmNR64Wik+f6n18txCy8MwpQVAc1vlrbfzAGq257sGr45aMKNswUf7aEmczXyHSQ2N01S n8M6PyzHeDdU2n/2Ufs1PLmSgX+THQzffq4oVwYk0F7jDmOYjZPGIZpDU4VInPAtCng11QnhHYg sihaF+P6mZJPujjNMTslHjVw= X-Received: by 127.0.0.2 with SMTP id q9heYY7687511xohPQUMmJ63; Wed, 21 Feb 2024 14:22:20 -0800 X-Received: from NAM11-BN8-obe.outbound.protection.outlook.com (NAM11-BN8-obe.outbound.protection.outlook.com [40.107.236.100]) by mx.groups.io with SMTP id smtpd.web11.18552.1708535751138894766 for ; Wed, 21 Feb 2024 09:15:51 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ib4HJwfvua4elEJmaIEh7PWh2ej+P9mDTp/PMWF2NNUhp5tpHHsrW8juMmcH6Vcg/XvYopIrhO4p7hqUpGDDBVu0uUntGUs5j8HVe9LO/u1mhiaaTCS3xDAT3ykKS9OnwOXyFdst8w7lJsXqsjvq2aVVmB88bp+4w/iRvnAnG8LPzoEatyiVEhsKVxxUQj0skgnKYFxhpDHPSnfQmdWIDyZ/BsI0mDz/w2Hm2yELvHA+vUPzgPyruCaHAVc7cReijEilWV4IjULU7s+Q3GEPxtcmJgh/HF+J5yy3qQvG7yCMOJ4bOEvYLzWrzQkz0xy4fzwJ86/zkF32fzonzBp2BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mGKVCsHdO+O4/iRoCc7f7e14/0ObG+eUVLhRQiD2qXc=; b=NoHeXN0QoXoY9F2FnFxvdHnlJTSmZlMRGJRVzsL8rutm4u7SgqBlMioE1nxn0lqs0hufRcG82tgIiEvsH17mrKJceaFwP6wHYUBju80vLmd5Z15a6ylAycEx2qeXcbYaaJq3iEGaC/rH6oolIMcfxsNuivSkoz9cpGVGUuEQhFXp6x8csSsGH3SLCVzYoGCiSMmQxHs7QhvVwTEK2z7IejDG8/4QucsGiHF6P4TtD6EYEC+Jr0So77qvl4/yI99vi79PZ6+dTrTKiDnefrho7U8ndZradANSKJeFhuZZuViIHb7tFmkYSx9DZM7LqheubfTnjUpvMiaxySL2U0BI0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ami.com; dmarc=pass action=none header.from=ami.com; dkim=pass header.d=ami.com; arc=none X-Received: from DS7PR10MB5375.namprd10.prod.outlook.com (2603:10b6:5:3ab::11) by BLAPR10MB5252.namprd10.prod.outlook.com (2603:10b6:208:328::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.22; Wed, 21 Feb 2024 17:15:47 +0000 X-Received: from DS7PR10MB5375.namprd10.prod.outlook.com ([fe80::90e0:4ebc:4fc8:6678]) by DS7PR10MB5375.namprd10.prod.outlook.com ([fe80::90e0:4ebc:4fc8:6678%4]) with mapi id 15.20.7316.018; Wed, 21 Feb 2024 17:15:47 +0000 From: "Santhosh Kumar V via groups.io" To: "devel@edk2.groups.io" , Santhosh Kumar V CC: Sivaraman Nainar , Raj V Akilan , Soundharia R , Saloni Kasbekar , Zachary Clark-williams Subject: [edk2-devel] [PATCH] NetworkPkg:Resolved Consecutive Pxe-Http Boot Issue Thread-Topic: [PATCH] NetworkPkg:Resolved Consecutive Pxe-Http Boot Issue Thread-Index: AQHaZOmcTV48E41v9E6Ol22UcMz6DA== Date: Wed, 21 Feb 2024 17:15:47 +0000 Message-ID: <20240221171347.1343-1-santhoshkumarv@ami.com> Accept-Language: en-US, en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5375:EE_|BLAPR10MB5252:EE_ x-ms-office365-filtering-correlation-id: 1299d4f3-8006-47b1-173e-08dc3300becf x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: fmtQxZPqW67mDJ6k56oIXO5naW5npyEeqhCL/gnOreEqb1h2NQ48peBXZfGSDqYHoYw0Nwh7ReKmFVnXQwl/XKv5YLe8NZ08wtEodsRZf+0XpWZXO3GNiwrEfWhazfIdiUJ7LsX7JT4UXtlVgM48/LjoFTDwbBKblFcOfnhPySoRL090CJv2K+SwdVUCbPIbZXatx+4FLVHdk008vyO3+KKI85HDz1k1t3sljYAjceLPpOuEl/S6H+f7uwmD6nMcQe0m0gUl8E9W7U7xvXlRwu7leNVa+sTlweYO+Xn7RPxZ64++peKJMtw/p2FtMmXQoz4OxIvGLnleq2ZDPTBSwm4yT7UxWCkOSqSwdUZskE82VdYYyb0v/FD3PSKMsdTrdOVTXnlew1foPyLNTLZ6D19r/EWSagurBEterUKeGvl2y7Cr7Yt/Ay4mV92y+fG1EIUG5zMZY2v59UpgucTFae/ivbe81xdSQa5wOXV91zeVokh8AEt63bpiTKaMi88nflb55juQ8aP7O/zdkBMP9b/YfWCg8JGfhgvktuzuy01UPWXBmbtKhsX1xySWACA7Zwe1L308kl8jYQpizoXnQyqIdtsuf9GcFUdEvpJ2ntjTWp8HhMXS7PbueTJ/IEdj x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?tVdKFb2FFALHbX2YoFn46asdixtQ7O5k6sqJY0C2w2h5ij5YGM1FpaFizo?= =?iso-8859-1?Q?e6sZtNuyJjJpasXzwJe03YjaIvuJ9Zed88Fq5G27MMRURZiTBY/HEq8oDE?= =?iso-8859-1?Q?wjALSBkwK2k05m7qH5tLAfwe8OfQqMLxD7PLpzxQk/B9NvhYhujX0CNMJk?= =?iso-8859-1?Q?gSCM5LDRYaRIDB23Liip7Kv3x/XE0zgel9Ra1jxrFrDhf2q8XwShzYqCro?= =?iso-8859-1?Q?PtoRFOrKUOjcTHRX0GZoUqMZk6aX3ZYIU/8BFj3UsJ0z1FyLjGF9T+3Uxk?= =?iso-8859-1?Q?R9fBjc03gX+QK4+uTG+kik+lEgS+QFx0dxd+HWc1AO23EGNLYmShjMDP7L?= =?iso-8859-1?Q?sa3RUmFxyjumFbpwi5yYb4mC+gNgbw0XmM4heq30m0excuRgTZrH8A8NQU?= =?iso-8859-1?Q?1iENdEoST+lw5vd7UnE++qErssvICNcNd6KqmoxGThJGudxFhl+uCC60bU?= =?iso-8859-1?Q?3xwyN2oEGO9R45NC3FsBuAAem6FNoWeG5NNh6wuEfmpxMN1WmbjQgtcdLW?= =?iso-8859-1?Q?5oPvLCz8Aa5XaoeR177jNYGxzYQkXbg4TSW8AVFrmKpWngOoYuj48d+H8/?= =?iso-8859-1?Q?L+IIbFEAfsan+pCniZkwbOWFVD4BE7DZvnzExU+OZa/qfZtbEchXOSniy1?= =?iso-8859-1?Q?YL6LFKCpwvCbvvXYqcjiqri9sqafPp9co51fZllEIZP7t7s0RtFJR7vHX1?= =?iso-8859-1?Q?wWbiS+sIE/N9/CtBbMUQOTHueTyxHILNmvIXBdmKDQnhOmRPQjk/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dCgVnItXNZ3dbN6DFaS2wsrg?= =?iso-8859-1?Q?=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: ami.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5375.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1299d4f3-8006-47b1-173e-08dc3300becf X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2024 17:15:47.3655 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 27e97857-e15f-486c-b58e-86c2b3040f93 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: H38vSbbtvV+3qynqL3t84CmCQXfgtsZTh8qlZvVznCT9nJRhudcdHOOfYY4oct4X/vABds4+T0I5KmTGfsJBNw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5252 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,santhoshkumarv@ami.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: fZNdhD3fAvdilWLh6un7UZP6x7686176AA= Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=wo1KmNR6; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io The customer has a server environment where PXE and HTTP service run in sam= e 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 with= out 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 B= oot then boot file download and installation is getting success. Root cause of the issue is, when Exit from grub performed, boot Loader Stop= s the SNP Driver and starts the same. During this process SNP is in Initial= ized State. When HTTP boot is performed immediately after PXE Failure, the = MNP configure method initiates the SNP Start again. Since the SNP already s= tarted by grub it returns EFI_ALREADY_STARTED and none of the upper Layer d= rivers are getting started. As a work around in MNPConfigure(), if the SNP Start failed with Already St= arted and in Initialized state we can return success so that rest of the dr= ivers can be loaded and HTTP boot can work. Cc: Saloni Kasbekar Cc: Zachary Clark-williams Signed-off-by: SanthoshKumar --- 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 =3D Snp->Start (Snp); - + if ((Status =3D=3D EFI_ALREADY_STARTED ) && (Snp->Mode->State =3D=3D Efi= SimpleNetworkInitialized)) { + 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 propriet= ary 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 desig= nee. If the reader of this message is not the intended recipient, you are o= n notice that any distribution of this message, in any form, is strictly pr= ohibited. 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= . -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- 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/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-