From owner-freebsd-bugs Sun Nov 19 11:30:05 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA18291 for bugs-outgoing; Sun, 19 Nov 1995 11:30:05 -0800 Received: (from gnats@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA18283 ; Sun, 19 Nov 1995 11:30:03 -0800 Resent-Date: Sun, 19 Nov 1995 11:30:03 -0800 Resent-Message-Id: <199511191930.LAA18283@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, petri@ibr.cs.tu-bs.de 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 ; 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 ; 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 X-Send-Pr-Version: 3.2 Subject: i386/828: i386/isa/if_ed.c detects SMC Elite Ultra 8216 as 8416 only Sender: owner-bugs@freebsd.org Precedence: bulk >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: