From nobody Sun Feb 8 14:53:05 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+62444+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+62444+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=9elements.com ARC-Seal: i=1; a=rsa-sha256; t=1594658390; cv=none; d=zohomail.com; s=zohoarc; b=U8+py+7urL+SBlr3WDbRw9xCVV1SuobRObuQk5B9CTgNiHNzXqAA+7kwMYDk/UwOJ0F+RM2HT8TO5EOvkDV1l0D4MoFwjZXgTxa9JfjMiwJieezQtWxY9LQuCBRCtLT1kquuqo3dXRDHkRu0wl0IM8lv+byrig2wrkdQPdNVUOM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594658390; 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=XPfp3+b015twKBcLKU23n7HssLHDYs2wefQD0w8FkKc=; b=N4GzfCRZ6/QTOpXgVxcv6KmXmMZ674b0VvZ6+xWdB3PSrbx3rg5PtMH5CqHnY4/9LThNrj8aAKK2VYEjAu0jbxVeESa46eZXgCIm4Voau7+HhbD6sEJlq100Tt40QUi3QfWm3yQt8Q3SPsblow1xTrKqfmpVfd480Y2E5Kk5uGQ= 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+62444+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 1594658390768780.0050668090923; Mon, 13 Jul 2020 09:39:50 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id H1mCYY1788612xF7DHwsmLNO; Mon, 13 Jul 2020 09:39:50 -0700 X-Received: from mail-ed1-f68.google.com (mail-ed1-f68.google.com [209.85.208.68]) by mx.groups.io with SMTP id smtpd.web12.628.1594658389723181144 for ; Mon, 13 Jul 2020 09:39:50 -0700 X-Received: by mail-ed1-f68.google.com with SMTP id g20so14268165edm.4 for ; Mon, 13 Jul 2020 09:39:49 -0700 (PDT) X-Gm-Message-State: GECspo3zR2tcQhtTceyJy3xHx1787277AA= X-Google-Smtp-Source: ABdhPJxaZDlamQvVPK00SR8VyBCX15inkxg/cMqEx5vTF4asuaqEpyo7a4B4vOLpHyD730nuNUxBpA== X-Received: by 2002:a50:bf09:: with SMTP id f9mr230893edk.249.1594658388097; Mon, 13 Jul 2020 09:39:48 -0700 (PDT) X-Received: from T580.dut.n1ce.space ([2a02:908:e851:d750:f570:655a:1f30:429f]) by smtp.gmail.com with ESMTPSA id aq25sm10319459ejc.11.2020.07.13.09.39.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 09:39:47 -0700 (PDT) From: "Marcello Sylvester Bauer" To: devel@edk2.groups.io Cc: Patrick Rudolph , Christian Walter , Maurice Ma , Nate DeSimone , Star Zeng Subject: [edk2-devel] [PATCH v1 1/2] MdeModulePkg: Fix OptionROM scanning Date: Mon, 13 Jul 2020 18:39:43 +0200 Message-Id: <20200713163944.9893-2-marcello.bauer@9elements.com> In-Reply-To: <20200713163944.9893-1-marcello.bauer@9elements.com> References: <20200713163944.9893-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=1594658390; bh=uIB0fPj55F3gb6wenF110AE3HA1yQNhs3UPMNV/DIYQ=; h=Cc:Date:From:Reply-To:Subject:To; b=pPpSV5lb1i85UzhBinlJxzxlGKKpXt0WokNLWeAByPdQwHjWkuWwKty7OPIBXIa1ihQ lI3IlzMNMae+m0EXu2G6uwsOTFo8glDU3hGLYcakn/ZKl7SJeCJ0j7df49hnpYtkACzBH MQyNV/Pf/CIuDjvOA71TkhwRy9YQwf9GZAc= 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: Maurice Ma Cc: Nate DeSimone Cc: Star Zeng --- 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.27.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 (#62444): https://edk2.groups.io/g/devel/message/62444 Mute This Topic: https://groups.io/mt/75481145/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-