From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.132.183.28; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (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 5D78521D2BF08 for ; Fri, 2 Feb 2018 05:40:48 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5B48E7EBDB; Fri, 2 Feb 2018 13:46:26 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-121-50.rdu2.redhat.com [10.10.121.50]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2177176603; Fri, 2 Feb 2018 13:46:24 +0000 (UTC) To: Ruiyu Ni , edk2-devel@lists.01.org Cc: Michael D Kinney , Star Zeng , Liming Gao References: <20180202064530.407028-1-ruiyu.ni@intel.com> <20180202064530.407028-5-ruiyu.ni@intel.com> From: Laszlo Ersek Message-ID: <3e53cc77-f858-5cc8-abc1-f9adbc27bfa0@redhat.com> Date: Fri, 2 Feb 2018 14:46:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180202064530.407028-5-ruiyu.ni@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 02 Feb 2018 13:46:26 +0000 (UTC) Subject: Re: [PATCH 04/10] MdeModulePkg/ResetSystemRuntimeDxe: Add platform filter and handler X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Feb 2018 13:40:48 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 02/02/18 07:45, Ruiyu Ni wrote: > From: Michael D Kinney > > Add support for platform specific reset filters and platform > specific reset handlers to ResetSystem(). A filter may modify > the reset type and reset data and call ResetSystem() with the > modified parameters. A handler performs the reset action. > > The support for platform specific filters and platform specific > handlers is based on the Reset Notification feature added to the > UEFI 2.7 Specification. > > Platform specific reset filters are processed first so the final > reset type and reset data can be determined. In the DXE Phase > The UEFI Reset Notifications are processed second so all UEFI > Drivers that have registered for a Reset Notification can perform > any required clean up actions. The platform specific reset > handlers are processed third. If there are no registered > platform specific reset handlers or none of them reset the > platform, then the default reset action based on the > ResetSystemLib is performed. > > In the PEI Phase, filters are handlers are registered through > the folloiwng 2 PPIs that are based on > EFI_RESET_NOTIFICATION_PROTOCOL. > * gEdkiiPlatformSpecificResetFilterPpiGuid > * gEdkiiPlatformSpecificResetFilterPpiGuid The second entry should be "gEdkiiPlatformSpecificResetHandlerPpiGuid". > > In the DXE Phase, filters are handlers are registered through > the folloiwng 2 Protocols that are based on > EFI_RESET_NOTIFICATION_PROTOCOL. > * gEdkiiPlatformSpecificResetFilterProtocolGuid > * gEdkiiPlatformSpecificResetFilterProtocolGuid The second entry should be "gEdkiiPlatformSpecificResetHandlerProtocolGuid". [...] Thanks Laszlo