Discussion:
ep driver
(too old to reply)
T
2021-06-27 10:44:55 UTC
Permalink
Hi,
I have recently upgraded a NetBSD/prep machine from 8.1 to 9.2 and the ep
NIC no longer seems to work after the upgrade, it worked in previous 7
and 8 versions. The NIC is a 3Com 3c515-TX (ISA 10/100). Here are a few
dmesg segments from different kernel versions for this card:

For 7.1.1_PATCH:
isapnp0: read port 0x203
ep0 at isapnp0 port 0x280/32 irq 5 drq 3
ep0: 3Com Fast EtherLink ISA
ep0: address xx:xx:xx:xx:xx:xx, 64KB word-wide FIFO, 1:1 Rx:Tx split
ukphy1 at ep0 phy 24: OUI 0x1000e8, model 0x0000, rev. 1
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vmmask 73000000 schedmask 73000000 highmask 7f000000


For 8.1:
isapnp0: read port 0x203
...
ep0 at isapnp0 port 0x280/32 irq 11 drq 3
3Com Fast EtherLink ISA
ep0: address xx:xx:xx:xx:xx:xx, 64KB word-wide FIFO, 1:1 Rx:Tx split
nsphy0 at ep0 phy 24: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vmmask 71400000 schedmask 71c00000 highmask 7fc00000


For 9.2:

[ 1.000000] isapnp0: read port 0x203
[ 1.000000] ep0 at isapnp0 port 0x280/32 irq 5 drq 3
[ 1.000000] 3Com Fast EtherLink ISA
[ 1.000000] ep0: autoconfiguration error: wrote 0x7ff to
TX_AVAIL_THRESH, read back 0x0. Interface disabled
[ 1.000000] vmmask 73000000 schedmask 73000000 highmask 7f000000

The error message originates from line 382 in this file:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/elink3.c?
annotate=1.152&only_with_tag=MAIN

and figure something happened between these two revisions:
--- src/sys/dev/ic/elink3.c 2018/07/26 23:55:29 1.140.8.1
netbsd-8-1-RELEASE
+++ src/sys/dev/ic/elink3.c 2019/05/29 06:17:28 1.149 netbsd-9-2-
RELEASE

Does anyone have any idea what's going on here?


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Rin Okuyama
2021-06-27 11:49:52 UTC
Permalink
Hi,
Post by T
Hi,
I have recently upgraded a NetBSD/prep machine from 8.1 to 9.2 and the ep
NIC no longer seems to work after the upgrade, it worked in previous 7
and 8 versions. The NIC is a 3Com 3c515-TX (ISA 10/100). Here are a few
isapnp0: read port 0x203
ep0 at isapnp0 port 0x280/32 irq 5 drq 3
ep0: 3Com Fast EtherLink ISA
ep0: address xx:xx:xx:xx:xx:xx, 64KB word-wide FIFO, 1:1 Rx:Tx split
ukphy1 at ep0 phy 24: OUI 0x1000e8, model 0x0000, rev. 1
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vmmask 73000000 schedmask 73000000 highmask 7f000000
isapnp0: read port 0x203
...
ep0 at isapnp0 port 0x280/32 irq 11 drq 3
3Com Fast EtherLink ISA
ep0: address xx:xx:xx:xx:xx:xx, 64KB word-wide FIFO, 1:1 Rx:Tx split
nsphy0 at ep0 phy 24: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vmmask 71400000 schedmask 71c00000 highmask 7fc00000
[ 1.000000] isapnp0: read port 0x203
[ 1.000000] ep0 at isapnp0 port 0x280/32 irq 5 drq 3
[ 1.000000] 3Com Fast EtherLink ISA
[ 1.000000] ep0: autoconfiguration error: wrote 0x7ff to
TX_AVAIL_THRESH, read back 0x0. Interface disabled
[ 1.000000] vmmask 73000000 schedmask 73000000 highmask 7f000000
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/elink3.c?
annotate=1.152&only_with_tag=MAIN
--- src/sys/dev/ic/elink3.c 2018/07/26 23:55:29 1.140.8.1
netbsd-8-1-RELEASE
+++ src/sys/dev/ic/elink3.c 2019/05/29 06:17:28 1.149 netbsd-9-2-
RELEASE
Does anyone have any idea what's going on here?
A variant of ep(4) for PCMCIA works just fine for amiga:

---
NetBSD 9.99.85 (A1200_WSCONS) #14: Wed Jun 16 07:44:49 JST 2021
***@latipes:/sys/arch/amiga/compile/A1200_WSCONS
...
pcmcia0 at pccard0
ep0 at pcmcia0 function 0: <3Com, Megahertz 589E, TP/BNC LAN PC Card, 005>
ep0: address 00:50:04:cc:ee:7e, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT, 10base5, 10base2 (default 10baseT)
---

This model does not have MII, and it seems that differences b/w
netbsd-8 and -9 are mostly in MII part.

Saitoh-san, do you have any idea?

Thanks,
rin

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...