From owner-freebsd-stable@FreeBSD.ORG Wed Aug 29 21:12:33 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FF3D10656D7; Wed, 29 Aug 2012 21:12:33 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 24D448FC19; Wed, 29 Aug 2012 21:12:33 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 747FAB987; Wed, 29 Aug 2012 17:12:32 -0400 (EDT) From: John Baldwin To: Andriy Gapon Date: Wed, 29 Aug 2012 13:32:35 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p17; KDE/4.5.5; amd64; ; ) References: <503C930C.3010405@entel.upc.edu> <503E1F02.6050505@entel.upc.edu> <503E2453.9040407@FreeBSD.org> In-Reply-To: <503E2453.9040407@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201208291332.35888.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 29 Aug 2012 17:12:32 -0400 (EDT) Cc: Gustau =?utf-8?q?P=C3=A9rez_i_Querol?= , freebsd-stable@freebsd.org Subject: Re: Problem adding more than 8 network adapters X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2012 21:12:33 -0000 On Wednesday, August 29, 2012 10:16:51 am Andriy Gapon wrote: > on 29/08/2012 16:54 Gustau P=C3=A9rez i Querol said the following: > > Al 29/08/2012 15:30, En/na Andriy Gapon ha escrit: > >> I wonder where the discrepancy could come from. > >> Why would VirtualBox emulate the bridge differently for different OSes? > >> And I do not see any quirks related to bus numbers for this PCI ID in = either > >> Linux, FreeBSD or lspci code... > >> > >> I think that output of lspci on FreeBSD could be interesting too (it's= available > >> via sysutils/pciutils port). > >> > >=20 > > The output of lspci gives the same info as pciconf. I'm attaching it= however. > [snip] > > 00:18.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2) = (prog-if 01 [Subtractive decode]) > > Flags: bus master, 66MHz, fast devsel, latency 0 > > Bus: primary=3D01, secondary=3D01, subordinate=3D02, sec-latency=3D0 > > !!! Unknown I/O range types e0/df > > !!! Unknown memory range types f100/f0ff > >=20 > > 00:19.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2) = (prog-if 01 [Subtractive decode]) > > Flags: bus master, 66MHz, fast devsel, latency 0 > > Bus: primary=3D02, secondary=3D02, subordinate=3D03, sec-latency=3D0 > > !!! Unknown I/O range types e0/df > > !!! Unknown memory range types f100/f0ff >=20 > I think that I was wrong with regard to Linux. I see that it does extens= ive > bridge reconfiguring if it notices any insanity. And I'd say that Virtua= lBix does > create an insane config here. > I believe that primary should be 0, secondary should be 1 and 2 respectiv= ely (as > they are) and subordinate should be equal to secondary. So primary bus n= umbers > and subordinate bus numbers are insane here. > I am not sure how much the incorrect bus numbers actually affect FreeBSD = PCI-PCI > driver as it does not seem to use primary and subordinate numbers for any= thing > important. The problem is that it affects the routing of PCI config requests, so it ne= eds to be correct. Fixing our PCI code to properly renumber buses as needed is= a WIP I have, but it's not ready for testing yet to see if it would help with= this case. =2D-=20 John Baldwin