Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2011 15:08:05 -0400
From:      Andrew Boyer <aboyer@averesystems.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        jfv@gmail.com, freebsd-hackers@freebsd.org, philip-freebsd1@soeberg.net
Subject:   Re: device_detach() on a device used by ixgbe driver (FreeBSD 7-STABLE through to 9-CURRENT)
Message-ID:  <EE06CEF1-B4A1-46A4-9438-A883EFCFB7B3@averesystems.com>
In-Reply-To: <201105231032.20084.jhb@freebsd.org>
References:  <4DDA6B95.3090704@soeberg.net> <201105231032.20084.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On May 23, 2011, at 10:32 AM, John Baldwin wrote:

> On Monday, May 23, 2011 10:13:41 am Philip Soeberg wrote:
>> I would also expect the ixgbe.c driver to do a quick =
resource_disabled()=20
>> in it's attach() function, so that we can disable specific adapters=20=

>> through kenv hint.ix.0.disabled=3D1..
>=20
> That is not universally supported (i.e. it's not a part of new-bus=20
> specifically).  For buses that support hinted devices, they do all =
generally=20
> support being able to disable a hinted device, but disabling =
bus-enumerated=20
> devices is not generally supported.
>=20

FYI, I submitted a patch to Jack to add this in all of the e1000/ixgbe =
drivers.  Setting a disabled=3D"1" hint causes the attach to fail with =
ENXIO.  I don't know if it's 'correct' or not but it serves a purpose in =
our testing and I thought it would be useful for others.

-Andrew

--------------------------------------------------
Andrew Boyer	aboyer@averesystems.com







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EE06CEF1-B4A1-46A4-9438-A883EFCFB7B3>