]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelSiliconPkg/Feature/VTd/IntelVTdDxe/DmaProtection.c
IntelSiliconPkg VTdDxe: Option to force no early access attr request
[mirror_edk2.git] / IntelSiliconPkg / Feature / VTd / IntelVTdDxe / DmaProtection.c
index 86d50eb6f2882041ce9f5a63254552e5ae2baec6..7784545631b390b0aeb8c46c7988d518075af88a 100644 (file)
@@ -515,7 +515,13 @@ SetupVtd (
 \r
   ParseDmarAcpiTableRmrr ();\r
 \r
-  ProcessRequestedAccessAttribute ();\r
+  if ((PcdGet8 (PcdVTdPolicyPropertyMask) & BIT2) == 0) {\r
+    //\r
+    // Support IOMMU access attribute request recording before DMAR table is installed.\r
+    // Here is to process the requests.\r
+    //\r
+    ProcessRequestedAccessAttribute ();\r
+  }\r
 \r
   for (Index = 0; Index < mVtdUnitNumber; Index++) {\r
     DEBUG ((DEBUG_INFO,"VTD Unit %d (Segment: %04x)\n", Index, mVtdUnitInformation[Index].Segment));\r