From owner-freebsd-current@FreeBSD.ORG Mon Jun 18 22:13:22 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 58F8216A46B for ; Mon, 18 Jun 2007 22:13:22 +0000 (UTC) (envelope-from davidch@broadcom.com) Received: from mms1.broadcom.com (mms1.broadcom.com [216.31.210.17]) by mx1.freebsd.org (Postfix) with ESMTP id 301C213C484 for ; Mon, 18 Jun 2007 22:13:21 +0000 (UTC) (envelope-from davidch@broadcom.com) Received: from [10.10.64.154] by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.1)); Mon, 18 Jun 2007 15:13:10 -0700 X-Server-Uuid: 6B5CFB92-F616-4477-B110-55F967A57302 Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id 2C44D2AF; Mon, 18 Jun 2007 15:13:10 -0700 (PDT) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.10.64.221]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id 173A02AE; Mon, 18 Jun 2007 15:13:10 -0700 (PDT) Received: from mail-irva-12.broadcom.com (mail-irva-12.broadcom.com [10.10.64.146]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id FJW82389; Mon, 18 Jun 2007 15:13:09 -0700 (PDT) Received: from NT-IRVA-0750.brcm.ad.broadcom.com ( nt-irva-0750.brcm.ad.broadcom.com [10.8.194.64]) by mail-irva-12.broadcom.com (Postfix) with ESMTP id A754869CA3; Mon, 18 Jun 2007 15:13:09 -0700 (PDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Mon, 18 Jun 2007 15:13:08 -0700 Message-ID: <09BFF2FA5EAB4A45B6655E151BBDD90304398D45@NT-IRVA-0750.brcm.ad.broadcom.com> In-Reply-To: <2a41acea0706181443w41164255n63be01e021eccc90@mail.gmail.com> Thread-Topic: HELP: EM bus_alloc_resource_any fails on Dell Dimension 9150 Thread-Index: Acex8eVfRgEs92tzSBOaEqIRRLxvnQAAf0og References: <2a41acea0706181443w41164255n63be01e021eccc90@mail.gmail.com> From: "David Christensen" To: "Jack Vogel" , "FreeBSD Current" X-WSS-ID: 6A69DCFC37045627573-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Cc: Subject: RE: HELP: EM bus_alloc_resource_any fails on Dell Dimension 9150 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 22:13:22 -0000 > I have a problem that I've never seen before, and although=20 > I've poked at > it a bit I'm kinda stuck. Anyone more knowledgable than I in the bus > code care to offer suggestions? >=20 > Here's the situation: Dell Dimension 9150, you put in a PCI-E 4 port > E1000 adapters... ya I know this makes it a configuration unlikely > to be used :)... and besides that works fine... The problem arises > when you ALSO stick in an 82541_GI, which is just PCI... >=20 > When you load the em driver it attaches the 4 ports just fine, but > then the lowly 541 fails bus_alloc_resource_any() of the IO PORT. >=20 > It isnt the code, if you remove the 4 port card the 541 will attach > and work without a whimper. >=20 > So, there's something happening in PCI space and its resources > here that the current em driver is not equipped to handle, and I > would really like to understand what it is. >=20 > Suggestions to help me debug this? >=20 How much I/O space does each adapter require? PCI specification seems to limit I/O space to 256 bytes per function. How much I/O space is=20 the upstream PCIe switch configured to support? Are there any other I/O devices downstream from the same PCIe switch? If you disable a single function on the quad-port device does the allocation work? What does "pciconf -lv" return on the system? Dave