From nobody@FreeBSD.org  Wed Sep  1 07:02:11 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 37C7416A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  1 Sep 2004 07:02:11 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2E70F43D1F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  1 Sep 2004 07:02:11 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i8172BO5023707
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 1 Sep 2004 07:02:11 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i8172BO9023706;
	Wed, 1 Sep 2004 07:02:11 GMT
	(envelope-from nobody)
Message-Id: <200409010702.i8172BO9023706@www.freebsd.org>
Date: Wed, 1 Sep 2004 07:02:11 GMT
From: hshh <hunreal@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Device sk0 hands up when data transfering
X-Send-Pr-Version: www-2.3

>Number:         71229
>Category:       kern
>Synopsis:       Device sk0 hands up when data transfering [6-CURRENT]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 01 07:10:26 GMT 2004
>Closed-Date:    Sat Dec 25 10:06:36 GMT 2004
>Last-Modified:  Sat Dec 25 10:06:36 GMT 2004
>Originator:     hshh
>Release:        6.0-CURRENT
>Organization:
hshh.org
>Environment:
FreeBSD my.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Mon Aug 30 19:21:19 CST 2004     root@tv:/usr/obj/usr/src/sys/my  i386
>Description:
       I cvsup the src to the lastest.
But still got sk0 error when data transfering,

Aug 30 20:32:01 tv kernel: sk0: discard frame w/o leading ethernet
header (len 0 pkt len 0)
Aug 30 20:32:01 tv kernel: sk0: discard oversize frame (ether type
7201 flags 3 len 1738 > max 1514)

>How-To-Repeat:
      When data transfering. Apear often in large data transfer
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Ceri Davies <ceri@submonkey.net>
To: FreeBSD Gnats Submit <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: kern/71229: Device sk0 hands up when data transfering
Date: Wed, 1 Sep 2004 11:34:36 +0100

 See also kern/69879.
 

From: Jeremy Chadwick <freebsd@jdc.parodius.com>
To: freebsd-gnats-submit@FreeBSD.org, hunreal@gmail.com
Cc:  
Subject: Re: kern/71229: Device sk0 hands up when data transfering
Date: Fri, 5 Nov 2004 02:50:09 -0800

 I can confirm this exact behaviour on other vendors' motherboards,
 particularly Gigabyte.  The chipset in question:
 
 ===
 skc0: <Marvell Gigabit Ethernet> port 0xa000-0xa0ff mem 0xf9044000-0xf9047fff irq 20 at device 9.0 on pci1
 skc0: Yukon Gigabit Ethernet 10/100/1000Base-T Adapter
 sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
 sk0: Ethernet address: 00:0f:ea:31:f0:ee
 miibus1: <MII bus> on sk0
 e1000phy0: <Marvell 88E1000 Gigabit PHY> on miibus1
 e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
 
 skc0@pci1:9:0:  class=0x020000 card=0xe0001458 chip=0x432011ab rev=0x13 hdr=0x00
     vendor   = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
     device   = '88E8001 Gigabit 32-bit Ethernet Controller with Integrated PHY'
     class    = network
     subclass = ethernet
 ===
 
 The errors in question when doing large transfers:
 
 ===
 Nov  4 23:51:57 icarus kernel: sk0: discard frame w/o leading ethernet header (len 0 pkt len 0)
 Nov  4 23:51:57 icarus kernel: sk0: discard oversize frame (ether type 0 flags 3 len 9022 > max 1514)
 Nov  4 23:51:57 icarus kernel: sk0: discard oversize frame (ether type 0 flags 3 len 1556 > max 1514)
 Nov  4 23:51:57 icarus kernel: sk0: discard frame w/o leading ethernet header (len 0 pkt len 0)
 Nov  4 23:51:57 icarus kernel: sk0: discard oversize frame (ether type 0 flags 3 len 9022 > max 1514)
 Nov  4 23:51:57 icarus kernel: sk0: discard oversize frame (ether type 0 flags 3 len 7524 > max 1514)
 Nov  4 23:51:57 icarus kernel: sk0: discard oversize frame (ether type e889 flags 3 len 9022 > max 1514)
 Nov  4 23:51:57 icarus kernel: sk0: discard oversize frame (ether type eb3a flags 3 len 3840 > max 1514)
 ...and so on...
 ===
 
 Operating system is 5.3-RELEASE (as of Nov 5 2004 -- today).
 
 I have managed to circumvent this problem by forcing the sk0 interface
 to 100baseTX + full-duplex instead of autodetect (which normally picks up
 1000baseTX + full-duplex, since it's connected to a GbE switch).
 
 This is definitely looking to be some sort-of driver problem, and IMHO
 has very little to do with motherboard BIOS revisions as implied in the
 aforementioned PR (kern/69879).  kern/69789, IMHO, should have never
 been closed.
 
 -- 
 | Jeremy Chadwick                                 jdc at parodius.com |
 | Parodius Networking                        http://www.parodius.com/ |
 | UNIX Systems Administrator                   Mountain View, CA, USA |
 | Making life hard for others since 1977.                             |
 
State-Changed-From-To: open->feedback 
State-Changed-By: bz 
State-Changed-When: Sat Nov 20 13:01:32 GMT 2004 
State-Changed-Why:  
Patches have been committed to HEAD which should help. 
Please give them a try and let us know if the probelms are gone? 


Responsible-Changed-From-To: freebsd-bugs->bz 
Responsible-Changed-By: bz 
Responsible-Changed-When: Sat Nov 20 13:01:32 GMT 2004 
Responsible-Changed-Why:  
mine... 

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

From: "Heinz Knocke" <knockefreebsd@o2.pl>
To: <freebsd-gnats-submit@FreeBSD.org>, <hunreal@gmail.com>
Cc:  
Subject: Re: kern/71229: Device sk0 hands up when data transfering [6-CURRENT]
Date: Mon, 13 Dec 2004 23:25:54 +0100

 I confirm that it happens also on FreeBSD RELENG_5_3 (p2 from Dec 8 =
 2004) Gigabyte and ASUS P4P800 SE motherboards (Intel 865PE chipset and =
 on-board Marvell 88E8001 NIC). I've noticed that only the following =
 messages appers in the messages system log:
 
 
 Dec 13 21:24:10 myhost kernel: sk0: discard frame w/o leading ethernet =
 header (len 0 pkt len 0)
 
 
 and only on tcp sender doing massive bulk data transfer when NIC is set =
 to 1000baseTX (other options:=20
 
 
 sk0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         (...)
         media: Ethernet autoselect (1000baseTX =
 <full-duplex,flag0,flag1>)
 
 
 
 Heinz Knocke
State-Changed-From-To: feedback->closed 
State-Changed-By: bz 
State-Changed-When: Sat Dec 25 09:57:46 GMT 2004 
State-Changed-Why:  
A patch has been applied to if_sk.c in HEAD and MFCed to RELENG_5 
and Heinz Knocke confirmed that jumbo frame support now works. 
Thanks for reporting and testing. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71229 
>Unformatted:
