From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web09.3596.1610078814635023904 for ; Thu, 07 Jan 2021 20:06:54 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: sumana.venur@intel.com) IronPort-SDR: Ixj3kb4dEroTDPFnD0FGKaGPt/nuCSyRcPTnIvDN7KgjAJPEEHpRt8ZS8g9+90xiKVAMKQllh/ fFmhtct1yXnA== X-IronPort-AV: E=McAfee;i="6000,8403,9857"; a="157317195" X-IronPort-AV: E=Sophos;i="5.79,330,1602572400"; d="scan'208";a="157317195" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jan 2021 20:06:53 -0800 IronPort-SDR: K1JbAuZYA7Av3Y11GvynHeeoDMRiVReW0I1fiUi7p9zirMAALrPHDHNvOPedG7BYzfjWeD9X02 hm8kthBjVf8w== X-IronPort-AV: E=Sophos;i="5.79,330,1602572400"; d="scan'208";a="463274984" Received: from svenur-desk1.amr.corp.intel.com ([10.9.69.84]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jan 2021 20:06:53 -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: Thu, 7 Jan 2021 20:05:43 -0800 Message-Id: <20210108040543.11140-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 reads to reduce the time for oprom shadow Signed-off-by: Sumana Venur --- MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c | 4 ++-- 1 file 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; -- 2.16.2.windows.1