From owner-freebsd-net@FreeBSD.ORG Mon Dec 7 02:17:52 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4834B1065672 for ; Mon, 7 Dec 2009 02:17:52 +0000 (UTC) (envelope-from ccowart@timesinks.net) Received: from jayne.timesinks.net (unknown [IPv6:2607:f358:1a:1a:2000:3::]) by mx1.freebsd.org (Postfix) with ESMTP id D87C68FC14 for ; Mon, 7 Dec 2009 02:17:51 +0000 (UTC) Received: from jayne.timesinks.net (localhost [127.0.0.1]) by jayne.timesinks.net (Postfix) with ESMTP id 2681C5C48 for ; Sun, 6 Dec 2009 18:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=timesinks.net; h=date:from :to:subject:message-id:mime-version:content-type; s=alpha; bh=AI dThgzcNBeGiG2uFSo2zXC+yqs=; b=FeeP62Invu1T56VTJlORyZpHqIlf1lGnTg pkNbqI4dZV+ZCJC5DF6nn6w11F0tdmySvoB/maLmlt6QyPfjsaYeY6J6BwY83Ely xqdmqq5p0mHV2cNseRJBxtUteMdzREPQWXTeHhDw99Rsy/KHVvpy5p9bFtOA1snU hkfD+eJE8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=timesinks.net; h=date:from :to:subject:message-id:mime-version:content-type; q=dns; s=alpha; b= XHEY05TTcMuyhC2XyvDU7rCztLNlXxr0IgXe6pPSs6+oamJUNCn6M3V3yflHWedl uUVbaX+RQwWuu8yzedkakdTkWquzqF8p4ZpD//SFQYe2BE/HxTEEShQwD/GfM4Ol /Bg6g2t3GGsWd+Bbu49zP4q+dcOSC7+cj0+jg3hkRYU= Received: from marvin.timesinks.net (marvin.timesinks.net [72.13.86.105]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: email) by jayne.timesinks.net (Postfix) with ESMTPSA id C862C5C46 for ; Sun, 6 Dec 2009 18:17:46 -0800 (PST) Received: by marvin.timesinks.net (Postfix, from userid 1001) id 6A4EC1701B; Sun, 6 Dec 2009 18:17:46 -0800 (PST) Date: Sun, 6 Dec 2009 18:17:46 -0800 From: Chris Cowart To: freebsd-net@freebsd.org Message-ID: <20091207021746.GA86085@marvin.timesinks.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on jayne.timesinks.net Subject: msk link problems on 8.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2009 02:17:52 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I recently upgraded my home router box to 8.0. Since doing so, I've had some problems with the msk driver. On startup, I'm experiencing the behavior that seems to be documented in kern/139093. Specifically, during network initialization, rc displays the message that it's "Waiting 30s for the default route interface". If I physically flap the link at this point, the system continues booting (when missed, the rest of the system doesn't do so well starting up, but I can flap the link at any future point to get it working). Before and after flapping the link, ifconfig reports the same thing: | % ifconfig msk0 | msk0: flags=3D8943 metric= 0 mtu 2290 | options=3D118 | ether 00:16:cb:ae:5b:1f | inet6 fe80::216:cbff:feae:5b1f%gige0 prefixlen 64 scopeid 0x1=20 | media: Ethernet autoselect (1000baseT ) | status: active This interface is configured as a trunk for several VLANs. | % dmesg | grep msk | mskc0: port 0x1000-0x10ff mem | 0x50200000-0x50203fff irq 16 at device 0.0 on pci1 | msk0: on mskc0 | msk0: Ethernet address: 00:16:cb:ae:5b:1f | miibus0: on msk0 | mskc0: [FILTER] | % dmesg | grep e1000 | e1000phy0: PHY 0 on miibus0 | e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 10= 00baseT-FDX, auto | % pciconf -lv | mskc0@pci0:1:0:0: class=3D0x020000 card=3D0x532111ab chip=3D0x43621= 1ab rev=3D0x22 hdr=3D0x00 | vendor =3D 'Marvell Semiconductor (Was: Galileo Technology Ltd)' | device =3D 'Marvell Yukon 88E8053 PCI-E Gigabit Ethernet Controll= er (88E8053)' | class =3D network | subclass =3D ethernet | % uname -a | FreeBSD gw.ccowart.com 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #0: Sun | Dec 6 14:43:41 PST 2009 root@gw.ccowart.com:/usr/obj/usr/src/sys/ROUTER | amd64 I have the following in my /boot/loader.conf as a workaround that I believe dates back to 7.0: | hw.msk.msi_disable=3D"1" I also have "-txcsum" in the interface configuration to address an earlier bug (both of these may have been resolved at this point; I just haven't been daring enough to test it). Having read the PR, I copied sys/dev/{msk,e1000} from HEAD into the 8.0-p1 source tree and installed the resulting kernel. The behavior did not change. If anyone has any alternative patching I could do, either against 8.0 or HEAD for these drivers, I'd be more than willing to try them out. On a related note, last night, when the system did boot, I would also run into a problem where the following message would be logged: "msk0: Rx FIFO overrun!". Once logged, the NIC seemed to be completely wedged and unusable. Doing ifconfig down/up did not help things. At the time, I hadn't discovered the physical down/up workaround, so I can't speak to whether that would have helped (and this error condition hasn't recurred (knock on wood)). I don't know if the issues are related or separate, but if you have any ideas, I'd like to be prepared if it comes up again. Thanks for the help, --=20 Chris Cowart http://www.timesinks.net/ --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iQIcBAEBAgAGBQJLHGXJAAoJEGdJs2Q92uldezIP/0j0nBGNIFrMX+ztduaDrudT PEbU7DAq8+Y8sVDmoxK34vX1snod4s4JdBDpFAAtYyA4Z1/nGk2GqL+WWfPt9gjf CJFzDEgpgUKQiA40BUKu6HvD+T+65CafWZd//TRqV7RgPfTWjiExDkU1ANI4rtJE N9XSvB8nFG3+etzmOVzrQ6v1tAnpHZZnt5HXOlZaVLzlaZZCnNz2C2k/BlC4otLp Ejw8Qp/TLNOrWNPCCq0z95GnqTQncyR2O44OmzwIjumv6AqlnFtSnuR/jV5ZoQnL lEPwtLIoOvBGqgDT6P3NLIsPXP8my2cIE4BbtqyWUEtiDn6qgYnI2H31+s3nkM1t zWftTFxsQfD5aIRuoVhM6MEVbokqxcX6HZFoAjzi14bIs5ibiY+CXJQ4xGzRaucw jgFtouuo2eqqAstDO/claD6gtUmT5gD4dVyP7D7A76BnRbkImKUmiPTWpXgr4xM6 P2EJFCHM3wNxKOtYoHCFaZVqBEyJY733diasp6UD/8tTy0SSAUVTAad/x92BC5Sh 701QBrQUA9mVnu8+JD7Ow81gDF/VDxQmrx1Eb0w3aYVRKTqTbmaVVz/PWmu6Hz88 EU4Gr16SperO/jBXPLTCrTpCLXH0vbKmf6spd20v1ic3t2zWRZMul9sooLRmVZA3 0n9UE0vdZJuUw8x+v+QE =/7yF -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--