summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumana Venur <sumana.venur@intel.com>2021-06-12 00:37:44 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-06-17 03:01:55 +0000
commitcdf7544703759df0fa4bd4f065f5c5c7f268026e (patch)
treed9c6edfde99c8e405b8f276a9efba6b6279487c4
parent04ddd1271e9518008bcd899bdaf29c1701f0f7a0 (diff)
downloadedk2-cdf7544703759df0fa4bd4f065f5c5c7f268026e.tar.gz
edk2-cdf7544703759df0fa4bd4f065f5c5c7f268026e.tar.bz2
edk2-cdf7544703759df0fa4bd4f065f5c5c7f268026e.zip
MdeModulePkg PciBusDxe: Increase the width of data read during oprom shadow
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2989 Long times spent on shadowing oprom from graphics card to system memory. We are currently using 8 bit read cycles. This needs to be wider, at least 32bit reads to reduce the time for oprom shadow. Signed-off-by: Sumana Venur <sumana.venur@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
-rw-r--r--MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c
index c994ed5fe3..a981f93f43 100644
--- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c
+++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c
@@ -521,9 +521,9 @@ LoadOpRomImage (
//
PciDevice->PciRootBridgeIo->Mem.Read (
PciDevice->PciRootBridgeIo,
- EfiPciWidthUint8,
+ EfiPciWidthUint32,
RomBar,
- (UINT32) RomImageSize,
+ (UINT32) RomImageSize/sizeof(UINT32),
Image
);
RomInMemory = Image;