Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Dec 2009 18:17:46 -0800
From:      Chris Cowart <ccowart@timesinks.net>
To:        freebsd-net@freebsd.org
Subject:   msk link problems on 8.0
Message-ID:  <20091207021746.GA86085@marvin.timesinks.net>

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

--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<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric=
 0 mtu 2290
|         options=3D118<VLAN_MTU,VLAN_HWTAGGING,TSO4>
|         ether 00:16:cb:ae:5b:1f
|         inet6 fe80::216:cbff:feae:5b1f%gige0 prefixlen 64 scopeid 0x1=20
|         media: Ethernet autoselect (1000baseT <full-duplex,flag0,flag1>)
|         status: active

This interface is configured as a trunk for several VLANs.

| % dmesg | grep msk
| mskc0: <Marvell Yukon 88E8053 Gigabit Ethernet> port 0x1000-0x10ff mem
| 0x50200000-0x50203fff irq 16 at device 0.0 on pci1
| msk0: <Marvell Technology Group Ltd. Yukon EC Id 0xb6 Rev 0x02> on mskc0
| msk0: Ethernet address: 00:16:cb:ae:5b:1f
| miibus0: <MII bus> on msk0
| mskc0: [FILTER]
| % dmesg | grep e1000
| e1000phy0: <Marvell 88E1111 Gigabit PHY> 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--



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