From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web12.4956.1610001004168313948 for ; Wed, 06 Jan 2021 22:30:04 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: sumana.venur@intel.com) IronPort-SDR: gstd0AZ2VCF4F/vUSnYEhJmxFYAJkZBmUUjORhQ80t8syaxhjStZo8fCKIgccRantHIF4SRDFq WXplYLeNT1Vw== X-IronPort-AV: E=McAfee;i="6000,8403,9856"; a="262153623" X-IronPort-AV: E=Sophos;i="5.79,329,1602572400"; d="scan'208";a="262153623" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2021 22:30:03 -0800 IronPort-SDR: QfUK6/G7V4QQqIVVcX5xRcxaQcOWqzer4m/P7IAO+p9YB76Le8jHO2WwwT+LvULHFHRmx6g5bj W6gnfzT6/1nA== X-IronPort-AV: E=Sophos;i="5.79,329,1602572400"; d="scan'208";a="379602699" Received: from svenur-desk1.amr.corp.intel.com ([10.9.69.84]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2021 22:30:03 -0800 From: "Sumana Venur" To: devel@edk2.groups.io Cc: Sumana Venur Subject: [PATCH] MdeModulePkg/Bus/Pci/PciBusDxe: Increase the width of the data read during oprom shadow Date: Wed, 6 Jan 2021 22:29:59 -0800 Message-Id: <20210107062959.25388-1-sumana.venur@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 (even 64bit) reads to reduce the time for oprom shadow Signed-off-by: Sumana Venur --- MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c index c994ed5fe3..fe6c7db417 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c @@ -521,7 +521,7 @@ LoadOpRomImage ( // PciDevice->PciRootBridgeIo->Mem.Read ( PciDevice->PciRootBridgeIo, - EfiPciWidthUint8, + EfiPciWidthUint64, RomBar, (UINT32) RomImageSize, Image -- 2.16.2.windows.1