From nobody@FreeBSD.org  Thu Mar 17 15:48:32 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 04F4B106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Mar 2011 15:48:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id E97078FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Mar 2011 15:48:31 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p2HFmVLg044515
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Mar 2011 15:48:31 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p2HFmVb0044514;
	Thu, 17 Mar 2011 15:48:31 GMT
	(envelope-from nobody)
Message-Id: <201103171548.p2HFmVb0044514@red.freebsd.org>
Date: Thu, 17 Mar 2011 15:48:31 GMT
From: Dirk Bing <vanatubo@googlemail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: msk driver locks marvel yukon 88E8057 NIC
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         155636
>Category:       kern
>Synopsis:       [msk] msk driver locks marvel yukon 88E8057 NIC
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 17 15:50:18 UTC 2011
>Closed-Date:    Fri Jun 24 00:55:56 UTC 2011
>Last-Modified:  Sun Jun 26 22:40:01 UTC 2011
>Originator:     Dirk Bing
>Release:        8.2 Release
>Organization:
private
>Environment:
FreeBSD xxxxx 8.2-EELEASE FreeBSD 8.2-RELEASE #0 Thu Feb 17 02:41.51 UTC 2011 root@mason.cse.buffalo.edu:usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The msk driver locks my marvel yukon 88E8057 onboard Network card.
After booting, neither ping to nor from any of my network devices
works. Even after a warm restart and booting Windows 7, which is
also installed on the same machine, the network adapter doesn't work
any more. To make it work again, I had to do a cold restart. After
that, it works perfectly with Windows or Ubuntu, which are installed
on the same machine. But when booting FreeBSD, the adapter is locked
again.

I put another NIC into my machine and it received an IP from my
DHCP-server. But nevertheless I was unable to ping any device in my
network. It seemed, like the whole TCP/IP-Stack was locked. After that,
I disabled the Onboard Network in BIOS and rebooted again, so that the
msk driver was not loaded. Only by doing this I could get the second
NIC working. 
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Mar 18 00:07:39 UTC 2011 
Responsible-Changed-Why:  
reclassify. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155636 
State-Changed-From-To: open->feedback 
State-Changed-By: yongari 
State-Changed-When: Mon May 16 20:22:12 UTC 2011 
State-Changed-Why:  
Would you show me dmesg output to identify which controller you have? 
If you have Yukon Ultra2(88E8057 I guess), could you try patch at the 
following URL? Let me know whether it makes any difference for you. 
http://people.freebsd.org/~yongari/msk/msk.ultra2.diff 


Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Mon May 16 20:22:12 UTC 2011 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155636 

From: YongHyeon PYUN <pyunyh@gmail.com>
To: vanatubo@googlemail.com
Cc: freebsd-net@freebsd.org, bug-followup@FreeBSD.org
Subject: Re: kern/155636: [msk] msk driver locks marvel yukon 88E8057 NIC
Date: Fri, 27 May 2011 17:30:40 -0700

 On Mon, May 16, 2011 at 08:24:30PM +0000, yongari@freebsd.org wrote:
 > Synopsis: [msk] msk driver locks marvel yukon 88E8057 NIC
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: yongari
 > State-Changed-When: Mon May 16 20:22:12 UTC 2011
 > State-Changed-Why: 
 > Would you show me dmesg output to identify which controller you have?
 > If you have Yukon Ultra2(88E8057 I guess), could you try patch at the
 > following URL? Let me know whether it makes any difference for you.
 > http://people.freebsd.org/~yongari/msk/msk.ultra2.diff
 > 
 
 I've uploaded updated msk(4) at the following URL.
 http://people.freebsd.org/~yongari/msk/8.2R/if_msk.c
 http://people.freebsd.org/~yongari/msk/8.2R/if_mskreg.h
 
 Download two files above and rebuild msk(4) on 8.2-RELEASE.
 
 > 
 > Responsible-Changed-From-To: freebsd-net->yongari
 > Responsible-Changed-By: yongari
 > Responsible-Changed-When: Mon May 16 20:22:12 UTC 2011
 > Responsible-Changed-Why: 
 > Grab.
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=155636

From: Alex Juk <alexzhuk@teksavvy.com>
To: bug-followup@FreeBSD.org, vanatubo@googlemail.com
Cc:  
Subject: Re: kern/155636: [msk] msk driver locks marvel yukon 88E8057 NIC
Date: Mon, 20 Jun 2011 20:49:15 -0400

 Provided files fixed problem. Network card is working properly. Tested 
 on  8.2-Release amd64.
 
 Thanks
State-Changed-From-To: feedback->closed 
State-Changed-By: yongari 
State-Changed-When: Fri Jun 24 00:55:39 UTC 2011 
State-Changed-Why:  
Fix merged to both stable/8 and stable/7. If you encounter the 
issue again please open a new PR. 
Thanks for reporting! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155636 

From: Ben Fallon <jpf1230@gmail.com>
To: bug-followup@freebsd.org, vanatubo@googlemail.com
Cc:  
Subject: Re: kern/155636: [msk] msk driver locks marvel yukon 88E8057 NIC
Date: Sun, 26 Jun 2011 18:08:21 -0400

 Correction, it still locks up and now with less then 1/3 the previous speed.
 
 On Sun, Jun 26, 2011 at 6:00 PM, Ben Fallon <jpf1230@gmail.com> wrote:
 > Patch stops network lockup but the speed is now less than 1/3 of what
 > it was with the last driver.
 >

From: Ben Fallon <jpf1230@gmail.com>
To: bug-followup@FreeBSD.org, vanatubo@googlemail.com
Cc:  
Subject: Re: kern/155636: [msk] msk driver locks marvel yukon 88E8057 NIC
Date: Sun, 26 Jun 2011 18:00:23 -0400

 Patch stops network lockup but the speed is now less than 1/3 of what
 it was with the last driver.

From: YongHyeon PYUN <pyunyh@gmail.com>
To: Ben Fallon <jpf1230@gmail.com>
Cc: yongari@freebsd.org, bug-followup@FreeBSD.org
Subject: Re: kern/155636: [msk] msk driver locks marvel yukon 88E8057 NIC
Date: Sun, 26 Jun 2011 15:38:49 -0700

 On Sun, Jun 26, 2011 at 10:30:09PM +0000, Ben Fallon wrote:
 > The following reply was made to PR kern/155636; it has been noted by GNATS.
 > 
 > From: Ben Fallon <jpf1230@gmail.com>
 > To: bug-followup@FreeBSD.org, vanatubo@googlemail.com
 > Cc:  
 > Subject: Re: kern/155636: [msk] msk driver locks marvel yukon 88E8057 NIC
 > Date: Sun, 26 Jun 2011 18:00:23 -0400
 > 
 >  Patch stops network lockup but the speed is now less than 1/3 of what
 >  it was with the last driver.
 
 Please make sure you have "cold-booted" your box after applying
 the patch. Col-boot means
  - Unplug power cord from your box
  - Wait 30 secs to 1 min.
  - Replug the power cord
  - Boot
 Does that make any difference?
>Unformatted:
