From oliver@kobo.de  Sun Mar  2 06:11:36 2003
Return-Path: <oliver@kobo.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5AA7937B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  2 Mar 2003 06:11:36 -0800 (PST)
Received: from mx01.nexgo.de (mx01.nexgo.de [151.189.8.96])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2A68D43F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  2 Mar 2003 06:11:35 -0800 (PST)
	(envelope-from oliver@kobo.de)
Received: from schaengel.ko.kobo.de (dsl-213-023-050-166.arcor-ip.net [213.23.50.166])
	by mx01.nexgo.de (Postfix) with ESMTP id 9D7E33BF29
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  2 Mar 2003 15:11:31 +0100 (CET)
Received: from newyork.ko.kobo.de (newyork.ko.kobo.de [192.168.8.10])
	by schaengel.ko.kobo.de (8.12.6/8.12.6) with ESMTP id h22Dl2Xb011047
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 2 Mar 2003 14:47:06 +0100 (CET)
	(envelope-from oliver@dallas.ko.kobo.de)
Received: from dallas.ko.kobo.de (dallas.ko.kobo.de [192.168.8.32])
	by newyork.ko.kobo.de (8.12.6/8.12.6) with ESMTP id h22Dl1xH026749
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 2 Mar 2003 14:47:02 +0100 (CET)
	(envelope-from oliver@dallas.ko.kobo.de)
Received: from dallas.ko.kobo.de (localhost [127.0.0.1])
	by dallas.ko.kobo.de (8.12.6/8.12.6) with ESMTP id h22Dl17n077558
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 2 Mar 2003 14:47:01 +0100 (CET)
	(envelope-from oliver@dallas.ko.kobo.de)
Received: (from oliver@localhost)
	by dallas.ko.kobo.de (8.12.6/8.12.6/Submit) id h22DknEi077557;
	Sun, 2 Mar 2003 14:46:49 +0100 (CET)
	(envelope-from oliver)
Message-Id: <200303021346.h22DknEi077557@dallas.ko.kobo.de>
Date: Sun, 2 Mar 2003 14:46:49 +0100 (CET)
From: Oliver Schneider <os@kobo.de>
Reply-To: Oliver Schneider <os@kobo.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: dc cannot handle DC21142/3 PCI/CardBus 10/100 Mbit Ethernet Ctlr rev=0x21 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         48837
>Category:       kern
>Synopsis:       [dc] dc cannot handle DC21142/3 PCI/CardBus 10/100 Mbit Ethernet Ctlr rev=0x21
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mbr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 02 06:20:09 PST 2003
>Closed-Date:    Mon Oct 24 08:48:03 GMT 2005
>Last-Modified:  Mon Oct 24 08:48:03 GMT 2005
>Originator:     Oliver Schneider
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD dallas.ko.kobo.de 4.7-STABLE FreeBSD 4.7-STABLE #0: Sat Jan 11 00:33:05 CET 2003 root@dallas.ko.kobo.de:/usr/obj/usr/src/sys/DALLAS i386

>Description:
	The dc driver is responsible for DC21142/3 PCI/CardBus 10/100 Mbit Ethernet Ctlr.

	It tries to handle (afaik) all revisions of this NIC. If have two different 
	revisions, in this case rev=0x21 and rev=0x41. On the old card it fails. 
	The difference between these two cards is bigger as you might think, 0x21 
	is an 10/100 MBit NIC with a TP _AND_ a Coax Connector (of course Coax uses 
	10Mbit only). The 0x41 card has a TP connector only. 

	The de driver can deal with the revision 0x21, but you have to remove dc 
	from your kernel configuration. So no GENERIC kernel will work at all. The 
	card is detected as dc0 and no media is present. The de driver works with 
	autodection only btw.

	I guess the error is not critical because this NIC is not very popular.

	I couldn't find a line where the dc driver checks for revision. I have more 
	than one of these cards, so feel free to ask for a test of a patch. The 
	problems appeared on a few systems and different Releases.

	de0@pci0:2:0:	class=0x020000 card=0x2b001109 chip=0x00191011 rev=0x21 hdr=0x00
	    vendor   = 'Digital Equipment Corporation'
	    device   = 'DC21142/3 PCI/CardBus 10/100 Mbit Ethernet Ctlr'
	    class    = network
	    subclass = ethernet

	dc0@pci0:10:0:	class=0x020000 card=0x00000000 chip=0x00191011 rev=0x41 hdr=0x00
	    vendor   = 'Digital Equipment Corporation'
	    device   = 'DC21142/3 PCI/CardBus 10/100 Mbit Ethernet Ctlr'
	    class    = network
	    subclass = ethernet

	0x21 fails and 0x41 works fine (with a very good performance).

>How-To-Repeat:
	Every time you boot GENERIC. This problem exists for longer period of time.
	
>Fix:
	Workaraound: remove the dc line from kernel configuration, de works with 
	autodetection of the media type, only. My C programming skills are too bad 
	to fix the problem by myself. 

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mbr 
Responsible-Changed-By: mbr 
Responsible-Changed-When: Sun Mar 2 06:46:05 PST 2003 
Responsible-Changed-Why:  
I do if_dc work currently. If you can, please send me such 
a card and I'll fix the driver. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48837 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Mon Oct 24 08:46:09 GMT 2005 
State-Changed-Why:  
Feedback timeout (> 1 year).  Assignee had offered to work on this PR 
if sent a card but there is no further information in GNATS as to whether 
that actually happened.  In the meantime there have been so many changes 
to the source base that surely this PR would have been obsolete anyway. 

Hat:	bugmeister 

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