public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: "Kristian Høgsberg" <krh@bitplanet.net>
Cc: James Bottomley <James.Bottomley@steeleye.com>,
	linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: Proposals to change the way all drivers work with SCSI commands
Date: Fri, 11 May 2007 23:58:30 +0200	[thread overview]
Message-ID: <4644E706.5030102@s5r6.in-berlin.de> (raw)
In-Reply-To: <59ad55d30705111430o3142dd6m37c05475a1b3c6dd@mail.gmail.com>

Kristian Høgsberg wrote:
> On 5/11/07, Stefan Richter <stefanr@s5r6.in-berlin.de> wrote:
>> James Bottomley wrote:
>> > It strikes me that in all of this, we could also consider doing the DMA
>> > mapping inside the mid layer (instead of in every driver).
...
>> The old SBP-2 driver needs the virtual addresses of S/G elements if
>> compiled with a certain config option.  This option is meant for use
>> with FireWire controllers which do not implement OHCI-1394, or to run
>> the IEEE 1394 stack in a more secure mode.
...
> Well, if we want to make a more secure mode for fw-sbp2.c where it,
> like the old driver, manually copies the payload data from the general
> async receive buffer to the destination, we'll still need the virtual
> address.

Yes, that's right. /If/ we are going to implement such a mode, then (a)
the virtual addresses have to be passed down to ->queuecommand, and (b)
DMA mapping would be unnecessary and wasteful.

(For the list:  By "secure" we mean that we wouldn't allow the FireWire
controller to act as a bus bridge, and would be able to do boundary
checks on local bus addresses which, in the SBP-2 protocol, are
generally coming from the _target_.  Without such a mode, the lower 4G
of the initiator's memory are at the mercy of the target's firmware.)

> How does the usb storage driver handle this?
> 
> Kristian

-- 
Stefan Richter
-=====-=-=== -=-= -=-==
http://arcgraph.de/sr/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2007-05-11 21:58 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-11 18:33 Proposals to change the way all drivers work with SCSI commands James Bottomley
2007-05-11 18:42 ` FUJITA Tomonori
2007-05-11 19:15 ` Jeff Garzik
2007-05-11 19:49   ` James Bottomley
2007-05-11 20:10     ` Jeff Garzik
2007-05-11 20:00 ` David Miller
2007-05-11 21:12   ` James Bottomley
2007-05-11 21:21     ` David Miller
2007-05-11 21:36       ` James Bottomley
2007-05-11 21:47         ` David Miller
2007-05-11 21:52           ` James Bottomley
2007-05-11 21:20 ` Stefan Richter
2007-05-11 21:30   ` Kristian Høgsberg
2007-05-11 21:58     ` Stefan Richter [this message]
2007-05-12  6:35 ` Muli Ben-Yehuda
2007-05-12  9:12 ` Heiko Carstens
2007-05-12 13:04   ` James Bottomley
2007-05-12 15:29 ` Christoph Hellwig
2007-05-12 15:50   ` James Bottomley
2007-05-12 15:52     ` Christoph Hellwig

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=4644E706.5030102@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=James.Bottomley@steeleye.com \
    --cc=krh@bitplanet.net \
    --cc=linux-scsi@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