On Mon, 14 Jan 2019 at 03:55, Gao, Liming <liming....@intel.com> wrote:
>
> Ard:
>   I don't find the function issue in this patch. I have no other comments for 
> the change in MdePkg. Reviewed-by: Liming Gao <liming....@intel.com>. For 
> this patch set, if you push the change, please push the patches in MdePkg 
> first, and tell me the revision. I will update our internal platform DSC to 
> include new MmServicesTableLib library instance. After I am done, I will let 
> you know. Then, you can continue to push the change in MdeModulePkg. Is it OK?
>

Yes, that is fine. I will need to respin the remaining patches anyway.

I have pushed the following patches

b94aecb4ec94 MdePkg/Include: add MmServicesTableLib header file
17f5fd9291e0 MdePkg: implement MmServicesTableLib based on traditional SMM

with Star's and Jian's feedback addressed, and your R-b's added.


>   I see you will continue to look add MmStandaloneEntryPointLib and 
> MmServiceLib for MmStandalone driver. You can create another BZ for it. I 
> will review them once you are done.
>

OK.

> >-----Original Message-----
> >From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org]
> >Sent: Wednesday, January 09, 2019 11:30 PM
> >To: Gao, Liming <liming....@intel.com>
> >Cc: edk2-devel@lists.01.org; Laszlo Ersek <ler...@redhat.com>; Leif Lindholm
> ><leif.lindh...@linaro.org>; Kinney, Michael D <michael.d.kin...@intel.com>;
> >Wang, Jian J <jian.j.w...@intel.com>; Wu, Hao A <hao.a...@intel.com>;
> >Jagadeesh Ujja <jagadeesh.u...@arm.com>; Achin Gupta
> ><achin.gu...@arm.com>; Thomas Panakamattam Abraham
> ><thomas.abra...@arm.com>; Sami Mujawar <sami.muja...@arm.com>
> >Subject: Re: [PATCH 0/6] implement standalone MM versions of the variable
> >runtime drivers
> >
> >On Wed, 9 Jan 2019 at 14:56, Gao, Liming <liming....@intel.com> wrote:
> >>
> >> Ard:
> >>   Now, the impact is to update platform DSC to include MmServicesTableLib
> >library instance. This change is acceptable for me. I suggest your create 
> >one BZ
> >for this patch set.
> >
> >https://bugzilla.tianocore.org/show_bug.cgi?id=1442
> >
> >>   Besides, I can't apply for these patches in my machine. Could you share 
> >> git
> >branch to me? Then, I can further verify its functionality on SMM mode.
> >>
> >
> >https://github.com/ardbiesheuvel/edk2/tree/variable-ftw-standalone-mm-
> >conversion
> >
> >Note that I included the changes to add the MmServicesTableLib
> >resolution to consumers of the FTW and variable drivers.
> >
> >Thanks,
> >Ard.
> >
> >
> >
> >> Thanks
> >> Liming
> >> > -----Original Message-----
> >> > From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org]
> >> > Sent: Monday, January 7, 2019 9:06 PM
> >> > To: Gao, Liming <liming....@intel.com>
> >> > Cc: edk2-devel@lists.01.org; Laszlo Ersek <ler...@redhat.com>; Leif
> >Lindholm <leif.lindh...@linaro.org>; Kinney, Michael D
> >> > <michael.d.kin...@intel.com>; Wang, Jian J <jian.j.w...@intel.com>; Wu,
> >Hao A <hao.a...@intel.com>; Jagadeesh Ujja
> >> > <jagadeesh.u...@arm.com>; Achin Gupta <achin.gu...@arm.com>;
> >Thomas Panakamattam Abraham <thomas.abra...@arm.com>;
> >> > Sami Mujawar <sami.muja...@arm.com>
> >> > Subject: Re: [PATCH 0/6] implement standalone MM versions of the
> >variable runtime drivers
> >> >
> >> > On Mon, 7 Jan 2019 at 13:44, Gao, Liming <liming....@intel.com> wrote:
> >> > >
> >> > > Ard:
> >> > >   I agree this design is good. But, I need some time to evaluate its 
> >> > > impact
> >on our X86 platform. Could you wait for several days?
> >> > >
> >> >
> >> > Of course.
> >> >
> >> > Thanks,
> >> >
> >> > > > -----Original Message-----
> >> > > > From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org]
> >> > > > Sent: Friday, January 4, 2019 2:28 AM
> >> > > > To: edk2-devel@lists.01.org
> >> > > > Cc: Ard Biesheuvel <ard.biesheu...@linaro.org>; Laszlo Ersek
> ><ler...@redhat.com>; Leif Lindholm <leif.lindh...@linaro.org>;
> >> > Kinney,
> >> > > > Michael D <michael.d.kin...@intel.com>; Gao, Liming
> ><liming....@intel.com>; Wang, Jian J <jian.j.w...@intel.com>; Wu, Hao A
> >> > > > <hao.a...@intel.com>; Jagadeesh Ujja <jagadeesh.u...@arm.com>;
> >Achin Gupta <achin.gu...@arm.com>; Thomas Panakamattam
> >> > > > Abraham <thomas.abra...@arm.com>; Sami Mujawar
> ><sami.muja...@arm.com>
> >> > > > Subject: [PATCH 0/6] implement standalone MM versions of the
> >variable runtime drivers
> >> > > >
> >> > > > This series proposed an alternative approach to the series sent out 
> >> > > > by
> >> > > > Jagadeesh [0]. In particular, it gets rid of the InMm() calls and the
> >> > > > special PCD, as well as some other if() conditionals.
> >> > > >
> >> > > > The primary difference is that this series defines and implements
> >> > > > MmServicesTableLib in such a way that the traditional SMM drivers
> >> > > > can use it as well. This is appropriate, considering that the PI
> >> > > > spec has rebranded traditional SMM as one implementation of the
> >generic
> >> > > > MM framework.
> >> > > >
> >> > > > Patch #1 is based on Jagadeesh's patch, and introduces the
> >MmServicesTableLib
> >> > > > library class, but for all SMM flavours, not only for standalone MM.
> >> > > >
> >> > > > Patch #2 implements MmServicesTableLib for traditional SMM
> >implementations.
> >> > > >
> >> > > > Patch #3 refactors FaultTolerantWriteDxe so that the parts of the SMM
> >> > > > driver that invoke boot services are separated from the core SMM
> >pieces.
> >> > > >
> >> > > > Patch #4 implements FaultTolerantWriteSmm for the standalone MM
> >environment.
> >> > > >
> >> > > > Patches #5 and #6 do the same, respectively, for the variable runtime
> >driver.
> >> > > >
> >> > > > This approach minimizes the delta, and thus the maintenance burden,
> >between
> >> > > > the traditional SMM and standalone MM drivers, while not resorting to
> >runtime
> >> > > > checks or other conditionals in the code to implement logic that 
> >> > > > should
> >be
> >> > > > decided at build time.
> >> > > >
> >> > > > Note that this series only covers part of the work contributed by
> >Jagadeesh.
> >> > > > This series focuses on the MdePkg and MdeModulePkg changes that
> >affect shared
> >> > > > code.
> >> > > >
> >> > > > Cc: Laszlo Ersek <ler...@redhat.com>
> >> > > > Cc: Leif Lindholm <leif.lindh...@linaro.org>
> >> > > > Cc: Michael D Kinney <michael.d.kin...@intel.com>
> >> > > > Cc: Liming Gao <liming....@intel.com>
> >> > > > Cc: Jian J Wang <jian.j.w...@intel.com>
> >> > > > Cc: Hao Wu <hao.a...@intel.com>
> >> > > > Cc: Jagadeesh Ujja <jagadeesh.u...@arm.com>
> >> > > > Cc: Achin Gupta <achin.gu...@arm.com>
> >> > > > Cc: Thomas Panakamattam Abraham <thomas.abra...@arm.com>
> >> > > > Cc: Sami Mujawar <sami.muja...@arm.com>
> >> > > >
> >> > > > Ard Biesheuvel (5):
> >> > > >   MdePkg: implement MmServicesTableLib based on traditional SMM
> >> > > >   MdeModulePkg/FaultTolerantWriteDxe: factor out boot service
> >accesses
> >> > > >   MdeModulePkg/FaultTolerantWriteDxe: implement standalone MM
> >version
> >> > > >   MdeModulePkg/VariableRuntimeDxe: factor out boot service
> >accesses
> >> > > >   MdeModulePkg/VariableRuntimeDxe: implement standalone MM
> >version
> >> > > >
> >> > > > Jagadeesh Ujja (1):
> >> > > >   MdePkg/Include: add MmServicesTableLib header file
> >> > > >
> >> > > >  MdeModulePkg/MdeModulePkg.dsc                 |   1 +
> >> > > >  .../FaultTolerantWrite.h                      |  22 ++-
> >> > > >  .../FaultTolerantWriteDxe.c                   |  31 ++++
> >> > > >  .../FaultTolerantWriteSmm.c                   |  54 +++----
> >> > > >  .../FaultTolerantWriteSmm.inf                 |   5 +-
> >> > > >  .../FaultTolerantWriteSmmCommon.h             |  31 ++++
> >> > > >  .../FaultTolerantWriteSmmDxe.c                |   1 +
> >> > > >  .../FaultTolerantWriteStandaloneMm.c          |  70 +++++++++
> >> > > >  .../FaultTolerantWriteStandaloneMm.inf        |  90 ++++++++++++
> >> > > >  .../FaultTolerantWriteTraditionalMm.c         |  94 ++++++++++++
> >> > > >  .../UpdateWorkingBlock.c                      |  10 +-
> >> > > >  .../Variable/RuntimeDxe/TcgMorLockSmm.c       |  18 +--
> >> > > >  .../Universal/Variable/RuntimeDxe/Variable.h  |  50 +++++++
> >> > > >  .../Variable/RuntimeDxe/VariableSmm.c         |  59 +++-----
> >> > > >  .../Variable/RuntimeDxe/VariableSmm.inf       |   5 +-
> >> > > >  .../RuntimeDxe/VariableStandaloneMm.c         |  69 +++++++++
> >> > > >  .../RuntimeDxe/VariableStandaloneMm.inf       | 135
> >++++++++++++++++++
> >> > > >  .../RuntimeDxe/VariableTraditionalMm.c        | 114 +++++++++++++++
> >> > > >  MdePkg/Include/Library/MmServicesTableLib.h   |  25 ++++
> >> > > >  .../MmServicesTableLib/MmServicesTableLib.c   |  63 ++++++++
> >> > > >  .../MmServicesTableLib/MmServicesTableLib.inf |  45 ++++++
> >> > > >  .../MmServicesTableLib/MmServicesTableLib.uni |  22 +++
> >> > > >  MdePkg/MdePkg.dec                             |   4 +
> >> > > >  MdePkg/MdePkg.dsc                             |   1 +
> >> > > >  24 files changed, 916 insertions(+), 103 deletions(-)
> >> > > >  create mode 100644
> >MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteStandal
> >oneMm.c
> >> > > >  create mode 100644
> >MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteStandal
> >oneMm.inf
> >> > > >  create mode 100644
> >MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteTraditio
> >nalMm.c
> >> > > >  create mode 100644
> >MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.c
> >> > > >  create mode 100644
> >MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf
> >> > > >  create mode 100644
> >MdeModulePkg/Universal/Variable/RuntimeDxe/VariableTraditionalMm.c
> >> > > >  create mode 100644 MdePkg/Include/Library/MmServicesTableLib.h
> >> > > >  create mode 100644
> >MdePkg/Library/MmServicesTableLib/MmServicesTableLib.c
> >> > > >  create mode 100644
> >MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
> >> > > >  create mode 100644
> >MdePkg/Library/MmServicesTableLib/MmServicesTableLib.uni
> >> > > >
> >> > > > --
> >> > > > 2.17.1
> >> > >
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to