Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jun 2005 17:47:05 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        current@freebsd.org
Subject:   Re: WARNING: current unstable
Message-ID:  <20050611004705.GD30030@odin.ac.hmc.edu>
In-Reply-To: <20050610221017.GB17775@odin.ac.hmc.edu>
References:  <20050610221017.GB17775@odin.ac.hmc.edu>

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

--hoZxPH4CaxYzWscb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Jun 10, 2005 at 03:10:17PM -0700, Brooks Davis wrote:
> It looks like my test systems were running some of the few drivers that
> aren't suffering from a very strange bug.  You may wish to avoid
> updating.  I'm investigating, but so far, nothing makes much sense. :(

Good news and bad news.  The good news is that I think I've found
the problem (at least I've fixed my vr(4) nic and an fxp nic works).
The bad news is that I broke all the MII based drivers so it's going to
take a while longer to fix (though I hope to do it tonight.)

The problem is that I didn't notice the device_get_softc(<parent>) calls
in mii.c that were being cast to ifnet pointers.  As a result, all mii
based drivers ended up with mii_ifp values that were actually softcs.
I've committed a hack to get the ifp from the softc by dereferencing the
softc pointer.  I now need to audit all miibus users and make sure they
call if_alloc() before mii_phy_probe().  Once I've done that, I need to
work on modifying the mii_phy_probe() API to include the ifp so I can
get rid of the evil casts.

-- Brooks

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--hoZxPH4CaxYzWscb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFCqjSJXY6L6fI4GtQRAkXSAJ4zxJNEuz6rZck4plvlw14ZASVqJwCbBnpG
jS2+6mA6OLlT/Rm40FUrDRw=
=f/8H
-----END PGP SIGNATURE-----

--hoZxPH4CaxYzWscb--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050611004705.GD30030>