Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Apr 2006 23:43:01 +0400
From:      Oleg Bulyzhin <oleg@freebsd.org>
To:        Tim Kientzle <kientzle@freebsd.org>
Cc:        "'freebsd-current@freebsd.org'" <freebsd-current@freebsd.org>
Subject:   Re: bge problems (bcm5752 broken?)
Message-ID:  <20060417194301.GA98808@lath.rinet.ru>
In-Reply-To: <4441D77F.4050501@freebsd.org>
References:  <4441D77F.4050501@freebsd.org>

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

--mxv5cy4qt+RJ9ypb
Content-Type: multipart/mixed; boundary="wRRV7LY7NUeQGEoC"
Content-Disposition: inline


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

On Sat, Apr 15, 2006 at 10:34:55PM -0700, Tim Kientzle wrote:
> I'm having troubles getting the BCM5752 ethernet
> controller in my new HP DC7600 to work with either
> -CURRENT or 6-STABLE.
>=20
> Running dhclient on bge0 seems to generate no output
> packets (according to tcpdump on another machine)
> and dhclient eventually gives up.  I've also seen
> occasional messages about "firmware timeouts."
>=20
> Any debugging suggestions welcome.  (I've not spent
> much time looking at Ethernet drivers, so I'm
> not really sure where I should start.)
>=20
> Tim Kientzle
>=20

Could you please try attached patch? It may solve your dhclient problem.


--=20
Oleg.


--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="bge_init_intr.diff"
Content-Transfer-Encoding: quoted-printable

Index: 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
RCS file: /home/ncvs/src/sys/dev/bge/if_bge.c,v
retrieving revision 1.91.2.13
diff -u -r1.91.2.13 if_bge.c
--- if_bge.c	4 Mar 2006 09:34:48 -0000	1.91.2.13
+++ if_bge.c	17 Apr 2006 19:39:15 -0000
@@ -3308,6 +3308,14 @@
 =09
 	bge_ifmedia_upd(ifp);
=20
+	sc->bge_link_evt++;
+#ifdef DEVICE_POLLING
+	if (!(sc->bge_ifp->if_capenable & IFCAP_POLLING))
+#endif
+	{
+	BGE_SETBIT(sc, BGE_MISC_LOCAL_CTL, BGE_MLC_INTR_SET);
+	}
+
 	ifp->if_drv_flags |=3D IFF_DRV_RUNNING;
 	ifp->if_drv_flags &=3D ~IFF_DRV_OACTIVE;
=20

--wRRV7LY7NUeQGEoC--

--mxv5cy4qt+RJ9ypb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFEQ+/FryLc73jOEF8RAsTTAJ4qbU793SlmVX59Z+Xcz/nu2H6JqgCeNPrB
ljFHtd//+0zwHZfxM/uIJNQ=
=nLkC
-----END PGP SIGNATURE-----

--mxv5cy4qt+RJ9ypb--



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