From owner-freebsd-scsi Thu Aug 15 12:20:46 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B95837B400 for ; Thu, 15 Aug 2002 12:20:39 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DF2143E42 for ; Thu, 15 Aug 2002 12:20:38 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g7FJKYKD063851; Thu, 15 Aug 2002 13:20:34 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g7FJKYRb063850; Thu, 15 Aug 2002 13:20:34 -0600 (MDT) (envelope-from ken) Date: Thu, 15 Aug 2002 13:20:33 -0600 From: "Kenneth D. Merry" To: Nate Lawson Cc: Chuck McCrobie , freebsd-scsi Subject: Re: pioneer DRM-600 problem Message-ID: <20020815132033.A63803@panzer.kdm.org> References: <20020814223152.A60159@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from nate@root.org on Thu, Aug 15, 2002 at 11:46:56AM -0700 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Aug 15, 2002 at 11:46:56 -0700, Nate Lawson wrote: > On Wed, 14 Aug 2002, Kenneth D. Merry wrote: > > On Thu, Aug 15, 2002 at 00:24:50 -0400, Chuck McCrobie wrote: > > > "Kenneth D. Merry" wrote: > > > > On Wed, Aug 14, 2002 at 22:53:24 -0400, Kurt Seel wrote: > > > > > cd5: cd present [326103 x 2048 byte records] > > > > > (cd6:ahc0:0:0:6): READ CD RECORDED CAPACITY. CDB: 25 c0 0 0 0 0 0 0 0 0 > > > > > (cd6:ahc0:0:0:6): ILLEGAL REQUEST asc:25,0 > > > > > (cd6:ahc0:0:0:6): Logical unit not supported > > > > > (cd6:ahc0:0:0:6): fatal error, failed to attach to device > > > > > (cd6:ahc0:0:0:6): lost device > > > > > (cd6:ahc0:0:0:6): removing device entry > > > > > (cd7:ahc0:0:0:7): READ CD RECORDED CAPACITY. CDB: 25 e0 0 0 0 0 0 0 0 0 > > > > > (cd7:ahc0:0:0:7): ILLEGAL REQUEST asc:25,0 > > > > > (cd7:ahc0:0:0:7): Logical unit not supported > > > > > (cd7:ahc0:0:0:7): fatal error, failed to attach to device > > > > > (cd7:ahc0:0:0:7): lost device > > > > > (cd7:ahc0:0:0:7): removing device entry > > > > > > > > It looks like it's behaving bogusly there. It shouldn't respond to an > > > > inquiry on LUNs 6 and 7 if there isn't a CD slot at those LUNs. > > > > > > > > Anyway, that should be mostly harmless. > > > > > > Yes, this is a LUN based changer. To get it to swap disks, one > > > references the other LUNs. The changer should automatically swap out > > > one disk and insert the other. It looks like its doing what it should > > > during the probe. > > > > > > I don't remember exactly what the SCSI spec. says for LUNs - I think > > > reporting that the "Logical unit not supported" is valid for LUNs 6 and > > > 7 - what else would a LUN type device report if it supports 6 out of 8 > > > LUNs? > > > > It shouldn't respond to an inquiry on that LUN if that LUN isn't supported. > > > > The "Logical unit not supported" error is correct, but we should never get > > that far. The first thing we do for each LUN is send an inquiry, and the > > device should just not send back a response if it doesn't support the LUN. > > I thought it was legit to respond to inquiry with the following qualifier > if the device is there but doesn't support the requested LUN. > > #define SID_QUAL_BAD_LU 0x03 /* The target is not capable of > * supporting a physical device on > * this logical unit. For this > * peripheral qualifier the peripheral > * device type shall be set to 1Fh to > * provide compatibility with previous > * versions of SCSI. All other > * peripheral device type values are > * reserved for this peripheral > * qualifier. > */ Yes, that is correct as well. In the inquiry case in probedone() in cam_xpt.c, we only keep going with the probe process if the peripheral qualifier is SID_QUAL_LU_CONNECTED. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message