NetBSD Problem Report #13947

Received: (qmail 17889 invoked from network); 13 Sep 2001 23:06:35 -0000
Message-Id: <200109132306.f8DN6FS03463@gibbon.cnet.aladdin.de>
Date: Fri, 14 Sep 2001 01:06:16 +0200 (CEST)
From: Christian Groessler <cpg@aladdin.de>
Reply-To: cpg@aladdin.de
To: gnats-bugs@gnats.netbsd.org
Subject: 3C579 EISA network card does not work
X-Send-Pr-Version: 3.95

>Number:         13947
>Category:       port-i386
>Synopsis:       3C579 EISA network card does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 13 23:07:00 +0000 2001
>Closed-Date:    Fri Sep 14 13:47:09 +0000 2001
>Last-Modified:  Fri Sep 14 13:47:09 +0000 2001
>Originator:     Christian Groessler
>Release:        NetBSD-current Sep-14-2001
>Organization:

>Environment:

System: NetBSD gibbon 1.5X NetBSD 1.5X (GIBBON) #0: Thu Sep 13 23:07:21 CEST 2001 chris@gibbon:/usr/oth2/src/sys/arch/i386/compile/GIBBON i386
Architecture: i386
Machine: i386
>Description:
	(please see
http://mail-index.netbsd.org/port-i386/2001/09/03/0009.html and the
following thread)

On my 486 EISA machines, both a EISA 3Com 3c579 network card and a ISA
3c509 configured in EISA mode don't work. They are detected by the
startup code. But the card does not work.

>How-To-Repeat:
	Insert one of those cards into your 486 EISA machine. Watch
them not working...
>Fix:
	After suggestion from jdolecek@netbsd.org (see
http://mail-index.netbsd.org/port-i386/2001/09/06/0012.html) I tried a
bigger delay at card initialization time. It appears to work:
(1000 did work for the 3c579, but the 3c509 needed 2000 - I use 4000
to be on the safe side...)

------------
Index: if_ep_eisa.c
===================================================================
RCS file: /net/swamp/zeug/netbsd-rsync/main/syssrc/sys/dev/eisa/if_ep_eisa.c,v
retrieving revision 1.22
diff -u -p -r1.22 if_ep_eisa.c
--- if_ep_eisa.c        2000/05/07 13:57:16     1.22
+++ if_ep_eisa.c        2001/09/09 15:27:56
@@ -242,7 +242,7 @@ ep_eisa_attach(parent, self, aux)
        /* Reset card. */
        bus_space_write_1(iot, ioh_cfg, EP_EISA_CFG_CONTROL, 
            EISA_ENABLE | EISA_RESET);
-       delay(10);
+       delay(4000);
        bus_space_write_1(iot, ioh_cfg, EP_EISA_CFG_CONTROL, EISA_ENABLE);
        /* Wait for reset? */
        delay(1000);
------------


>Release-Note:
>Audit-Trail:

From: Martin Husemann <martin@duskware.de>
To: cpg@aladdin.de
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-i386/13947: 3C579 EISA network card does not work
Date: Fri, 14 Sep 2001 15:32:15 +0200 (MEST)

 > >How-To-Repeat:
 > 	Insert one of those cards into your 486 EISA machine. Watch
 > them not working...

 I'm not sure I follow this statement.

 My NAT router is a 486@50MHz, and it is connected to the internal network
 with an 3C597 card, working just fine.

 So, if this is a timing bug, it misses timing only slightly and the change
 should be smaller. If it depends on exact card type, the change should only
 change the driver for the affected cards.

 Could you describe "the card is not working" a bit more detailed?

 Martin

 Parts of my dmesg for reference:
 ..
 cpu0: Intel 486DX (486-class)
 ..
 ep0 at eisa0 slot 4: 3Com 3C597 Fast Etherlink TX
 ep0: interrupting at irq 12
 ep0: address 00:10:4b:24:be:a8, 64KB word-wide FIFO, 3:1 Rx:Tx split
 ep0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX (default 100baseTX)


From: Martin Husemann <martin@duskware.de>
To: cpg@aladdin.de
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-i386/13947: 3C579 EISA network card does not work
Date: Fri, 14 Sep 2001 15:34:11 +0200 (MEST)

 Ooops, sorry, missed an important point: the delay is only in initialization/
 reset code, so it should not be critical for operation.

 Martin
State-Changed-From-To: open->closed 
State-Changed-By: martin 
State-Changed-When: Fri Sep 14 06:35:26 PDT 2001 
State-Changed-Why:  
Change commited, thanks! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.