Subject: Re: port-i386/4830: NE2000 ethernet board interrupt trouble
To: None <thorpej@nas.nasa.gov, enami@but-b.or.jp, current-users@NetBSD.ORG>
From: Kazuki Sakamoto <sakamoto@cec.co.jp>
List: current-users
Date: 01/18/1998 00:50:00
I was investigated again.

*** dp8390.c.org	Thu Nov  6 22:48:40 1997
--- dp8390.c	Sun Jan 18 00:13:09 1998
***************
*** 225,230 ****
--- 225,231 ----
  	while (((NIC_GET(regt, regh,
  	    ED_P0_ISR) & ED_ISR_RST) == 0) && --n)
  		;
+ 	printf("n=%d\n", n);
  }
  
  /*
----------------

Like this (dp8390_stop), the value of n was examined.

--- kernel message --------
ne0 at isa0 port 0x300-0x31f irq 9
ne0: NE2000 Ethernet
n=5000
ne0: Ethernet address xx:xx:xx:xx:xx:xx

..

boot device: sd2
root on sd2a dumps on sd2b
n=XXXX  			<= result value
---------------------------

The result examined with PentiumII300 + P2L97 + two kinds of NE2000
compatible ISA ether board is shown. "OK" shows that it works normally,
"NG" shows that it doesn't work normally.

AT/LANTIC DP83905AVQB chip
	300MHz n=4991   OK
	337MHz n=4985   OK

RMC(?) RTL8019AS chip
	266MHz n=5000   OK
	300MHz n=5000   NG
	337MHz n=5000   NG

n is always 5000 with RTL8019!
namely, ED_ISR_RST bit is always 0.
Therefore, delay should be necessary.

Kazuki Sakamoto
sakamoto@cec.co.jp