Bug 22417

Summary: [adw] [patch] advansys wide scsi driver does not support more than 7 drives
Product: Base System Reporter: adam <adam>
Component: kernAssignee: Justin T. Gibbs <gibbs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1.1-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description adam 2000-10-30 13:50:01 UTC
it appears that advansys ultra2 scsi controller (tested with model ASB3940U2W) code is 
hardwired to 3 bit SCSI IDs, causing hangup during boot if more than 
3 bits worth of drives are present (or, presumably, any drive 
with an id higher than 7).

dmesg:

adw0: <AdvanSys 38C0800 Ultra2 SCSI Adapter> port 0xd800-0xd8ff mem 0xff8ffc00-0xff8ffcff irq 9 at device 11.0 on pci1
adw0: SCSI ID 0, High & Low SE Term Enabled, LVD Term Enabled, Queue Depth 253

(yes, I know having it set to SCSI id 0 is weird, but we have to because of 
the way the external drive chassis autonumbers).

Fix: the following patch was our attempt at a quick fix, which didn't work, but 
it's a start... :)

bash-2.03$ diff -u /usr/src/sys/dev/advansys/advlib.h.orig /usr/src/sys/dev/advansys/advlib.h
How-To-Repeat: attach more than 7 scsi drives to an advansys controller.
Comment 1 Justin T. Gibbs freebsd_committer freebsd_triage 2000-11-01 15:56:41 UTC
Responsible Changed
From-To: freebsd-bugs->gibbs

I wrote the adw driver, so I'll take a look at this.  The patch supplied 
only affects the adv driver which, by definition, only supports narrow 
busses.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2005-11-29 05:58:22 UTC
State Changed
From-To: open->suspended

Mark this aging PR as suspended.
Comment 3 Justin T. Gibbs freebsd_committer freebsd_triage 2011-09-06 20:23:15 UTC
State Changed
From-To: suspended->closed

Timed out.