public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Leif Lindholm" <quic_llindhol@quicinc.com>
To: Rebecca Cran <rebecca@quicinc.com>
Cc: <devel@edk2.groups.io>,
	Ard Biesheuvel <ardb+tianocore@kernel.org>,
	"Abner Chang" <abner.chang@amd.com>,
	Daniel Schaefer <git@danielschaefer.me>
Subject: Re: [PATCH 1/1] EmbeddedPkg/MetronomeDxe: Update TickPeriod doc to remove mention of lower bound
Date: Tue, 29 Nov 2022 19:56:01 +0000	[thread overview]
Message-ID: <Y4Zj0eyHWEIDOaA/@qc-i7.hemma.eciton.net> (raw)
In-Reply-To: <20221129124056.125316-1-rebecca@quicinc.com>

On Tue, Nov 29, 2022 at 05:40:56 -0700, Rebecca Cran wrote:
> There was previously a lower bound on the value of TickPeriod such that
> it couldn't be less than 10 us. However, that was removed from the PI
> Specification in the 1.0 errata released in 2007. From the revision
> history:
> 
> "M171 Remove 10 us lower bound restriction for the TickPeriod in the
> Metronome"
> 
> Update the documentation of TickPeriod in MetronomeDxe/Metronome.c to
> remove mention of the lower bound.
> 
> Signed-off-by: Rebecca Cran <rebecca@quicinc.com>

Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>

I updated the subject line to pass patchcheck.py and pushed it as
8aff08c.

Thanks!

Diffing this file against the MdeModulePkg original, this seems
inferior in every way other than possibly reducing the risk of
counter overflow on 32-bit architectures.

I will follow up with a patch that adds a #warning on all non-32-bit
architectures.

/
    Leif

> ---
>  EmbeddedPkg/MetronomeDxe/Metronome.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/EmbeddedPkg/MetronomeDxe/Metronome.c b/EmbeddedPkg/MetronomeDxe/Metronome.c
> index a0892315827f..63db6d513969 100644
> --- a/EmbeddedPkg/MetronomeDxe/Metronome.c
> +++ b/EmbeddedPkg/MetronomeDxe/Metronome.c
> @@ -43,10 +43,9 @@ WaitForTick (
>  
>    @param TickPeriod
>    The period of platform's known time source in 100 nS units.
> -  This value on any platform must be at least 10 uS, and must not
> -  exceed 200 uS.  The value in this field is a constant that must
> -  not be modified after the Metronome architectural protocol is
> -  installed.  All consumers must treat this as a read-only field.
> +  This value on any platform must not exceed 200 uS.  The value in this field
> +  is a constant that must not be modified after the Metronome architectural
> +  protocol is installed.  All consumers must treat this as a read-only field.
>  
>  **/
>  EFI_METRONOME_ARCH_PROTOCOL  gMetronome = {
> -- 
> 2.30.2
> 

      reply	other threads:[~2022-11-29 19:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-29 12:40 [PATCH 1/1] EmbeddedPkg/MetronomeDxe: Update TickPeriod doc to remove mention of lower bound Rebecca Cran
2022-11-29 19:56 ` Leif Lindholm [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=Y4Zj0eyHWEIDOaA/@qc-i7.hemma.eciton.net \
    --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