linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Mark Lord <liml@rtr.ca>
Cc: Jeff Garzik <jgarzik@pobox.com>, Tejun Heo <htejun@gmail.com>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	IDE/ATA development list <linux-ide@vger.kernel.org>
Subject: Re: SATA "target mode" (or "Channel-to-Channel" comm mode)
Date: Tue, 03 Mar 2009 16:16:12 +0000	[thread overview]
Message-ID: <1236096972.3263.12.camel@localhost.localdomain> (raw)
In-Reply-To: <49AD409F.6040102@rtr.ca>

On Tue, 2009-03-03 at 09:37 -0500, Mark Lord wrote:
> Jeff Garzik wrote:
> > Mark Lord wrote:
> >> Time is short, so I'd like to spend it on something that Jeff would
> >> actually accept.  Thus this email.
> > 
> > It depends on the task.
> > 
> > The miscdev (i.e. chrdev) interface found in drivers/scsi/scsi_tgt_if.c 
> > of repo [1] seems pretty generic, simple, small and applicable to 
> > portions of the problem presented here...  The basic task in 
> > scsi_tgt_if's case is just shoveling packets to/from userspace.
> ..
> 
> Except it's rather SCSI specific, and the userspace frontend even more so.
> The code expects a SCSI command block, LUN, TAG, and other fields that
> a SATA FIS won't have.  Seems clumsy, particularly when we (in theory)
> are trying to decouple libata from SCSI.   But if that's the way,
> then I can clumsily wrap each FIS in a fake ATA_16 header or something.

Yes, but SG_IO began life as being entirely SCSI specific, but it's now
the block packet infrastructure.  I don't think anyone has an objection
to the SCSI target infrastructure becoming block target
infrastructure ... the fields can be made optional or more generic to
further this.  Probably it should speak a generic packet with a protocol
identifier and let the user space sort out the details.

James



  parent reply	other threads:[~2009-03-03 16:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-03 13:47 SATA "target mode" (or "Channel-to-Channel" comm mode) Mark Lord
2009-03-03 14:16 ` Jeff Garzik
2009-03-03 14:37   ` Mark Lord
2009-03-03 15:59     ` Jeff Garzik
2009-03-03 16:12       ` Mark Lord
2009-03-03 16:16     ` James Bottomley [this message]
2009-03-03 16:38       ` Jeff Garzik
2009-03-05 12:15       ` FUJITA Tomonori
2009-03-06 11:34 ` Jeff Garzik

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=1236096972.3263.12.camel@localhost.localdomain \
    --to=james.bottomley@hansenpartnership.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=htejun@gmail.com \
    --cc=jgarzik@pobox.com \
    --cc=liml@rtr.ca \
    --cc=linux-ide@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).