From owner-freebsd-current@FreeBSD.ORG Mon Apr 17 19:43:05 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A48716A404; Mon, 17 Apr 2006 19:43:05 +0000 (UTC) (envelope-from oleg@lath.rinet.ru) Received: from lath.rinet.ru (lath.rinet.ru [195.54.192.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1175543D55; Mon, 17 Apr 2006 19:43:03 +0000 (GMT) (envelope-from oleg@lath.rinet.ru) Received: from lath.rinet.ru (localhost [127.0.0.1]) by lath.rinet.ru (8.13.4/8.13.4) with ESMTP id k3HJh2Zk098882 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 Apr 2006 23:43:02 +0400 (MSD) (envelope-from oleg@lath.rinet.ru) Received: (from oleg@localhost) by lath.rinet.ru (8.13.4/8.13.4/Submit) id k3HJh1Q9098881; Mon, 17 Apr 2006 23:43:01 +0400 (MSD) (envelope-from oleg) Date: Mon, 17 Apr 2006 23:43:01 +0400 From: Oleg Bulyzhin To: Tim Kientzle Message-ID: <20060417194301.GA98808@lath.rinet.ru> References: <4441D77F.4050501@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mxv5cy4qt+RJ9ypb" Content-Disposition: inline In-Reply-To: <4441D77F.4050501@freebsd.org> User-Agent: Mutt/1.5.11 Cc: "'freebsd-current@freebsd.org'" Subject: Re: bge problems (bcm5752 broken?) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 19:43:05 -0000 --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--