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>
//\r
PciDevice->PciRootBridgeIo->Mem.Read (\r
PciDevice->PciRootBridgeIo,\r
- EfiPciWidthUint8,\r
+ EfiPciWidthUint32,\r
RomBar,\r
- (UINT32) RomImageSize,\r
+ (UINT32) RomImageSize/sizeof(UINT32),\r
Image\r
);\r
RomInMemory = Image;\r