NetBSD Problem Report #11925

Received: (qmail 11161 invoked from network); 10 Jan 2001 05:23:20 -0000
Message-Id: <200101100523.VAA29140@nbwww.isc.org>
Date: Tue, 9 Jan 2001 21:23:20 -0800 (PST)
From: vkd79@yahoo.com
Reply-To: vkd79@yahoo.com
To: gnats-bugs@gnats.netbsd.org
Subject: Integrated 3Com netcard not working
X-Send-Pr-Version: www-1.0

>Number:         11925
>Category:       kern
>Synopsis:       Integrated 3Com netcard not working
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 10 05:24:00 +0000 2001
>Closed-Date:    
>Last-Modified:  Thu Apr 18 23:02:00 +0000 2002
>Originator:     Victor
>Release:        NetBSD 1.5 (generic kernel)
>Organization:
N/A
>Environment:
NetBSD 1.5 (GENERIC) i386
(I don't have NetBSD running at the moment). The boot floppy can't access the interface.
>Description:
My ethernet controller cannot access the internet. The interface is a 3Com card built in into Dell Precision Workstation 410. Windows reports it as 

3Com 3c918 Integrated Fast Ethernet Controller
(3c905B-TX Compatible)

NetBSD (OpenBSD and FreeBSD as well) reports it as 3c905B-TX

A plug-in card 3c905B-TX works fine.

The internal interface seems to have a 0x0 revision. The plugin card is 0x30.

The problem might be a conflict too. I have two 3Com interfaces in one box. One is the built in one (the 918 3c905B-TX lookalike) and the other one is a real PCI plug-in 3c905B-TX card.
>How-To-Repeat:
I don't know how to repeat the problem. It is repeatable on my machine every time I try it. Both interfaces work with FreeBSD and OpenBSD (I have both installed right now and working without a problem). NetBSD however can't access that interface.
>Fix:

>Release-Note:
>Audit-Trail:

From: Michael Eriksson <Michael.Eriksson@era-t.ericsson.se>
To: vkd79@yahoo.com
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/11925: Integrated 3Com netcard not working
Date: Wed, 10 Jan 2001 09:43:35 +0100

 vkd79@yahoo.com wrote:
 > My ethernet controller cannot access the internet. The interface is
 > a 3Com card built in into Dell Precision Workstation 410. Windows
 > reports it as
 > 
 > 3Com 3c918 Integrated Fast Ethernet Controller
 > (3c905B-TX Compatible)
 > 
 > NetBSD (OpenBSD and FreeBSD as well) reports it as 3c905B-TX

 I had the same problem on my Precision 210. Here's a hack I use to get
 the on-board ethernet interface to work. The patch turns off the media
 autoconfiguration, so you'll have to set the media yourself with
 ifconfig (this unfortunately goes also for any other 3c905B or
 compatible you have on your computer).

 Apply this patch and build a kernel with "options IF_EX_PCI_MII_HACK".

 Index: if_ex_pci.c
 ===================================================================
 RCS file: /cvsroot/syssrc/sys/dev/pci/if_ex_pci.c,v
 retrieving revision 1.12.4.1
 diff -u -r1.12.4.1 if_ex_pci.c
 --- if_ex_pci.c	2000/10/19 13:54:28	1.12.4.1
 +++ if_ex_pci.c	2000/12/13 08:32:23
 @@ -127,7 +127,11 @@
  	{ PCI_PRODUCT_3COM_3C900BTPC,   EX_CONF_90XB,
  	  "3c900B-TPC Ethernet" },

 +#ifdef  IF_EX_PCI_MII_HACK
 +	{ PCI_PRODUCT_3COM_3C905BTX,	EX_CONF_90XB,
 +#else
  	{ PCI_PRODUCT_3COM_3C905BTX,	EX_CONF_90XB|EX_CONF_MII|EX_CONF_INTPHY,
 +#endif
  	  "3c905B-TX 10/100 Ethernet" },
  	{ PCI_PRODUCT_3COM_3C905BT4,	EX_CONF_90XB|EX_CONF_MII,
  	  "3c905B-T4 10/100 Ethernet" },

 -- 
 Michael Eriksson <eramore@era-t.ericsson.se>
 /usr/sys/ken/slp.c:	 * You are not expected to understand this.

From: Jason R Thorpe <thorpej@zembu.com>
To: Michael Eriksson <Michael.Eriksson@era-t.ericsson.se>
Cc: vkd79@yahoo.com, gnats-bugs@gnats.netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: kern/11925: Integrated 3Com netcard not working
Date: Wed, 10 Jan 2001 08:23:02 -0800

 On Wed, Jan 10, 2001 at 09:43:35AM +0100, Michael Eriksson wrote:

  > I had the same problem on my Precision 210. Here's a hack I use to get
  > the on-board ethernet interface to work. The patch turns off the media
  > autoconfiguration, so you'll have to set the media yourself with
  > ifconfig (this unfortunately goes also for any other 3c905B or
  > compatible you have on your computer).
  > 
  > Apply this patch and build a kernel with "options IF_EX_PCI_MII_HACK".

 Sounds like we should try and detect the MII or not based on the
 revision?  Is there an EEPROM setting we can check?

 -- 
         -- Jason R. Thorpe <thorpej@zembu.com>

From: nathanw@MIT.EDU (Nathan J. Williams)
To: Michael Eriksson <Michael.Eriksson@era-t.ericsson.se>
Cc: vkd79@yahoo.com, gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/11925: Integrated 3Com netcard not working
Date: 10 Jan 2001 19:15:12 -0500

 Michael Eriksson <Michael.Eriksson@era-t.ericsson.se> writes:

 > I had the same problem on my Precision 210. Here's a hack I use to get
 > the on-board ethernet interface to work. The patch turns off the media
 > autoconfiguration, so you'll have to set the media yourself with
 > ifconfig (this unfortunately goes also for any other 3c905B or
 > compatible you have on your computer).
 > 
 > Apply this patch and build a kernel with "options IF_EX_PCI_MII_HACK".

 I can confirm that this patch does fix the problem on a Precision 410
 box.

         - Nathan

From: Frank van der Linden <fvdl@wasabisystems.com>
To: Jason R Thorpe <thorpej@zembu.com>,
	Michael Eriksson <Michael.Eriksson@era-t.ericsson.se>,
	gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Cc:  
Subject: Re: kern/11925: Integrated 3Com netcard not working
Date: Thu, 11 Jan 2001 01:14:24 +0100

 On Wed, Jan 10, 2001 at 08:23:02AM -0800, Jason R Thorpe wrote:
 > Sounds like we should try and detect the MII or not based on the
 > revision?  Is there an EEPROM setting we can check?

 It actually already does that.. I'm pretty sure the EX_CONF_MII parts
 in the config array can go away.

 - Frank

From: Jason R Thorpe <thorpej@zembu.com>
To: Frank van der Linden <fvdl@wasabisystems.com>
Cc: Michael Eriksson <Michael.Eriksson@era-t.ericsson.se>,
	gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/11925: Integrated 3Com netcard not working
Date: Wed, 10 Jan 2001 17:03:55 -0800

 On Thu, Jan 11, 2001 at 01:14:24AM +0100, Frank van der Linden wrote:

  > It actually already does that.. I'm pretty sure the EX_CONF_MII parts
  > in the config array can go away.

 Then that's what we should do... I have a MII card I could test with...

 -- 
         -- Jason R. Thorpe <thorpej@zembu.com>

From: Klaus Heinz <klaus.heinz@onlinehome.de>
To: netbsd-users@netbsd.org
Cc: gnats-bugs@netbsd.org
Subject: Re: kern/11925
Date: Fri, 19 Apr 2002 01:01:15 +0200

 [I have included gnats-bugs@netbsd.org on the Cc: line]

 Steve Bellovin wrote:

 > Is the fix good enough, and general enough, to put into the main source
 > tree?  It works well for me on my Dell Precision 410, but I don't have 
 > any other 3Com cards I can easily test against.

 I didn't know this PR, but I found PR kern/13653 which also describes
 a problem with the 3c905b. The problem (link goes away when interface
 goes 'up' and won't come back) happens for me with a 3c905b PCI NIC,
 not integrated onto the motherboard, and the suggested fix works for me.
 I could not test with 100baseT yet, but with my old 10BaseT hub I did
 _not_ have to specify the media with 'ifconfig', just the change in
 if_ex_pci.c was sufficient.

 ciao
      Klaus
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.