From petri@ibr.cs.tu-bs.de  Sun Nov 19 11:21:05 1995
Received: from ra.ibr.cs.tu-bs.de (ra.ibr.cs.tu-bs.de [134.169.246.34])
          by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id LAA17845
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 19 Nov 1995 11:21:03 -0800
Received: from jupiter [134.169.34.4] by ra.ibr.cs.tu-bs.de (8.6.10/tubsibr) with ESMTP id UAA00959 for <FreeBSD-gnats-submit@freebsd.org>; Sun, 19 Nov 1995 20:20:44 +0100
Received: from petri@localhost by jupiter.ibr.cs.tu-bs.de (8.6.11/tubsibr) id UAA29216; Sun, 19 Nov 1995 20:20:38 +0100
Message-Id: <199511191920.UAA29216@jupiter.ibr.cs.tu-bs.de>
Date: Sun, 19 Nov 1995 20:20:38 +0100
From: petri@ibr.cs.tu-bs.de
Reply-To: petri@ibr.cs.tu-bs.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: i386/isa/if_ed.c detects SMC Elite Ultra 8216 as 8416 only
X-Send-Pr-Version: 3.2

>Number:         828
>Category:       i386
>Synopsis:       i386/isa/if_ed.c detects SMC Elite Ultra 8216 as 8416 only
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 19 11:30:02 PST 1995
>Closed-Date:    Sun Nov 19 11:50:15 PST 1995
>Last-Modified:  Sun Nov 19 11:50:38 PST 1995
>Originator:     Stefan Petri
>Release:        FreeBSD 2.0.5-RELEASE i386
>Organization:
TU Braunschweig
>Environment:

	ISA/PCI system with SMC Elite Ultra 8216 ethernet card

>Description:

	The driver if_ed.c tries to write a zero into the first word of
	the second 8K of the card's RAM, and tests if it can read the
	zero back. This test fails, so the driver assumes the card to
	be a 8416 with only 8K, instead of the correct 8216 with 16K RAM.

	But: if I remove that test from the driver source, and hardcode
	it to use 16K of shared memory, it simply works :-) Also, the
	SMC setup program (under DOS) and the Linux smc-ultra driver
	correctly test and report the 16K RAM.

	The card / driver works OK with the 8K assumption, but (of course)
	I want it to use the entire 16KB to get the full performance for
	my money :-)

>How-To-Repeat:

	Boot FreeBSD and watch the device probe messages.

>Fix:
	
	My short cut of simply hardocding the 16K size is of course not
	a real fix.
	The better method would be to ask the card for the amount of
	available card memory, like the Linux driver does (do I need to
	quote the code here?).

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: davidg 
State-Changed-When: Sun Nov 19 11:50:15 PST 1995 
State-Changed-Why:  
This bug was fixed in 2.1.0-RELEASE. 
>Unformatted:
