]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c
MdeModulePkg: Correct high-memory use in NvmExpressDxe
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / NvmExpressDxe / NvmExpressHci.c
index ac77afe1138fdfc5cf0f47ea0d951d6634e06eee..d87212ffb268ad12cc8a4a039b691001ed126928 100644 (file)
@@ -728,20 +728,9 @@ NvmeControllerInit (
   UINT8                Mn[41];\r
 \r
   //\r
-  // Save original PCI attributes and enable this controller.\r
+  // Enable this controller.\r
   //\r
   PciIo  = Private->PciIo;\r
-  Status = PciIo->Attributes (\r
-                    PciIo,\r
-                    EfiPciIoAttributeOperationGet,\r
-                    0,\r
-                    &Private->PciAttributes\r
-                    );\r
-\r
-  if (EFI_ERROR (Status)) {\r
-    return Status;\r
-  }\r
-\r
   Status = PciIo->Attributes (\r
                     PciIo,\r
                     EfiPciIoAttributeOperationSupported,\r
@@ -764,19 +753,6 @@ NvmeControllerInit (
     return Status;\r
   }\r
 \r
-  //\r
-  // Enable 64-bit DMA support in the PCI layer.\r
-  //\r
-  Status = PciIo->Attributes (\r
-                    PciIo,\r
-                    EfiPciIoAttributeOperationEnable,\r
-                    EFI_PCI_IO_ATTRIBUTE_DUAL_ADDRESS_CYCLE,\r
-                    NULL\r
-                    );\r
-  if (EFI_ERROR (Status)) {\r
-    DEBUG ((DEBUG_WARN, "NvmeControllerInit: failed to enable 64-bit DMA (%r)\n", Status));\r
-  }\r
-\r
   //\r
   // Read the Controller Capabilities register and verify that the NVM command set is supported\r
   //\r