Bug 18639

Summary: [PATCH] le driver doesn't work with DEPCA
Product: Base System Reporter: dudin <dudin>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.2-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description dudin 2000-05-18 06:30:00 UTC
	DEPCA is not detected by driver.
	(it can be sometimes detected, if other drivers probe DEPCA's
	 base address earlier in the boot process but doesn't work anyway)
	The author of driver states, that driver has been tested only with
	DE200 and later cards (/usr/src/sys/i386/isa/README.le), so this
	behaviour is somewhat expected. 

	Unlike DE200 and later cards DEPCA has 8 bit NICSR, not 16 bit
	as driver assumes, so OUTW/INW do not work with DEPCA. The higher
	byte of NICSR is not used by driver, so I changed OUTW/INW to
	OUTB/INB.  This solved problem with detecting the board on boot.

	The other problem was that board could transmit only several
	packets and then transmission stopped. 

	DEPCA is based on AM7990 LANCE chip, which, unlike AM79C96, 
	restricts the sizes of descriptor rings to powers of 2. 
	So I added the check for this for DEPCA. I'm not sure which chip
	DE100 and DE101 use, probably they need this fix as well.
	
	Now driver works with DEPCA, but I have no chance to check
	if it still works with other cards.

How-To-Repeat: 
	100% reproducible ( if DEPCA fits into your computer case,
		that is :-) )
Comment 1 Mike Barcroft freebsd_committer freebsd_triage 2001-07-22 03:31:05 UTC
State Changed
From-To: open->feedback


Does this problem still occur in newer versions of FreeBSD, 
such as 4.3-RELEASE?
Comment 2 Mike Barcroft freebsd_committer freebsd_triage 2001-08-02 04:41:36 UTC
Adding to Audit-Trail.

----- Forwarded message from "Eugene A. Doudine" <dudin@np.nk.nornik.ru> -----

X-UIDL: 214bb02178cc435747c0ad4c42fdff23
Delivered-To: mike@freebsd.org
Date: Fri, 27 Jul 2001 00:29:36 +0800 (KRAST)
From: "Eugene A. Doudine" <dudin@np.nk.nornik.ru>
To: mike@FreeBSD.org
Cc: freebsd-bugs@FreeBSD.org
Subject: Re: kern/18639: [PATCH] le driver doesn't work with DEPCA
In-Reply-To: <200107220231.f6M2VKK79582@freefall.freebsd.org>


Hello, Mike

I didn't try 4.3-RELEASE.
I tried 4.2-RELEASE, has the same problems and some others.
It cannot detect the card without my patch. 
With my patch applied it's able to detect the card. Kernel on boot 
gives this warning:
le0 XXX: driver didn't set ifq_maxlen

And then the kernel panics during configuration of the interface,
exactly as described in PR kern/19219.


Regards,
Eugene

On Sat, 21 Jul 2001 mike@FreeBSD.org wrote:

> Synopsis: [PATCH] le driver doesn't work with DEPCA
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: mike
> State-Changed-When: Sat Jul 21 19:31:05 PDT 2001
> State-Changed-Why: 
> 
> Does this problem still occur in newer versions of FreeBSD,
> such as 4.3-RELEASE?
> 
> http://www.FreeBSD.org/cgi/query-pr.cgi?pr=18639
> 
> 




----- End forwarded message -----
Comment 3 Mike Barcroft freebsd_committer freebsd_triage 2001-08-02 04:56:34 UTC
State Changed
From-To: feedback->suspended


This is still a problem in 4.3-RELEASE.  Awaiting a committer 
with the necessary hardware to review and commit this or another 
patch which solves this problem.
Comment 4 Tilman Keskinoz freebsd_committer freebsd_triage 2004-05-21 02:50:31 UTC
State Changed
From-To: suspended->closed

The le driver has been removed from CURRENT, so this will probably not be 
fixed.