Date: Fri, 10 Jun 2005 18:45:41 -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: <20050611014541.GA8521@odin.ac.hmc.edu> In-Reply-To: <20050611004705.GD30030@odin.ac.hmc.edu> References: <20050610221017.GB17775@odin.ac.hmc.edu> <20050611004705.GD30030@odin.ac.hmc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 10, 2005 at 05:47:05PM -0700, Brooks Davis wrote: > 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. :( >=20 > 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.) >=20 > 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. OK, most files were well behaved so I only had six to fix. I've commited changes moving if_alloc() up in those files attach functions. I think this should resolve the currently reported panics. -- 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 --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCqkJEXY6L6fI4GtQRAmPqAJsFv3U/kjUwsZqSz5WBjw5uPfzCaQCfShCC lVL3pKoskhQ38QQdiQqd2jc= =Wut7 -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050611014541.GA8521>