audk/MdeModulePkg/Bus
Ard Biesheuvel e58a71d9c5 MdeModulePkg/PciHostBridgeDxe: restrict 64-bit DMA to devices that support it
Currently, the EFI_PCI_ATTRIBUTE_DUAL_ADDRESS_CYCLE attribute is completely
ignored by the PCI host bridge driver, which means that, on an implementation
that supports DMA above 4 GB, allocations above 4 GB may be provided to
devices that have not expressed support for it.

So in addition to checking 'RootBridge->DmaAbove4G' to establish whether the
root bridge itself supports DMA above 4 GB, we must also take into account
the operation type (EfiPciOperationBusMaster{Read|Write|CommonBuffer}64),
and the EFI_PCI_ATTRIBUTE_DUAL_ADDRESS_CYCLE attribute, when mapping and
allocating DMA memory, respectively.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ruiyu Ni <Ruiyu.ni@intel.com>
2016-09-06 15:46:38 +01:00
..
Ata MdeModulePkg/AtaAtapiPassThru: enable 64-bit PCI DMA 2016-09-06 15:40:49 +01:00
I2c/I2cDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Isa MdeModulePkg: Fix typos in comments and variables 2016-07-11 10:29:48 +08:00
Pci MdeModulePkg/PciHostBridgeDxe: restrict 64-bit DMA to devices that support it 2016-09-06 15:46:38 +01:00
Scsi MdeModulePkg ScsiDiskDxe: Add Erase Block Protocol support for UFS devices 2016-05-20 13:42:51 +08:00
Sd MdeModulePkg: Fix typos in comments and variables 2016-07-11 10:29:48 +08:00
Ufs MdeModulePkg: Fix typos in comments and variables 2016-07-11 10:29:48 +08:00
Usb MdeModulePkg/UsbMass: Not retry if usb bot transfer execution fail 2016-08-03 09:52:19 +08:00