From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: zhichao.gao@intel.com) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by groups.io with SMTP; Wed, 17 Jul 2019 01:28:40 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jul 2019 01:28:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,273,1559545200"; d="scan'208";a="366938596" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga006.fm.intel.com with ESMTP; 17 Jul 2019 01:28:40 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 17 Jul 2019 01:28:39 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 17 Jul 2019 01:28:39 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 17 Jul 2019 01:28:39 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.134]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.162]) with mapi id 14.03.0439.000; Wed, 17 Jul 2019 16:28:37 +0800 From: "Gao, Zhichao" To: "Ni, Ray" , "devel@edk2.groups.io" CC: "Wang, Jian J" , "Wu, Hao A" , "Zeng, Star" , "Gao, Liming" , Sean Brogan , Michael Turner , Bret Barkelew Subject: Re: [PATCH 0/4] Add a pcd PcdBootManagerInBootOrder to control whether BootManager is in BootOrder Thread-Topic: [PATCH 0/4] Add a pcd PcdBootManagerInBootOrder to control whether BootManager is in BootOrder Thread-Index: AQHVPHUgSIPB3zAwy0ivpJlDegaEA6bOchhAgAADWnA= Date: Wed, 17 Jul 2019 08:28:37 +0000 Message-ID: <3CE959C139B4C44DBEA1810E3AA6F9000B8085BB@SHSMSX101.ccr.corp.intel.com> References: <20190717075008.22716-1-zhichao.gao@intel.com> <734D49CCEBEEF84792F5B80ED585239D5C23325A@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <734D49CCEBEEF84792F5B80ED585239D5C23325A@SHSMSX104.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: zhichao.gao@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Ray, You are right. I didn't view the implementation of BmGetFreeOptionNumber. O= nly use it base on its comments. If new options are added after BootManagerMenuApp with the pcd's value FALS= E then it would be overwriten. 3/4 would remove the BootManagerMenuApp option from Boot#### and BootOrder.= But adding it to BootMenu (i.e. BootOrder) is done by platform code, platf= orm usually add it at PlatformBootManagerAfterConsole function. So I think = we are able to choose whether to add it or not. Both changing the pcd or do= not add it in the platform (actually PlatformBootManagerLib) can match thi= s requirement. So I think the requirement is keeping all the features of BootMenuApp (such= as hotkey boot, boot next and so on) except showing it in the BootMenu. This patch is inappropriate. But firstly, did I misunderstand the requireme= nt? Thanks, Zhichao > -----Original Message----- > From: Ni, Ray > Sent: Wednesday, July 17, 2019 4:07 PM > To: Gao, Zhichao ; devel@edk2.groups.io > Cc: Wang, Jian J ; Wu, Hao A ; > Zeng, Star ; Gao, Liming ; > Sean Brogan ; Michael Turner > ; Bret Barkelew > > Subject: RE: [PATCH 0/4] Add a pcd PcdBootManagerInBootOrder to control > whether BootManager is in BootOrder >=20 > Zhichao, >=20 > Firstly, patch 4/4 is a fix to patch 3/4, why not merge them into one pat= ch? Do > we have a policy to strictly cherry-pick the patches from MU? >=20 > Secondly, the change that skips to add the #### to BootOrder may cause th= e > Boot#### pointing to the BootManagerMenu be overwritten later. Reason is > BmGetFreeOptionNumber() replies on BootOrder/BootNext to get a free > option number. >=20 > If the requirement is to let BootManagerMenuApp hide the > BootManagerMenu, we could change the BootManagerMenuApp using a > PCD to control. >=20 > Thanks, > Ray >=20 > > -----Original Message----- > > From: Gao, Zhichao > > Sent: Wednesday, July 17, 2019 3:50 PM > > To: devel@edk2.groups.io > > Cc: Wang, Jian J ; Wu, Hao A > > ; Ni, Ray ; Zeng, Star > > ; Gao, Liming ; Sean Brogan > > ; Michael Turner > > ; Bret Barkelew > > > > Subject: [PATCH 0/4] Add a pcd PcdBootManagerInBootOrder to control > > whether BootManager is in BootOrder > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1979 > > > > Add a pcd to control whether the BootManager is in BootOrder variable. > > From a UI perspective, it never want to see a Front Page UI in the > > boot order list. So add a pcd PcdBootManagerInBootOrder to control it. > > If it is FALSE, the BootManager App wouldn't be added to BootOrder. > > And it wouldn't be shown in the BootManagerMenuApp. > > > > Notes: > > BootManager means the application with file guid > PcdBootManagerMenuFile. > > It's default value is EEC25BDC-67F2-4D95-B1D5-F81B2039D11D, and users > > usually change the pcd to UiApp.inf's file guid. BootManagerMenuApp > > means uefi application with file guid EEC25BDC-67F2-4D95-B1D5- > > F81B2039D11D. > > > > Cc: Jian J Wang > > Cc: Hao A Wu > > Cc: Ray Ni > > Cc: Star Zeng > > Cc: Liming gao > > Cc: Sean Brogan > > Cc: Michael Turner > > Cc: Bret Barkelew > > Signed-off-by: Zhichao Gao > > > > Bret Barkelew (2): > > MdeModulePkg: Add PcdBootManagerInBootOrder to dec file > > MdeModulePkg: Use pcd to control if BootManager in BootOrder > > > > Zhichao Gao (2): > > MdeModulePkg: Add prompt and help string for > > PcdBootManagerInBootOrder > > MdeModulePkg: PcdBootManagerInBootOrder should only affect > BootOrder > > > > .../Library/UefiBootManagerLib/BmBoot.c | 29 +++++++++++++++---- > > .../UefiBootManagerLib/UefiBootManagerLib.inf | 1 + > > MdeModulePkg/MdeModulePkg.dec | 6 ++++ > > MdeModulePkg/MdeModulePkg.uni | 6 ++++ > > 4 files changed, 36 insertions(+), 6 deletions(-) > > > > -- > > 2.21.0.windows.1