From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-x229.google.com (mail-it0-x229.google.com [IPv6:2607:f8b0:4001:c0b::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EF0BE21A16ED1 for ; Tue, 30 May 2017 09:34:29 -0700 (PDT) Received: by mail-it0-x229.google.com with SMTP id r63so44750323itc.1 for ; Tue, 30 May 2017 09:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=OxwoHFOPca/zGpEUeAr8HinV9x0eFbEM0YXlHiGxTAY=; b=g/ZlZXbPUlck6rzOiqMznRLJTqhvkKFlLFI6Qoor/Wl4KlDYRb8cb8w+VvFJgFmaLP QkVNHgTWelvPfyVN4WmiupGawEEwCJOwXXvxT92errxIqDIpVSj8fShDAVJkEgDB4JK5 +LPAL3DYWHVvcroe06Pdc5KGrz5i7ESVlRdlg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=OxwoHFOPca/zGpEUeAr8HinV9x0eFbEM0YXlHiGxTAY=; b=Lb+lFf3ufrVCP7vITIqcUqcuGAX3hMgs0XmqVsSltnm6tYa77p6neu6PqMPIFsfd8S wy9JQrPNuJBRzxMQ7re74L6v9UmnFN2h2tondNYHb3q53vJODm2Ri2c6DdN3pGZV0yhz 5Jt2VQEHB0lRaSOWj6DtYihwDY/3aAEJrmuyo2eOQFX6XdjXR+DVeQyucLquiiGPudSk DE46Gnj/roSStmC9YTS9blYTl0DAguEJmYHk9txuTzSngQQM+xqAldcQqAErjW9bRtEq LRoqfFiCVEfWpxkRsn/KlQyMG7rZFwKG5DYr4gDXPGECf4cduyzBGMnL7Pn8mIWiJZfv 0c3A== X-Gm-Message-State: AODbwcCrP6JXBf3KAn3t1WIqkMEzwbNwCPeDV5BzIL15YSCzB449XVRR XcJ81lasSMnFoiLlPkc+IqCH7VCtfyP0 X-Received: by 10.36.24.4 with SMTP id 4mr3063081itr.6.1496162128683; Tue, 30 May 2017 09:35:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.164.24 with HTTP; Tue, 30 May 2017 09:35:28 -0700 (PDT) In-Reply-To: <4220315aed43c05b37b1b71a9eff432e@mail.gmail.com> References: <4220315aed43c05b37b1b71a9eff432e@mail.gmail.com> From: Ard Biesheuvel Date: Tue, 30 May 2017 16:35:28 +0000 Message-ID: To: Vladimir Olovyannikov Cc: "edk2-devel@lists.01.org" Subject: Re: Using a generic PciHostBridgeDxe driver for a multi-PCIe-domain platform X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 May 2017 16:34:30 -0000 Content-Type: text/plain; charset="UTF-8" On 30 May 2017 at 16:23, Vladimir Olovyannikov wrote: > Hi, > > I've started PCIe stack implementation design for an armv8 aarch64 > platform. > The platform's PCIe represents several host bridges, and each hostbridge > has one rootbridge. > They do not share any resources between each other. > Looking into the PciHostBridgeDxe implementation I can see that it > supports only one hostbridge, and there is a comment: > // Most systems in the world including complex servers have only one Host > Bridge. > > So in my case should I create my own PciHostBridgeDxe driver supporting > multiple hostbridges and do not use the Industry standard driver? > I am very new to it, and will appreciate any help or idea. > As far as I can tell, PciHostBridgeLib allows you to return an arbitrary number of PCI host bridges, each with their own segment number. I haven't tried it myself, but it is worth a try whether returning an array of all host bridges on your platform works as expected.