IntelSiliconPkg/VtdPmrPei: Add premem support.
Remove memory discovered dependency to support both premem
VTD_INFO_PPI and postmem VTD_INFO_PPI.
If VTD_INFO_PPI is installed before memory is ready, this
driver protects all memory region.
If VTD_INFO_PPI is installed or reinstalled after memory
is ready, this driver allocates DMA buffer and protect rest.
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
(cherry picked from commit a1e7cd0b02
)
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
IntelVTdPmrPei.c
|
||||
IntelVTdPmrPei.h
|
||||
IntelVTdPmr.c
|
||||
DmarTable.c
|
||||
VtdReg.c
|
||||
|
||||
[LibraryClasses]
|
||||
DebugLib
|
||||
@@ -42,17 +44,18 @@
|
||||
PeiServicesLib
|
||||
HobLib
|
||||
IoLib
|
||||
CacheMaintenanceLib
|
||||
|
||||
[Ppis]
|
||||
gEdkiiIoMmuPpiGuid ## PRODUCES
|
||||
gEdkiiVTdInfoPpiGuid ## CONSUMES
|
||||
gEfiEndOfPeiSignalPpiGuid ## CONSUMES
|
||||
gEdkiiIoMmuPpiGuid ## PRODUCES
|
||||
gEdkiiVTdInfoPpiGuid ## CONSUMES
|
||||
gEfiPeiMemoryDiscoveredPpiGuid ## CONSUMES
|
||||
gEfiEndOfPeiSignalPpiGuid ## CONSUMES
|
||||
|
||||
[Pcd]
|
||||
gIntelSiliconPkgTokenSpaceGuid.PcdVTdPolicyPropertyMask ## CONSUMES
|
||||
|
||||
[Depex]
|
||||
gEfiPeiMemoryDiscoveredPpiGuid AND
|
||||
gEfiPeiMasterBootModePpiGuid AND
|
||||
gEdkiiVTdInfoPpiGuid
|
||||
|
||||
|
Reference in New Issue
Block a user