Skip to contentSkip to conversation

scsi generic mem2disk patch for 2.6?

DISCUSSION Michael Morrison 2 participants 2 messages Feb 7, 2006 – Feb 8, 2006 SCSI

lore
Share & tools
lore
#0 lore raw

Howdy,

There is a sg patch for 2.4 which allows a pci bus address, or rather a virtual address, to be passed to the scsi generic driver in the
sg_io_hdr struct. This patch works wonders for doing fast IO between
an HDTV capture card and a bunch of disks.

Is there such a beast for 2.6? Does 2.6 already have this
functionality built in somehow?
If not, is there any reason why adding said functionality to the current 2.6.15 sg driver would not be doable?

see: http://sg.torque.net/sg/mem2disk.html

Thanks

#1 lore raw
Quoted 7 lines · Michael Morrison

Howdy,

There is a sg patch for 2.4 which allows a pci bus address, or rather a virtual address, to be passed to the scsi generic driver in the
sg_io_hdr struct. This patch works wonders for doing fast IO between
an HDTV capture card and a bunch of disks.

Quoted 7 lines

Is there such a beast for 2.6? Does 2.6 already have this
functionality built in somehow?
If not, is there any reason why adding said functionality to the current 2.6.15 sg driver would not be doable?

see: http://sg.torque.net/sg/mem2disk.html

Good to read that this lk 2.4 patch was useful.

Now before thinking about such a patch in the sg driver in lk 2.6 it might be prudent to ask the various veto holders to look at the above link and comment on whether such an optimization is:
- possible in the lk 2.6 series
- if so, an external patch (such as given on the above link) might be developed
- or perhaps such a facility could be put into the standard sg driver in lk 2.6
- alternatively, could this be done as efficiently with the block layer SG_IO ioctl

Doug Gilbert