From nobody@FreeBSD.org  Thu Oct 21 16:35:00 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 C3FE516A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Oct 2004 16:35:00 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A3FB743D49
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Oct 2004 16:35:00 +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 i9LGZ0YE068996
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Oct 2004 16:35:00 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i9LGZ0Km068995;
	Thu, 21 Oct 2004 16:35:00 GMT
	(envelope-from nobody)
Message-Id: <200410211635.i9LGZ0Km068995@www.freebsd.org>
Date: Thu, 21 Oct 2004 16:35:00 GMT
From: Daniel Engberg <diizzy@telia.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: AMD PCnet/PCI Fast Ethernet driver broken (pcn)
X-Send-Pr-Version: www-2.3

>Number:         72966
>Category:       kern
>Synopsis:       [pcn] [patch] AMD PCnet/PCI Fast Ethernet driver broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 21 16:40:28 GMT 2004
>Closed-Date:    Fri Feb 29 03:07:04 UTC 2008
>Last-Modified:  Fri Feb 29 03:07:04 UTC 2008
>Originator:     Daniel Engberg
>Release:        5.3RC1 / 5.3-STABLE
>Organization:
>Environment:
FreeBSD BOX.BUNDLE 5.3-STABLE FreeBSD 5.3-STABLE #1: Thu Oct 21 17:55:29 CEST 2004
>Description:
When pcn is loaded the NIC is detected and driver loads properly although the interface itself can't transmit or receive data. If you recompile and leave out the pcn driver the kernel will automatically load the lnc driver instead which works.
>How-To-Repeat:
Use the pcn driver for AMD PCNet NICs.
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: obrien 
Responsible-Changed-When: Mon Oct 25 20:21:02 GMT 2004 
Responsible-Changed-Why:  
I used these daily. 

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

From: "Daniel Engberg" <diizzy@telia.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/72966: [if_pcn] AMD PCnet/PCI Fast Ethernet driver broken
Date: Sat, 30 Oct 2004 03:28:14 +0200 (CEST)

 This patch by Matthew N. Dodd seems to do the trick
 ftp://ftp.jurai.net/users/winter/if_pcn.patch , although I'm unsure of
 the 'altq status' for this driver.
 //Danne

From: "Katu" <boynagar@gmail.com>
To: <bug-followup@FreeBSD.org>,
	<diizzy@telia.com>
Cc: <obrien@FreeBSD.org>
Subject: Re: kern/72966: [pcn] [patch] AMD PCnet/PCI Fast Ethernet driver broken
Date: Tue, 25 Oct 2005 12:26:30 +0500

 I see the same symptoms (pcn driver loaded, but cannot receive or =
 transmit data) even with FreeBSD 6.0-RC1.
 My pciconf output below:
 
 pcn0@pci0:17:0: class=3D0x020000 card=3D0x1064103c chip=3D0x20001022 =
 rev=3D0x25 hdr=3D0x00
     vendor   =3D 'Advanced Micro Devices (AMD)'
     device   =3D 'Am79C970/1/2/3/5/6 PCnet LANCE PCI Ethernet =
 Controller'
     class    =3D network
     subclass =3D ethernet
 
 lnc driver works, but prints a lot of meesages like:
 	lnc0: Heartbeat error -- SQE test failed
 

From: "Katu" <boynagar@gmail.com>
To: <bug-followup@FreeBSD.org>,
	<diizzy@telia.com>
Cc: <obrien@FreeBSD.org>
Subject: Re: kern/72966: [pcn] [patch] AMD PCnet/PCI Fast Ethernet driver broken
Date: Tue, 25 Oct 2005 12:26:37 +0500

 I see the same symptoms (pcn driver loaded, but cannot receive or =
 transmit data) even with FreeBSD 6.0-RC1.
 My pciconf output below:
 
 pcn0@pci0:17:0: class=3D0x020000 card=3D0x1064103c chip=3D0x20001022 =
 rev=3D0x25 hdr=3D0x00
     vendor   =3D 'Advanced Micro Devices (AMD)'
     device   =3D 'Am79C970/1/2/3/5/6 PCnet LANCE PCI Ethernet =
 Controller'
     class    =3D network
     subclass =3D ethernet
 
 lnc driver works, but prints a lot of meesages like:
 	lnc0: Heartbeat error -- SQE test failed
 

From: diizzy _ <diizzyy@gmail.com>
To: bug-followup@FreeBSD.org, obrien@FreeBSD.org, boynagar@gmail.com
Cc:  
Subject: Re: kern/72966: [pcn] [patch] AMD PCnet/PCI Fast Ethernet driver broken
Date: Thu, 15 Dec 2005 05:40:57 +0100

 Hi,
 As Katu is saying this issue is still in 6.0 and Dodd's patch doesn't
 apply cleanly anymore as far as I can tell so your only way to get it
 going is to revert back to the lnc driver.
 This is verified in both 6.0-RELEASE and 6.0-STABLE (snapshot from
 14th Dec 2005).
 //Danne

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/72966: commit references a PR
Date: Tue, 28 Nov 2006 05:35:50 +0000 (UTC)

 marius      2006-11-28 01:33:18 UTC
 
   FreeBSD src repository
 
   Modified files:
     sys/pci              if_pcn.c if_pcnreg.h 
   Log:
   - Clear the PCN_MISC_ASEL bit so the media port can be actually set
     via the PCN_CSR_MODE register. Along with sys/dev/mii/nsphy.c 1.26
     this fixes the case of certain Am79c971-based HP cards and on-board
     ones in IBM machines reporting link but not actually passing any
     traffic. [1]
   - Add support for the internal 10baseT PHY, which actually is used on
     at least said HP cards (together with an external DP83840A in a
     multiple PHYs configuration). With cards that don't make use of this
     internal PHY it'll also show up in FreeBSD but not cause any harm.
     This is still missing support for multiple PHYs configuration using
     the internal 100baseTX and/or HomePNA PHYs together with external
     PHYs or multiple external PHYs though.
   - In pcn_ifmedia_upd() call pcn_reset() as otherwise the Am79C971 of
     at least said HP cards can wedge when switching from the internal
     10baseT PHY to the external PHY. This means that we need to also
     initialize and possibly start the chip again in pcn_ifmedia_upd(),
     which isn't that bad though as for setting the media port the chip
     has to be powered down or stopped anyway and unlike documented
     doesn't take effect until the next initialization.
   
   PR:             27995, 25959, 72966 (likely) [1]
   MFC after:      2 weeks
   
   Revision  Changes    Path
   1.81      +66 -12    src/sys/pci/if_pcn.c
   1.15      +8 -4      src/sys/pci/if_pcnreg.h
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/72966: commit references a PR
Date: Sun, 25 Feb 2007 19:02:08 +0000 (UTC)

 marius      2007-02-25 19:02:01 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     sys/pci              if_pcn.c if_pcnreg.h 
   Log:
   MFC: if_pcn.c 1.76, 1.81, 1.82; if_pcnreg.h 1.15
   
   - In detach method, move if_free() after bus_teardown_intr().
   - Clear the PCN_MISC_ASEL bit so the media port can be actually set
     via the PCN_CSR_MODE register. Along with sys/dev/mii/nsphy.c 1.23.2.3
     this fixes the case of certain Am79c971-based HP cards and on-board
     ones in IBM machines reporting link but not actually passing any
     traffic. [1]
   - Add support for the internal 10baseT PHY, which actually is used on
     at least said HP cards (together with an external DP83840A in a
     multiple PHYs configuration). With cards that don't make use of this
     internal PHY it'll also show up in FreeBSD but not cause any harm.
     This is still missing support for multiple PHYs configuration using
     the internal 100baseTX and/or HomePNA PHYs together with external
     PHYs or multiple external PHYs though.
   - Allow multiple (external) PHYs with Am79C97{2,6}, which actually
     only support external PHYs (besides not connectable internal ones
     which respond at the usual addresses, but which don't hurt if we
     let them show up) and don't wedge when isolating PHYs. Actually,
     this change special cases limiting PHYs to Am79C97{3,5,8}, for
     which this driver doesn't implement swiching between the internal
     and external PHYs, yet, and Am79C971, where isolating the external
     PHY (at least in case it's a DP83840A) wedges the chip. Together
     with sys/dev/mii/acphy.c rev. 1.16.2.5 this adds support for the
     100baseFX port of AT-2700 series adaptors, which use two AC101,
     one for the copper and one for the fibre port (there might be
     variants which only use one PHY though).
   - In pcn_ifmedia_upd() call pcn_reset() as otherwise the Am79C971 of
     at least said HP cards can wedge when switching from the internal
     10baseT PHY to the external PHY. This means that we need to also
     initialize and possibly start the chip again in pcn_ifmedia_upd(),
     which isn't that bad though as for setting the media port the chip
     has to be powered down or stopped anyway and unlike documented
     doesn't take effect until the next initialization.
   - Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
   
   PR:             27995, 25959, 72966 (likely) [1]
   
   Revision  Changes    Path
   1.69.2.7  +80 -15    src/sys/pci/if_pcn.c
   1.11.2.3  +8 -4      src/sys/pci/if_pcnreg.h
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Marius Strobl <marius@alchemy.franken.de>
To: bug-followup@FreeBSD.org, diizzy@telia.com, diizzyy@gmail.com
Cc:  
Subject: Re: kern/72966: [pcn] [patch] AMD PCnet/PCI Fast Ethernet driver broken
Date: Wed, 16 May 2007 20:20:40 +0200

 This is believed to be fixed in 7.0-CURRENT and 6.2-STABLE. If you
 still have the problematic NIC could you please give one of these
 a try? Please also report back if you no longer have the NIC.
State-Changed-From-To: open->feedback 
State-Changed-By: obrien 
State-Changed-When: Thu Nov 15 17:18:26 UTC 2007 
State-Changed-Why:  
This is believed to be fixed in 7.0-CURRENT and 6.2-STABLE.  If you 
still have the problematic NIC could you please give one of these 
a try?  Please also report back if you no longer have the NIC. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72966 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Feb 29 03:06:38 UTC 2008 
State-Changed-Why:  
Feedback timeout (> 3 months). 

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