mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 08:04:07 +02:00
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>
This commit is contained in:
parent
04ddd1271e
commit
cdf7544703
@ -521,9 +521,9 @@ LoadOpRomImage (
|
|||||||
//
|
//
|
||||||
PciDevice->PciRootBridgeIo->Mem.Read (
|
PciDevice->PciRootBridgeIo->Mem.Read (
|
||||||
PciDevice->PciRootBridgeIo,
|
PciDevice->PciRootBridgeIo,
|
||||||
EfiPciWidthUint8,
|
EfiPciWidthUint32,
|
||||||
RomBar,
|
RomBar,
|
||||||
(UINT32) RomImageSize,
|
(UINT32) RomImageSize/sizeof(UINT32),
|
||||||
Image
|
Image
|
||||||
);
|
);
|
||||||
RomInMemory = Image;
|
RomInMemory = Image;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user