* [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications @ 2019-10-16 7:40 Wang, Sunny (HPS SW) 2019-10-16 8:02 ` [edk2-devel] " Laszlo Ersek 0 siblings, 1 reply; 8+ messages in thread From: Wang, Sunny (HPS SW) @ 2019-10-16 7:40 UTC (permalink / raw) To: devel; +Cc: Sunny Wang, Ray Ni, Zhichao Gao, Walon Li 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). 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); -- 2.21.0.windows.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications 2019-10-16 7:40 [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications Wang, Sunny (HPS SW) @ 2019-10-16 8:02 ` Laszlo Ersek 2019-10-16 8:35 ` Gao, Zhichao 0 siblings, 1 reply; 8+ messages in thread From: Laszlo Ersek @ 2019-10-16 8:02 UTC (permalink / raw) To: devel, sunnywang; +Cc: Ray Ni, Zhichao Gao, Walon Li 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); > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications 2019-10-16 8:02 ` [edk2-devel] " Laszlo Ersek @ 2019-10-16 8:35 ` Gao, Zhichao 2019-10-16 9:43 ` Wang, Sunny (HPS SW) 0 siblings, 1 reply; 8+ messages in thread From: Gao, Zhichao @ 2019-10-16 8:35 UTC (permalink / raw) To: devel@edk2.groups.io, lersek@redhat.com, sunnywang@hpe.com Cc: Ni, Ray, Walon Li 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); > > > > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications 2019-10-16 8:35 ` Gao, Zhichao @ 2019-10-16 9:43 ` Wang, Sunny (HPS SW) 2019-10-22 13:26 ` Wang, Jian J 0 siblings, 1 reply; 8+ messages in thread From: Wang, Sunny (HPS SW) @ 2019-10-16 9:43 UTC (permalink / raw) To: Gao, Zhichao, devel@edk2.groups.io, lersek@redhat.com, Jian J Wang, Hao A Wu Cc: Ni, Ray, Li, Walon, Wang, Sunny (HPS SW) Thanks for catching this, Laszlo. Thanks for the suggestion and information, Zhichao. Next time, I will definitely take care of this in the first place. Hi Jian and Hao, I forgot to add both of you in Cc. Sorry about that. I will send you guys a new patch with the updated commit message below. If you guys need me to resend an email to edk2-devel for the new patch, feel free to let me know. =============================================== MdeModulePkg/BdsDxe: Fix PlatformRecovery issue For now, PlatformRecovery doesn't work if OsIndications variable doesn't exist, which is wrong. According to the UEFI specification section 3.4.1 and 3.4.2, if processing of BootOrder does not result in success, the OsRecovery and PlatformRecovery options should still be processed regardless of the existence of the OsIndications variable. Therefore, update the code to check PcdPlatformRecoverySupport instead of the value of OsIndications variable (PlatformRecovery) to fix this issue. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Hao Wu <hao.a.wu@intel.com> 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> ================================================= Regards, Sunny Wang -----Original Message----- From: Gao, Zhichao [mailto:zhichao.gao@intel.com] Sent: Wednesday, October 16, 2019 4:36 PM To: devel@edk2.groups.io; lersek@redhat.com; Wang, Sunny (HPS SW) <sunnywang@hpe.com> Cc: Ni, Ray <ray.ni@intel.com>; Li, Walon <walon.li@hpe.com> Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications Importance: High 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); > > > > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications 2019-10-16 9:43 ` Wang, Sunny (HPS SW) @ 2019-10-22 13:26 ` Wang, Jian J 2019-10-23 5:58 ` Ni, Ray 0 siblings, 1 reply; 8+ messages in thread From: Wang, Jian J @ 2019-10-22 13:26 UTC (permalink / raw) To: Wang, Sunny (HPS SW), Gao, Zhichao, devel@edk2.groups.io, lersek@redhat.com, Wu, Hao A, Ni, Ray Cc: Li, Walon I'm not familiar this part of code. Ray is expert. Acked-by: Jian J Wang <jian.j.wang@intel.com> > -----Original Message----- > From: Wang, Sunny (HPS SW) <sunnywang@hpe.com> > Sent: Wednesday, October 16, 2019 5:43 PM > To: Gao, Zhichao <zhichao.gao@intel.com>; devel@edk2.groups.io; > lersek@redhat.com; Wang, Jian J <jian.j.wang@intel.com>; Wu, Hao A > <hao.a.wu@intel.com> > Cc: Ni, Ray <ray.ni@intel.com>; Li, Walon <walon.li@hpe.com>; Wang, Sunny > (HPS SW) <sunnywang@hpe.com> > Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make > PlatformRecovery work regardless of OsIndications > > Thanks for catching this, Laszlo. > Thanks for the suggestion and information, Zhichao. Next time, I will definitely > take care of this in the first place. > > Hi Jian and Hao, > I forgot to add both of you in Cc. Sorry about that. I will send you guys a new > patch with the updated commit message below. If you guys need me to resend > an email to edk2-devel for the new patch, feel free to let me know. > > =============================================== > MdeModulePkg/BdsDxe: Fix PlatformRecovery issue > > For now, PlatformRecovery doesn't work if OsIndications variable > doesn't exist, which is wrong. > According to the UEFI specification section 3.4.1 and 3.4.2, if > processing of BootOrder does not result in success, the OsRecovery > and PlatformRecovery options should still be processed regardless of > the existence of the OsIndications variable. > Therefore, update the code to check PcdPlatformRecoverySupport instead > of the value of OsIndications variable (PlatformRecovery) to fix > this issue. > > Cc: Jian J Wang <jian.j.wang@intel.com> > Cc: Hao Wu <hao.a.wu@intel.com> > 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> > ================================================= > > Regards, > Sunny Wang > > -----Original Message----- > From: Gao, Zhichao [mailto:zhichao.gao@intel.com] > Sent: Wednesday, October 16, 2019 4:36 PM > To: devel@edk2.groups.io; lersek@redhat.com; Wang, Sunny (HPS SW) > <sunnywang@hpe.com> > Cc: Ni, Ray <ray.ni@intel.com>; Li, Walon <walon.li@hpe.com> > Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make > PlatformRecovery work regardless of OsIndications > Importance: High > > 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); > > > > > > > > > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications 2019-10-22 13:26 ` Wang, Jian J @ 2019-10-23 5:58 ` Ni, Ray 2019-10-23 11:19 ` Wang, Sunny (HPS SW) 0 siblings, 1 reply; 8+ messages in thread From: Ni, Ray @ 2019-10-23 5:58 UTC (permalink / raw) To: Wang, Jian J, Wang, Sunny (HPS SW), Gao, Zhichao, devel@edk2.groups.io, lersek@redhat.com, Wu, Hao A Cc: Li, Walon With Zhichao's comments addressed, Reviewed-by: Ray Ni <ray.ni@intel.com> > -----Original Message----- > From: Wang, Jian J <jian.j.wang@intel.com> > Sent: Tuesday, October 22, 2019 9:27 PM > To: Wang, Sunny (HPS SW) <sunnywang@hpe.com>; Gao, Zhichao <zhichao.gao@intel.com>; devel@edk2.groups.io; > lersek@redhat.com; Wu, Hao A <hao.a.wu@intel.com>; Ni, Ray <ray.ni@intel.com> > Cc: Li, Walon <walon.li@hpe.com> > Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications > > I'm not familiar this part of code. Ray is expert. > > Acked-by: Jian J Wang <jian.j.wang@intel.com> > > > -----Original Message----- > > From: Wang, Sunny (HPS SW) <sunnywang@hpe.com> > > Sent: Wednesday, October 16, 2019 5:43 PM > > To: Gao, Zhichao <zhichao.gao@intel.com>; devel@edk2.groups.io; > > lersek@redhat.com; Wang, Jian J <jian.j.wang@intel.com>; Wu, Hao A > > <hao.a.wu@intel.com> > > Cc: Ni, Ray <ray.ni@intel.com>; Li, Walon <walon.li@hpe.com>; Wang, Sunny > > (HPS SW) <sunnywang@hpe.com> > > Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make > > PlatformRecovery work regardless of OsIndications > > > > Thanks for catching this, Laszlo. > > Thanks for the suggestion and information, Zhichao. Next time, I will definitely > > take care of this in the first place. > > > > Hi Jian and Hao, > > I forgot to add both of you in Cc. Sorry about that. I will send you guys a new > > patch with the updated commit message below. If you guys need me to resend > > an email to edk2-devel for the new patch, feel free to let me know. > > > > =============================================== > > MdeModulePkg/BdsDxe: Fix PlatformRecovery issue > > > > For now, PlatformRecovery doesn't work if OsIndications variable > > doesn't exist, which is wrong. > > According to the UEFI specification section 3.4.1 and 3.4.2, if > > processing of BootOrder does not result in success, the OsRecovery > > and PlatformRecovery options should still be processed regardless of > > the existence of the OsIndications variable. > > Therefore, update the code to check PcdPlatformRecoverySupport instead > > of the value of OsIndications variable (PlatformRecovery) to fix > > this issue. > > > > Cc: Jian J Wang <jian.j.wang@intel.com> > > Cc: Hao Wu <hao.a.wu@intel.com> > > 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> > > ================================================= > > > > Regards, > > Sunny Wang > > > > -----Original Message----- > > From: Gao, Zhichao [mailto:zhichao.gao@intel.com] > > Sent: Wednesday, October 16, 2019 4:36 PM > > To: devel@edk2.groups.io; lersek@redhat.com; Wang, Sunny (HPS SW) > > <sunnywang@hpe.com> > > Cc: Ni, Ray <ray.ni@intel.com>; Li, Walon <walon.li@hpe.com> > > Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make > > PlatformRecovery work regardless of OsIndications > > Importance: High > > > > 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); > > > > > > > > > > > > > > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications 2019-10-23 5:58 ` Ni, Ray @ 2019-10-23 11:19 ` Wang, Sunny (HPS SW) 2019-10-30 5:35 ` Wang, Jian J 0 siblings, 1 reply; 8+ messages in thread From: Wang, Sunny (HPS SW) @ 2019-10-23 11:19 UTC (permalink / raw) To: devel@edk2.groups.io, ray.ni@intel.com, Wang, Jian J, Gao, Zhichao, lersek@redhat.com, Wu, Hao A Cc: Li, Walon, Wang, Sunny (HPS SW) [-- Attachment #1: Type: text/plain, Size: 7726 bytes --] Thanks for checking and reviewing this, Ray and Jian. I attached my updated patch which addressed Zhichao's comment about the commit message and passed PatchCheck.py. Jian, since the change is just the commit message change (no code change), I didn't send an email to edk2-devel again. However, if resending an patch email to edk2-devel is needed, feel free to let me know. Regards, Sunny Wang -----Original Message----- From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Ni, Ray Sent: Wednesday, October 23, 2019 1:58 PM To: Wang, Jian J <jian.j.wang@intel.com>; Wang, Sunny (HPS SW) <sunnywang@hpe.com>; Gao, Zhichao <zhichao.gao@intel.com>; devel@edk2.groups.io; lersek@redhat.com; Wu, Hao A <hao.a.wu@intel.com> Cc: Li, Walon <walon.li@hpe.com> Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications Importance: High With Zhichao's comments addressed, Reviewed-by: Ray Ni <ray.ni@intel.com> > -----Original Message----- > From: Wang, Jian J <jian.j.wang@intel.com> > Sent: Tuesday, October 22, 2019 9:27 PM > To: Wang, Sunny (HPS SW) <sunnywang@hpe.com>; Gao, Zhichao > <zhichao.gao@intel.com>; devel@edk2.groups.io; lersek@redhat.com; Wu, > Hao A <hao.a.wu@intel.com>; Ni, Ray <ray.ni@intel.com> > Cc: Li, Walon <walon.li@hpe.com> > Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make > PlatformRecovery work regardless of OsIndications > > I'm not familiar this part of code. Ray is expert. > > Acked-by: Jian J Wang <jian.j.wang@intel.com> > > > -----Original Message----- > > From: Wang, Sunny (HPS SW) <sunnywang@hpe.com> > > Sent: Wednesday, October 16, 2019 5:43 PM > > To: Gao, Zhichao <zhichao.gao@intel.com>; devel@edk2.groups.io; > > lersek@redhat.com; Wang, Jian J <jian.j.wang@intel.com>; Wu, Hao A > > <hao.a.wu@intel.com> > > Cc: Ni, Ray <ray.ni@intel.com>; Li, Walon <walon.li@hpe.com>; Wang, > > Sunny (HPS SW) <sunnywang@hpe.com> > > Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make > > PlatformRecovery work regardless of OsIndications > > > > Thanks for catching this, Laszlo. > > Thanks for the suggestion and information, Zhichao. Next time, I > > will definitely take care of this in the first place. > > > > Hi Jian and Hao, > > I forgot to add both of you in Cc. Sorry about that. I will send you > > guys a new patch with the updated commit message below. If you guys > > need me to resend an email to edk2-devel for the new patch, feel free to let me know. > > > > =============================================== > > MdeModulePkg/BdsDxe: Fix PlatformRecovery issue > > > > For now, PlatformRecovery doesn't work if OsIndications variable > > doesn't exist, which is wrong. > > According to the UEFI specification section 3.4.1 and 3.4.2, if > > processing of BootOrder does not result in success, the OsRecovery > > and PlatformRecovery options should still be processed regardless of > > the existence of the OsIndications variable. > > Therefore, update the code to check PcdPlatformRecoverySupport > > instead of the value of OsIndications variable (PlatformRecovery) to > > fix this issue. > > > > Cc: Jian J Wang <jian.j.wang@intel.com> > > Cc: Hao Wu <hao.a.wu@intel.com> > > 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> > > ================================================= > > > > Regards, > > Sunny Wang > > > > -----Original Message----- > > From: Gao, Zhichao [mailto:zhichao.gao@intel.com] > > Sent: Wednesday, October 16, 2019 4:36 PM > > To: devel@edk2.groups.io; lersek@redhat.com; Wang, Sunny (HPS SW) > > <sunnywang@hpe.com> > > Cc: Ni, Ray <ray.ni@intel.com>; Li, Walon <walon.li@hpe.com> > > Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make > > PlatformRecovery work regardless of OsIndications > > Importance: High > > > > 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-Develop > > ment- 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); > > > > > > > > > > > > > > > [-- Attachment #2: 0001-MdeModulePkg-BdsDxe-Fix-PlatformRecovery-issue.patch --] [-- Type: application/octet-stream, Size: 2029 bytes --] From ba13382d44288c42bcbe26ad4d0f876d9a91bc9c Mon Sep 17 00:00:00 2001 From: Sunny Wang <sunnywang@hpe.com> Date: Wed, 16 Oct 2019 17:19:22 +0800 Subject: [PATCH] MdeModulePkg/BdsDxe: Fix PlatformRecovery issue For now, PlatformRecovery doesn't work if OsIndications variable doesn't exist, which is wrong. According to the UEFI specification section 3.4.1 and 3.4.2, if processing of BootOrder does not result in success, the OsRecovery and PlatformRecovery options should still be processed regardless of the existence of the OsIndications variable. Therefore, update the code to check PcdPlatformRecoverySupport instead of the value of OsIndications variable (PlatformRecovery) to fix this issue. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Hao Wu <hao.a.wu@intel.com> 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); -- 2.21.0.windows.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make PlatformRecovery work regardless of OsIndications 2019-10-23 11:19 ` Wang, Sunny (HPS SW) @ 2019-10-30 5:35 ` Wang, Jian J 0 siblings, 0 replies; 8+ messages in thread From: Wang, Jian J @ 2019-10-30 5:35 UTC (permalink / raw) To: Wang, Sunny (HPS SW), devel@edk2.groups.io, Ni, Ray, Gao, Zhichao, lersek@redhat.com, Wu, Hao A Cc: Li, Walon Pushed at b15646484eaffcf7cc464fdea0214498f26addc2 Regards, Jian > -----Original Message----- > From: Wang, Sunny (HPS SW) <sunnywang@hpe.com> > Sent: Wednesday, October 23, 2019 7:20 PM > To: devel@edk2.groups.io; Ni, Ray <ray.ni@intel.com>; Wang, Jian J > <jian.j.wang@intel.com>; Gao, Zhichao <zhichao.gao@intel.com>; > lersek@redhat.com; Wu, Hao A <hao.a.wu@intel.com> > Cc: Li, Walon <walon.li@hpe.com>; Wang, Sunny (HPS SW) > <sunnywang@hpe.com> > Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make > PlatformRecovery work regardless of OsIndications > > Thanks for checking and reviewing this, Ray and Jian. > I attached my updated patch which addressed Zhichao's comment about the > commit message and passed PatchCheck.py. > Jian, since the change is just the commit message change (no code change), I > didn't send an email to edk2-devel again. However, if resending an patch email > to edk2-devel is needed, feel free to let me know. > > Regards, > Sunny Wang > > -----Original Message----- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Ni, > Ray > Sent: Wednesday, October 23, 2019 1:58 PM > To: Wang, Jian J <jian.j.wang@intel.com>; Wang, Sunny (HPS SW) > <sunnywang@hpe.com>; Gao, Zhichao <zhichao.gao@intel.com>; > devel@edk2.groups.io; lersek@redhat.com; Wu, Hao A <hao.a.wu@intel.com> > Cc: Li, Walon <walon.li@hpe.com> > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make > PlatformRecovery work regardless of OsIndications > Importance: High > > With Zhichao's comments addressed, Reviewed-by: Ray Ni <ray.ni@intel.com> > > > -----Original Message----- > > From: Wang, Jian J <jian.j.wang@intel.com> > > Sent: Tuesday, October 22, 2019 9:27 PM > > To: Wang, Sunny (HPS SW) <sunnywang@hpe.com>; Gao, Zhichao > > <zhichao.gao@intel.com>; devel@edk2.groups.io; lersek@redhat.com; Wu, > > Hao A <hao.a.wu@intel.com>; Ni, Ray <ray.ni@intel.com> > > Cc: Li, Walon <walon.li@hpe.com> > > Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make > > PlatformRecovery work regardless of OsIndications > > > > I'm not familiar this part of code. Ray is expert. > > > > Acked-by: Jian J Wang <jian.j.wang@intel.com> > > > > > -----Original Message----- > > > From: Wang, Sunny (HPS SW) <sunnywang@hpe.com> > > > Sent: Wednesday, October 16, 2019 5:43 PM > > > To: Gao, Zhichao <zhichao.gao@intel.com>; devel@edk2.groups.io; > > > lersek@redhat.com; Wang, Jian J <jian.j.wang@intel.com>; Wu, Hao A > > > <hao.a.wu@intel.com> > > > Cc: Ni, Ray <ray.ni@intel.com>; Li, Walon <walon.li@hpe.com>; Wang, > > > Sunny (HPS SW) <sunnywang@hpe.com> > > > Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make > > > PlatformRecovery work regardless of OsIndications > > > > > > Thanks for catching this, Laszlo. > > > Thanks for the suggestion and information, Zhichao. Next time, I > > > will definitely take care of this in the first place. > > > > > > Hi Jian and Hao, > > > I forgot to add both of you in Cc. Sorry about that. I will send you > > > guys a new patch with the updated commit message below. If you guys > > > need me to resend an email to edk2-devel for the new patch, feel free to let > me know. > > > > > > =============================================== > > > MdeModulePkg/BdsDxe: Fix PlatformRecovery issue > > > > > > For now, PlatformRecovery doesn't work if OsIndications variable > > > doesn't exist, which is wrong. > > > According to the UEFI specification section 3.4.1 and 3.4.2, if > > > processing of BootOrder does not result in success, the OsRecovery > > > and PlatformRecovery options should still be processed regardless of > > > the existence of the OsIndications variable. > > > Therefore, update the code to check PcdPlatformRecoverySupport > > > instead of the value of OsIndications variable (PlatformRecovery) to > > > fix this issue. > > > > > > Cc: Jian J Wang <jian.j.wang@intel.com> > > > Cc: Hao Wu <hao.a.wu@intel.com> > > > 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> > > > ================================================= > > > > > > Regards, > > > Sunny Wang > > > > > > -----Original Message----- > > > From: Gao, Zhichao [mailto:zhichao.gao@intel.com] > > > Sent: Wednesday, October 16, 2019 4:36 PM > > > To: devel@edk2.groups.io; lersek@redhat.com; Wang, Sunny (HPS SW) > > > <sunnywang@hpe.com> > > > Cc: Ni, Ray <ray.ni@intel.com>; Li, Walon <walon.li@hpe.com> > > > Subject: RE: [edk2-devel] [PATCH] MdeModulePkg/BdsDxe: Make > > > PlatformRecovery work regardless of OsIndications > > > Importance: High > > > > > > 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-Develop > > > ment- 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); > > > > > > > > > > > > > > > > > > > > > > > > ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-10-30 5:35 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox