From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0iSy-0004SP-FL for qemu-devel@nongnu.org; Thu, 12 May 2016 00:43:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0iSu-0005fI-7F for qemu-devel@nongnu.org; Thu, 12 May 2016 00:43:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0iSu-0005fD-11 for qemu-devel@nongnu.org; Thu, 12 May 2016 00:43:12 -0400 Date: Thu, 12 May 2016 12:43:06 +0800 From: Peter Xu Message-ID: <20160512044306.GA4678@pxdev.xzpeter.org> References: <1462948831-931-1-git-send-email-peterx@redhat.com> <1462948831-931-2-git-send-email-peterx@redhat.com> <20160511165251-mutt-send-email-mst@redhat.com> <20160512024057.GB3679@pxdev.xzpeter.org> <20160511212203.6affa0b5@t450s.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160511212203.6affa0b5@t450s.home> Subject: Re: [Qemu-devel] [PATCH] pci: fix requester id to be the one on root bus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Williamson Cc: "Michael S. Tsirkin" , qemu-devel@nongnu.org, pbonzini@redhat.com, jan.kiszka@web.de, rkrcmar@redhat.com On Wed, May 11, 2016 at 09:22:03PM -0600, Alex Williamson wrote: [...] > PCI Express to PCI/PCI-X Bridge Specification rev 1.0 > 2.3 Assignment of Requester ID and Tag by the Bridge > > PCIe-to-PCI bridges assign a requester ID composed of the secondary bus > number with devfn = 0. Although often on real hardware, the root > complex PCI bridge uses the actual bridge requester ID even though > it's actually a PCIe bridge. Linux assume that if a bridge has a PCIe > capability with type PCIe-to-PCI/X bridge we use the secondary bus > requester ID, if it has a PCIe capability with type PCI/X-to-PCIe, we > use the bridge requester ID. If it does not have a PCIe capability we > use the bridge ID except for a few quirked devices known to use the > secondary bus ID. Yay standards! Thanks, Thanks Alex! I have found pci and pci-to-pci bridge specs, which seems useful to me. However, I still cannot find pcie-to-pci bridge spec online (as you have mentioned above). Is that only for registered users? -- peterx