From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f67.google.com (mail-ej1-f67.google.com [209.85.218.67]) by mx.groups.io with SMTP id smtpd.web10.16469.1594635728391343412 for ; Mon, 13 Jul 2020 03:22:08 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@9elements.com header.s=google header.b=SAiF7J9D; spf=pass (domain: 9elements.com, ip: 209.85.218.67, mailfrom: marcello.bauer@9elements.com) Received: by mail-ej1-f67.google.com with SMTP id y10so16255309eje.1 for ; Mon, 13 Jul 2020 03:22:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Sk62mqGWAAPH0RNYFr6UPj+b1sGR07Z/fjy6dXLsau0=; b=SAiF7J9DaxEANPBGHaZZsm9Y7F4MMdU4mCfelFeU0xry96DoiX5i1qu+JDzKmV8cou yE0D037CYEyljg8hjac8HW1g9NDpZvlOIJ4BV7y9q9Id+zF9TzNlySTM8zDWyXCdfWHb CCGYlhLhmZUboeS5G8wGjtP94Q4fPpWYN+yozr3XbSofjhCKDHF3CXjVYiubwCrLZq4K BXjmlRcvqNQLsRSq7re4EQr0UyQmycxkSlmGU7aD+6mqTq8h+x5UgFgfQcw75fl4Hlz0 YZlMBkU6pPCUi4Nep6qtPO7MQSt8Q7F9lJWSIdyOkAdGzXNAax+PXmb0MRZ9Sg/Sw+It 1c9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Sk62mqGWAAPH0RNYFr6UPj+b1sGR07Z/fjy6dXLsau0=; b=mj2NrkB0bqi6s89YVaQ6dsPQHeryyze7ewu0z40/YF/TpAeK4VtW5OEKl+UK1PfMFa SSWF39rzOzoALwMmEOlkuPXRLbmDYtIrDd8vhKRrvf5xBy+22BKkN+VKgHRx0bBFBeMw 8GJkzq3gdjIojBlnXOshQaaYKlWpxi+GdVfGVvhKC/48f9IlzqdszmV+Bpefv1EhFJPy M1Vf9Ykk1zSk4EGiluRQ297NfzrMX722K+aztGY84DZ0MTFwvZyOAQuRKLWpLSAS9fND FFyXSL6SPD5MckcYzHdWGktCw8yH8LLani5ugMC2vvry08jlzZAT6fD4J5Wbg8x2rv3s /hSg== X-Gm-Message-State: AOAM533jEqZJgVYzFZiqadgSiGGFXTZO/2j28vHQK/ZdBXPc2bIOgYHC rnGAFjU7YCeWXjmsP0stOsOAWuh4hkQ5cA== X-Google-Smtp-Source: ABdhPJylg+3Qpl5LkYR+x8er8WE+1RTkERINFuyAxMsbJGeMBRqXRkzgY78WYdTp1Xx+K1XjPpIpIw== X-Received: by 2002:a17:906:abc9:: with SMTP id kq9mr74155968ejb.493.1594635726650; Mon, 13 Jul 2020 03:22:06 -0700 (PDT) Return-Path: Received: from T580.dut.n1ce.space ([2a02:908:e851:d750:f570:655a:1f30:429f]) by smtp.gmail.com with ESMTPSA id rv16sm9587106ejb.60.2020.07.13.03.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 03:22:06 -0700 (PDT) From: "Marcello Sylvester Bauer" To: devel@edk2.groups.io Cc: Patrick Rudolph , Christian Walter , Maurice Ma , Nate DeSimone , Star Zeng Subject: [PATCH v1 1/2] MdeModulePkg: Fix OptionROM scanning Date: Mon, 13 Jul 2020 12:22:01 +0200 Message-Id: <20200713102202.814-2-marcello.bauer@9elements.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200713102202.814-1-marcello.bauer@9elements.com> References: <20200713102202.814-1-marcello.bauer@9elements.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 ( //=0D RemoveRejectedPciDevices (RootBridgeDev->Handle, RootBridgeDev);=0D =0D - //=0D - // Process option rom light=0D - //=0D - ProcessOptionRomLight (RootBridgeDev);=0D + if (!PcdGetBool (PcdPciDisableBusEnumeration)) {=0D + //=0D + // Process option rom light=0D + //=0D + ProcessOptionRomLight (RootBridgeDev);=0D + }=0D =0D //=0D // Determine attributes for all devices under this root bridge=0D --=20 2.27.0