From nobody Mon Feb 9 15:30:20 2026 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+89256+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+89256+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1650882895; cv=none; d=zohomail.com; s=zohoarc; b=ditxuN2xTFh/qBygyFWzDjYJZl+K/ir/SUlGqwnbT6BGxBHwbhncGMkNlvh/dtOpGN3XFxUhJZDC/DsN85kk9g1jnGu+hJbwXarXXrqIn4Wa6x39rrJspoKXlHSVeNfDobYtcaqcMVogQ+TbIj8ft/a/TI07CV9WTC3b+2xzqtQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650882895; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=ng7LkWsrWPxVAwchOsfHw91I7mg5p/o4hZHUXEn7Yy8=; b=Zx0dQcSyUzexvVxGDTIHidkOg3bRBW639bHGmZl4Z99FAFeWfYX23O0YtHvPgbkXkUoVNAQjLtfsIN8Cn54DKizMZGnPuqJxbVKlU04jIBY8lemi7C5yp5BjqdpLkaxOxL3NjImWkapLqQbdD0YmOIv43GiF9Ph6C2BCrZw6a/g= 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+89256+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1650882895512473.11986324902546; Mon, 25 Apr 2022 03:34:55 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 2F6cYY1788612xPL1LpUQdX3; Mon, 25 Apr 2022 03:34:55 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web09.27937.1650882894126860864 for ; Mon, 25 Apr 2022 03:34:54 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-636-E7CI2SMNPK6FAWgNctdNdw-1; Mon, 25 Apr 2022 06:34:49 -0400 X-MC-Unique: E7CI2SMNPK6FAWgNctdNdw-1 X-Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 48E76802809; Mon, 25 Apr 2022 10:34:49 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0203540D017A; Mon, 25 Apr 2022 10:34:48 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id C9EE218003BA; Mon, 25 Apr 2022 12:34:46 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Jiewen Yao , Oliver Steffen , Leif Lindholm , Pawel Polawski , Hao A Wu , Abner Chang , Liming Gao , Ray Ni , Jordan Justen , Jian J Wang , Ard Biesheuvel , Gerd Hoffmann , Ard Biesheuvel Subject: [edk2-devel] [PATCH v6 1/6] MdeModulePkg/PciHostBridge: io range is not mandatory Date: Mon, 25 Apr 2022 12:34:41 +0200 Message-Id: <20220425103446.496763-2-kraxel@redhat.com> In-Reply-To: <20220425103446.496763-1-kraxel@redhat.com> References: <20220425103446.496763-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,kraxel@redhat.com X-Gm-Message-State: Nf56Fs3bXnUpkdt2xIFmqUsux1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1650882895; bh=l4w/fjjR/VcX5qWNoFsYBOPFy1BUxIZq4YMpTwCEfb0=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=nLByEQk7UtTA0dih49lzPMpYqaNxg95ivepAiu4t7ScwQ06KJfwzScJ+Lx0Fu4MRslC HxaHVctlHtHWmGFeSmKZveHi5Lv/jaApNlxOY0iW5vQO0toJJ6tEnY606/ndD5+aFI4Pk OA8sHPHglq+tCNhj78we1IjWphkyfHrAWDQ= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1650882896323100002 Content-Type: text/plain; charset="utf-8"; x-default="true" io range is not mandatory according to pcie spec, so allow bridge configurations without io address space assigned. Signed-off-by: Gerd Hoffmann Reviewed-by: Ard Biesheuvel Reviewed-by: Abner Chang --- MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c b/MdeMod= ulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c index b20bcd310ad5..712662707931 100644 --- a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c +++ b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c @@ -1085,6 +1085,9 @@ NotifyPhase ( RootBridge->ResAllocNode[Index].Base =3D BaseAddress; RootBridge->ResAllocNode[Index].Status =3D ResAllocated; DEBUG ((DEBUG_INFO, "Success\n")); + } else if ((Index =3D=3D TypeIo) && (RootBridge->Io.Base =3D= =3D MAX_UINT64)) { + /* optional on PCIe */ + DEBUG ((DEBUG_INFO, "PCI Root Bridge does not provide IO Res= ources.\n")); } else { ReturnStatus =3D EFI_OUT_OF_RESOURCES; DEBUG ((DEBUG_ERROR, "Out Of Resource!\n")); --=20 2.35.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 (#89256): https://edk2.groups.io/g/devel/message/89256 Mute This Topic: https://groups.io/mt/90681713/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-