From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from nwk-aaemail-lapp02.apple.com (nwk-aaemail-lapp02.apple.com [17.151.62.67]) by mx.groups.io with SMTP id smtpd.web10.62.1572930048684177484 for ; Mon, 04 Nov 2019 21:00:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=sHkY0j+5; spf=pass (domain: apple.com, ip: 17.151.62.67, mailfrom: afish@apple.com) Received: from pps.filterd (nwk-aaemail-lapp02.apple.com [127.0.0.1]) by nwk-aaemail-lapp02.apple.com (8.16.0.27/8.16.0.27) with SMTP id xA54uqIh003404; Mon, 4 Nov 2019 21:00:47 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=sender : from : message-id : content-type : mime-version : subject : date : in-reply-to : cc : to : references; s=20180706; bh=dVFyjDTvtXJyEgg0jkH7pPP2rd/gMHOx6K+3JTS5eEg=; b=sHkY0j+51LTxzbdkoUbqRArMPr5CF1uZmRhTfhQ4bUZaqihi+33AdMau712H7nn7xDKk VGegXxFNKgorf6BYz8GuDGpFxpV7KwqBPLxKEPe0ZDMuD5ZnZ0DxQqB3w65iBZ/xOiqs z6AIxNI1EYQVLRFa91bVzgc+JOA4IHNQMbMSh2ytl89mn6sVX/huKEF9glvBSkDqW2dM UtWm19ZBN3z7H3OYyFEIl2ZmFVYl4AugzBnwE/atTyDfKPL41fOtULG/Q+tfZ+o4RiMZ t8a5OJrRpApR4cPlnVEn+Lv5Q4Kn1V7Himl7w7hvIjJdKjMdmXQPM/Fg9WCCuG6FV/Us nA== Received: from ma1-mtap-s01.corp.apple.com (ma1-mtap-s01.corp.apple.com [17.40.76.5]) by nwk-aaemail-lapp02.apple.com with ESMTP id 2w16cj3kqg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 04 Nov 2019 21:00:47 -0800 Received: from nwk-mmpp-sz09.apple.com (nwk-mmpp-sz09.apple.com [17.128.115.80]) by ma1-mtap-s01.corp.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPS id <0Q0H009FJCL94O30@ma1-mtap-s01.corp.apple.com>; Mon, 04 Nov 2019 21:00:46 -0800 (PST) Received: from process_milters-daemon.nwk-mmpp-sz09.apple.com by nwk-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) id <0Q0H00K00CFCAK00@nwk-mmpp-sz09.apple.com>; Mon, 04 Nov 2019 21:00:45 -0800 (PST) X-Va-A: X-Va-T-CD: 03a750d0b94f20a2f0a55bb1d451f5ba X-Va-E-CD: be490e393b9a0fc46442780b7330e634 X-Va-R-CD: 080c83ebb59fdc40182a21f863857514 X-Va-CD: 0 X-Va-ID: 2660067e-007c-4811-8dd6-e20a4a9a4828 X-V-A: X-V-T-CD: 03a750d0b94f20a2f0a55bb1d451f5ba X-V-E-CD: be490e393b9a0fc46442780b7330e634 X-V-R-CD: 080c83ebb59fdc40182a21f863857514 X-V-CD: 0 X-V-ID: f7d6153c-d0ca-4474-8695-bfd2ca9a8cbf X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-11-05_01:,, signatures=0 Received: from [17.235.75.204] (unknown [17.235.75.204]) by nwk-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPSA id <0Q0H004ZUCL7CJ70@nwk-mmpp-sz09.apple.com>; Mon, 04 Nov 2019 21:00:45 -0800 (PST) Sender: afish@apple.com From: "Andrew Fish" Message-id: MIME-version: 1.0 (Mac OS X Mail 13.0 \(3594.4.17\)) Subject: Re: [edk2-devel] [PATCH] Support skipping automatic BM enumeration Date: Mon, 04 Nov 2019 23:00:42 -0600 In-reply-to: Cc: "Ni, Ray" , Laszlo Ersek , "Wang, Jian J" , "Wu, Hao A" , "Gao, Zhichao" , Mike Kinney To: devel@edk2.groups.io, ashishsingha@nvidia.com References: <1b91c052-f64c-1dca-98ff-a2777afd7f77@redhat.com> <734D49CCEBEEF84792F5B80ED585239D5C34F98A@SHSMSX104.ccr.corp.intel.com> X-Mailer: Apple Mail (2.3594.4.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-11-05_01:,, signatures=0 Content-type: multipart/alternative; boundary="Apple-Mail=_0A058824-A7C5-4DF9-B042-015AD75C75E6" --Apple-Mail=_0A058824-A7C5-4DF9-B042-015AD75C75E6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Nov 4, 2019, at 9:24 PM, Ashish Singhal wrot= e: >=20 > Hi Ray, >=20 > I did not see any example with which one can tell BDS not to enumerate a= boot option. Can you please point me to an example where a protocol (Block= IO, Simple FS or Load File) does not get enumerated as a boot option? >=20 Ashish, Are you asking for example code, or reasons that you would not want to enu= merate something as bootable?=20 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= .=20 Thanks, Andrew Fish > Thanks > Ashish >=20 > -----Original Message----- > From: Ni, Ray >=20 > Sent: Monday, November 4, 2019 7:42 PM > To: Laszlo Ersek >; devel@e= dk2.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 enumerat= ion >=20 > + Mike >=20 > With the UEFI driver model, if a device is not needed by booting, it can= skip the connecting. > Then I do not see a need of the new protocol. >=20 > Thanks, > Ray >=20 >> -----Original Message----- >> From: Laszlo Ersek >> Sent: Thursday, October 31, 2019 6:15 PM >> To: devel@edk2.groups.io; ashishsingha@nvidia.com; Wang, Jian J=20 >> ; Wu, Hao A ; Ni, Ray=20 >> ; Gao, Zhichao >> Subject: Re: [edk2-devel] [PATCH] Support skipping automatic BM=20 >> enumeration >>=20 >> +Ray, +Zhichao >>=20 >> (although, the actual patch seems to be missing from the posting) >>=20 >> Thanks >> Laszlo >>=20 >> On 10/30/19 04:47, Ashish Singhal wrote: >>> Right now, any and every handle with a BlockIO or SimpleFileSystem=20 >>> or LoadFile protocol installed on the system is used to enumerate BM= =20 >>> automatically. There may be cases where on a platform, some of these= =20 >>> are not desirable to be enumerated automatically. This patch adds=20 >>> support for skipping this automatic enumeration if on the same=20 >>> handle, a new protocol defined as EdkiiSkipBmAutoEnumerate is found=20 >>> to be >> installed. >>>=20 >>> Ashish Singhal (1): >>> MdeModulePkg/UefiBootManagerLib: Support skipping BM enumeration >>>=20 >>> .../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=20 >>> 100644 MdeModulePkg/Include/Protocol/SkipBmAutoEnumerate.h >>>=20 >=20 >=20 > ------------------------------------------------------------------------= ----------- > This email message is for the sole use of the intended recipient(s) and = may contain > confidential information. Any unauthorized review, use, disclosure or d= istribution > is prohibited. If you are not the intended recipient, please contact th= e sender by > reply email and destroy all copies of the original message. > ------------------------------------------------------------------------= ----------- >=20 >=20 --Apple-Mail=_0A058824-A7C5-4DF9-B042-015AD75C75E6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On Nov 4, 2019, at 9:24 PM, Ashish Singhal <ashishsingha@nvidia.com> wrote:

<= span style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size:= 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; text-transform= : none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: = 0px; text-decoration: none; float: none; display: inline !important;" class= = =3D"">Hi Ray,

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


Ashish,

Are you asking for exam= ple code, or reasons that you would not want to enumerate something as boot= able? 

Most likely if you want to = have a platform policy to add gEdkiiSkipBmAutoEnumerateProtocolGuid yo= u are going to need an EFI Driver Model driver to add it to the handle base= d on some platform policy. This is the only way you can filter based on thi= ngs getting connected at different times during boot. 

Thanks,

Andrew Fis= h


Thanks
Ashish

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

<= span style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size:= 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; text-transform= : none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: = 0px; text-decoration: none; float: none; display: inline !important;" class= = =3D"">+ Mike

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


Thanks,
R= ay

-----Original Message-----
Fr= om: Laszlo Ersek <lersek= @redhat.com>
Sent: Thursday, October 31, 2019 6:15 PM<= br class=3D"">To: devel@= edk2.groups.io; a= shishsingha@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, Zhichao <= ;zhichao.gao@intel.com<= /a>>
Subject: Re: [edk2-devel] [PATCH] Support skipping au= tomatic 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 BlockI= O or SimpleFileSystem or LoadFile protocol installed on the system is used to enumera= te BM 
auto= matically. There may be cases where on a platform, some of these 
are not desirable t= o be enumerated automatically. This patch adds 
support for skipping this automatic en= umeration if on the same =
handle, a new protocol defined as EdkiiSkipBmAutoEnumerate i= s found 
to= be
installed.

Ashish Singhal (1):
 Md= eModulePkg/UefiBootManagerLib: Support skipping BM enumeration

.../Include/Protocol/SkipBmAutoEnumerate.h   &nb= sp;     | 25 ++++++++++++++
MdeModul= ePkg/Library/UefiBootManagerLib/BmBoot.c   | 40
+++++++++++++++++++++-
.../Library/UefiBootManagerLib/InternalBm.h    &nbs= p;   |  1 +
.../UefiBootManagerLib/UefiBo= otManagerLib.inf      |  1 +
Md= eModulePkg/MdeModulePkg.dec         = ;            &n= bsp;|  3 ++
5 files changed, 69 insertions(+), 1 deletio= n(-)  create mode 100644 MdeModulePkg/Include/Protocol/SkipBmAutoEnumerate.h



-------------= ----------------------------------------------------------------------
This email message is for t= he sole use of the intended recipient(s) and may contain
confidential information.  Any unaut= horized review, use, disclosure or distribution
is prohibited.  If you are not the intended r= ecipient, please contact the sender by
reply email and destroy all copies of the original message.=
----------------------= -------------------------------------------------------------


--Apple-Mail=_0A058824-A7C5-4DF9-B042-015AD75C75E6--