From owner-freebsd-scsi Tue Mar 4 12: 8:33 2003 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 983B737B401 for ; Tue, 4 Mar 2003 12:08:32 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id AE2B643FAF for ; Tue, 4 Mar 2003 12:08:31 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 80963 invoked by uid 1000); 4 Mar 2003 20:08:32 -0000 Date: Tue, 4 Mar 2003 12:08:32 -0800 (PST) From: Nate Lawson To: "John S. Bucy" Cc: freebsd-scsi@freebsd.org Subject: Re: vendor specific commands In-Reply-To: <20030304194932.GA378@catalepsy.ece.cmu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Tue, 4 Mar 2003, John S. Bucy wrote: > I'm working on a research project and we want to add some additional > commands to an experimental device to be emulated using the target > mode scsi stuff. We're probably going to use Nate Lawson's target > mode driver. > > From my reading of the relevant scsi documentation, it seems like the > target's scsi interface has to know the length of a command from the > opcode so it will know when the command phase finishes. > > Is this in fact the case? If so, what will e.g. a Qlogic ISP in > target mode do with vendor-specific commands? Yes, this is the case. You can specify the appropriate lengths by modifying the usermode (/usr/share/examples/scsi_target). A quick scan of the SCSI HBA drivers shows that none of them seem to do anything interesting with grp6/7len so it looks like you would have to update the device driver to pass these to the card firmware before your code would work. If it's just a quick hack, I'd reuse empty space not allocated in SPC. But don't deploy anything like that. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message