From owner-freebsd-stable@FreeBSD.ORG Sat Jun 2 12:03:12 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 0A7861065676 for ; Sat, 2 Jun 2012 12:03:12 +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 D5DCD8FC1C for ; Sat, 2 Jun 2012 12:03:11 +0000 (UTC) Received: from ralph.baldwin.cx (c-68-39-198-164.hsd1.de.comcast.net [68.39.198.164]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 3F09CB95E; Sat, 2 Jun 2012 08:03:11 -0400 (EDT) From: John Baldwin To: freebsd-stable@freebsd.org Date: Sat, 2 Jun 2012 07:34:58 -0400 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: <1338158623.3702.5.camel@powernoodle-l7> In-Reply-To: <1338158623.3702.5.camel@powernoodle-l7> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201206020734.58385.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Sat, 02 Jun 2012 08:03:11 -0400 (EDT) Cc: Sean Bruno Subject: Re: [stable 9]Dell R620 Ethernet Ordering 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: Sat, 02 Jun 2012 12:03:12 -0000 On Sunday, May 27, 2012 06:43:43 PM Sean Bruno wrote: > I'm trying to understand the newbus and acpi interactions on this Dell > R620 that result in the Broadcom adapter board being probed "backwards" > or just plain out of order in comparison to the connector layout and the > linux tg3 driver. > > We seem to be detecting PCI0:2:0 before PCI0:1:0. This seems odd to me. > When I replace the broadcom daughter card with an intel daughter card, > this does not show up, so I assume either a malfunction of the Dell ACPI > tables or the bge(4) driver. Oof, you confused me. You are detecting bus PCI domain 0 bus 1 after PCI domain 0 bus 2. A dmesg would be more useful here. FreeBSD walks the PCI tree in a deterministic depth-first order, and we enumerate host bridges in the order ACPI enumerates them. Looking at the ACPI dump, you have 3 host bridges, PCI bus 0, and two uncore busses for your CPU sockets. So busses 1 and 2 must be children of bus 0. It would seem that bus 2 comes before bus 1 on PCI bus 0. You can tell this by seeing what the parent pcibX device of busses 1 and 2 are and looking at the address of that pcibX device on PCI bus 0. -- John Baldwin