[edk2-devel] [PATCH] ArmVirtPkg/ArmVirtKvmTool: wire up configurable timeout

Ard Biesheuvel posted 1 patch 2 years, 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/edk2 tags/patchew/20220201180302.743162-1-ardb@kernel.org
ArmVirtPkg/ArmVirtKvmTool.dsc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
[edk2-devel] [PATCH] ArmVirtPkg/ArmVirtKvmTool: wire up configurable timeout
Posted by Ard Biesheuvel 2 years, 3 months ago
Use the correct PCD type for PcdPlatformBootTimeOut so it gets wired up
to the Timeout EFI variable automatically, which is how the boot manager
stores the timeout preference.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
 ArmVirtPkg/ArmVirtKvmTool.dsc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ArmVirtPkg/ArmVirtKvmTool.dsc b/ArmVirtPkg/ArmVirtKvmTool.dsc
index a1bf4b9be87b..3bd3ebd6e0b3 100644
--- a/ArmVirtPkg/ArmVirtKvmTool.dsc
+++ b/ArmVirtPkg/ArmVirtKvmTool.dsc
@@ -170,9 +170,10 @@ [PcdsPatchableInModule.common]
 
   gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0
 
+[PcdsDynamicHii]
+  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
+
 [PcdsDynamicDefault.common]
-  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
-
   gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
   gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
   gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
-- 
2.30.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#86313): https://edk2.groups.io/g/devel/message/86313
Mute This Topic: https://groups.io/mt/88839170/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH] ArmVirtPkg/ArmVirtKvmTool: wire up configurable timeout
Posted by PierreGondois 2 years, 3 months ago
Hi,
The value also gets updated from 3 to 5, is it possible to note it in the
commit message or to let it to 3 ?
Otherwise the patch looks good to me,

Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>


On 2/1/22 7:03 PM, Ard Biesheuvel wrote:
> Use the correct PCD type for PcdPlatformBootTimeOut so it gets wired up
> to the Timeout EFI variable automatically, which is how the boot manager
> stores the timeout preference.
> 
> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
> ---
>   ArmVirtPkg/ArmVirtKvmTool.dsc | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/ArmVirtPkg/ArmVirtKvmTool.dsc b/ArmVirtPkg/ArmVirtKvmTool.dsc
> index a1bf4b9be87b..3bd3ebd6e0b3 100644
> --- a/ArmVirtPkg/ArmVirtKvmTool.dsc
> +++ b/ArmVirtPkg/ArmVirtKvmTool.dsc
> @@ -170,9 +170,10 @@ [PcdsPatchableInModule.common]
>   
>     gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0
>   
> +[PcdsDynamicHii]
> +  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
> +
>   [PcdsDynamicDefault.common]
> -  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
> -
>     gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
>     gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
>     gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#86331): https://edk2.groups.io/g/devel/message/86331
Mute This Topic: https://groups.io/mt/88839170/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH] ArmVirtPkg/ArmVirtKvmTool: wire up configurable timeout
Posted by Sami Mujawar 2 years, 3 months ago
Hi Ard,

Thank you for this patch.

The timeout value 5 appears to be standard across platforms, so it looks good to me.

Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>

Regards,

Sami Mujawar

On 02/02/2022, 09:42, "devel@edk2.groups.io on behalf of PierreGondois via groups.io" <devel@edk2.groups.io on behalf of pierre.gondois=arm.com@groups.io> wrote:

    Hi,
    The value also gets updated from 3 to 5, is it possible to note it in the
    commit message or to let it to 3 ?
    Otherwise the patch looks good to me,

    Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>


    On 2/1/22 7:03 PM, Ard Biesheuvel wrote:
    > Use the correct PCD type for PcdPlatformBootTimeOut so it gets wired up
    > to the Timeout EFI variable automatically, which is how the boot manager
    > stores the timeout preference.
    >
    > Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
    > ---
    >   ArmVirtPkg/ArmVirtKvmTool.dsc | 5 +++--
    >   1 file changed, 3 insertions(+), 2 deletions(-)
    >
    > diff --git a/ArmVirtPkg/ArmVirtKvmTool.dsc b/ArmVirtPkg/ArmVirtKvmTool.dsc
    > index a1bf4b9be87b..3bd3ebd6e0b3 100644
    > --- a/ArmVirtPkg/ArmVirtKvmTool.dsc
    > +++ b/ArmVirtPkg/ArmVirtKvmTool.dsc
    > @@ -170,9 +170,10 @@ [PcdsPatchableInModule.common]
    >
    >     gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0
    >
    > +[PcdsDynamicHii]
    > +  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
    > +
    >   [PcdsDynamicDefault.common]
    > -  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
    > -
    >     gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
    >     gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
    >     gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
    >


    



IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#86332): https://edk2.groups.io/g/devel/message/86332
Mute This Topic: https://groups.io/mt/88839170/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH] ArmVirtPkg/ArmVirtKvmTool: wire up configurable timeout
Posted by Ard Biesheuvel 2 years, 2 months ago
On Wed, 2 Feb 2022 at 11:04, Sami Mujawar <sami.mujawar@arm.com> wrote:
>
> Hi Ard,
>
> Thank you for this patch.
>
> The timeout value 5 appears to be standard across platforms, so it looks good to me.
>
> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
>
> Regards,
>
> Sami Mujawar
>

Merged as #2547 (with a mention of the change to 5 seconds in the commit log)

Thanks all,

> On 02/02/2022, 09:42, "devel@edk2.groups.io on behalf of PierreGondois via groups.io" <devel@edk2.groups.io on behalf of pierre.gondois=arm.com@groups.io> wrote:
>
>     Hi,
>     The value also gets updated from 3 to 5, is it possible to note it in the
>     commit message or to let it to 3 ?
>     Otherwise the patch looks good to me,
>
>     Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
>
>
>     On 2/1/22 7:03 PM, Ard Biesheuvel wrote:
>     > Use the correct PCD type for PcdPlatformBootTimeOut so it gets wired up
>     > to the Timeout EFI variable automatically, which is how the boot manager
>     > stores the timeout preference.
>     >
>     > Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
>     > ---
>     >   ArmVirtPkg/ArmVirtKvmTool.dsc | 5 +++--
>     >   1 file changed, 3 insertions(+), 2 deletions(-)
>     >
>     > diff --git a/ArmVirtPkg/ArmVirtKvmTool.dsc b/ArmVirtPkg/ArmVirtKvmTool.dsc
>     > index a1bf4b9be87b..3bd3ebd6e0b3 100644
>     > --- a/ArmVirtPkg/ArmVirtKvmTool.dsc
>     > +++ b/ArmVirtPkg/ArmVirtKvmTool.dsc
>     > @@ -170,9 +170,10 @@ [PcdsPatchableInModule.common]
>     >
>     >     gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0
>     >
>     > +[PcdsDynamicHii]
>     > +  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
>     > +
>     >   [PcdsDynamicDefault.common]
>     > -  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
>     > -
>     >     gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
>     >     gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
>     >     gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
>     >
>
>
>
>
>
>
> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
>
>
> 
>
>


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87025): https://edk2.groups.io/g/devel/message/87025
Mute This Topic: https://groups.io/mt/88839170/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-