From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.86]) by mx.groups.io with SMTP id smtpd.web10.3057.1685671934943574029 for ; Thu, 01 Jun 2023 19:12:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ami.com header.s=selector1 header.b=IsskyXVV; spf=pass (domain: ami.com, ip: 40.107.244.86, mailfrom: sivaramann@ami.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fwYKlvvilwPNE88T0MPMmXSU7xAqj184t7dtS3qjYQcuoy5n8bu2r7EbNHTr++zvSTnBAKs0fBKRDVA2Su51LHks1sicIBAAqTusLuS9dfleqlBRzOhy7sUNX0O53rg1TLEvyP2CtZpk3xHZ782Zkvcw/oLEDXANI/8IdWHFvrxwXGsoruSXi6GiGERqKqIWCa+QYA0tqrojt6ZBrA7iKUYw/DuH3xB9J6LzTFg5ooVkgSE0ioBH1GQc12PsS9p+7DGdEMhIZX8a194Rb9cIAbhB69v4HNUnmPfzlMXYUlU1ulXAYxhpwZTnzX+k1YwgDWiPQhMe6WOPowsi0TFutg== 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=kvDAO65sfxFgSuw3i0DkRDyHymGDNOgXuEKGZNUW/HA=; b=jiariCWT+eKk2bJG/xSEmLAysa9iPsn6TYak9oMR7UyihNEDEe7ErLxvmMyIn+o6Uyy+1Ihb9GzmqMmkM7UaS9Ca+fGljUPlV5iZVlsteRY77j85FCbIYilgDp5iz/LE9HWLMn11hWMtvoBGPLleeUUSmScahtd9BvHbUyr6AFQtYuH57NUZyIcLXKVTBcgnLRrHgaeynwPW7X5EhTryW/rKZk39Qkl4S/B2ayySeLvMBKrL4VcM/A4kFn5hOl2NSBa4ZpC9xRhtuNGwr1uiSF7Tmq7E5wbcQwrJPR9/9/VSa2URxX9D1qTFjHrvX4hxwn3OTpzhtAI/UnE2/4WtLw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ami.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kvDAO65sfxFgSuw3i0DkRDyHymGDNOgXuEKGZNUW/HA=; b=IsskyXVV7FMiCs043M6sho1chqUFhZZJrBA5oA8LZ79oO69b7dwNrMW63MKmw0eqKIjJotUfaoDQcjyd0SsOH9GbTlxQ581Qk/zylvwJ/IuujixzGm0PgAO2L/Mm0QnKuI6+OSPnPguPRRPXcOL9qWe7ynI63yM6TKPderSN/A4= Received: from BN0PR10MB4981.namprd10.prod.outlook.com (2603:10b6:408:12d::16) by MW4PR10MB5883.namprd10.prod.outlook.com (2603:10b6:303:18f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23; Fri, 2 Jun 2023 02:12:12 +0000 Received: from BN0PR10MB4981.namprd10.prod.outlook.com ([fe80::8a1e:4785:5784:d9b1]) by BN0PR10MB4981.namprd10.prod.outlook.com ([fe80::8a1e:4785:5784:d9b1%6]) with mapi id 15.20.6455.020; Fri, 2 Jun 2023 02:12:12 +0000 From: "Sivaraman Nainar" To: "erichmcmill@gmail.com" , "devel@edk2.groups.io" Subject: Re: [edk2-devel] reg: MAC address could not change on pre-boot environment and failed to PXE boot. Thread-Topic: [EXTERNAL] Re: [edk2-devel] reg: MAC address could not change on pre-boot environment and failed to PXE boot. Thread-Index: AQHZXgW3WVUskiZ4jkyhuOnEx/ZPRa8JWEsAgG3apbc= Date: Fri, 2 Jun 2023 02:12:12 +0000 Message-ID: References: <21387.1679632576228070434@groups.io> In-Reply-To: <21387.1679632576228070434@groups.io> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ami.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN0PR10MB4981:EE_|MW4PR10MB5883:EE_ x-ms-office365-filtering-correlation-id: 6f5c9c70-79a1-4000-7aed-08db630ec74a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZE7sZibVn7w9c1i5twn0FhZ0vW1uSKu41Dc6Xy5ALhNNDm7ItM2FCm/E0/mx+kQf1Goog+V8KpNIVfUnyHrpU5S/TuYLm7GqMYuW3KDP6CtF66gdvqCW++nCAfo4f428uWAt7mc0GHfkQ1C7GyOkRuihiYc8rOiNutoEqNr9AP4D2JmrrIp7ybBl45I7UniFJnoopuSfCEo3yzFNABA1buNpVdmgUxANAfoQx1qgC4aKxbqdp1ymUtTST/bANkldCq7wq/AiIX1v5xvEPDqKl4ZWTt9Cv0tcRyyzTgd/YedK1IQ0aXXnbjByuh8jEXoYE4qYDjqalW059fb1JUbMXIvH+z/YhNGkxRrfonRz3N2uRSK/e2gJCjQqhIIddacxkmCNUTOu3qG1Q91SWu1ywskxbqLLoPOTk9iwk08vkK0+st+mRUvFf28wE11F7Nn5WYun4InN8OyuFBwmnBffsGlVc+Vc7H68TcgciluDIUBU5R0KBC6BeMIjFDf+g/S5E0EIbwfonDdyb7zsweXSDzcDMtpvRBF4TKWO5mpQvztuK5wJjbjbFQq64HIKqNAWXxcAn6PoTMgTjuwHWcrCh6slhrMP3+0Hz6mpn3o67LYFQz4sudHbe3bZ8UUVsfa8r2hjE3pnTyalqGBvOLGiqQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN0PR10MB4981.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(136003)(376002)(396003)(346002)(39850400004)(451199021)(186003)(41300700001)(38100700002)(83380400001)(26005)(9686003)(53546011)(6506007)(55236004)(478600001)(66476007)(71200400001)(45080400002)(110136005)(7696005)(76116006)(66946007)(64756008)(166002)(122000001)(316002)(91956017)(66556008)(55016003)(2906002)(86362001)(52536014)(8936002)(8676002)(66446008)(40140700001)(5660300002)(38070700005)(33656002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?PdkNgyrtqJBhZBqZlN3rit622jdlSi3N+uK6uwYzFePfV8i4UqbYpkigXa?= =?iso-8859-1?Q?jUStCkN+1uzu4kO+KrASvZT8GvKbgK+Jx4k3DeaE2Drt2C3w2f34Ml8fqh?= =?iso-8859-1?Q?ztN5+sVmEF4lWPS7wMz/kZs3yTsH/MaEmkrMCs1h+2kVAGWck4LbYqjhcA?= =?iso-8859-1?Q?ARTzNG6bzf3SMzcL6Yyat2O8DEO3aCasQnYB0obP6eEhRgpHCweNGv8Ak6?= =?iso-8859-1?Q?tGZBF7v7Fjw6MXAxtnzIzBmMgzAHcmnIyYg+XAwK/7C05LL40FlPb9dU6G?= =?iso-8859-1?Q?jBgRW62bj2yEZiHU+IriXQyA5pCnEkHGElgRbvjkj7srw9EsWYMg0zsUdF?= =?iso-8859-1?Q?rjsQe+gSAoCoXq/aBe3jJXTXdqQtYo5+T76ohUDXAKzGqqMeMOOXCPlw2x?= =?iso-8859-1?Q?sCN0RrY+3LYBhSDK9QRausGFxJlG0WI8H5W/vdJOEuxQCtfNrBCmFLYMf4?= =?iso-8859-1?Q?muLKu4wVmBVXskUivmL4vY8vzhHOdn0YNxkzch4A4QICSf+pXg2DaExtOo?= =?iso-8859-1?Q?UN2UjsZR8JilKJuorWVHXdbAcibGoQ+CoaJ/wuU00glA1IO2OGR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9nTvAZOmC52CpBDgSuTwCrgIePWVVhvk2W?= =?iso-8859-1?Q?Yk1EvHvAqSEhcqz9SFwRgpgfR3dn1xa1NRuKW3przC1RzZrH8shMr9dsQ5?= =?iso-8859-1?Q?IFnQp6F8IdeCeml9KTYMTNIhfg6/qvlZ1yHDCjENz6K2tkVwN0byuLBdoZ?= =?iso-8859-1?Q?3D3XzqcXALJOHYxv6C/APpE92kAPaBDKOBHj6KPp57U8rH/VET9VQORA?= =?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: BN0PR10MB4981.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f5c9c70-79a1-4000-7aed-08db630ec74a X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jun 2023 02:12:12.6761 (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: RRbNRxKowaXCCdRSZ+3AhvTLMZwsLny5IOmXMJILZlWelkwBksZ6a7EnkBOtE0bL3qbEJateAkzWSklyQkrwmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR10MB5883 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_BN0PR10MB498134DE71847D05146A9FEEC24EABN0PR10MB4981namp_" --_000_BN0PR10MB498134DE71847D05146A9FEEC24EABN0PR10MB4981namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Erich / Maciej: Thanks for your guidelines. With this approach able to program the MAC and = PXE boot works. Thank you Siva From: erichmcmill@gmail.com Sent: Friday, March 24, 2023 10:06 AM To: Sivaraman Nainar; devel@edk2.groups.io Subject: [EXTERNAL] Re: [edk2-devel] reg: MAC address could not change on p= re-boot environment and failed to PXE boot. **CAUTION: The e-mail below is from an external source. Please exercise cau= tion before opening attachments, clicking links, or following guidance.** Hi Sivaraman, We did this recently in project mu, trying to find exactly the changes need= ed but I recall the following: 1. Mac Address needs to be programmed before network stack fully loads (= pretty sure I only got it working in DXE), possible to add changes from thi= s PR and have an event callback to set mac address * Event Add a named event that is signalled when Snp->Initialize() i= s executed. =B7 microsoft/mu_basecore@7dc143d (github.com) * DXE Driver code to handle the Mac programming when the SNP is inst= alled Add MacEmulationDxe Support by Erich-McMillan =B7 Pull Request #109 = =B7 microsoft/mu_plus (github.com) * If you don't take this driver as is be very careful to copy the= TPL levels from event handers not doing this will cause issues 1. This change to reload the Snp info in ARP might be needed too ArpDriv= er: refetch Snp Mode data after running MnpConfigure =B7 microsoft/mu_basec= ore@2b8ad03 (github.com) Let me know if you have any issues/questions. Its been a while since I look= ed at this code. -Erich -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= . --_000_BN0PR10MB498134DE71847D05146A9FEEC24EABN0PR10MB4981namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello Erich / Maciej:

 

Thanks for your guidelines. With this approach able = to program the MAC and PXE boot works.

 

Thank you

Siva

From: erichmcmill@gmail.com
Sent: Friday, March 24, 2023 10:06 AM
To: Sivaraman Nainar; devel@edk2.groups.io
Subject: [EXTERNAL] Re: [edk2-devel] reg: MAC address could not chan= ge on pre-boot environment and failed to PXE boot.

 

 

**CAUTION: The e-mail below is from an external source. Please exerc= ise caution before opening attachments, clicking links, or following guidance.**

Hi Sivaraman,

We did this recently in project mu, trying to find exactly the changes need= ed but I recall the following:

  1. Mac Address needs to be programmed before network stack fully loads (pretty= sure I only got it working in DXE), possible to add changes from this PR a= nd have an event callback to set mac address
    1. Event Add a named event that is signalled when Snp->Initialize() is executed. = =B7 microsoft/mu_basecore@7dc143d (github.com)
    2. DXE Driver code to handle the Mac programming when the SNP is installed&nbs= p;Add MacEmulati= onDxe Support by Erich-McMillan =B7 Pull Request #109 =B7 microsoft/mu_plus (github.com)
      1. If you don't take this driver as is be very careful to copy the TPL levels = from event handers not doing this will cause issues
  1. This change to reload the Snp info in ARP might be needed too ArpDriver: refetch Snp Mode data after running MnpConfig= ure =B7 microsoft/mu_basecore@2b8ad03 (github.com)

Let me know if you have any issues/questions. Its be= en a while since I looked at this code.

-Erich

 

-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 on notice that any distribution of = this message, in any form, is strictly prohibited. Please promptly notify t= he sender by reply e-mail or by telephone at 770-246-8600, and then delete = or destroy all copies of the transmission. --_000_BN0PR10MB498134DE71847D05146A9FEEC24EABN0PR10MB4981namp_--