Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Nov 1995 20:20:38 +0100
From:      petri@ibr.cs.tu-bs.de
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   i386/828: i386/isa/if_ed.c detects SMC Elite Ultra 8216 as 8416 only
Message-ID:  <199511191920.UAA29216@jupiter.ibr.cs.tu-bs.de>
Resent-Message-ID: <199511191930.LAA18283@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 19 11:30:02 PST 1995
>Last-Modified:
>Originator:     Stefan Petri
>Organization:
TU Braunschweig
>Release:        FreeBSD 2.0.5-RELEASE i386
>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?).

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511191920.UAA29216>