From nobody Mon Feb 9 15:11:13 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+90138+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+90138+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1654159348; cv=none; d=zohomail.com; s=zohoarc; b=hH7b7uxc9tvKWQKEm9INXBCfudgW2aRg9uTMk4JavyShMuRwpkaELQj38CqjjyN6nZjTmUvhXWgNKmn+FFNKEOwqHTPbsw/TuKbpFLnP5SCWgcAklGwWrPNQIEWc9k9F6Le/OC6u7afyPAraA9ZYhjhtuUeiQ0nhmRIGHbjxL5g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654159348; 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=PTgWlm9Nvz8DmycWobCSl1nL66spQ6EQI6Q9w8ER7Ss=; b=QJ/ce+sOTJNNjsoyIVIFIw+MRDnN7B9BTzqYWceVOrKbCp1PPYq7S7rLts6Ie9nV8mIiqCoZWqnUoAh71/YUUwtDiNSZHmtTI5lT1gloosZjrdMHEf44RFYrFuYncLnRmxDFnbMA4pF15Kxt3YE8uDASJq6uUO8MLbG/pUrzlpc= 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+90138+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 1654159348840683.6522734134495; Thu, 2 Jun 2022 01:42:28 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id gKO1YY1788612xBDfx4SLYD7; Thu, 02 Jun 2022 01:42:23 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web12.4352.1654159342618250751 for ; Thu, 02 Jun 2022 01:42:22 -0700 X-Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-45-bWidjuj_M_e7uk4O5R2sHQ-1; Thu, 02 Jun 2022 04:42:18 -0400 X-MC-Unique: bWidjuj_M_e7uk4O5R2sHQ-1 X-Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1CADF296A62F; Thu, 2 Jun 2022 08:42:18 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.194.92]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C96CE1121314; Thu, 2 Jun 2022 08:42:17 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 673801800397; Thu, 2 Jun 2022 10:42:16 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Hao A Wu , Pawel Polawski , Ard Biesheuvel , mateusz.albecki@intel.com, Abner Chang , Ray Ni , Leif Lindholm , Jiewen Yao , Oliver Steffen , Liming Gao , Gerd Hoffmann , Jian J Wang , Jordan Justen , Ard Biesheuvel Subject: [edk2-devel] [PATCH v7 1/6] MdeModulePkg/PciHostBridge: io range is not mandatory Date: Thu, 2 Jun 2022 10:42:11 +0200 Message-Id: <20220602084216.159028-2-kraxel@redhat.com> In-Reply-To: <20220602084216.159028-1-kraxel@redhat.com> References: <20220602084216.159028-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 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: 4uWc67LtcBtw5hSEny8lhOlrx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1654159343; bh=JJ0cmWSjOEF2TL6zbOjyCv6RbWmoEwDfZHEZZUl3mUg=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=rmEk+kRanZMrDYJLADIks+CFmZyOR9V8MYOya/0dDEHn4HBfGMqFyWCpVR2Cav6+/mm V80uxskPtwhS/qKvif9Z1/XXcCvw7drGcs+18m23cdiZfCv0Xqf6LEASIbHQ02mO6DPYc qQYavlEQVaMTJnzYFGZQfgom57xdjHvRRJs= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1654159350705100002 Content-Type: text/plain; charset="utf-8"; x-default="true" io range is not mandatory according to pcie spec, so allow pcie host bridge configurations without io window in case there are no io reservations. Signed-off-by: Gerd Hoffmann Reviewed-by: Ard Biesheuvel --- MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c b/MdeMod= ulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c index b20bcd310ad5..354be6dbb313 100644 --- a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c +++ b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c @@ -1085,6 +1085,12 @@ 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) && + (RootBridge->ResAllocNode[Index].Length =3D=3D 0)) + { + /* I/O is optional on PCIe */ + DEBUG ((DEBUG_INFO, "Success (PCIe NoIO)\n")); } else { ReturnStatus =3D EFI_OUT_OF_RESOURCES; DEBUG ((DEBUG_ERROR, "Out Of Resource!\n")); --=20 2.36.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 (#90138): https://edk2.groups.io/g/devel/message/90138 Mute This Topic: https://groups.io/mt/91495635/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-