From rsimmons@wtf.wlcg.com  Tue Mar 20 21:03:07 2001
Return-Path: <rsimmons@wtf.wlcg.com>
Received: from wtf.wlcg.com (wtf.wlcg.com [207.226.17.30])
	by hub.freebsd.org (Postfix) with ESMTP id BCAA037B718
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 20 Mar 2001 21:03:06 -0800 (PST)
	(envelope-from rsimmons@wtf.wlcg.com)
Received: (from rsimmons@localhost)
	by wtf.wlcg.com (8.11.1/8.11.1) id f2L52N200874;
	Wed, 21 Mar 2001 00:02:23 -0500 (EST)
	(envelope-from rsimmons)
Message-Id: <200103210502.f2L52N200874@wtf.wlcg.com>
Date: Wed, 21 Mar 2001 00:02:23 -0500 (EST)
From: User Rsimmons <rsimmons@wtf.wlcg.com>
Reply-To: rsimmons@wtf.wlcg.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: pcn driver disables nic after kernel is loaded
X-Send-Pr-Version: 3.2

>Number:         25959
>Category:       kern
>Synopsis:       pcn driver disables nic after kernel is loaded
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 20 21:10:02 PST 2001
>Closed-Date:    Sun Dec 2 14:53:16 PST 2001
>Last-Modified:  Sun Feb 25 19:10:16 GMT 2007
>Originator:     rsimmons
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
westlake
>Environment:
FreeBSD wtf.wlcg.com 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:55 GMT 2000     jkh@bento.FreeBSD.org:/usr/src/sys/compile/GENERIC  i386

	

>Description:
During the loading of the kernel the pcn driver disables (?) the network card and renders it useless.

	

>How-To-Repeat:
Load a kernel with the pcn driver on a IBM Netfinity 5500 with the onboard adapter that is supported by this driver, it will disable the card.

	

>Fix:
Remove the network cable from the nic during the loading of the kernel during the boot process.  After the boot process plug in the network cable and continue as you were.

	

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sun Dec 2 14:24:14 PST 2001 
State-Changed-Why:  

Does this still occur? If so, the output of "dmesg" from a kernel 
booted with the verbose (-v) flag might be useful. Does changing 
the media type with the ifconfig "media" command help? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25959 
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Sun Dec 2 14:53:16 PST 2001 
State-Changed-Why:  

Mail to submitter bounces. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25959 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/25959: 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/25959: 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"
 
>Unformatted:
