From gshapiro@gshapiro.net Fri Nov 19 22:40:19 1999
Return-Path: <gshapiro@gshapiro.net>
Received: from horsey.gshapiro.net (horsey.gshapiro.net [209.220.147.178])
	by hub.freebsd.org (Postfix) with ESMTP id 95B9414A05
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 19 Nov 1999 22:40:17 -0800 (PST)
	(envelope-from gshapiro@gshapiro.net)
Received: (from gshapiro@localhost)
	by horsey.gshapiro.net (8.10.0.Beta7/8.10.0.Beta7) id dAK6eHH90651;
	Fri, 19 Nov 1999 22:40:17 -0800 (PST)
Message-Id: <199911200640.dAK6eHH90651@horsey.gshapiro.net>
Date: Fri, 19 Nov 1999 22:40:17 -0800 (PST)
From: gshapiro+freebsd@gshapiro.net
Sender: gshapiro@gshapiro.net
Reply-To: gshapiro+freebsd@gshapiro.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: 3.3-STABLE: 3C574 gives bogus ethernet address
X-Send-Pr-Version: 3.2

>Number:         15003
>Category:       i386
>Synopsis:       3C574 (ep0) reads bogus ethernet address
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    mdodd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 19 22:50:00 PST 1999
>Closed-Date:    Mon Nov 19 19:44:39 PST 2001
>Last-Modified:  Mon Nov 19 19:45:24 PST 2001
>Originator:     Gregory Neil Shapiro
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
>Environment:

From /sys/i386/conf/MONKEYBOY:
device		ep0	at isa? port 0x300 net irq 11

From /etc/pccard.conf:
# 3Com Megahertz 3CXE574B* 10/100 Mbps LAN PC Card
card "3Com" "Megahertz 574B"
        config	0x1 "ep0" 11
        insert	echo 3Com Megahertz 574B Ethernet card inserted
        insert	/etc/pccard_ether -r ep0
        remove	echo 3Com Megahertz 574B Ethernet card removed
        remove	/etc/pccard_ether_remove ep0

>Description:

The latest 3.3-STABLE has begun supporting my PCMCIA Ethernet card (3Com
Megahertz 3CXE574B) using /sys/i386/isa/if_ep.c with the commit of change
1.78.2.4 with one slight problem.  The Ethernet address is read as:

Nov 14 13:21:48 monkeyboy /kernel: Card inserted, slot 1
Nov 14 13:21:58 monkeyboy /kernel: ep0: [*UTP*] address 02:01:02:01:02:01

What I find interesting about the bogus Ethernet address is the number 0201
is also the ID number for the new card in the source:

      case 0x0201: /* 3C574BT */

To make this more interesting, before 3.3-STABLE had this support I was
using the patch committed to 4.0-CURRENT in commits 1.86 and 1.87 and the
card worked fine, including getting the proper Ethernet address.

It appears that the MFC of the changes broken part of it.  In the
4.0-CURRENT code, the epb->prod_id == 0x4b57, in the 3.3-STABLE code, it's
0x0201 which shouldn't happen as the product ID is in the card.

Although the card works fine beyond the bogus Ethernet address, if more
than one of us shows up to a USENIX or IETF with this card, there will be
Ethernet address conflicts.  Any chance this can be fixed before 3.3-STABLE
goes into code slush state in preparation for 3.4?

>How-To-Repeat:

	

>Fix:
	
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: johan 
State-Changed-When: Tue Aug 22 07:56:38 PDT 2000 
State-Changed-Why:  
Is this still a problem in more recent versions of FreeBSD, 
for example 4.1-RELEASE? 



Responsible-Changed-From-To: freebsd-bugs->mdodd 
Responsible-Changed-By: johan 
Responsible-Changed-When: Tue Aug 22 07:56:38 PDT 2000 
Responsible-Changed-Why:  
Over to ep maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15003 
State-Changed-From-To: feedback->open 
State-Changed-By: johan 
State-Changed-When: Thu Aug 24 01:18:39 PDT 2000 
State-Changed-Why:  
From the origination 
--- 
Date: Tue, 22 Aug 2000 13:04:46 -0700 (PDT) (22:04 CEST) 
From: Gregory Neil Shapiro <gshapiro@gshapiro.net> 
To: Johan Karlsson <k@numeri.campus.luth.se> 
Cc: johan@FreeBSD.ORG, gshapiro+freebsd@gshapiro.net, freebsd-bugs@FreeBSD.ORG, 
mdodd@FreeBSD.ORG 
Subject: Re: i386/15003: 3C574 (ep0) reads bogus ethernet address 

johan> Is this still a problem in more recent versions of FreeBSD, 
johan> for example 4.1-RELEASE? 

No, it works fine in 4.1-RELEASE. 

k> I meant to ask if it works in 3.5-RELEASE? :-(  

It wasn't working on 3.4-STABLE... I upgraded to 4.1-STABLE before 3.5 was 
released. 

--- 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15003 
State-Changed-From-To: open->closed 
State-Changed-By: gshapiro 
State-Changed-When: Mon Nov 19 19:44:39 PST 2001 
State-Changed-Why:  
Close my own PR as this isn't an issue any more -- it works in 4.X 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=15003 
>Unformatted:
