Bug 828 - i386/isa/if_ed.c detects SMC Elite Ultra 8216 as 8416 only
Summary: i386/isa/if_ed.c detects SMC Elite Ultra 8216 as 8416 only
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: i386 (show other bugs)
Version: 2.0.5-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1995-11-19 19:30 UTC by stefan Petri
Modified: 1995-11-19 19:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stefan Petri 1995-11-19 19:30:02 UTC
	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 :-)

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?).
How-To-Repeat: 
	Boot FreeBSD and watch the device probe messages.
Comment 1 davidg freebsd_committer freebsd_triage 1995-11-19 19:50:15 UTC
State Changed
From-To: open->closed

This bug was fixed in 2.1.0-RELEASE.