From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from hqemgate15.nvidia.com (hqemgate15.nvidia.com [216.228.121.64]) by mx.groups.io with SMTP id smtpd.web12.80.1572930380877503297 for ; Mon, 04 Nov 2019 21:06:20 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nvidia.com header.s=n1 header.b=ZSp65Afx; spf=pass (domain: nvidia.com, ip: 216.228.121.64, mailfrom: ashishsingha@nvidia.com) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 04 Nov 2019 21:06:25 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 04 Nov 2019 21:06:20 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 04 Nov 2019 21:06:20 -0800 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 5 Nov 2019 05:06:19 +0000 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (104.47.40.55) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 5 Nov 2019 05:06:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U49SmywOKjv9kWUnMmZG4Fkj2dSmfmV5e6xzYBJWE2z/3Uv935imJ0c+RWfC1nGd0kvSHkp+CVKO3QLl7e3g9mQZlN6aSygspo5iVehhfyq0xZUKsFXH4bu5H2DZ2ba6Oh0ojrt1VomQlwVJni0iyb1VgDV+7C4f7tG5uohAKCkBttr6Q2d8bL0Z9s72X/o6kUGJi+pROhO14U7OtaJny0qD4jBY2CgAIJYtDg8vcx/U0wZ4VkL0YIvjK3pbrQgTLzsXypJM5zD6hSnJZTDmBA6657WCHxtQEsica/5qCtpbb1dvX69+naFdDO/EKDGBsU18fSeZ9yRGELGvJSYKrw== 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-SenderADCheck; bh=l+TK5KhtE+iXvJwUXrbaFH7o4ymMkVmHhvJvDKgVMJQ=; b=cX+XKV/cz8M+9p7RQcRaaepJhwpOgRvYinR9kqV+9W1XTW3GfV7tPFFVKRFSuZ5N8tgPnpWU86U/YRpAXQdG3aF0qL2T5EdEg25tlFq45UbmOYcFOjBsaO1VS2paklL5ON3JlcaTXlvEhwn40P1B0aJKxH8QVROhHArhpo8NFrEr7fFYKp/X5Pjeku6u2cht2sRE6Ekpxgx7P5hnc5V0wWSuBBGt/VkaxfwEl9mio0cXnanP54bz7TojFBycDCCm+xxse5jsy7AodJPn7hVIDQSgdYxoDCptiGUPjUhiV/SvL2mneCooL/sJzsudY4VRlEmFEdy7K25M2dGXlaA+Aw== 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 Received: from DM6PR12MB3324.namprd12.prod.outlook.com (20.178.31.154) by DM6PR12MB3339.namprd12.prod.outlook.com (20.178.30.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.20; Tue, 5 Nov 2019 05:06:18 +0000 Received: from DM6PR12MB3324.namprd12.prod.outlook.com ([fe80::b53a:559d:9ca3:8ad1]) by DM6PR12MB3324.namprd12.prod.outlook.com ([fe80::b53a:559d:9ca3:8ad1%6]) with mapi id 15.20.2408.024; Tue, 5 Nov 2019 05:06:18 +0000 From: "Ashish Singhal" To: "afish@apple.com" , "devel@edk2.groups.io" CC: "Ni, Ray" , Laszlo Ersek , "Wang, Jian J" , "Wu, Hao A" , "Gao, Zhichao" , Mike Kinney Subject: Re: [edk2-devel] [PATCH] Support skipping automatic BM enumeration Thread-Topic: [edk2-devel] [PATCH] Support skipping automatic BM enumeration Thread-Index: AQHVjtTHCLhtaIcUyUSCzPyxqDHpbqd0il+AgAddNoCAAAtAEIAAG3QAgAAAwxA= Date: Tue, 5 Nov 2019 05:06:18 +0000 Message-ID: References: <1b91c052-f64c-1dca-98ff-a2777afd7f77@redhat.com> <734D49CCEBEEF84792F5B80ED585239D5C34F98A@SHSMSX104.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_6b558183-044c-4105-8d9c-cea02a2a3d86_Enabled=True; MSIP_Label_6b558183-044c-4105-8d9c-cea02a2a3d86_SiteId=43083d15-7273-40c1-b7db-39efd9ccc17a; MSIP_Label_6b558183-044c-4105-8d9c-cea02a2a3d86_Owner=ashishsingha@nvidia.com; MSIP_Label_6b558183-044c-4105-8d9c-cea02a2a3d86_SetDate=2019-11-05T05:06:16.2612322Z; MSIP_Label_6b558183-044c-4105-8d9c-cea02a2a3d86_Name=Unrestricted; MSIP_Label_6b558183-044c-4105-8d9c-cea02a2a3d86_Application=Microsoft Azure Information Protection; MSIP_Label_6b558183-044c-4105-8d9c-cea02a2a3d86_ActionId=db25bb49-511c-467f-b291-3a7aaa27c068; MSIP_Label_6b558183-044c-4105-8d9c-cea02a2a3d86_Extended_MSFT_Method=Automatic authentication-results: spf=none (sender IP is ) smtp.mailfrom=ashishsingha@nvidia.com; x-originating-ip: [216.228.112.22] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b517675a-24ed-4604-f972-08d761ade445 x-ms-traffictypediagnostic: DM6PR12MB3339: x-ms-exchange-purlcount: 4 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0212BDE3BE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(366004)(346002)(39860400002)(396003)(136003)(13464003)(199004)(189003)(6306002)(99286004)(110136005)(71200400001)(7736002)(8936002)(606006)(71190400001)(76176011)(102836004)(186003)(7696005)(53546011)(6506007)(6436002)(14454004)(74316002)(25786009)(966005)(9326002)(790700001)(33656002)(6116002)(3846002)(2906002)(478600001)(81156014)(81166006)(8676002)(2501003)(66066001)(55016002)(236005)(256004)(14444005)(9686003)(54896002)(476003)(11346002)(86362001)(52536014)(446003)(66946007)(66556008)(66446008)(64756008)(66476007)(486006)(229853002)(26005)(6246003)(316002)(5660300002)(4326008)(54906003)(76116006);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3339;H:DM6PR12MB3324.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nvidia.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: sFiZGxQp8ni9fm7dS2xDG4xvds8hzyOj28rK7BuhXwRl9HRFDbpOrU+dOcLleUl7AEfqP/BvEfqi4ZKulzJD5lkhlhqBLWuq5OVO/naYcQjhY3sSDC3ORgRG43Xnd/dH8nQtfVFKWlphcIpN1qjTbH439N+v4JqqQ/Pva9jEi5dDo0+3Ur6QO96pfnCFKALoqKKsprA5MREJ50Q7mj4zzkRk4Rtd7XFjfCBwib50m2xeACFwPVTDjV5RpDf5y/Tjmc4pnAFIcSV6qVoQ8/0BtsQpUTEdnQvdHtLv9mGZWtzNBP8CqqTAWGWNVMmHVKLJGkS95Ki5GoO7u8tpGOyUMSRLePPhRvYwxet6QPwEJ/Ngq/pTGidCJeVP1uG8LmZVdJus49fKrFPkM0InivkE6ptmAwhHNGC/LayD2E9FeM7Tfe38NXzgiRozVwc0JWuP3vYdzEZfXqfo6wLta5dCXZFntKlUeBHlVTFRhSRquBA= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: b517675a-24ed-4604-f972-08d761ade445 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Nov 2019 05:06:18.0983 (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: o+tzmNIE9Ks86Gkx0QJPSM4RGCXd6Ci6Q1hDCPZYYOZaHzjZ1PUAZ7zXYeBFptobtxujWxPZPN6YX9w1MHbROg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3339 Return-Path: ashishsingha@nvidia.com X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1572930385; bh=l+TK5KhtE+iXvJwUXrbaFH7o4ymMkVmHhvJvDKgVMJQ=; h=X-PGP-Universal:ARC-Seal:ARC-Message-Signature: ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic: Thread-Index:Date:Message-ID:References:In-Reply-To: Accept-Language:X-MS-Has-Attach:X-MS-TNEF-Correlator:msip_labels: authentication-results:x-originating-ip:x-ms-publictraffictype: x-ms-office365-filtering-correlation-id:x-ms-traffictypediagnostic: x-ms-exchange-purlcount:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-forefront-prvs: x-forefront-antispam-report:received-spf: x-ms-exchange-senderadcheck:x-microsoft-antispam: x-microsoft-antispam-message-info:x-ms-exchange-transport-forked: MIME-Version:X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg: Content-Language:Content-Type; b=ZSp65AfxZdQKt9sOybfSDlhu0KAX59MTQ5SOlZCR2nxdiTi2iYIrlHaI2k1OgpwUm 9liJ3LapE8ak1U2nOYkzdbmMgCNBKu1aE8hW9CymhJe8IekcNKrxqlvv4XW61Z2usU 37RSnxfRv0+L2AlxKHKj12MIWrD1rXnud+cCx/zhwWuqIgpe2cosxlhlySCH7JNesa tU7HLgAsTd1T4qgiksrrzy5bVbwhg8hXOR3LEqDxZF+BmRCwJfkCHSyZGBEDPc4hK/ yulGiQYyVn4C+YKGO+srxX7NkwTbyB9P8sqfIN53fu5ryHlHrm6oO7573+5oc60jLI hlsY1BFJQKLeQ== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_DM6PR12MB3324CE666FB10EA7CB9F99D7BA7E0DM6PR12MB3324namp_" --_000_DM6PR12MB3324CE666FB10EA7CB9F99D7BA7E0DM6PR12MB3324namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Andrew, On my platform, I am installing Load File protocol on a handle which I do = not want to be auto enumerated by boot manager. In order to achieve this, I= submitted this match on edk2 side and have installed gEdkiiSkipBmAutoEnume= rateProtocolGuid on the same handle to achieve this on platform side. If th= ere is a different way to achieve what I am trying to do, please let me kno= w and I would be happy to adopt that. Thanks Ashish From: afish@apple.com Sent: Monday, November 4, 2019 10:01 PM To: devel@edk2.groups.io; Ashish Singhal Cc: Ni, Ray ; Laszlo Ersek ; Wang, Ji= an J ; Wu, Hao A ; Gao, Zhichao = ; Mike Kinney Subject: Re: [edk2-devel] [PATCH] Support skipping automatic BM enumeratio= n On Nov 4, 2019, at 9:24 PM, Ashish Singhal > wrote: Hi Ray, I did not see any example with which one can tell BDS not to enumerate a b= oot option. Can you please point me to an example where a protocol (Block I= O, Simple FS or Load File) does not get enumerated as a boot option? Ashish, Are you asking for example code, or reasons that you would not want to enu= merate something as bootable? Most likely if you want to have a platform policy to add gEdkiiSkipBmAutoE= numerateProtocolGuid you are going to need an EFI Driver Model driver to ad= d it to the handle based on some platform policy. This is the only way you = can filter based on things getting connected at different times during boot= . Thanks, Andrew Fish Thanks Ashish -----Original Message----- From: Ni, Ray > Sent: Monday, November 4, 2019 7:42 PM To: Laszlo Ersek >; devel@edk2= .groups.io; Ashish Singhal >; Wang, Jian J >; Wu, Hao A >; Gao, Zhichao > Cc: Kinney, Michael D > Subject: RE: [edk2-devel] [PATCH] Support skipping automatic BM enumeratio= n + Mike With the UEFI driver model, if a device is not needed by booting, it can s= kip the connecting. Then I do not see a need of the new protocol. Thanks, Ray -----Original Message----- From: Laszlo Ersek > Sent: Thursday, October 31, 2019 6:15 PM To: devel@edk2.groups.io; ashishsingha@nvidia= .com; Wang, Jian J >; Wu, Hao A >; Ni, Ray >; Gao, Zhichao > Subject: Re: [edk2-devel] [PATCH] Support skipping automatic BM enumeration +Ray, +Zhichao (although, the actual patch seems to be missing from the posting) Thanks Laszlo On 10/30/19 04:47, Ashish Singhal wrote: Right now, any and every handle with a BlockIO or SimpleFileSystem or LoadFile protocol installed on the system is used to enumerate BM automatically. There may be cases where on a platform, some of these are not desirable to be enumerated automatically. This patch adds support for skipping this automatic enumeration if on the same handle, a new protocol defined as EdkiiSkipBmAutoEnumerate is found to be installed. Ashish Singhal (1): MdeModulePkg/UefiBootManagerLib: Support skipping BM enumeration .../Include/Protocol/SkipBmAutoEnumerate.h | 25 ++++++++++++++ MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 40 +++++++++++++++++++++- .../Library/UefiBootManagerLib/InternalBm.h | 1 + .../UefiBootManagerLib/UefiBootManagerLib.inf | 1 + MdeModulePkg/MdeModulePkg.dec | 3 ++ 5 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 MdeModulePkg/Include/Protocol/SkipBmAutoEnumerate.h --------------------------------------------------------------------------= --------- This email message is for the sole use of the intended recipient(s) and ma= y contain confidential information. Any unauthorized review, use, disclosure or dis= tribution is prohibited. If you are not the intended recipient, please contact the = sender by reply email and destroy all copies of the original message. --------------------------------------------------------------------------= --------- --_000_DM6PR12MB3324CE666FB10EA7CB9F99D7BA7E0DM6PR12MB3324namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello Andrew,

 

On my platform, I am installing Load File protocol = on a handle which I do not want to be auto enumerated by boot manager. In o= rder to achieve this, I submitted this match on edk2 side and have installe= d gEdkiiSkipBmAutoEnumerateProtocolGuid on the same handle to achieve this on platform side. If there is a differ= ent way to achieve what I am trying to do, please let me know and I would b= e happy to adopt that.

 

Thanks

Ashish

 

From: afish@apple.com <afish@apple.com>= ;
Sent: Monday, November 4, 2019 10:01 PM
To: devel@edk2.groups.io; Ashish Singhal <ashishsingha@nvidia.co= m>
Cc: Ni, Ray <ray.ni@intel.com>; Laszlo Ersek <lersek@redha= t.com>; Wang, Jian J <jian.j.wang@intel.com>; Wu, Hao A <hao.a.= wu@intel.com>; Gao, Zhichao <zhichao.gao@intel.com>; Mike Kinney &= lt;michael.d.kinney@intel.com>
Subject: Re: [edk2-devel] [PATCH] Support skipping automatic BM enu= meration

 

On Nov 4, 2019, at 9:24 PM, Ashish Singhal <ashishsingha@nvidia.com> wrot= e:

 

Hi Ray,

I did not see any example with which one can tell BDS not to enumerate a b= oot option. Can you please point me to an example where a protocol (Block I= O, Simple FS or Load File) does not get enumerated as a boot option?

 

Ashish,

 

Are you asking for example code, or reasons that yo= u would not want to enumerate something as bootable? 

 

Most likely if you want to have a platform policy t= o add gEdkiiSkipBmAutoEnumerateProtocolGuid you are going to need an E= FI Driver Model driver to add it to the handle based on some platform polic= y. This is the only way you can filter based on things getting connected at different times during boot. 

 

Thanks,

 

Andrew Fish

 



Thanks
Ashish

-----Original Message-----
From: Ni, Ray <
ray.ni@i= ntel.com> 
Sent: Monday, November 4, 2019 7:42 PM
To: Laszlo Ersek <
lersek@= redhat.com>; devel@edk2.groups.io; Ashish Singhal <as= hishsingha@nvidia.com>; Wang, Jian J <jian.j.wang@intel.com>; Wu, Hao A <hao.a.wu@int= el.com>; Gao, Zhichao <zhichao.gao@intel.com>
Cc: Kinney, Michael D <
michael.d.kinney@intel.com>
Subject: RE: [edk2-devel] [PATCH] Support skipping automatic BM enumeratio= n

+ Mike

With the UEFI driver model, if a device is not needed by booting, it can s= kip the connecting.
Then I do not see a need of the new protocol.

Thanks,
Ray


-----Original Message-----
From: Laszlo Ersek <lersek@redhat.= com>
Sent: Thursday, October 31, 2019 6:15 PM
To: devel@edk2.groups.io; ashishsingha@nvidia.com; Wang, Jian J 
<jian.j.wang@intel.com>= ; Wu, Hao A <hao.a.wu@intel.com>; Ni, Ray 
<
ray.ni@intel.com>; Gao, Zhi= chao <zhichao.gao@intel.com= >
Subject: Re: [edk2-devel] [PATCH] Support skipping automatic BM 
enumeration

+Ray, +Zhichao

(although, the actual patch seems to be missing from the posting)

Thanks
Laszlo

On 10/30/19 04:47, Ashish Singhal wrote:

Right now, any and every handle with a BlockIO or= SimpleFileSystem 
or LoadFile protocol installed on the system is used to enumerate BM 
automatically. There may be cases where on a platform, some of these 
are not desirable to be enumerated automatically. This patch adds 
support for skipping this automatic enumeration if on the same 
handle, a new protocol defined as EdkiiSkipBmAutoEnumerate is found 
to be

installed.


Ashish Singhal (1):
 MdeModulePkg/UefiBootManagerLib: Support skipping BM enumeration

.../Include/Protocol/SkipBmAutoEnumerate.h      &= nbsp;  | 25 ++++++++++= 3;+++
MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c   | 40

++++++++++= ;+++++++++++-

.../Library/UefiBo= otManagerLib/InternalBm.h        |  = ;1 +
.../UefiBootManagerLib/UefiBootManagerLib.inf     &nbs= p;|  1 +
MdeModulePkg/MdeModulePkg.dec        &n= bsp;            = ; |  3 ++
5 files changed, 69 insertions(+), 1 deletion(-)  create mode 

100644 MdeModulePkg/Include/Protocol/SkipBmAutoEnumerate.h



--------------------------------------------------------------------------= ---------
This email message is for the sole use of the intended recipient(s) and ma= y contain
confidential information.  Any unauthorized review, use, disclosure o= r distribution
is prohibited.  If you are not the intended recipient, please contact= the sender by
reply email and destroy all copies of the original message.
--------------------------------------------------------------------------= ---------

 

--_000_DM6PR12MB3324CE666FB10EA7CB9F99D7BA7E0DM6PR12MB3324namp_--