public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Gao, Zhichao" <zhichao.gao@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"lersek@redhat.com" <lersek@redhat.com>,
	"sunnywang@hpe.com" <sunnywang@hpe.com>
Cc: "Ni, Ray" <ray.ni@intel.com>, Walon Li <walon.li@hpe.com>
Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications
Date: Wed, 16 Oct 2019 08:35:42 +0000	[thread overview]
Message-ID: <3CE959C139B4C44DBEA1810E3AA6F9000B857321@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <573f0624-50c5-1f12-ed4a-a4747339c839@redhat.com>

MdeModulePkg/BdsDxe: Do PlatformRecovery regardless of OsIndications

According to the UEFI specification section 3.4.1 and 3.4.2,
the OsRecovery and PlatformRecovery options should still be
processed regardless of the value of OsIndications variable
if processing of BootOrder does not result in success.
Therefore, update the code to check PcdPlatformRecoverySupport
instead of the value of OsIndications variable (PlatformRecovery).

I suggest to use the above title because of the length limitation. And I also break the commit message into serval lines.
Here is the development process for edk open source link: https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Development-Process. That would help you to send a patch in a basic correct format.
With the commit massage issue addressed, Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>

Thanks,
Zhichao

> -----Original Message-----
> From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of
> Laszlo Ersek
> Sent: Wednesday, October 16, 2019 4:02 PM
> To: devel@edk2.groups.io; sunnywang@hpe.com
> Cc: Ni, Ray <ray.ni@intel.com>; Gao, Zhichao <zhichao.gao@intel.com>;
> Walon Li <walon.li@hpe.com>
> Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make
> PlatformRecovery work regardless of OsIndications
> 
> On 10/16/19 09:40, Wang, Sunny (HPS SW) wrote:
> > According to the UEFI specification section 3.4.1 and 3.4.2, the OsRecovery
> and PlatformRecovery options should still be processed regardless of the
> value of OsIndications variable if processing of BootOrder does not result in
> success. Therefore, update the code to check PcdPlatformRecoverySupport
> instead of the value of OsIndications variable (PlatformRecovery).
> 
> Please wrap the commit message to 74 characters.
> 
> (Can be done on push, if the maintainer accepts the patch.)
> 
> Thanks
> Laszlo
> 
> >
> > Cc: Ray Ni <ray.ni@intel.com>
> > Cc: Zhichao Gao <zhichao.gao@intel.com>
> > Cc: Walon Li <walon.li@hpe.com>
> > Signed-off-by: Sunny Wang <sunnywang@hpe.com>
> > ---
> >  MdeModulePkg/Universal/BdsDxe/BdsEntry.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/MdeModulePkg/Universal/BdsDxe/BdsEntry.c
> b/MdeModulePkg/Universal/BdsDxe/BdsEntry.c
> > index d6ec31118c..d387dbe7ac 100644
> > --- a/MdeModulePkg/Universal/BdsDxe/BdsEntry.c
> > +++ b/MdeModulePkg/Universal/BdsDxe/BdsEntry.c
> > @@ -6,7 +6,7 @@
> >    to enter BDS phase.
> >
> >  Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR>
> > -(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
> > +(C) Copyright 2016-2019 Hewlett Packard Enterprise Development LP<BR>
> >  (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
> >  SPDX-License-Identifier: BSD-2-Clause-Patent
> >
> > @@ -1069,7 +1069,7 @@ BdsEntry (
> >    }
> >
> >    if (!BootSuccess) {
> > -    if (PlatformRecovery) {
> > +    if (PcdGetBool (PcdPlatformRecoverySupport)) {
> >        LoadOptions = EfiBootManagerGetLoadOptions (&LoadOptionCount,
> LoadOptionTypePlatformRecovery);
> >        ProcessLoadOptions (LoadOptions, LoadOptionCount);
> >        EfiBootManagerFreeLoadOptions (LoadOptions, LoadOptionCount);
> >
> 
> 
> 


  reply	other threads:[~2019-10-16  8:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-16  7:40 [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications Wang, Sunny (HPS SW)
2019-10-16  8:02 ` [edk2-devel] " Laszlo Ersek
2019-10-16  8:35   ` Gao, Zhichao [this message]
2019-10-16  9:43     ` Wang, Sunny (HPS SW)
2019-10-22 13:26       ` Wang, Jian J
2019-10-23  5:58         ` Ni, Ray
2019-10-23 11:19           ` Wang, Sunny (HPS SW)
2019-10-30  5:35             ` Wang, Jian J

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CE959C139B4C44DBEA1810E3AA6F9000B857321@SHSMSX101.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox