From nobody Mon Feb 9 04:44:15 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+65272+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+65272+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=9elements.com ARC-Seal: i=1; a=rsa-sha256; t=1600172783; cv=none; d=zohomail.com; s=zohoarc; b=JtrMAT/ThUDT1Ltk/R6mlmS/ikj2aUlVxJTI6G9cNgsM4XMOFp1LUkGBOLP4xvI0TAdKUofWdnTKHHO+Ga9J8CFH9SQf0r/S+O7tCNDg0LZTNhoZaVCI/wevTxyOn3XJNDfjtF9M7E/tzCJRl4d5nNr8NWSiTejH0oP+4KobQ2w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600172783; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=QegvDxBUikd/xonh/85/+FnUB6cFIBqvYMMVL62W1NI=; b=NuFveDqmeY7EMY0pGNjtT6tKovZaDA/4j3ElLBfCVPp4jbcyhwFf6DqRa7vtct7UtXnh4AnHRKErrSdaWOKep5aiax5yS7LDoE21Sxpbxx5n7yoz+iVW58j5Pr+gkB7PywDbalODjznaf6duWWl11uIAWxwrilr8vz8XsW6v8yw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+65272+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1600172783218241.5726423394259; Tue, 15 Sep 2020 05:26:23 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id B6ouYY1788612xkR1lhCeyzI; Tue, 15 Sep 2020 05:26:22 -0700 X-Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) by mx.groups.io with SMTP id smtpd.web10.12065.1600172782228063603 for ; Tue, 15 Sep 2020 05:26:22 -0700 X-Received: by mail-ej1-f68.google.com with SMTP id q13so4718730ejo.9 for ; Tue, 15 Sep 2020 05:26:21 -0700 (PDT) X-Gm-Message-State: rnrRtZlNh1H5Oy5bLPIR5TW1x1787277AA= X-Google-Smtp-Source: ABdhPJyxvn/rU7G1/kiRiA0fCp/d5jOg35V9EIjQMcoEGL53bGjOtjnEfVEEzAahu5cKUrIibYxoDA== X-Received: by 2002:a17:906:474f:: with SMTP id j15mr21054891ejs.468.1600172780437; Tue, 15 Sep 2020 05:26:20 -0700 (PDT) X-Received: from T14.n1ce.space ([2a02:908:e851:d750:5f43:5410:2022:1d7c]) by smtp.gmail.com with ESMTPSA id x25sm11217064edv.42.2020.09.15.05.26.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 05:26:20 -0700 (PDT) From: "Marcello Sylvester Bauer" To: devel@edk2.groups.io Cc: Patrick Rudolph , Christian Walter , Hao A Wu , Jian J Wang , Ray Ni Subject: [edk2-devel] [PATCH v2 1/2] MdeModulePkg: Fix OptionROM scanning Date: Tue, 15 Sep 2020 14:26:15 +0200 Message-Id: <20200915122616.17196-2-marcello.bauer@9elements.com> In-Reply-To: <20200915122616.17196-1-marcello.bauer@9elements.com> References: <20200915122616.17196-1-marcello.bauer@9elements.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,marcello.bauer@9elements.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1600172782; bh=c+ETo20LZLpdXmRjzve5buLqYXF/gE7JwkE821wuVcI=; h=Cc:Date:From:Reply-To:Subject:To; b=M5mioz6ki4J4SkTckaKR00mkHxSDWVeeP5eCr6ROxy9HWohI+spSiIt4KhIp3NNXPuC Nsm/UURD/+04qXnVJlJbHeo2VYoI4nojUURbc/iBskkZih73F3Q/7l/qvMI08UI4CMQo9 GipTiGd5HSnwNmjPnheIy/C42BkHOdfDOkk= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Patrick Rudolph The Option ROM scanner can't work as enumeration was done by the first stage bootloader. Running it will disable the ability of the PCIPlatform code to scan for ROMs. Required for the following patch that enables custom Option ROM scanning using gPciPlatformProtocol. Signed-off-by: Patrick Rudolph Signed-off-by: Marcello Sylvester Bauer Cc: Patrick Rudolph Cc: Christian Walter Cc: Hao A Wu Cc: Jian J Wang Cc: Ray Ni --- MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c b/MdeMod= ulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c index 6c68a97d4e46..7420f0079f7d 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c @@ -2530,10 +2530,12 @@ PciEnumeratorLight ( // RemoveRejectedPciDevices (RootBridgeDev->Handle, RootBridgeDev); =20 - // - // Process option rom light - // - ProcessOptionRomLight (RootBridgeDev); + if (!PcdGetBool (PcdPciDisableBusEnumeration)) { + // + // Process option rom light + // + ProcessOptionRomLight (RootBridgeDev); + } =20 // // Determine attributes for all devices under this root bridge --=20 2.28.0 -=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 (#65272): https://edk2.groups.io/g/devel/message/65272 Mute This Topic: https://groups.io/mt/76863516/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-