Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: b1b89f9009f2390652e0061bd7b24fc40732bc70
      
https://github.com/tianocore/edk2/commit/b1b89f9009f2390652e0061bd7b24fc40732bc70
  Author: Tomas Pilar <quic_tpi...@quicinc.com>
  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 <ray...@intel.com>
Cc: Leif Lindholm <quic_llind...@quicinc.com>
Reviewed-by: Ard Biesheuvel <a...@kernel.org>
Signed-off-by: Tomas Pilar <quic_tpi...@quicinc.com>
Acked-by: Hao A Wu <hao.a...@intel.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to