From: Mark Lord <liml@rtr.ca>
To: Jeff Garzik <jeff@garzik.org>
Cc: IDE/ATA development list <linux-ide@vger.kernel.org>,
Tejun Heo <htejun@gmail.com>, Alan Cox <alan@redhat.com>
Subject: SATA Target mode & libata
Date: Thu, 08 Nov 2007 15:49:17 -0500 [thread overview]
Message-ID: <4733764D.80203@rtr.ca> (raw)
In-Reply-To: <20071108203127.GC4895@havoc.gtf.org>
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.
> The biggest use case I've seen is in the embedded space, where you
> really are creating a SCSI (or ATA) target, that appears to the
> initiator/client to be a real SCSI-or-ATA device.
>
> There are certainly other uses: networking, creating a cheap SATA bus
> analyzer, creating a cheap SATA bridge, ...
>
> My main goal is to ensure that the low-level driver is as simple as
> possible, which permits upper layers to actually figure out what
> purposes it shall use.
>
> Modern SATA is just a DMA engine with PHY control anyway (just like
> networking), so we really just need to be sure to abstract away
> initiator-mode (aka host mode) specifics in drivers that support target
> mode.
next prev parent reply other threads:[~2007-11-08 20:49 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 ` Mark Lord [this message]
2007-11-08 21:05 ` SATA Target mode & libata Jeff Garzik
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=4733764D.80203@rtr.ca \
--to=liml@rtr.ca \
--cc=alan@redhat.com \
--cc=htejun@gmail.com \
--cc=jeff@garzik.org \
--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).