On Sat, Jan 09, 2010 at 12:05:52AM -0600, Ryan Sommers wrote:
> Greetings,
> 
> I've been having some issues with a new Marvell based on-board card.
> Every few days the card (or at least the TCP/IP part) stops
> functioning. I can revive it with a /etc/rc.d/netif restart &&
> /etc/rc.d/routing restart. However, it will just happen again a few
> days later. I've tried the hw.msk.msi_disable=1 tunable in loader.conf
> (not even sure if it would make a difference, but I tried).
> 
> What else can I do to help troubleshoot the driver?
> 

Can you see any messages printed by msk(4)?

> pciconf output
> 
> ms...@pci0:2:0:0:       class=0x020000 card=0x31131297 chip=0x438011ab
> rev=0x10 hdr=0x00
>     vendor     = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
>     device     = 'Marvell Yukon 88E8057 PCI-E Gigabit Ethernet
> Controller (88E8057)'
>     class      = network
>     subclass   = ethernet
> 
> 
> dmesg:
> 
> mskc0: <Marvell Yukon 88E8057 Gigabit Ethernet> port 0xee00-0xeeff mem
> 0xfdbfc000-0xfdbfffff irq 17 at device 0.0 on pci2
> msk0: <Marvell Technology Group Ltd. Yukon Ultra 2 Id 0xba Rev 0x00> on mskc0
> msk0: Ethernet address: 00:30:**:**:**:**
> miibus0: <MII bus> on msk0
> 

It seems I incorrectly set clock frequency for 88E8057. Would you
try attached patch and let me know how it goes?
Index: sys/dev/msk/if_msk.c
===================================================================
--- sys/dev/msk/if_msk.c        (revision 201941)
+++ sys/dev/msk/if_msk.c        (working copy)
@@ -1750,7 +1750,7 @@
                sc->msk_pflags |= MSK_FLAG_JUMBO;
                break;
        case CHIP_ID_YUKON_UL_2:
-               sc->msk_clock = 156;    /* 156 Mhz */
+               sc->msk_clock = 125;    /* 125 Mhz */
                sc->msk_pflags |= MSK_FLAG_JUMBO;
                break;
        default:
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to