Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: b1b89f9009f2390652e0061bd7b24fc40732bc70
      
https://github.com/tianocore/edk2/commit/b1b89f9009f2390652e0061bd7b24fc40732bc70
  Author: Tomas Pilar <[email protected]>
  Date:   2022-02-28 (Mon, 28 Feb 2022)

  Changed paths:
    M MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c
    M MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c

  Log Message:
  -----------
  MdeModulePkg: Correct high-memory use in NvmExpressDxe

Move the logic that stores starting PCI attributes and sets the
EFI_PCI_IO_ATTRIBUTE_DUAL_ADDRESS_CYCLE attribute to
DriverBindingStart() before the memory that backs the
DMA engine is allocated.

This ensures that the DMA-backing memory is not forcibly allocated
below 4G in system address map. Otherwise the allocation fails on
platforms that do not have any memory below the 4G mark and the drive
initialisation fails.

Leave the PCI device enabling attribute logic in NvmeControllerInit()
to ensure that the device is re-enabled on reset in case it was
disabled via PCI attributes.

Cc: Ray Ni <[email protected]>
Cc: Leif Lindholm <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Tomas Pilar <[email protected]>
Acked-by: Hao A Wu <[email protected]>




_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to