From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.64]) by mx.groups.io with SMTP id smtpd.web10.107172.1673366014543086802 for ; Tue, 10 Jan 2023 07:53:34 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nvidia.com header.s=selector2 header.b=MfDGIzZS; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: nvidia.com, ip: 40.107.92.64, mailfrom: jeshuas@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LC5ayZV+bOQZoIBFEOjZWw9F20ypldumy77cCtyQNmkW3r+Od1gesUylBGSoowTQExpineBnwOkOpgVPXi8NtpdNzDu019CaXIIY9GUpEwOc2tM2QWR/uGpzKb72SLKEyPdqljCXV4wQDrwH2zwpTpD2jd04iYDw0w0eVo+6jTHjhEFMVxdoZ95xDxzxJcM8j3qhbwb8PX9i7OxRC8p0/0yvLBEqniCq8Gz/fxWEg02GAv4Gn34L8iE2Owe+omzxc4OmJApR2sOFfmB5y9fS5PvlpvNXf+Fkby6d6Y3yao3KugW+CthNELRQVcVCalVq9brGuCEn6w9UvP+0YCgJxA== 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=Qgf07mI7inLrTnBbpnyHV528fWGcDGCNHajk66D9mPI=; b=RACY7T2jp4NAiZMppeGaKJvR4fByO0HKfPQ3FKSDTjU/j2uvy95XGx9zsIdqcnX6jJ2PfDzZfgswIPbLxqtaTMp0dD3/9r3nzJN5bdmkfZabBauTYOlwTt1lnjbZgPf5vkWg0iilNwFiK46MWGgyLm1kmRqj9Rc8L9PJS3Yc6Ky+EYDucgCoCxMvmO/wERux5iwNoSA0Z/FkvrtJcRzxAboK6SyrJgKOP37Cy7YjNlIZBW7xYSB1rQ2NblsFYZsMjc+lEX/ChGDYiecgYASdHikTOoOSRAdTkbc0O7CwbmQE3ahC2ThhzonLocDbz44Fg3Vw7uIlGXhUa61ynOHQVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qgf07mI7inLrTnBbpnyHV528fWGcDGCNHajk66D9mPI=; b=MfDGIzZSRyXlpg/Qw6vGmcr0OFvWUvKXAYjpvKirnTJbFTvaLtXcA47k44r/FZphNozL6uPmEGZUsewPHx6I8wTYThsZW9NIEgG6BRkxrXMJv/ldSkiKhUsKidHmJOyvpaVqHOgcPuyggKg1nq7p18yA+/vzvt4OrPD6AQETbCaKJM2MR84hXw9/myg8syGULJD+nk/RlpQ1uIO+srYSI2YAa5AV9Pios9zDXLbR+8T2bINF5Fh24gsKfc7yACToOwYrb3nvVvlFSg4Ij1SNtJx3MLeThbsS6105AkQ91tcn0ue1WPkl/eF//HoEwIFVHjV6GXDANrCoUKomdsBSZQ== Received: from DM6PR12MB3371.namprd12.prod.outlook.com (2603:10b6:5:116::27) by CH2PR12MB4119.namprd12.prod.outlook.com (2603:10b6:610:aa::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Tue, 10 Jan 2023 15:53:32 +0000 Received: from DM6PR12MB3371.namprd12.prod.outlook.com ([fe80::d52b:f6aa:20c9:6cbf]) by DM6PR12MB3371.namprd12.prod.outlook.com ([fe80::d52b:f6aa:20c9:6cbf%7]) with mapi id 15.20.5986.018; Tue, 10 Jan 2023 15:53:32 +0000 From: "Jeshua Smith" To: "devel@edk2.groups.io" , Jeshua Smith CC: Zhichao Gao , Ray Ni Subject: Re: How to select boot device for current boot in response to IPMI System Boot Options commands? Thread-Topic: How to select boot device for current boot in response to IPMI System Boot Options commands? Thread-Index: AdkfnF4wCU6szlNnTYuZ/SHzJU/NPwFbiWsA Date: Tue, 10 Jan 2023 15:53:32 +0000 Message-ID: References: <1736E01F194951B6.26440@groups.io> In-Reply-To: <1736E01F194951B6.26440@groups.io> Accept-Language: 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=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR12MB3371:EE_|CH2PR12MB4119:EE_ x-ms-office365-filtering-correlation-id: ea292883-c001-4abd-be2d-08daf322d322 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WXfskIfjOqKzhFr6mFd0r1uF1lAbO1HwQUOl0pvXls8y3JnVQOLbXjQigzisBpqU4nxCkVd5BtK3U21berVuTdwqDIithfUa5IBCD7JdRCO7nfujuagFhe83sQuYfbYS/IC7xFN0UJ3raIobg7XBnYy+ZNnzhnNe0diAoVTPoND+DzNyGdfLOXHK3+2j0UgQYd9e/3QeB+q7uRkq0UYjdgUeIwnORp26n2lV9fDO76eYLIfUMQ2YMS0b+nsF3csd8fm/pfQcvd1hdZGb8dnUc/A6BEhkSGM9hll8hHX0SjUGMBtKP2Wka+2v3CaJt7Y04ST8gx1rCRUPf/eFYaZnNMuQqsgZy8CSJLn9Cw3cUjAvxwaczcUJjLWVsnD+S22gi3m2T79NTCsFec8HBbEzDF/XvUCgkgJH4SHu0h6O4MitkDtOXCtD426gJ/bQEGP74927eZiR67vEGvBLELzY/Q61pmNChSzNXLSiFrdXFkmc+cWZkj2fr9al1/4Xd3fd9eoGEuLVFK8pb9n10QG6RZBfH+GplCJ5EZ718StVjcrgu93a3yhxbDQy31+1P404RwGAp1NWXKsTUxOiudayFKUCeHfKQ3UJxBClapJRVrPkNgRlGyaSKevdbNB1sN4BlR3VNesE8BDCnY4aB1R0ehkpWvF5LUyroxJRFq/F8bvK6/KJy9gr5L43hP68Pb6zGYHIWaIz5sfG7BjhLcTzrjOi0njXTrZVPmTSb5brJ7w= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB3371.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(39860400002)(396003)(376002)(136003)(366004)(451199015)(6506007)(38100700002)(122000001)(53546011)(66899015)(166002)(2906002)(478600001)(966005)(33656002)(186003)(9686003)(26005)(21615005)(71200400001)(5660300002)(7696005)(316002)(8936002)(83380400001)(52536014)(38070700005)(55016003)(86362001)(76236004)(66476007)(8676002)(41300700001)(110136005)(4326008)(76116006)(66446008)(64756008)(66946007)(66556008)(54906003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?C6EMtgbE2xoRmexUVXTqx9+eS+ituUkBp2+KSitXjOn9I5ymmO4Q6ONpQcD/?= =?us-ascii?Q?eURxEVqcEi+PYyPJAa8mj+RQm/MchhqvTywmAtfEC55jgvI7ADH1zIdbD8We?= =?us-ascii?Q?EFfy2NwXEr+vKXiAjJoLsqrnfwMRWVzM8q0dAc/zmvJbjO8N9Be28ZCPRkIR?= =?us-ascii?Q?1tmgZLAQoQ40co8WvF2EDj0V/Twv2hApsMMkcsUtknGM5OpuvcGy8AaBR6pl?= =?us-ascii?Q?F/NVrPnsTe0T6VA6QNl4Afzp22aBdIjkd1iZFeJ2Em3qECDz3lAR/2ADB1OI?= =?us-ascii?Q?z+Q8c8NWdbZK0vIo/GWHWrhxpdotZ9EAbzkeb2E9s35mqE81aPuKBHis4/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VD5RVfJqef/bxsBpEgq465OVeNy2w0lwyDA?= =?us-ascii?Q?BsnLmBgJJS4ETSb31vQXN6o4BAvPEwiBq2D3ACefReUOQC/jjtRW+EcLgDlS?= =?us-ascii?Q?sg+paKmd274inc6gQsWGgcme6/xhP2QdD7ElgMjJo8LHwLtWun3YAXyyzQTT?= =?us-ascii?Q?FxtgPYXy3o7GUgiCwAK1RAkl1k8zPyy5zpRt1psDOWi+wHucd3rt/H8s5f1T?= =?us-ascii?Q?+r7F2kYFM0E8olR2uGCNUIEr7wKhuKybmRTHgHDzKoEBFX7DHJSwKFsti1s4?= =?us-ascii?Q?yBuxUV/Et22dWoqkB14P+Bpp4R3piizGR4Um94GeF+aoLIdfIDRYDvjzv0V6?= =?us-ascii?Q?hzZckbHiiUcbTyRnoDZT5EER7vV2veMesYhxk+mR?= MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3371.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea292883-c001-4abd-be2d-08daf322d322 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jan 2023 15:53:32.2584 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: A4Zhjq5Fa+2ayBl3yVIorQFp1SphWkj/hRvsn0ik0D+s7fWFEg6Tk7P09qv/C4gAw9resi/YtE08E4s/DKyvYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4119 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_DM6PR12MB33715944E3E0E1C3195E7E4CDBFF9DM6PR12MB3371namp_" --_000_DM6PR12MB33715944E3E0E1C3195E7E4CDBFF9DM6PR12MB3371namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Any input on this? It seems that the current behavior isn't ideal: * If BootNext is already set when PlatformBootManagerLib APIs are calle= d, a new BootNext value from the PlatformBootManagerLib code will be ignore= d (because the original value is cached before the APIs have a chance to se= t it) and then deleted (when the cached value is consumed after the APIs ha= ve been called) * If BootNext is not already set, then the current boot will not be aff= ected by the BootNext value that PlatformBootManagerLib API code sets (beca= use there was no value when the value was cached), but the subsequent boot = will boot with the BootNext value set by the APIs during the current boot (= because not having a cached value skips the deletion of BootNext). To me this seems inconsistent and confusing. From: devel@edk2.groups.io On Behalf Of Jeshua Smith= via groups.io Sent: Tuesday, January 3, 2023 11:32 AM To: devel@edk2.groups.io Cc: Zhichao Gao ; Ray Ni Subject: [edk2-devel] How to select boot device for current boot in respons= e to IPMI System Boot Options commands? External email: Use caution opening links or attachments Happy New Year! I'm trying to figure out the proper place to add code to allow the EFI boot= code to respond to the IPMI System Boot Options request to boot a device o= n the current boot. My initial thought was to change BootNext in the Platfo= rmBootManagerLib APIs, but based on the comment https://www.mail-archive.co= m/edk2-devel@lists.01.org/msg30378.html it looks like that is *intentionall= y* unsupported. Does anyone know why we want to avoid PlatformBootManagerLi= b hooks from being able to set BootNext to control what gets booted on the = current boot? Is there an intended alternative way to support the IPMI Syst= em Boot Options Command request to use a boot device for the current boot? Thanks, Jeshua Smith --_000_DM6PR12MB33715944E3E0E1C3195E7E4CDBFF9DM6PR12MB3371namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Any input on this?

 

It seems that the current behavior isn’t ideal= :

  • If BootNext is already set when PlatformBootManagerLib APIs are calle= d, a new BootNext value from the PlatformBootManagerLib code will be ignored (because the original value is cached before the APIs have a= chance to set it) and then deleted (when the cached value is consumed afte= r the APIs have been called)
  • If BootNext is not alread= y set, then the current boot will not be affected by the BootNext value tha= t PlatformBootManagerLib API code sets (because there was no value when the= value was cached), but the subsequent boot will boot with the BootNext va= lue set by the APIs during the current boot (because not having a cached va= lue skips the deletion of BootNext).

 

To me this seems inconsistent and confusing.

 

From: devel@edk2.groups.io <devel@edk2.gro= ups.io> On Behalf Of Jeshua Smith via groups.io
Sent: Tuesday, January 3, 2023 11:32 AM
To: devel@edk2.groups.io
Cc: Zhichao Gao <zhichao.gao@intel.com>; Ray Ni <ray.ni@int= el.com>
Subject: [edk2-devel] How to select boot device for current boot in = response to IPMI System Boot Options commands?

 

External email: Use caution opening l= inks or attachments

 

Happy New Year!

 

I’m trying to figure out the proper place to a= dd code to allow the EFI boot code to respond to the IPMI System Boot Optio= ns request to boot a device on the current boot. My initial thought was to = change BootNext in the PlatformBootManagerLib APIs, but based on the comment https://www.mail-archive.com/edk2-devel@lists.01.org/msg30378.html it l= ooks like that is *intentionally* unsupported. Does anyone know why = we want to avoid PlatformBootManagerLib hooks from being able to set BootNe= xt to control what gets booted on the current boot? Is there an intended alternative way to support the IPMI= System Boot Options Command request to use a boot device for the current b= oot?

 

Thanks,

 

Jeshua Smith

--_000_DM6PR12MB33715944E3E0E1C3195E7E4CDBFF9DM6PR12MB3371namp_--