From: marty <martyleisner@yahoo.com>
To: linux-kernel@vger.kernel.org
Cc: martin.leisner@xerox.com
Subject: disk IO directly from PCI memory to block device sectors
Date: Fri, 26 Sep 2008 00:29:01 -0700 (PDT) [thread overview]
Message-ID: <247018.46515.qm@web50603.mail.re2.yahoo.com> (raw)
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
next reply other threads:[~2008-09-26 7:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-26 7:29 marty [this message]
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
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=247018.46515.qm@web50603.mail.re2.yahoo.com \
--to=martyleisner@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.leisner@xerox.com \
/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
all inboxes | Powered by JetHome®