Skip to contentSkip to conversation

Userspace DMA

DISCUSSION Alex Bennee 1 participant 1 message Nov 18, 2003

lore
Share & tools
lore
#0 lore raw

Now my mailer is fixed :-)

-----Forwarded Message-----

Quoted 32 lines

From: Alex Bennee <[email protected]>
To: Peter Chubb <[email protected]>
Cc: [email protected], Linux Mailing List <[email protected]>
Subject: Re: Userspace DMA
Date: Mon, 17 Nov 2003 10:37:40 +0000

Quoted 7 lines · Peter Chubb
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Andrew" == Andrew Miklas <[email protected]> writes:

Andrew> Hi, Is there an accepted way of doing userspace DMA with Andrew> Linux?

I'm currently working on a framework for user-space device drivers, that allow suitably privileged user-space programs to set up and tear down dma regions

Hi,

I've also been doing some work on allowing user processes to access the DMA hardware facilities of the processor platform. This is not actually aimed at pci stuff but used for other devices on the embedded SH board I use. It works using a packetised writev interface to send DMA requests to kernel space where the mapping of memory is done. It really works best with scatter gather dma as user-pages can be spread out all over the place.

Whether there is any overlap between my approach, what your doing and what Andrew is looking for I have no idea :-) I'm certainly interested in seeing any code if only for ideas.

You can find an alpha (but working on my system) copy of the code at:

http://www.bennee.com/~alex/software/kernel/index.php

Signature · 2 lines
Alex, homepage: http://www.bennee.com/~alex/
I used to get high on life but lately I've built up a resistance.