public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Alexei Fedorov <alexei.fedorov@arm.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	Arvind Chauhan <Arvind.Chauhan@arm.com>,
	 Daniil Egranov <Daniil.Egranov@arm.com>,
	 Thomas Panakamattam Abraham <thomas.abraham@arm.com>,
	Leif Lindholm <Leif.Lindholm@linaro.org>,
	 "Kinney, Michael D" <Michael.d.kinney@intel.com>,
	Matteo Carlini <Matteo.Carlini@arm.com>,
	 Stephanie Hughes-Fitt <Stephanie.Hughes-Fitt@arm.com>,
	nd <nd@arm.com>,  Evan Lloyd <Evan.Lloyd@arm.com>,
	Sami Mujawar <Sami.Mujawar@arm.com>
Subject: Re: [PATCH edk2-platforms v1] Platform/ARM: Map Platform Boot Timeout PCD to global NV variable
Date: Tue, 1 May 2018 13:48:58 +0200	[thread overview]
Message-ID: <CAKv+Gu8rADMgbg_bD2GneQqUFk7r49iH-hxXkzM_KhDkfgWAPw@mail.gmail.com> (raw)
In-Reply-To: <1525105745-12780-1-git-send-email-alexei.fedorov@arm.com>

On 30 April 2018 at 18:29, Alexei Fedorov <alexei.fedorov@arm.com> wrote:
> From: Alexei Fedorov <Alexei.Fedorov@arm.com>
>
> Table 13 of UEFI Specification 2.7A describes Timeout
> global variable as NV (non-volatile), however
> gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut
> is defined in [PcdsFixedAtBuild.common] section of
> edk2-platforms\Platform\ARM\VExpressPkg\ArmVExpress.dsc.inc.
> This prevents Timeout value from being persistent across
> resets and power cycles, see BdsEntry() code
> in MdeModulePkg\Universal\BdsDxe\BdsEntry.c:
>   //
>   // Initialize L"Timeout" EFI global variable.
>   //
>   BootTimeOut = PcdGet16 (PcdPlatformBootTimeOut);
>
> This patch fixes the above issue by mapping PcdPlatformBootTimeOut
> to global NV variable "Timeout":
> [PcdsDynamicHii.common.DEFAULT]
>   gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|10
>
> Change-Id: I8ab8854c0789da206bf821391c67007259e48361
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
> Reviewed-by:   Evan Lloyd <Evan.Lloyd@arm.com>

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

Pushed as ada17bc975be79620c126ae9a856e45c866f5701

Thanks!

> ---
> All the changes can be reviewed at:
> https://github.com/AlexeiFedorov/edk2-platforms/tree/202_timeout_value_v1
>
> Notes:
>     v1:
>     - Map PcdPlatformBootTimeOut to global NV Timeout variable [Alexei]
>
>  Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
> index 7cb47937329efa1944ec4c156e2be995a755ce6f..de201b0c81d020e1e06ee320cf0f14f186723657 100644
> --- a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
> +++ b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
> @@ -1,5 +1,5 @@
>  #
> -#  Copyright (c) 2011-2015, ARM Limited. All rights reserved.
> +#  Copyright (c) 2011-2018, ARM Limited. All rights reserved.
>  #
>  #  This program and the accompanying materials
>  #  are licensed and made available under the terms and conditions of the BSD License
> @@ -353,8 +353,6 @@ [PcdsFixedAtBuild.common]
>    # List of Device Paths that support BootMonFs
>    gArmBootMonFsTokenSpaceGuid.PcdBootMonFsSupportedDevicePaths|L"VenHw(E7223039-5836-41E1-B542-D7EC736C5E59);VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)"
>
> -  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|10
> -
>    # RunAxf support via Dynamic Shell Command protocol
>    # We want to use the Shell Libraries but don't want it to initialise
>    # automatically. We initialise the libraries when the command is called by the
> @@ -399,6 +397,9 @@ [PcdsFixedAtBuild.common]
>    #
>    gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
>
> +[PcdsDynamicHii.common.DEFAULT]
> +  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|10
> +
>  [Components.common]
>    MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
>      <LibraryClasses>
> --
> 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'
>
>


      reply	other threads:[~2018-05-01 11:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-30 16:29 [PATCH edk2-platforms v1] Platform/ARM: Map Platform Boot Timeout PCD to global NV variable Alexei Fedorov
2018-05-01 11:48 ` Ard Biesheuvel [this message]

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=CAKv+Gu8rADMgbg_bD2GneQqUFk7r49iH-hxXkzM_KhDkfgWAPw@mail.gmail.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