[edk2-devel] [PATCH v3 0/2] Add IntelVTdDmarPei Driver

Sheng Wei posted 2 patches 3 months, 4 weeks ago
Failed in applying to current master (apply log)
.../Feature/VTd/IntelVTdDmarPei/DmarTable.c        |  821 +++++++++++++++
.../Feature/VTd/IntelVTdDmarPei/IntelVTdDmar.c     |  467 +++++++++
.../Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.c  |  814 +++++++++++++++
.../Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.h  |  224 +++++
.../VTd/IntelVTdDmarPei/IntelVTdDmarPei.inf        |   65 ++
.../VTd/IntelVTdDmarPei/IntelVTdDmarPei.uni        |   14 +
.../VTd/IntelVTdDmarPei/IntelVTdDmarPeiExtra.uni   |   14 +
.../Feature/VTd/IntelVTdDmarPei/TranslationTable.c | 1045 ++++++++++++++++++++
Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dec  |    5 +
Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dsc  |    4 +
10 files changed, 3473 insertions(+)
create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/DmarTable.c
create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmar.c
create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.c
create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.h
create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.inf
create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.uni
create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPeiExtra.uni
create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/TranslationTable.c

[edk2-devel] [PATCH v3 0/2] Add IntelVTdDmarPei Driver

Posted by Sheng Wei 3 months, 4 weeks ago
IntelVTdDmarPei Driver is used for DMA protection in PEI phase.
In pre-memory phase, All the DMA access is blocked.
In post memory phase, it will set some memory in iommu DMA remapping
 tranlation table for DMA access, and only the memory allocated by
 EdkiiIoMmuPpi has the DMA access. For rest of the memory, DMA access
 will be blocked.
gIntelSiliconPkgTokenSpaceGuid.PcdVtdDmarPeiEnable is added for select
 pre-boot DMA protection driver in PEI phase.
IntelVTdPmrPei driver is used to do the pre-boot DMA protection by PMR.
IntelVTdDmarPei driver is used to do the pre-boot DMA protection by DMAR.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3095

Signed-off-by: Sheng Wei <w.sheng@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jenny Huang <jenny.huang@intel.com>
Cc: Feng Roger <roger.feng@intel.com>
Reviewed-by: Jenny Huang <jenny.huang@intel.com>

Sheng Wei (2):
  IntelSiliconPkg/VTd: Add IntelVTdDmarPei Driver
  IntelSiliconPkg/VTd: Add PCD flag for select pre-boot DMA  protection
    Driver

 .../Feature/VTd/IntelVTdDmarPei/DmarTable.c        |  821 +++++++++++++++
 .../Feature/VTd/IntelVTdDmarPei/IntelVTdDmar.c     |  467 +++++++++
 .../Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.c  |  814 +++++++++++++++
 .../Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.h  |  224 +++++
 .../VTd/IntelVTdDmarPei/IntelVTdDmarPei.inf        |   65 ++
 .../VTd/IntelVTdDmarPei/IntelVTdDmarPei.uni        |   14 +
 .../VTd/IntelVTdDmarPei/IntelVTdDmarPeiExtra.uni   |   14 +
 .../Feature/VTd/IntelVTdDmarPei/TranslationTable.c | 1045 ++++++++++++++++++++
 Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dec  |    5 +
 Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dsc  |    4 +
 10 files changed, 3473 insertions(+)
 create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/DmarTable.c
 create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmar.c
 create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.c
 create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.h
 create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.inf
 create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.uni
 create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPeiExtra.uni
 create mode 100644 Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/TranslationTable.c

-- 
2.16.2.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#69767): https://edk2.groups.io/g/devel/message/69767
Mute This Topic: https://groups.io/mt/79466623/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-