Subject: Re: Problem with the pci-ethernet card (if_de)
To: Bernd Ernesti <netbsd@arresum.inka.de>
From: Matt Thomas <matt@lkg.dec.com>
List: port-i386
Date: 10/19/1995 20:41:14
In  <199510192111.WAA00664@arresum.inka.de> , you wrote:

> Hi,
> 
> I have now a PCI-Ethernet Card, it has the DEC 21040 chip on it.
> 
> ReadyLINK
> ENET32/PCI (REV 3B)
> 
> NetBSD found it, but I can't get it to work.
> I can't ping my NetBSD-amiga, the same network works great with a 3c509.
> tcpdump doesn't see anything on the i386 and on the amiga i only see arp-request
> and no I have correct arp's.
> 
> This is on the i386 side:
> 
> netstat -i
> Name  Mtu   Network     Address              Ipkts Ierrs    Opkts Oerrs  Coll
> de0   1500  <Link>      0.80.48.e8.36.25         0     0       30    30     0
> de0   1500  193.197.84. parresum.inka.de         0     0       30    30     0
> lo0   32768 <Link>                              24     0       24     0     0
> lo0   32768 127         localhost               24     0       24     0     0
> [..]

Oerrs.  From the probe message below it wants to be talking over the
AUI or BNC ports.  It that correct?  What connectors does your board
have?  Both AUI and BNC?  Is their a jumper to switch between them?

> ifconfig -a
> de0: flags=9863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,LINK0,MULTICAST>
>         inet 193.197.84.114 netmask 0xffffffa8 broadcast 193.197.84.119

> Why does the de0 thinks that all Opkts are Errors but the amiga counts this
> Ipkts ?

Good question.  Dunno.  Can you give sketch of how your Ethernet is layed
out?

> de0 at pci0 bus 0 device 10pci_map_int: pin A mapped to line 12
>  irq 12: DC21040 [10Mb/s] pass 2.3 Ethernet address 00:80:48:e8:36:25
> de0: enabling Thinwire/AUI port
> 
> Mmmmh, what is pci_map_int. Is that the PCI-Interrupt and why does NetBSD found
> two A pins ?

Most every PCI will use INT a.  The pci_map_int message is a debug message
that really shouldn't be printed.

The IRQ is correct since de0 is counting output packets (which only happens
on transmit done).

I need more info to diagnose this problem.

Matt Thomas               Internet:   matt@lkg.dec.com
3am Software Foundry      WWW URL:    <currently homeless>
Westford, MA              Disclaimer: Digital disavows all knowledge
                                      of this message