From wkb@chello.nl  Thu Apr  6 15:37:08 2000
Return-Path: <wkb@chello.nl>
Received: from relay01.chello.nl (smtp.chello.nl [212.83.68.144])
	by hub.freebsd.org (Postfix) with ESMTP id D15CC37C165
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Apr 2000 15:37:06 -0700 (PDT)
	(envelope-from wkb@chello.nl)
Received: from chello.nl ([213.46.78.184]) by relay01.chello.nl
          (InterMail vK.4.02.00.00 201-232-116 license 99c8f334c649856e3f2cdadc4054e412)
          with ESMTP id <20000406224539.ORBN18828.relay01@chello.nl>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Fri, 7 Apr 2000 00:45:39 +0200
Received: (from wkb@localhost)
	by chello.nl (8.9.3/8.9.3) id AAA03553;
	Fri, 7 Apr 2000 00:37:01 +0200 (CEST)
	(envelope-from wkb)
Message-Id: <200004062237.AAA03553@chello.nl>
Date: Fri, 7 Apr 2000 00:37:01 +0200 (CEST)
From: wkb@chello.nl
Reply-To: wkb@chello.nl
To: FreeBSD-gnats-submit@freebsd.org
Subject: dc driver for embedded ethernet on Miata MX5 problems
X-Send-Pr-Version: 3.2

>Number:         17833
>Category:       alpha
>Synopsis:       dc driver for embedded ethernet on Miata MX5 problems
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-alpha
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr  6 15:40:00 PDT 2000
>Closed-Date:    Sun Oct 8 13:18:01 PDT 2000
>Last-Modified:  Sun Oct 08 13:20:07 PDT 2000
>Originator:     Wilko Bulte
>Release:        FreeBSD 4.0-R
>Organization:
Private FreeBSD site - The Netherlands
>Environment:

	FreeBSD mx5.wbnet 4.0-RELEASE FreeBSD 4.0-RELEASE #4: Thu Apr  6 
        Digital Personal Workstation PWS500a (Miata MX5)

>Description:

I'm experiencing some problems using the embedded ethernet on the Miata MX5
I have here. This is 4.0R, freshly installed. The symptoms are that the dc
driver reports watchdog timeouts and no network connections can be made.
Using the de driver instead of dc works fine.                         
     
The MX5 has a 10baseT/10base2 bulkhead mounted. It is also possible to have
a 100baseT bulkhead (I have one on my MiataGL) that is connected to another
connector on the PCI riser card.
     
Initially I assumed that maybe the 21143 can't 'see' that it has a
10Mbit-only bulkhead mounted. So I set the SRM ewa0_mode to 10baseT. This 
does not make a difference. I also tried setting 10Mbit mode in rc.conf:
ifconfig_dc0="inet 192.168.200.24  netmask 255.255.255.0 media 10baseT/UTP"
This also did not make a difference. 

Interesting side note: de claims it is a 21142, dc claims it is a 21143
chip. I am not sure if this is relevant.

dc driver boot messages:
     
Apr  6 21:00:40 mx5 /kernel: dc0: <Intel 21143 10/100BaseTX> port
  
0x8000-0x807f mem 0                               
x80850000-0x8085007f irq 0 at device 3.0 on pci0                       
Apr  6 21:00:40 mx5 /kernel: dc0: interrupting at CIA irq 0
Apr  6 21:00:40 mx5 /kernel: dc0: Ethernet address: 00:00:f8:75:3c:6a
 
Apr  6 21:00:40 mx5 /kernel: miibus0: <MII bus> on dc0               
Apr  6 21:00:40 mx5 /kernel: dcphy0: <Intel 21143 NWAY media interface> on
miibus0                                                                
Apr  6 21:00:40 mx5 /kernel: dcphy0:  10baseT, 10baseT-FDX, 100baseTX,   
100baseTX-FDX, auto                                             
Apr  6 21:00:40 mx5 /kernel: dc0: supplying EUI64: 00:00:f8:ff:fe:75:3c:6a

...                                               

Apr  6 21:00:40 mx5 /kernel: dc0: starting DAD for                      
fe80:0001::0200:f8ff:fe75:3c6a                             
Apr  6 21:00:41 mx5 /kernel: dc0: DAD complete for    
fe80:0001::0200:f8ff:fe75:3c6a - no duplicates found     
Apr  6 21:00:45 mx5 /kernel: dc0: watchdog timeout
     
     
de driver boot message:                                                  

de0: <Digital 21142 Fast Ethernet> port 0x8000-0x807f mem
0x80850000-0x8085007f irq 0 at device 3.0 on pci0
de0: interrupting at CIA irq 0
de0: DEC 21142 [10-100Mb/s] pass 1.1
de0: address 00:00:f8:75:3c:6a
de0: enabling 10baseT port
de0: supplying EUI64: 00:00:f8:ff:fe:75:3c:6a
de0: driver is using old-style compatability shims

>How-To-Repeat:


>Fix:

	Current workaround is to use the de driver instead of dc. Please
note that since GENERIC uses the dc driver one cannot install over the
network using bootfloppys.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wilko 
State-Changed-When: Sun Oct 8 13:18:01 PDT 2000 
State-Changed-Why:  
Should be fixed per: 

> wpaul       2000/10/05 10:36:15 PDT 
> 
>   Modified files: 
>     sys/pci              if_dc.c if_dcreg.h 
>     sys/dev/mii          dcphy.c 
>   Log: 
>   Add support for parsing the media blocks from the SROM on 21143 
>   adapters. This is necessary in order to make this driver work with 
>   the built-in ethernet on the alpha Miata machines. These systems 
>   have a 21143-PC chip on-board and optional daughtercards with either 
>   a 10/100 MII transceiver or a 10baseT/10base2 transceiver. In both 
>   cases, you need to twiddle the GPIO bits on the controller in order 
>   to turn the transceivers on, and you have to read the media info 
>   from the SROM in order to find out what bits to twiddle. 

I no longer have the 10base2 module to test this but assume it is fixed. 

Wilko 


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