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>,
	"quic_llindhol@quicinc.com" <quic_llindhol@quicinc.com>,
	"Ren, SuqiangX" <suqiangx.ren@intel.com>,
	"ardb+tianocore@kernel.org" <ardb+tianocore@kernel.org>
Cc: "Kinney, Michael D" <michael.d.kinney@intel.com>
Subject: Re: FW: [edk2-devel] [PATCH V2 4/5] ArmPlatformPkg: Update some Runtime Service functions header
Date: Wed, 31 Jan 2024 20:04:12 +0000	[thread overview]
Message-ID: <CO1PR11MB4929F2A503EBB56D881CB67DD27C2@CO1PR11MB4929.namprd11.prod.outlook.com> (raw)
In-Reply-To: <bafa38ee-3a23-48dc-a754-c7ba8c2dfb3f@quicinc.com>

Hi Leif,

The only reference to these APIs are in the .c files in ArmPlatformPkg.

RealTimeClockLib.h that defines these APIs is in EmbeddedPkg and this
patch series also has changes against EmbeddedPkg.

So other than the commit message, are the code changes correct?

Mike

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Leif
> Lindholm
> Sent: Wednesday, January 31, 2024 11:13 AM
> To: Ren, SuqiangX <suqiangx.ren@intel.com>; ardb+tianocore@kernel.org;
> devel@edk2.groups.io
> Subject: Re: FW: [edk2-devel] [PATCH V2 4/5] ArmPlatformPkg: Update some
> Runtime Service functions header
> 
> On 2024-01-30 08:33, Ren, SuqiangX wrote:
> > Hi All,
> >
> > 	Could you please help to review this patch on edk2?
> > 	https://edk2.groups.io/g/devel/message/114661
> >
> > Thanks
> > Ren, Suqiang
> 
> Hi,
> 
> Sorry, your original email seems to be corrupted in my mailbox, so
> replying here.
> 
> > -----Original Message-----
> > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Ren,
> Suqiang
> > Sent: Monday, January 29, 2024 10:30 AM
> > To: devel@edk2.groups.io
> > Cc: Leif Lindholm <quic_llindhol@quicinc.com>; Ard Biesheuvel
> <ardb+tianocore@kernel.org>
> > Subject: [edk2-devel] [PATCH V2 4/5] ArmPlatformPkg: Update some
> Runtime Service functions header
> >
> > Update some Runtime Service functions header to align with UEFI spec
> 2.10.
> >
> > REF: UEFI spec 2.10 section 8 Services — Runtime Services
> 
> Nothing that is being changed by this patch is described by the UEFI
> specification. The commit message should describe what a patch does,
> the overall purpose of the set should be described in the cover letter
> (and you do describe that here).
> 
> Here is my proposed changed commit message:
> ---
> ArmPlatformPkg: align PL031 library function headers with UEFI return
> values
> 
> RealTimeClockLib is used to back the runtime services time functions,
> so align the description of the function return values with the defined
> values for these services as described in UEFI 2.10.
> ---
> 
> Apart from that, the function comment headers exist both in the .h and
> the .c. If the .h is being updated, so should the .c.
> 
> Best Regards,
> 
> Leif
> 
> > Signed-off-by: Suqiang Ren <suqiangx.ren@intel.com>
> > Cc: Leif Lindholm <quic_llindhol@quicinc.com>
> > Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> > ---
> >   .../PL031RealTimeClockLib.c                   | 22 +++++++++++++++--
> --
> >   1 file changed, 18 insertions(+), 4 deletions(-)
> >
> > diff --git
> a/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c
> b/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c
> > index 1896f9d16d3b..6ab3e9948335 100644
> > ---
> a/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c
> > +++
> b/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c
> > @@ -111,7 +111,9 @@ EXIT:
> >     @retval EFI_SUCCESS            The operation completed
> successfully.
> >     @retval EFI_INVALID_PARAMETER  Time is NULL.
> >     @retval EFI_DEVICE_ERROR       The time could not be retrieved due
> to hardware error.
> > -  @retval EFI_SECURITY_VIOLATION The time could not be retrieved due
> to an authentication failure.
> > +  @retval EFI_UNSUPPORTED        This call is not supported by this
> platform at the time the call is made.
> > +                                 The platform should describe this
> runtime service as unsupported at runtime
> > +                                 via an EFI_RT_PROPERTIES_TABLE
> configuration table.
> >
> >   **/
> >   EFI_STATUS
> > @@ -172,6 +174,9 @@ LibGetTime (
> >     @retval EFI_SUCCESS           The operation completed
> successfully.
> >     @retval EFI_INVALID_PARAMETER A time field is out of range.
> >     @retval EFI_DEVICE_ERROR      The time could not be set due to
> hardware error.
> > +  @retval EFI_UNSUPPORTED       This call is not supported by this
> platform at the time the call is made.
> > +                                The platform should describe this
> runtime service as unsupported at runtime
> > +                                via an EFI_RT_PROPERTIES_TABLE
> configuration table.
> >
> >   **/
> >   EFI_STATUS
> > @@ -224,8 +229,13 @@ LibSetTime (
> >     @param  Time                  The current alarm setting.
> >
> >     @retval EFI_SUCCESS           The alarm settings were returned.
> > -  @retval EFI_INVALID_PARAMETER Any parameter is NULL.
> > +  @retval EFI_INVALID_PARAMETER Enabled is NULL.
> > +  @retval EFI_INVALID_PARAMETER Pending is NULL.
> > +  @retval EFI_INVALID_PARAMETER Time is NULL.
> >     @retval EFI_DEVICE_ERROR      The wakeup time could not be
> retrieved due to a hardware error.
> > +  @retval EFI_UNSUPPORTED       This call is not supported by this
> platform at the time the call is made.
> > +                                The platform should describe this
> runtime service as unsupported at runtime
> > +                                via an EFI_RT_PROPERTIES_TABLE
> configuration table.
> >
> >   **/
> >   EFI_STATUS
> > @@ -248,9 +258,13 @@ LibGetWakeupTime (
> >
> >     @retval EFI_SUCCESS           If Enable is TRUE, then the wakeup
> alarm was enabled. If
> >                                   Enable is FALSE, then the wakeup
> alarm was disabled.
> > -  @retval EFI_INVALID_PARAMETER A time field is out of range.
> > +  @retval EFI_INVALID_PARAMETER Enabled is NULL.
> > +  @retval EFI_INVALID_PARAMETER Pending is NULL.
> > +  @retval EFI_INVALID_PARAMETER Time is NULL.
> >     @retval EFI_DEVICE_ERROR      The wakeup time could not be set due
> to a hardware error.
> > -  @retval EFI_UNSUPPORTED       A wakeup timer is not supported on
> this platform.
> > +  @retval EFI_UNSUPPORTED       This call is not supported by this
> platform at the time the call is made.
> > +                                The platform should describe this
> runtime service as unsupported at runtime
> > +                                via an EFI_RT_PROPERTIES_TABLE
> configuration table.
> >
> >   **/
> >   EFI_STATUS
> 
> 
> 
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#114919): https://edk2.groups.io/g/devel/message/114919
Mute This Topic: https://groups.io/mt/104081753/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2024-01-31 20:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-29  2:29 [edk2-devel] [PATCH V2 0/5] Add EFI_UNSUPPORTED return for some Runtime Service functions Ren, Suqiang
2024-01-29  2:29 ` [edk2-devel] [PATCH V2 1/5] MdePkg: " Ren, Suqiang
2024-01-29  3:48   ` Michael D Kinney
2024-01-29  2:29 ` [edk2-devel] [PATCH V2 2/5] MdeModulePkg: Update some Runtime Service functions header Ren, Suqiang
2024-01-29  2:29 ` [edk2-devel] [PATCH V2 3/5] EmbeddedPkg: " Ren, Suqiang
2024-01-29  2:46   ` Chang, Abner via groups.io
2024-01-29  2:29 ` [edk2-devel] [PATCH V2 4/5] ArmPlatformPkg: " Ren, Suqiang
2024-01-29  2:29 ` [edk2-devel] [PATCH V2 5/5] OvmfPkg: " Ren, Suqiang
2024-01-29  2:39   ` Yao, Jiewen
2024-01-30  1:36 ` 回复: [edk2-devel] [PATCH V2 0/5] Add EFI_UNSUPPORTED return for some Runtime Service functions gaoliming via groups.io
     [not found] ` <17AEB08976789B0D.21687@groups.io>
     [not found]   ` <CO1PR11MB49166BBE9770EA9FB2113FD9967D2@CO1PR11MB4916.namprd11.prod.outlook.com>
2024-01-31 19:13     ` FW: [edk2-devel] [PATCH V2 4/5] ArmPlatformPkg: Update some Runtime Service functions header Leif Lindholm
2024-01-31 20:04       ` Michael D Kinney [this message]
2024-02-01 18:35         ` Leif Lindholm
     [not found] ` <17AEB088A9F5F269.10155@groups.io>
2024-02-02  1:23   ` [edk2-devel] [PATCH V2 2/5] MdeModulePkg: " Ren, Suqiang
2024-02-02  2:40     ` Michael D Kinney

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=CO1PR11MB4929F2A503EBB56D881CB67DD27C2@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