From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web10.2676.1610073167674066183 for ; Thu, 07 Jan 2021 18:32:47 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: sumana.venur@intel.com) IronPort-SDR: 0LByOrjbdmJTj6JZr/22aJcZm542/LqqWtMk0rVXaQF6deEChoZzHRTLsc4q96dHtS+kVd4wu5 8fB2AJ9T+2Qw== X-IronPort-AV: E=McAfee;i="6000,8403,9857"; a="164602899" X-IronPort-AV: E=Sophos;i="5.79,330,1602572400"; d="scan'208";a="164602899" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jan 2021 18:32:43 -0800 IronPort-SDR: qhlpm26DjAEKkFmwIDb0+0FPD5EKriIaV1wNWEWAKTVaCnDF/6wSwO7yNTQ+QV+4C5YcJipfSn QI6sgPbpG37Q== X-IronPort-AV: E=Sophos;i="5.79,330,1602572400"; d="scan'208";a="463253709" 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 18:32:42 -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 18:32:39 -0800 Message-Id: <20210108023239.28352-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..19dceb3f91 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/4, Image ); RomInMemory = Image; -- 2.16.2.windows.1