Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 1997 11:41:55 -0800 (PST)
From:      champlin@pa.dec.com
To:        freebsd-gnats-submit@freebsd.org
Subject:   kern/2433: Multiple AHA1542 scsi controllers don't work in 2.1.5-RELEASE
Message-ID:  <199701091941.LAA17569@freefall.freebsd.org>
Resent-Message-ID: <199701091950.LAA17971@freefall.freebsd.org>

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

>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:



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