Received: from eggs.gnu.org ([2001:4830:134:3::10]:55620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z33PE-0000Ii-Mr for qemu-devel@nongnu.org; Thu, 11 Jun 2015 10:24:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z33PA-0006sR-8R for qemu-devel@nongnu.org; Thu, 11 Jun 2015 10:24:31 -0400 Received: from mail-vn0-f47.google.com ([209.85.216.47]:36305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z33PA-0006sE-4b for qemu-devel@nongnu.org; Thu, 11 Jun 2015 10:24:28 -0400 Received: by vnbg1 with SMTP id g1so1255769vnb.3 for ; Thu, 11 Jun 2015 07:24:27 -0700 (PDT) Date: Thu, 11 Jun 2015 10:24:25 -0400 From: Kevin O'Connor Message-ID: <20150611142425.GA10763@morn.localdomain> References: <1434029828-31954-1-git-send-email-marcel@redhat.com> <20150611135841.GA7998@morn.localdomain> <55799751.1030904@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55799751.1030904@redhat.com> Subject: Re: [Qemu-devel] [PATCH V2] pci: fixes to allow booting from extra root pci buses. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcel Apfelbaum Cc: seabios@seabios.org, lersek@redhat.com, qemu-devel@nongnu.org, mst@redhat.com On Thu, Jun 11, 2015 at 05:12:33PM +0300, Marcel Apfelbaum wrote: > On 06/11/2015 04:58 PM, Kevin O'Connor wrote: > >On Thu, Jun 11, 2015 at 04:37:08PM +0300, Marcel Apfelbaum wrote: > >>The fixes solves the following issue: > >>The PXB device exposes a new pci root bridge with the > >>fw path: /pci-root@4/..., in which 4 is the root bus number. > >>Before this patch the fw path was wrongly computed: > >> /pci-root@1/pci@i0cf8/... > >>Fix the above issues: Correct the bus number and remove the > >>extra host bridge description. > > > >Why is that wrong? The previous path looks correct to me. > The prev path includes both the extra root bridge and *then* the usual host bridge. > /pci-root@1/pci@i0cf8/ ... > ^ new ^ regular ^ devices > > Since the new pci root bridge (and bus) is on "paralel" with the regular one. > it is not correct to add it to the path. > > The architecture is: > //devices... > /extra root bridge/devices... > /extra root bridge/devices... > And not > /extra root bridge///devices Your patch changed both the "/extra root bridge/devices..." part and the "@1" part. The change of the "@1" in "/pci-root@1/" is not correct IMO. Does open-firmware have any examples for PCI paths and in particular PCI paths when there are multiple root-buses? It's possible to replace the "pci@i0cf8" with "pci-root@1" but that seems odd as the extra root bus is accessible via io accesses to 0x0cf8. Another option would be to place the pci-root@1 behind the pci@i0cf8 as in "/pci@i0cf8/pci-root@1/...". Or, the root bus could be appended to the host bridge as in "/pci@i0cf8,1/...". -Kevin