* Bidirectional support
@ 2003-11-18 17:41 Liran Schour
2003-11-18 17:50 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: Liran Schour @ 2003-11-18 17:41 UTC (permalink / raw)
To: linux-scsi, Muli Ben-Yehuda
The OSD standard requires support for bidirectional commands (write and get
obj attribute at the same command for example). The SAM-3 defines that in
order to execute a SCSI command the caller should supply an input an output
buffer. It seems that in the current Linux SCSI implementation the API
accept only one buffer, input our output buffer depends on the
data_direction flag.
Is there some work going on trying to implement bidirectional support?
Is it sound reasonable to extend the scatter-gather structure to include
data direction flag and by that bypass the interface problem and allow
support for bidirectional commands?
Thanks,
- Liran
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bidirectional support
2003-11-18 17:41 Bidirectional support Liran Schour
@ 2003-11-18 17:50 ` Christoph Hellwig
2003-11-18 20:02 ` Liran Schour
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2003-11-18 17:50 UTC (permalink / raw)
To: Liran Schour; +Cc: linux-scsi, Muli Ben-Yehuda
On Tue, Nov 18, 2003 at 07:41:05PM +0200, Liran Schour wrote:
> The OSD standard requires support for bidirectional commands (write and get
> obj attribute at the same command for example). The SAM-3 defines that in
> order to execute a SCSI command the caller should supply an input an output
> buffer. It seems that in the current Linux SCSI implementation the API
> accept only one buffer, input our output buffer depends on the
> data_direction flag.
> Is there some work going on trying to implement bidirectional support?
I haven't heard about such work beeing done.
> Is it sound reasonable to extend the scatter-gather structure to include
> data direction flag and by that bypass the interface problem and allow
> support for bidirectional commands?
Why do you need the flag in the scatterlist? We already have a dma_direction
enum in the scsi_cmnd that's pased to the dma mapping routines, it may
be DMA_BIDRECTIONAL although that's currently not used by any code.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bidirectional support
2003-11-18 17:50 ` Christoph Hellwig
@ 2003-11-18 20:02 ` Liran Schour
0 siblings, 0 replies; 3+ messages in thread
From: Liran Schour @ 2003-11-18 20:02 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-scsi, linux-scsi-owner, Muli Ben-Yehuda
Christoph Hellwig wrote:
>
> > Is it sound reasonable to extend the scatter-gather structure to
include
> > data direction flag and by that bypass the interface problem and allow
> > support for bidirectional commands?
>
> Why do you need the flag in the scatterlist? We already have a
dma_direction
> enum in the scsi_cmnd that's pased to the dma mapping routines, it may
> be DMA_BIDRECTIONAL although that's currently not used by any code.
I can use this DMA_BIDIRECTIONAL flag. But I still do need somthing like a
scatterlist to overcome the fact that we have only one pointer for data
buffer instead of two, one for data out and one for data in.
- Liran
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-11-18 20:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-18 17:41 Bidirectional support Liran Schour
2003-11-18 17:50 ` Christoph Hellwig
2003-11-18 20:02 ` Liran Schour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox