From owner-freebsd-scsi Sat Jan 4 04:22:15 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA15979 for freebsd-scsi-outgoing; Sat, 4 Jan 1997 04:22:15 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id EAA15974 for ; Sat, 4 Jan 1997 04:22:05 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id NAA12543; Sat, 4 Jan 1997 13:21:29 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id NAA04963; Sat, 4 Jan 1997 13:21:28 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id MAA20004; Sat, 4 Jan 1997 12:47:51 +0100 (MET) Message-ID: Date: Sat, 4 Jan 1997 12:47:51 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: gurney_j@resnet.uoregon.edu (John-Mark Gurney) Cc: freebsd-scsi@FreeBSD.org (FreeBSD SCSI list) Subject: Re: Ideas on CD changers sought References: X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from J Wunsch on Jan 4, 1997 12:38:54 +0100 Sender: owner-freebsd-scsi@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As I wrote: > > (bt0:3:1): "unknown unknown ????" type 0 fixed SCSI 0 > > sd2(bt0:3:1): Direct-Access > > sd2(bt0:3:1): ILLEGAL REQUEST asc:24,0 Invalid field in CDB > > That's the consequence out of assuming `direct access' from the null > inquiry. I think this should be killed, the device should be assigned > to the `uk' driver (unknown SCSI device) in case it failed to deliver > inquiry data. It makes things only worse this way. > > (The docking station of our Toshiba T5100 notebook contains an AIC7850 > and an unknown CD drive. Since it times out during inquiry, the > driver also assumes it to be an `sd0', which finally causes the kernel > to panic.) Since you're just in experimenting :), please try this. It should make the misprobed devices (LUNs in your case) going to the uk driver. If nobody objects, i would commit that change, including the 2.2 branch. I feel much safer with it than with the current scenario of assigning those devices to the `sd' driver (which is IMHO an artifact only of T_DIRECT having the value 0). Index: sys/scsi/scsiconf.c =================================================================== RCS file: /home/ncvs/src/sys/scsi/scsiconf.c,v retrieving revision 1.73 diff -u -u -r1.73 scsiconf.c --- scsiconf.c 1996/12/20 20:43:45 1.73 +++ scsiconf.c 1997/01/04 11:44:04 @@ -1256,6 +1256,7 @@ make_readable(manu, "unknown", sizeof(manu)); make_readable(model, "unknown", sizeof(model)); make_readable(version, "????", sizeof(version)); + type = T_UNKNOWN; } sc_print_start(sc_link); -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)