From owner-freebsd-stable@FreeBSD.ORG Wed Mar 9 10:56:19 2011 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 80A44106564A for ; Wed, 9 Mar 2011 10:56:19 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 04BEB8FC08 for ; Wed, 9 Mar 2011 10:56:18 +0000 (UTC) Received: from [10.0.2.78] (ppp203-122-198-153.lns6.adl6.internode.on.net [203.122.198.153]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id p29Au7ep078639 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 9 Mar 2011 21:26:08 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: "Daniel O'Connor" In-Reply-To: <20110309101734.GA42208@alchemy.franken.de> Date: Wed, 9 Mar 2011 21:26:07 +1030 Content-Transfer-Encoding: quoted-printable Message-Id: <7B8A7FC8-2547-4A63-8BCC-3CCDF39211D2@gsoft.com.au> References: <20110309101734.GA42208@alchemy.franken.de> To: Marius Strobl X-Mailer: Apple Mail (2.1082) X-Spam-Score: 0.163 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: freebsd-stable Subject: Re: Disable probing of bge1? 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, 09 Mar 2011 10:56:19 -0000 On 09/03/2011, at 20:47, Marius Strobl wrote: >> Is it possible to use some device.hints entry to prohibit the probing = of bge1? >> I think that would be the easiest solution to the problem? Other = suggestions >> are of course welcome. I can provide more config details and dmesg = output >> if needed. >>=20 >=20 > Unfortunately, there's currently no generic way to disable probing/ > attaching of specific PCI devices. You'd need to hack the driver > like in the following example to achieve that: > Index: /usr/src/sys/dev/bge/if_bge.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- /usr/src/sys/dev/bge/if_bge.c (revision 213448) > +++ /usr/src/sys/dev/bge/if_bge.c (working copy) > @@ -2472,6 +2472,9 @@ bge_attach(device_t dev) > u_char eaddr[ETHER_ADDR_LEN]; > int error, msicount, reg, rid, trys; >=20 > + if (device_get_unit(dev) =3D=3D 1) > + return (ENXIO); > + > sc =3D device_get_softc(dev); > sc->bge_dev =3D dev; Does.. hint.bge.0.disabled=3D"1" in the loader work? (I suspect not but am ever hopeful..) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C