public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Zeng, Star" <star.zeng@intel.com>
To: "Gao, Liming" <liming.gao@intel.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: Younas khan <pmdyounaskhan786@gmail.com>,
	"Kinney, Michael D" <michael.d.kinney@intel.com>,
	"Yao, Jiewen" <jiewen.yao@intel.com>,
	"Wang, Jian J" <jian.j.wang@intel.com>,
	"Ni, Ruiyu" <ruiyu.ni@intel.com>,
	"Bi, Dandan" <dandan.bi@intel.com>,
	"Dong, Eric" <eric.dong@intel.com>,
	"Laszlo Ersek" <lersek@redhat.com>,
	"Zeng, Star" <star.zeng@intel.com>
Subject: Re: [PATCH V3 0/6] Add new EfiLocateXXXAcpiTable() APIs
Date: Wed, 19 Sep 2018 01:28:56 +0000	[thread overview]
Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103BBBB466@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14E2F8EE7@SHSMSX104.ccr.corp.intel.com>

Sure. :)
I just sent a separated patch for it at https://lists.01.org/pipermail/edk2-devel/2018-September/029832.html.


Thanks,
Star
-----Original Message-----
From: Gao, Liming 
Sent: Tuesday, September 18, 2018 10:19 PM
To: Zeng, Star <star.zeng@intel.com>; edk2-devel@lists.01.org
Cc: Younas khan <pmdyounaskhan786@gmail.com>; Kinney, Michael D <michael.d.kinney@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>; Wang, Jian J <jian.j.wang@intel.com>; Ni, Ruiyu <ruiyu.ni@intel.com>; Bi, Dandan <dandan.bi@intel.com>; Dong, Eric <eric.dong@intel.com>; Laszlo Ersek <lersek@redhat.com>
Subject: RE: [PATCH V3 0/6] Add new EfiLocateXXXAcpiTable() APIs

Star:
  The change in MdePkg is good. Because you add two APIs in UefiLib library class, could you also update FrameworkUefiLib in IntelFrameworkPkg?

Thanks
Liming
> -----Original Message-----
> From: Zeng, Star
> Sent: Monday, September 17, 2018 5:08 PM
> To: edk2-devel@lists.01.org
> Cc: Zeng, Star <star.zeng@intel.com>; Younas khan 
> <pmdyounaskhan786@gmail.com>; Kinney, Michael D 
> <michael.d.kinney@intel.com>; Gao, Liming <liming.gao@intel.com>; Yao, 
> Jiewen <jiewen.yao@intel.com>; Wang, Jian J <jian.j.wang@intel.com>; 
> Ni, Ruiyu <ruiyu.ni@intel.com>; Bi, Dandan <dandan.bi@intel.com>; 
> Dong, Eric <eric.dong@intel.com>; Laszlo Ersek <lersek@redhat.com>
> Subject: [PATCH V3 0/6] Add new EfiLocateXXXAcpiTable() APIs
> 
> It is the V3 patch series of
> https://lists.01.org/pipermail/edk2-devel/2018-August/029214.html
> It is according to the discussion at
> https://lists.01.org/pipermail/edk2-devel/2018-September/029750.html
> 
> V3:
> 1. Pick Ray/Laszlo/Eric's RB.
> 2. Remove ASSERT about Signature check.
> 3. Merge ScanTableInRSDT and ScanTableInXSDT.
> 
> It is the V2 patch series of
> https://lists.01.org/pipermail/edk2-devel/2018-August/029214.html
> It is according to the discussion at
> https://lists.01.org/pipermail/edk2-devel/2018-September/029348.html
> 
> V2:
> 1. Add EfiLocateFirstAcpiTable() and EfiLocateNextAcpiTable() instead
>    of EfiFindAcpiTableBySignature() to support locating both single
>    ACPI table instance and multiple ACPI table instances cases.
> 2. Support locating DSDT.
> 3. Support locating multiple ACPI table instances case by
>    EfiLocateNextAcpiTable().
> 
> Test done:
> 1. Call EfiLocateFirstAcpiTable() before ACPI configuration table is
>    installed, NULL is returned.
> 2. Call EfiLocateFirstAcpiTable() to locate FACS after FACS is installed
>    but FADT is not installed, NULL is returned.
> 3. Call EfiLocateFirstAcpiTable() to locate FADT/DSDT/FACS/FPDT/DMAR
>    at late phase, correct ACPI table pointer is returned.
> 4. Call EfiLocateNextAcpiTable() to locate SSDTs at late phase, all
>    SSDTs are returned correctly.
> 5. Run same test cases above after setting PcdAcpiExposedTableVersions
>    to 0x2, same results are with above.
> 6. Run same test cases above with 32Bits build, same results are with
>    above.
> 
> The code for this patch series is also at 
> git@github.com:lzeng14/edk2.git branch LocateAcpiTable_UefiLibV3
> 
> https://bugzilla.tianocore.org/show_bug.cgi?id=967
> Request to add a library function for GetAcpiTable() in order to get 
> ACPI table using signature as input.
> 
> After evaluation, we found there are many duplicated code to find ACPI 
> table by signature in different modules.
> 
> This patch adds new EfiLocateXXXAcpiTable() API in UefiLib for the 
> request and removing the duplicated code.
> 
> Cc: Younas khan <pmdyounaskhan786@gmail.com>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <liming.gao@intel.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Jian J Wang <jian.j.wang@intel.com>
> Cc: Ruiyu Ni <ruiyu.ni@intel.com>
> Cc: Dandan Bi <dandan.bi@intel.com>
> Cc: Eric Dong <eric.dong@intel.com>
> Cc: Laszlo Ersek <lersek@redhat.com>
> 
> Star Zeng (6):
>   MdePkg UefiLib: Add new EfiLocateXXXAcpiTable() APIs
>   IntelSiliconPkg IntelVTdDxe: Use new EfiLocateFirstAcpiTable()
>   MdeModulePkg S3SaveStateDxe: Use new EfiLocateFirstAcpiTable()
>   PcAtChipsetPkg PcRtc: Use new EfiLocateFirstAcpiTable()
>   ShellPkg DpDynamicCommand: Use new EfiLocateFirstAcpiTable()
>   UefiCpuPkg PiSmmCpuDxeSmm: Use new EfiLocateFirstAcpiTable()
> 
>  .../Feature/VTd/IntelVTdDxe/DmarAcpiTable.c        | 136 +------
>  .../Acpi/S3SaveStateDxe/AcpiS3ContextSave.c        | 208 +---------
>  .../Acpi/S3SaveStateDxe/S3SaveStateDxe.inf         |   3 +-
>  MdePkg/Include/Library/UefiLib.h                   |  68 ++++
>  MdePkg/Library/UefiLib/Acpi.c                      | 428 +++++++++++++++++++++
>  MdePkg/Library/UefiLib/UefiLib.inf                 |   3 +
>  PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c |  80 +---
>  ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c      | 136 +------
>  ShellPkg/DynamicCommand/DpDynamicCommand/Dp.h      |   1 -
>  ShellPkg/DynamicCommand/DpDynamicCommand/Dp.uni    |   1 -
>  ShellPkg/DynamicCommand/DpDynamicCommand/DpApp.inf |   2 -
>  .../DpDynamicCommand/DpDynamicCommand.inf          |   2 -
>  UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf       |   4 +-
>  UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c             |  84 +---
>  UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfileInternal.h     |   3 +-
>  15 files changed, 519 insertions(+), 640 deletions(-)  create mode 
> 100644 MdePkg/Library/UefiLib/Acpi.c
> 
> --
> 2.7.0.windows.1



      reply	other threads:[~2018-09-19  1:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-17  9:08 [PATCH V3 0/6] Add new EfiLocateXXXAcpiTable() APIs Star Zeng
2018-09-17  9:08 ` [PATCH V3 1/6] MdePkg UefiLib: " Star Zeng
2018-09-17  9:16   ` Ni, Ruiyu
2018-09-17  9:08 ` [PATCH V3 2/6] IntelSiliconPkg IntelVTdDxe: Use new EfiLocateFirstAcpiTable() Star Zeng
2018-09-19  5:59   ` Yao, Jiewen
2018-09-17  9:08 ` [PATCH V3 3/6] MdeModulePkg S3SaveStateDxe: " Star Zeng
2018-09-25 14:35   ` Yao, Jiewen
2018-09-17  9:08 ` [PATCH V3 4/6] PcAtChipsetPkg PcRtc: " Star Zeng
2018-09-17  9:15   ` Ni, Ruiyu
2018-09-17  9:08 ` [PATCH V3 5/6] ShellPkg DpDynamicCommand: " Star Zeng
2018-09-17  9:08 ` [PATCH V3 6/6] UefiCpuPkg PiSmmCpuDxeSmm: " Star Zeng
2018-09-18 14:18 ` [PATCH V3 0/6] Add new EfiLocateXXXAcpiTable() APIs Gao, Liming
2018-09-19  1:28   ` Zeng, Star [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=0C09AFA07DD0434D9E2A0C6AEB0483103BBBB466@shsmsx102.ccr.corp.intel.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