From nobody Wed Apr 24 13:22:09 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+70003+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+70003+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1610073168; cv=none; d=zohomail.com; s=zohoarc; b=AdYtTWGGN1lji5W9jiu1Wz4FOre6nuhXiMdkjpT1MTwohYX9wdeGDiSxzVK0XpThcL8xAKPErFlSMHUWty6+lsXMILbBxrcjiI8FH4LVN9XdILQzycOi0eloAgclyyPvB7BwJocEToEruvt4go6XOHBr0P6/6LmX8TlintfGMco= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610073168; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=1wA4Jx78sKg9PzBtfpAryPP+XGFWXitxuuASUH2OQa4=; b=AAgrW7HeV2FhuPkypBcGbMSCOXeNfM7aH0igUa4A8OZ2sEkSJYdrocrRqkUzoB0LaIqr+bdFfhJONeJrLpAgpmVToPrxdILwxn43JCX1abe25eGpYgx9JugU2qGYA8gd9Kr7RJ4R46x6qvdFdLbazXP2jMjySQzXrn0O5B9bw2A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+70003+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 161007316858978.02816023297169; Thu, 7 Jan 2021 18:32:48 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id uNbGYY1788612xqyzGdkQfdl; Thu, 07 Jan 2021 18:32:48 -0800 X-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 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" X-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" X-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: [edk2-devel] [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> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,sumana.venur@intel.com X-Gm-Message-State: sMhkM5P4MQzurkBIrkc3LyDnx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1610073168; bh=TKQbQAqAIS5uNiF+A8ukZ307B+Q4N/Kz/U5uSTylbq8=; h=Cc:Date:From:Reply-To:Subject:To; b=N/CG9tnJwfjBDqmkE+sBomQuWaW30YJwPG6JgvXWSUgf/xR1bNpR2Cz61eEnatX54VT N29f0aDclzueBTATbpyU9RyDnwZLks70dmel6pYHQ39FKs6eftUkQL0hMpAjwRehdBmsZ QiVoxiuVCriwIXGsvXXI12VQu7DZA+zqi1A= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2989 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 s= hadow 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/MdeModu= lePkg/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 =3D Image; --=20 2.16.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#70003): https://edk2.groups.io/g/devel/message/70003 Mute This Topic: https://groups.io/mt/79498239/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-