From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web09.3713.1660201683775984287 for ; Thu, 11 Aug 2022 00:08:03 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=V9TtDPn9; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: k.kavyax.sravanthi@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660201683; x=1691737683; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=WaQRCy09OGEmD6CaLSVCHyHcTo0bc69sTJibV4LN8jw=; b=V9TtDPn9CZYGvXhwSNFOnI5FSXQcGZEY2z7wXG4SpRa8OgLInBqE0Gqg Gp6D1pD5vkVFVKp6Bvk6Wc1wF9syXgB6+0Ru5k1+Kv9AlrXObP09OOkk2 R7REqstoSNyg7k9lnt70Hy7M8K9RdYxL46ld3kumvYkdYzDkuvZJlnbb7 0DnBw0N5tWKEB1XHLU3y8psoGO4Fv55CzIVNVoXJYgXH8cV8NVONFGExh yzpYKjNVbAyNBDOOOtVJOFAwj+p3MNeoqUMq0dEnNssBsI7nQ3hYrWWCj pZPr4Zue1Rrkth2CbHVoL1wFXz3fHNO43r41PfsX5kd2g7gyjKWTMiXZY w==; X-IronPort-AV: E=McAfee;i="6400,9594,10435"; a="291277344" X-IronPort-AV: E=Sophos;i="5.93,228,1654585200"; d="scan'208";a="291277344" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2022 00:08:02 -0700 X-IronPort-AV: E=Sophos;i="5.93,228,1654585200"; d="scan'208";a="634102882" Received: from ksravanx-mobl.gar.corp.intel.com ([10.215.185.94]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2022 00:08:00 -0700 From: "kavya" To: devel@edk2.groups.io Cc: Kavya , Guo Dong , Ray Ni , Sean Rhodes , Gua Guo Subject: [PATCH] UefiPayloadPkg: Return PciRootBridges instead of NULL Date: Thu, 11 Aug 2022 12:37:39 +0530 Message-Id: <20220811070739.1973-1-k.kavyax.sravanthi@intel.com> X-Mailer: git-send-email 2.35.1.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Return PciRootBridges instead of NULL and set PcdPciDisableBusEnumeration to FALSE when root bridge count is zero. Cc: Guo Dong Cc: Ray Ni Cc: Sean Rhodes Cc: Gua Guo Signed-off-by: Kavya --- UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeSupport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeSupport.c b/UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeSupport.c index e1faa24ae7..fb76853072 100644 --- a/UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeSupport.c +++ b/UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeSupport.c @@ -549,6 +549,7 @@ RetrieveRootBridgeInfoFromHob ( } if (PciRootBridgeInfo->Count == 0) { + PcdSetBoolS (PcdPciDisableBusEnumeration, FALSE); return NULL; } @@ -589,9 +590,8 @@ RetrieveRootBridgeInfoFromHob ( if (PciRootBridgeInfo->ResourceAssigned) { PcdSetBoolS (PcdPciDisableBusEnumeration, TRUE); } else { - DEBUG ((DEBUG_ERROR, "There is root bridge whose ResourceAssigned is FALSE\n")); + DEBUG ((DEBUG_INFO, "There is root bridge whose ResourceAssigned is FALSE\n")); PcdSetBoolS (PcdPciDisableBusEnumeration, FALSE); - return NULL; } return PciRootBridges; -- 2.30.2.windows.1