Subject: Re: ed device with bus.h failes to clear shared memory
To: Martin Husemann <martin@laurin.teuto.de>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 05/04/1996 18:31:20
On Sat, 4 May 1996 18:52:13 +-200 
 Martin Husemann <martin@laurin.teuto.de> wrote:

 > After all this rumors about the ed driver, I supped today and tried a new 
 > kernel. This probes my SMC card as:
 > 
 > ed0 at isa0 port 0x300-0x31f iomem 0xe0000-0xe1fff irq 10
 > ed0: address 00:00:c0:11:48:2d, type WD8003EP (8-bit) bnc
 > 
 > The last kernel (sup'ed on Mar 24) probed it as:
 > 
 > ed0 at isa0 port 0x300-0x31f iomem 0xe0000-0xe3fff irq 10: address 
                          00:00:c0:11:48:2d, type WD8013EP (16-bit) bnc
 > 
 > which is correct. The card works with the current kernel, haven't 
 > done performance tests yet. This is an EISA mainboard, if that matters.

Martin: the mis-identification of your card was due to a separate bug in 
the probe code (a bus_io_read_1() was replaced accidentally with an 
inb(), which had the side-effect of reading the wrong port to determine 
if your card is 16-bit).  I've fixed that bug, along with a somewhat 
NASTY one that I introduced when I converted the driver to <machine/bus.h>.

All those who have been having problems with your 16-bit WD ethernet 
cards: please grab the following revisions of the following files:

	$NetBSD: if_ed.c,v 1.97 1996/05/05 01:28:52 thorpej Exp $
	$NetBSD: isa.c,v 1.82 1996/05/05 01:14:07 thorpej Exp $
	$NetBSD: isavar.h,v 1.22 1996/05/05 01:14:14 thorpej Exp $

This fixes what could manifest itself as a timing bug when setting up 
memory access to card memory in the ed driver.  If you would like to get 
these files before they're available on the FTP/SUP server (should be 
early Sunday morning), send me a private e-mail.

This may or may not solve the problem ("can't clear shared memory"), but 
it definitely fixes a bug, and I'd like to eliminate it as a variable 
before trying the next thing on my list.

ciao.

----save the ancient forests - http://www.bayarea.net/~thorpej/forest/----
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939