From: Jeff Garzik <jeff@garzik.org>
To: Mark Lord <liml@rtr.ca>
Cc: IDE/ATA development list <linux-ide@vger.kernel.org>,
Tejun Heo <htejun@gmail.com>, Alan Cox <alan@redhat.com>
Subject: Re: SATA Target mode & libata
Date: Thu, 8 Nov 2007 16:05:08 -0500 [thread overview]
Message-ID: <20071108210508.GA12845@havoc.gtf.org> (raw)
In-Reply-To: <4733764D.80203@rtr.ca>
On Thu, Nov 08, 2007 at 03:49:17PM -0500, Mark Lord wrote:
> Jeff Garzik wrote:
> >On Thu, Nov 08, 2007 at 03:19:52PM -0500, Mark Lord wrote:
> ..
> >>MMmm.. I wonder what the most common use case is for target mode?
> >>
> >>Everybody I've dealt with thus far uses it as a high-speed local comms
> >>interface,
> >>which would suggest that it might be done as a network interface
> >>(ethernet emulation).
> >>
> >>But that would confusingly go across driver subsystems,
> >>despite that this is how it actually is used.
> >
> >The low-level driver itself will just be a dumb DMA send/receive engine,
> >with submit/completion APIs highly similar to the existing ones. Then
> >you can easily provide a network interface interface (not a typo) on top
> >of that.
> ..
>
> The obvious BIG difference is that in host mode, *we* initiate
> communcations,
> whereas in target mode, it has to just sit there waiting for a host to say
> something.
>
> That's a pretty big change from how libata operates today,
> in just about every respect.
Not at all -- both initiator and target modes have the exact same tasks:
1) send stuff to hardware, 2) receive hardware responses.
On modern SAS/SATA hardware, you have both command and response queues.
On modern SATA hardware, you have command queue and a received FIS list,
which provides essentially the same services.
Thus SATA target mode will simply need a "here is data I just received
from the wire" hook, and the rest of the infrastructure already exists.
Target mode will re-use ->qc_issue, and need a new ata_receive_fis()
function for asynchronously received FIS's (H2D FIS, etc.)
Jeff
next prev parent reply other threads:[~2007-11-08 21:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <00b501c81ace$ece895f0$6200a8c0@jameshsu>
2007-10-30 10:24 ` Should be Acard ATP8620 2SATA / 1 IDE driver Jeff Garzik
2007-11-01 8:47 ` jameshsu
[not found] ` <025c01c82016$fbcf3810$d400a8c0@laurence>
[not found] ` <025001c82067$d76c04c0$6200a8c0@jameshsu>
2007-11-07 22:13 ` Jeff Garzik
2007-11-07 22:16 ` Jeff Garzik
[not found] ` <001f01c821b0$20b6c9f0$6200a8c0@jameshsu>
[not found] ` <02d301c821e2$25dc01c0$d400a8c0@laurence>
2007-11-08 11:34 ` Re:Acard ATP8620 2SATA / 1 IDE driver - AHCI.C Nov082007 jameshsu
2007-11-08 16:22 ` Acard " Jeff Garzik
2007-11-08 19:52 ` Mark Lord
2007-11-08 20:09 ` Jeff Garzik
2007-11-08 20:19 ` Mark Lord
2007-11-08 20:31 ` Jeff Garzik
2007-11-08 20:49 ` SATA Target mode & libata Mark Lord
2007-11-08 21:05 ` Jeff Garzik [this message]
2007-11-27 10:18 ` Acard ATP8620 2SATA / 1 IDE driver - AHCI.C Nov082007 jameshsu
2007-11-07 22:30 ` [PATCH] Re: Should be Acard ATP8620 2SATA / 1 IDE driver Jeff Garzik
[not found] ` <005801c821fa$892827f0$6200a8c0@jameshsu>
2007-11-08 16:18 ` 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=20071108210508.GA12845@havoc.gtf.org \
--to=jeff@garzik.org \
--cc=alan@redhat.com \
--cc=htejun@gmail.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).