* in-kernel data transfer between devices
@ 2007-03-23 19:11 Ameya Mitragotri
0 siblings, 0 replies; only message in thread
From: Ameya Mitragotri @ 2007-03-23 19:11 UTC (permalink / raw)
To: linux-kernel
Hello,
I'm trying to write data from device memory (VRAM in this case) to the
HDD with a kernel module. I want to avoid using the cache so i tried
to do a direct-io. Reading the code i figured it used 'get_user_pages'
and since VRAM is io mapped, those pages are marked VM_IO and hence
directio fails. Why is it taboo to write VM_IO pages using directio?
(is it because Device -> Device DMA is not possible?)
Now attempting to still do the same, im trying to copy VRAM data to a
buffer and still try and use the directio path. it will mean bypassing
the get_user_pages and may mean ugly hacking, but then i also read a
little about splice. Wondering if splice is the way to go for a
device memory to disk in kernel data transfer?
I'm doing the above as an experiment. My actual goal is to transfer
data between devices in-kernel.
Thanks
Ameya
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-23 19:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-23 19:11 in-kernel data transfer between devices Ameya Mitragotri
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®