Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2013 11:16:50 +0900
From:      Yonghyeon PYUN <pyunyh@gmail.com>
To:        Boris Samorodov <bsam@passap.ru>
Cc:        FreeBSD Stable Users <freebsd-stable@freebsd.org>
Subject:   Re: regression: msk0 watchdog timeout and interrupt storm
Message-ID:  <20131030021650.GA3106@michelle.cdnetworks.com>
In-Reply-To: <526FBA53.9000208@passap.ru>
References:  <526FBA53.9000208@passap.ru>

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

--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Oct 29, 2013 at 05:38:27PM +0400, Boris Samorodov wrote:
> Hi Yonghyeon and All,
> 

Hi,

> >From time to time I use a notebook and boot FreeBSD from USB
> stick. FreeBSD 9.2-i386 works OK. So I tried to use
> FreeBSD 10.0-i386 BETA2 and the network adapter works for
> some 10-15 seconds and then stops with diagnostic message
> "msk0:watchdog timeout". I've found similar case at
> freebsd-current@ with no workaround. Yes, there is an
> interrupt storm as well.

There had been no functional changes for very long time so I'm not
sure what's going on here.  I've attached local change I have at
this moment but I'm afraid it wouldn't address the issue above.

I recall jhb also reported interrupt storm in the past but the root
cause was not identified yet.  Could you change msk_intr() and let
me know which interrupt is firing?
> 
> Here is some additional info:
> -----
> mskc0@pci0:3:0:0:       class=0x020000 card=0xff501179 chip=0x435511ab
> rev=0x12 hdr=0x00
>     vendor     = 'Marvell Technology Group Ltd.'
>     device     = '88E8040T PCI-E Fast Ethernet Controller'
>     class      = network
>     subclass   = ethernet
>     cap 01[48] = powerspec 3  supports D0 D1 D2 D3  current D0
>     cap 05[5c] = MSI supports 1 message, 64 bit enabled with 1 message
>     cap 10[c0] = PCI-Express 2 legacy endpoint max data 128(128) link x1(x1)
>                  speed 2.5(2.5) ASPM disabled(L0s/L1)
>     ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected
>     ecap 0003[130] = Serial 1 b8b063ffff681e00
> -----
> 
> -- 
> WBR, Boris Samorodov (bsam)
> FreeBSD Committer, http://www.FreeBSD.org The Power To Serve

--HcAYCG3uE/tztfnV
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="msk.link.diff"

Index: sys/dev/msk/if_msk.c
===================================================================
--- sys/dev/msk/if_msk.c	(revision 257303)
+++ sys/dev/msk/if_msk.c	(working copy)
@@ -4071,12 +4071,12 @@
 	CSR_WRITE_4(sc, B0_IMSK, sc->msk_intrmask);
 	CSR_READ_4(sc, B0_IMSK);
 
+	ifp->if_drv_flags |= IFF_DRV_RUNNING;
+	ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
+
 	sc_if->msk_flags &= ~MSK_FLAG_LINK;
 	mii_mediachg(mii);
 
-	ifp->if_drv_flags |= IFF_DRV_RUNNING;
-	ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
-
 	callout_reset(&sc_if->msk_tick_ch, hz, msk_tick, sc_if);
 }
 

--HcAYCG3uE/tztfnV--



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