public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Steve Rottinger <steve@www.rottinger.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Direct transfer between SCSI and PCI
Date: Tue, 10 Mar 2009 00:11:14 +0100	[thread overview]
Message-ID: <49B5A212.1040300@gmail.com> (raw)
In-Reply-To: <36600.12.35.250.145.1236605376.squirrel@www.rottinger.net>

On 9.3.2009 14:29, Steve Rottinger wrote:
>As part
> of my project, I need to be able to directly transfer data from a large
> buffer that resides on
> a custom PCI communications device to a SCSI disk without going through
> the CPU's main
> memory.  Initially, it seemed like opening up the raw SCSI device in
> O_DIRECT mode would
> be the perfect solution.  However, through some experimentation, and
> reading some posts from
> a few years back, it appears that O_DIRECT only works on buffer's that
> reside in processor's
> main memory.   Does anyone have any suggestions as to how to get this to
> work?

How would you want your scsi device to get the data? I suppose they are 
stored somewhere on the PCI device memory connected to its local bus or 
alike. At best it can be visible as a PCI bar but I doubt it is. As you 
described it here, there is no way, how would the SCSI device see the data.

Or do you want to move the data from the PCI device via DMA implemented 
in it directly to the SCSI device? How would you do this? I guess SCSI 
devices do standard S/G DMA so that they read data from host memory by 
themselves.

Maybe if you elaborate on what exactly do you mean by the idea?

  reply	other threads:[~2009-03-09 23:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-09 13:29 Direct transfer between SCSI and PCI Steve Rottinger
2009-03-09 23:11 ` Jiri Slaby [this message]
2009-03-10 13:11   ` Steve Rottinger
  -- strict thread matches above, loose matches on Subject: below --
2009-03-09 12:38 Steve Rottinger

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=49B5A212.1040300@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=steve@www.rottinger.net \
    /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