public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Michael D Kinney" <michael.d.kinney@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"Gao, Liming" <gaoliming@byosoft.com.cn>
Cc: "Cole, Deric" <deric.cole@intel.com>,
	'Andrew Fish' <afish@apple.com>, "Ni, Ray" <ray.ni@intel.com>,
	"Kinney, Michael D" <michael.d.kinney@intel.com>
Subject: Re: [edk2-devel] [Patch 1/1] EmulatorPkg/PeiTimerLib: Bug fix in NanoSecondDelay
Date: Thu, 9 Feb 2023 01:20:53 +0000	[thread overview]
Message-ID: <CO1PR11MB49293C1394C69FF0B76DEB92D2D99@CO1PR11MB4929.namprd11.prod.outlook.com> (raw)
In-Reply-To: <094301d93c22$d13e0e80$73ba2b80$@byosoft.com.cn>

Thank you Liming.  Ray has completed the review and I have pushed the PR branch
with the Rb.  I will add push label after CI passes.

Mike





> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of gaoliming via groups.io
> Sent: Wednesday, February 8, 2023 5:07 PM
> To: Kinney, Michael D <michael.d.kinney@intel.com>; devel@edk2.groups.io
> Cc: Cole, Deric <deric.cole@intel.com>; 'Andrew Fish' <afish@apple.com>; Ni, Ray <ray.ni@intel.com>
> Subject: 回复: [edk2-devel] [Patch 1/1] EmulatorPkg/PeiTimerLib: Bug fix in NanoSecondDelay
> 
> Mike:
>   This fix is OK to me. I am OK to merge it for this stable tag.
> 
> Thanks
> Liming
> > -----邮件原件-----
> > 发件人: Kinney, Michael D <michael.d.kinney@intel.com>
> > 发送时间: 2023年2月9日 7:17
> > 收件人: devel@edk2.groups.io; Kinney, Michael D
> > <michael.d.kinney@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn>
> > 抄送: Cole, Deric <deric.cole@intel.com>; Andrew Fish <afish@apple.com>;
> > Ni, Ray <ray.ni@intel.com>; Kinney, Michael D <michael.d.kinney@intel.com>
> > 主题: RE: [edk2-devel] [Patch 1/1] EmulatorPkg/PeiTimerLib: Bug fix in
> > NanoSecondDelay
> >
> > Hi Liming,
> >
> > This is a significant behavior bug in EmulatorPkg PeiTimerLib that was
> > discovered during the soft freeze evaluation period.
> >
> > I would like to request this patch be included in the edk2-stable202302
> > release.
> >
> > Thanks,
> >
> > Mike
> >
> >
> > > -----Original Message-----
> > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Michael
> > D Kinney
> > > Sent: Wednesday, February 8, 2023 3:10 PM
> > > To: devel@edk2.groups.io
> > > Cc: Cole, Deric <deric.cole@intel.com>; Andrew Fish <afish@apple.com>;
> > Ni, Ray <ray.ni@intel.com>
> > > Subject: [edk2-devel] [Patch 1/1] EmulatorPkg/PeiTimerLib: Bug fix in
> > NanoSecondDelay
> > >
> > > From: Deric Cole <deric.cole@intel.com>
> > >
> > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4339
> > >
> > > Thunk->Sleep is expecting nanoseconds, no need to multiply by 100.
> > >
> > > Cc: Andrew Fish <afish@apple.com>
> > > Cc: Ray Ni <ray.ni@intel.com>
> > > Signed-off-by: Deric Cole <deric.cole@intel.com>
> > > Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
> > > ---
> > >  EmulatorPkg/Include/Protocol/EmuThunk.h       | 2 +-
> > >  EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.c | 4 ++--
> > >  2 files changed, 3 insertions(+), 3 deletions(-)
> > >
> > > diff --git a/EmulatorPkg/Include/Protocol/EmuThunk.h
> > b/EmulatorPkg/Include/Protocol/EmuThunk.h
> > > index b720023ac9c7..c419d0a67790 100644
> > > --- a/EmulatorPkg/Include/Protocol/EmuThunk.h
> > > +++ b/EmulatorPkg/Include/Protocol/EmuThunk.h
> > > @@ -130,7 +130,7 @@ UINT64
> > >  typedef
> > >  VOID
> > >  (EFIAPI *EMU_SLEEP)(
> > > -  IN  UINT64    Milliseconds
> > > +  IN  UINT64    Nanoseconds
> > >    );
> > >
> > >  typedef
> > > diff --git a/EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.c
> > b/EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.c
> > > index 8c4f20f42b47..5344719f98d8 100644
> > > --- a/EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.c
> > > +++ b/EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.c
> > > @@ -1,7 +1,7 @@
> > >  /** @file
> > >    A non-functional instance of the Timer Library.
> > >
> > > -  Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR>
> > > +  Copyright (c) 2007 - 2023, Intel Corporation. All rights reserved.<BR>
> > >    SPDX-License-Identifier: BSD-2-Clause-Patent
> > >
> > >  **/
> > > @@ -65,7 +65,7 @@ NanoSecondDelay (
> > >               );
> > >    if (!EFI_ERROR (Status)) {
> > >      Thunk = (EMU_THUNK_PROTOCOL *)ThunkPpi->Thunk ();
> > > -    Thunk->Sleep (NanoSeconds * 100);
> > > +    Thunk->Sleep (NanoSeconds);
> > >      return NanoSeconds;
> > >    }
> > >
> > > --
> > > 2.37.1.windows.1
> > >
> > >
> > >
> > >
> > >
> 
> 
> 
> 
> 
> 
> 


      reply	other threads:[~2023-02-09  1:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-08 23:09 [Patch 1/1] EmulatorPkg/PeiTimerLib: Bug fix in NanoSecondDelay Michael D Kinney
2023-02-08 23:17 ` [edk2-devel] " Michael D Kinney
2023-02-09  1:02   ` Ni, Ray
2023-02-09  1:07   ` 回复: " gaoliming
2023-02-09  1:20     ` Michael D Kinney [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=CO1PR11MB49293C1394C69FF0B76DEB92D2D99@CO1PR11MB4929.namprd11.prod.outlook.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