Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2003 12:08:32 -0800 (PST)
From:      Nate Lawson <nate@root.org>
To:        "John S. Bucy" <bucy@ece.cmu.edu>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: vendor specific commands
Message-ID:  <Pine.BSF.4.21.0303041157110.80894-100000@root.org>
In-Reply-To: <20030304194932.GA378@catalepsy.ece.cmu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0303041157110.80894-100000>