]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PciBus: Disable BME of all devices when entering RT
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 31 Oct 2017 07:53:18 +0000 (15:53 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Tue, 7 Nov 2017 03:23:41 +0000 (11:23 +0800)
commit050763db0730a0bb46235cec87e3716632dc532c
tree47925b5a3fde2304f319057e07cfc89d6e8d5c7d
parent3d34e92faba409a6c6629ce4c1373181879f5e52
MdeModulePkg/PciBus: Disable BME of all devices when entering RT

The patch ensures all DMA transactions are blocked after
ExitBootService.
If a platform enables IOMMU before and needs disable IOMMU after
ExitBootService, the IOMMU should be disabled after PCI bus driver
disables BME.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael Turner <michael.turner@microsoft.com>
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jeff Fan <vanjeff_919@hotmail.com>
MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h
MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
MdeModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c