From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web12.10839.1623429500921763798 for ; Fri, 11 Jun 2021 09:38:21 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: sumana.venur@intel.com) IronPort-SDR: fhtuozAMYxNuy2kTvKjdhlpDELXzAKEK8cfpwMQQ42QA1gAtpfAfUBVRAo6fp7MOvMP4Xpo1sM iu3/tOQsKhOg== X-IronPort-AV: E=McAfee;i="6200,9189,10012"; a="185252436" X-IronPort-AV: E=Sophos;i="5.83,265,1616482800"; d="scan'208";a="185252436" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2021 09:37:59 -0700 IronPort-SDR: +SGpg1HmcGG89/4MsBH8lmRXlBTzFFWf0zitZ3hVuUvwdZfO2qRP4H3sJ8zfyR/we3nUa4PGiG tibftGc5oCbg== X-IronPort-AV: E=Sophos;i="5.83,265,1616482800"; d="scan'208";a="441607046" Received: from svenur-desk1.amr.corp.intel.com ([10.9.69.84]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2021 09:37:59 -0700 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: Fri, 11 Jun 2021 09:37:44 -0700 Message-Id: <20210611163744.19368-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