msk(4) intermittent dieing

Pyun YongHyeon pyunyh at gmail.com
Sat Jan 9 23:07:07 UTC 2010


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
> 
> mskc0 at 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?
-------------- next part --------------
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:


More information about the freebsd-net mailing list