public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dgilbert@interlog.com>
To: yukta eswar <yukta.eswar@gmail.com>
Cc: linux-scsi@vger.kernel.org, linux-usb@vger.kernel.org,
	FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Subject: Re: Question about invoking of "Task management" functions in USB driver 	(from newbie)
Date: Tue, 29 Sep 2009 15:26:57 -0400	[thread overview]
Message-ID: <4AC25F81.3070105@interlog.com> (raw)
In-Reply-To: <ac9fc6790909290721y6b046793rd28357595be2f3a9@mail.gmail.com>

yukta eswar wrote:
> Dear Experts,
> 
> I am developing a new USB attached SCSI (UAS) driver for Linux.
> I have implemented "task management" functions by taking reference
> from SAS driver.
> But I am confused about how to invoke these functions from my application.
> 
> Do I need to make any specific function calls from my application to
> invoke these driver functions?
> Can I get any reference code which can invoke Task management functions ?

The bsg driver is designed to handle SCSI and related
protocols. It can handle SCSI commands (e.g. my sg3_utils
package uses bsg) and the SAS Management Protocol (SMP) but I
have not seen examples for task management functions from the
user space. The gentleman referred to in the last "cc" may
know more information.

The various task management function hooks that you put
in your UAS low level driver are mainly for the Linux SCSI
mid-level's error processing. One way to trip that for
your testing is to send a SCSI command that is going
to take some time (e.g. a READ of thousands of blocks
should take some time, even on flash) and setup the
command timeout to zero seconds and or close as you can to
zero.


Greg KH wrote:
 > On Tue, Sep 29, 2009 at 07:51:47PM +0530, yukta eswar wrote:
 >> Dear Experts,
 >>
 >> I am developing a new USB attached SCSI (UAS) driver for Linux.
 >
 > Why?
 >
 > Do you have a pointer to your source code for your driver?

Greg,
It would seem that several groups might be working on UAS ***
drivers for Linux. They may even be in commercial competition.
Why ask them to show all their cards on the table at this
stage?
When they ask informed questions like this one, why not try
to answer them or find someone (else) who can?

Doug Gilbert


*** UAS ( http://www.t10.org/cgi-bin/ac.pl?t=f&f=uas-r02.pdf )
     is a new SCSI transport protocol that is designed to use
     efficiently the bandwidth available in USB-3 for storage
     devices. It should be much better than the (horrible)
     mass storage class. UAS should also work on USB-2 and
     even USB-1.1 .

  parent reply	other threads:[~2009-09-29 19:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-29 14:21 Question about invoking of "Task management" functions in USB driver (from newbie) yukta eswar
     [not found] ` <ac9fc6790909290721y6b046793rd28357595be2f3a9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-29 17:31   ` Greg KH
2009-09-29 19:26 ` Douglas Gilbert [this message]
2009-09-29 19:49   ` Greg KH
2009-09-30  9:19   ` yukta eswar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AC25F81.3070105@interlog.com \
    --to=dgilbert@interlog.com \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=yukta.eswar@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox