Reviewed-by: Ruiyu Ni <ruiyu...@intel.com>


>-----Original Message-----
>From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Laszlo 
>Ersek
>Sent: Saturday, February 27, 2016 8:24 AM
>To: edk2-devel-01 <edk2-de...@ml01.01.org>
>Cc: Ni, Ruiyu <ruiyu...@intel.com>; Justen, Jordan L 
><jordan.l.jus...@intel.com>; Marcel Apfelbaum <mar...@redhat.com>
>Subject: [edk2] [PATCH 11/17] OvmfPkg: PciHostBridgeLib: clear 
>RootBus->DmaAbove4G
>
>When this BOOLEAN member is FALSE, and the caller tries to set up a DMA
>transfer between a PCI device and a host buffer not entirely under 4GB,
>then "MdeModulePkg/Bus/Pci/PciHostBridgeDxe" sets up a bounce buffer under
>4GB, in the implementation of EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.Map().
>
>Since that's exactly what RootBridgeIoMap() does in
>"OvmfPkg/PciHostBridgeDxe/PciRootBridgeIo.c", stick with it in this
>conversion.
>
>Cc: Jordan Justen <jordan.l.jus...@intel.com>
>Cc: Ruiyu Ni <ruiyu...@intel.com>
>Cc: Marcel Apfelbaum <mar...@redhat.com>
>Contributed-under: TianoCore Contribution Agreement 1.0
>Signed-off-by: Laszlo Ersek <ler...@redhat.com>
>---
> OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c | 2 ++
> 1 file changed, 2 insertions(+)
>
>diff --git a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c 
>b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c
>index d7b01114c4aa..ba08c9b43b54 100644
>--- a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c
>+++ b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c
>@@ -84,6 +84,8 @@ InitRootBridge (
>                         EFI_PCI_ATTRIBUTE_VGA_PALETTE_IO_16;
>   RootBus->Attributes = RootBus->Supports;
>
>+  RootBus->DmaAbove4G = FALSE;
>+
>   return EFI_OUT_OF_RESOURCES;
> }
>
>--
>1.8.3.1
>
>
>_______________________________________________
>edk2-devel mailing list
>edk2-devel@lists.01.org
>https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to