public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* disk IO directly from PCI memory to block device sectors
@ 2008-09-26  7:29 marty
  2008-09-26  8:03 ` Jens Axboe
  2008-09-26  8:46 ` Alan Cox
  0 siblings, 2 replies; 12+ messages in thread
From: marty @ 2008-09-26  7:29 UTC (permalink / raw)
  To: linux-kernel; +Cc: martin.leisner

We  have a large ram area on a PCI board (think of a custom framebuffer
type application).  We're using 2.6.20.

We have the PCI ram mapped into kernel space, and knew the physical addresses.

We have a raw partition on the block device which we reserve for this.

We want to be able to stick the contents of selected portion of PCI ram onto a block device (disk).  Past incarnations modified the disk driver, and developed a special API so the custom driver  constructed scatter/gather lists and fed it to the driver (bypassing the elevator algorithm, to execute
as the "next request".

What I'm looking is for a more generic/driver independent way of sticking
contents of PCI ram onto a disk.

Is offset + length of each bio_vec < pagesize?

What's the best way to do this (much of my data is already in physically
contiguous memory [and mapped into virtual memory)). 

Any good examples to look at?

marty


      

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-10-02 16:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-26  7:29 disk IO directly from PCI memory to block device sectors marty
2008-09-26  8:03 ` Jens Axboe
2008-09-26  8:46 ` Alan Cox
2008-09-26  9:11   ` Jens Axboe
2008-09-26 10:06     ` Alan Cox
2008-09-26 10:19       ` Jens Axboe
2008-09-26 11:34         ` Jens Axboe
2008-09-26 15:51     ` Leisner, Martin
2008-09-29 13:02       ` Jens Axboe
2008-10-01 19:05         ` Jens Axboe
2008-10-02 16:15           ` Leon Woestenberg
2008-10-02 16:32             ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox