linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* DMA to User-Space
@ 2009-11-03 23:37 Jonathan Haws
  2009-11-04  2:19 ` Tonyliu
  2009-11-23 17:11 ` Sergey Temerkhanov
  0 siblings, 2 replies; 10+ messages in thread
From: Jonathan Haws @ 2009-11-03 23:37 UTC (permalink / raw)
  To: linuxppc-dev@lists.ozlabs.org

All,

I have what may be an unconventional question:

Our application consists of data being captured by an FPGA, processed, and =
transferred to SDRAM.  I simply give the FPGA an address of where I want it=
 stored in SDRAM and it simply DMAs the data over and interrupts me when fi=
nished.  I then take that data and store it to disk.

I have code in user space that handles all of the writing to disk nicely an=
d fast enough for my application (I am capturing data at about 35-40 Mbytes=
/sec).

My question is this:  is it possible to give a user-space pointer to the FP=
GA to DMA to?  It seems like I would have problems with alignment, address =
manipulation, and a whole slew of other issues.

What would be the best way to accomplish something like that?  I want to ha=
ndle all the disk access in user-space, but I do not want to have to copy 4=
0 MB/s from kernel space to user-space either.

I can maintain an allocated, DMA-safe buffer in kernel space if needed.  Ca=
n I simply get a user-space pointer to that buffer?  What calls are needed =
to translate addresses?

Thanks for the help!  I am still a newbie when it comes to kernel programmi=
ng, so I really appreciate the help!

Jonathan

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

end of thread, other threads:[~2009-11-23 17:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-03 23:37 DMA to User-Space Jonathan Haws
2009-11-04  2:19 ` Tonyliu
2009-11-04 17:40   ` Jonathan Haws
2009-11-04 17:50     ` Jonathan Haws
2009-11-06  6:05       ` Chris Friesen
2009-11-06 16:34         ` Jonathan Haws
2009-11-06 17:07           ` Alan Nishioka
2009-11-06 18:47             ` Jonathan Haws
2009-11-04 19:02     ` john.p.price
2009-11-23 17:11 ` Sergey Temerkhanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).