From owner-freebsd-bugs Thu Jan 9 11:50:04 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA17978 for bugs-outgoing; Thu, 9 Jan 1997 11:50:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA17971; Thu, 9 Jan 1997 11:50:02 -0800 (PST) Resent-Date: Thu, 9 Jan 1997 11:50:02 -0800 (PST) Resent-Message-Id: <199701091950.LAA17971@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.LAA17569;Thu; (8.8.4/8.8.4);, 9 Jan 1997 11:41:55.-0800 (PST) Message-Id: <199701091941.LAA17569@freefall.freebsd.org> Date: Thu, 9 Jan 1997 11:41:55 -0800 (PST) From: champlin@pa.dec.com To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: kern/2433: Multiple AHA1542 scsi controllers don't work in 2.1.5-RELEASE Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2433 >Category: kern >Synopsis: Multiple AHA1542 scsi controllers don't work in 2.1.5-RELEASE >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 9 11:50:01 PST 1997 >Last-Modified: >Originator: Virgil Champlin >Organization: Digital Equipment Corporation >Release: FreeBSD 2.1.5-RELEASE >Environment: FreeBSD saralinda.pa.dec.com 2.1.5-RELEASE FreeBSD 2.1.5-RELEASE #0: Thu Jan 9 10:25:05 PST 1997 >Description: Multiple AHA1542cf scsi controllers in the same machine (and possibly others) do not work under 2.1.5-RELEASE. When properly configured (kernel config file correct and no device conflicts) the controller and device probes work for the first controller (aha0). The second controller probe works but the probes for individual devices time out. >How-To-Repeat: Plug in 2 AHA1542cf controllers and add the following to the kernel config file: controller aha1 at isa? port "IO_AHA1" bio irq ? drq 5 vector ahaintr If you boot "verbose", you will notice that the probe for the second controller lists unit "0" rather than the expected "1". >Fix: There is a small bug in the probe routine of the 1542 device driver (/usr/src/sys/i386/isa/aha1542.c). It fails to initialize the "unit" element of the associated aha_data structure before calling the init routine. It works for aha0 because the "bzero" of the malloced aha_data structure essentially initializes it for that special case. *** aha1542.c.orig Thu Jan 9 11:08:46 1997 --- aha1542.c Thu Jan 9 11:13:56 1997 *************** ahaprobe(dev) *** 602,607 **** --- 602,608 ---- } bzero(aha, sizeof(struct aha_data)); ahadata[unit] = aha; + aha->unit = unit; aha->aha_base = dev->id_iobase; #ifndef DEV_LKM >Audit-Trail: >Unformatted: