mirror of https://github.com/acidanthera/audk.git
IntelSiliconPkg/IntelVtd: Consume VTd policy PCD
Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
0d12b73306
commit
c50596a701
|
@ -437,8 +437,11 @@ OnExitBootServices (
|
|||
{
|
||||
DEBUG ((DEBUG_INFO, "Vtd OnExitBootServices\n"));
|
||||
DumpVtdRegsAll ();
|
||||
|
||||
if ((PcdGet8(PcdVTdPolicyPropertyMask) & BIT1) == 0) {
|
||||
DisableDmar ();
|
||||
DumpVtdRegsAll ();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -352,6 +352,10 @@ IntelVTdInitialize (
|
|||
EFI_STATUS Status;
|
||||
EFI_HANDLE Handle;
|
||||
|
||||
if ((PcdGet8(PcdVTdPolicyPropertyMask) & BIT0) == 0) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
InitializeDmaProtection ();
|
||||
|
||||
Handle = NULL;
|
||||
|
|
|
@ -73,6 +73,9 @@
|
|||
gEfiPciEnumerationCompleteProtocolGuid ## CONSUMES
|
||||
gEdkiiPlatformVTdPolicyProtocolGuid ## SOMETIMES_CONSUMES
|
||||
|
||||
[Pcd]
|
||||
gIntelSiliconPkgTokenSpaceGuid.PcdVTdPolicyPropertyMask ## CONSUMES
|
||||
|
||||
[Depex]
|
||||
gEfiPciRootBridgeIoProtocolGuid AND
|
||||
gEfiAcpiSdtProtocolGuid
|
||||
|
|
Loading…
Reference in New Issue