From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=210.71.195.44; helo=out02.hibox.biz; envelope-from=tim.lewis@insyde.com; receiver=edk2-devel@lists.01.org Received: from out02.hibox.biz (out04.hibox.biz [210.71.195.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3E26222742AA4 for ; Wed, 11 Apr 2018 20:49:34 -0700 (PDT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2DmAAAQ1s5a/ww0GKxcGQEBAQEBAQEBA?= =?us-ascii?q?QEBAQcBAQEBAYNCYW8ogxyISV6OMTEBXYIWkE0UgWYLGAuEWgQCAoJPIjQYAQI?= =?us-ascii?q?BAQEBAQECbBwMhSIBAQEBAwEBBgIwHAgQCwwBAwIGAw0EBAEBKAcZDgERDQkIA?= =?us-ascii?q?gQBEgsFhHwQqTUaAogogioFgiuHGT+EEIMRAQSBQoVrAoU4hy2KeAgCgWKDcoU?= =?us-ascii?q?GK4MwgTOGJIRthyyBd4ZvgSUcOIFScE+CQz+CCYIjhiWFXh8wAY59AQE?= X-IronPort-AV: E=Sophos;i="5.48,439,1517846400"; d="scan'208";a="4105429" Received: from unknown (HELO hb3-BKT202.hibox.biz) ([172.24.52.12]) by out02.hibox.biz with ESMTP; 12 Apr 2018 11:49:32 +0800 Received: from unknown (HELO hb3-BKT101.hibox.biz) ([172.24.51.11]) by hb3-BKT202.hibox.biz with ESMTP; 12 Apr 2018 11:49:30 +0800 Received: from unknown (HELO hb3-IN01.hibox.biz) ([172.24.12.11]) by hb3-BKT101.hibox.biz with ESMTP; 12 Apr 2018 11:49:32 +0800 X-Remote-IP: 60.250.30.23 X-Remote-Host: 60-250-30-23.hinet-ip.hinet.net X-SBRS: None X-MID: 10670999 X-Auth-ID: tim.lewis@insyde.com X-EnvelopeFrom: tim.lewis@insyde.com Received: from 60-250-30-23.hinet-ip.hinet.net (HELO DESKTOPAVHFBJF) ([60.250.30.23]) by hb3-IN01.hibox.biz with ESMTP/TLS/AES256-SHA; 12 Apr 2018 11:49:31 +0800 From: "Tim Lewis" To: "'Bi, Dandan'" , "'Kinney, Michael D'" , Cc: "'Dong, Eric'" , "'Gao, Liming'" References: <20180412013138.113904-1-dandan.bi@intel.com> <3C0D5C461C9E904E8F62152F6274C0BB3BAA4DFF@shsmsx102.ccr.corp.intel.com> <3C0D5C461C9E904E8F62152F6274C0BB3BAA4E2B@shsmsx102.ccr.corp.intel.com> In-Reply-To: <3C0D5C461C9E904E8F62152F6274C0BB3BAA4E2B@shsmsx102.ccr.corp.intel.com> Date: Wed, 11 Apr 2018 20:49:28 -0700 Message-ID: <066201d3d211$4274bc60$c75e3520$@insyde.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-index: AQG8Ahf7Ob8O8/12hkDr+3vipw+GGQHp9z0QAWzATdsBengCqqQFlK6A Subject: Re: [patch 0/3] MdeModulePkg/UiApp: Signal event when enter/exit setup menu X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2018 03:49:36 -0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-language: en-us This is starting to sound like something that requires a UEFI spec update. Tim -----Original Message----- From: edk2-devel On Behalf Of Bi, Dandan Sent: Wednesday, April 11, 2018 8:47 PM To: Kinney, Michael D ; edk2-devel@lists.01.org Cc: Bi, Dandan ; Dong, Eric ; Gao, Liming Subject: Re: [edk2] [patch 0/3] MdeModulePkg/UiApp: Signal event when enter/exit setup menu Hi all, All setup menu enter/exit cases includes: a. UiApp entry point is called and then setup menu is shown (enter setup menu) b. User select Continue menu in setup menu to exit. (exit setup menu) c. User select Reset menu in setup page to leave exit. (exit setup menu) d. User boot from file to exit setup page. (exit setup menu) e. Exit from boot from file and return to UiApp. (enter setup menu) f. User boot from boot manager to exit setup page. (exit setup menu) g. Exit the boot option in boot manager and return to UiApp. (enter setup menu) I didn't describe it in details in the commit messages. I am sorry that if it make you confused. I will add them in the commit messages of V2 patches. Thanks, Dandan -----Original Message----- From: Bi, Dandan Sent: Thursday, April 12, 2018 11:17 AM To: Kinney, Michael D ; edk2-devel@lists.01.org Cc: Dong, Eric ; Gao, Liming ; Bi, Dandan Subject: RE: [edk2] [patch 0/3] MdeModulePkg/UiApp: Signal event when enter/exit setup menu Hi Mike, We can't move the enter/exit event signaling into the FormBrowwer SendForm() function. Because we can't decide whether enter/exit setup through SendForm() is called or not. Some examples: 1. SendForm() is not called when exit setup menu and re-enter setup menu. Such as, SendForm() is only called when enter front page firstly. But when go to Boot Manager menu to select an option to boot and exit setup menu, then exit the option and return to setup menu, SendForm() is not called in this case. 2. SendForm () may be also called more than one time even if we don't leave setup menu. Such as, if we want to add an boot option in setup menu, when choose file to add boot option, SendForm() will be called to show files. But we don't think we leave setup menu in this case. So if we signal setup enter/exit event in SendForm(), may cause less/more notifications. Which is not a correct behavior. Thanks, Dandan -----Original Message----- From: Kinney, Michael D Sent: Thursday, April 12, 2018 9:44 AM To: Bi, Dandan ; edk2-devel@lists.01.org; Kinney, Michael D Cc: Dong, Eric ; Gao, Liming Subject: RE: [edk2] [patch 0/3] MdeModulePkg/UiApp: Signal event when enter/exit setup menu Dandan Bi, Is it possible to move the enter/exit event signaling into the FormBrowwer SendForm() function? The current patch set adds these signal calls in all the places that SendForm() is called and if one of these is missed, a notification will be missed. Mike > -----Original Message----- > From: edk2-devel [mailto:edk2-devel- > bounces@lists.01.org] On Behalf Of Dandan Bi > Sent: Wednesday, April 11, 2018 6:32 PM > To: edk2-devel@lists.01.org > Cc: Dong, Eric ; Gao, Liming > > Subject: [edk2] [patch 0/3] MdeModulePkg/UiApp: Signal event when > enter/exit setup menu > > These changes are to support notify callbacks when enter/exit setup > menu, since some driver may need to hook setup enter/exit points to do > something. > > We will signal setup enter/exit events for all setup menu enter/exit > cases.Then the module which pay attention to these events can execute > the callback. > > Cc: Eric Dong > Cc: Liming Gao > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Dandan Bi > > Dandan Bi (3): > MdeModulePkg/UiApp: Signal event when enter/exit setup menu > MdeModulePkg/BMMUiLib: Signal event when enter/exit setup menu > MdeModulePkg/BMUiLib: Signal event when enter/exit setup menu > > MdeModulePkg/Application/UiApp/FrontPage.c > | 4 +++- > > MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupp > ort.c | 3 ++- > MdeModulePkg/Application/UiApp/UiApp.inf > | 4 +++- > > .../BootMaintenanceManagerUiLib/BootMaintenanceManagerUi > Lib.inf | 4 +++- > > MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootOpt > ion.c | 8 +++++++- > MdeModulePkg/Library/BootManagerUiLib/BootManager.c > | 7 ++++++- > > MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.i > nf | 4 +++- > MdeModulePkg/MdeModulePkg.dec > | 6 ++++++ > 8 files changed, 33 insertions(+), 7 deletions(-) > > -- > 2.14.3.windows.1 > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel