lkml.org 
[lkml]   [2008]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/1] Userspace I/O (UIO): Add support for userspace DMA
> You are using a magic value to mmap(), just to keep options open:
>
> Would this in the future allow us to also add support for streaming
> non-coherent DMA directly into user space buffers?

Yes, but additional userspace control is also required.
Specifically:
1) The specification of direction at the time of buffer creation,
unless force DMA_BIDIRECTIONAL is assumed.
2) An API to faciliate userspace control over dma_unmap_page() /
dma_sync_single_for_cpu() calls (perhaps by further overloading
of the write method).

The use of this magic value does not prevent the future addition of
streaming DMA support, but does not provide sufficient controls.


\
 
 \ /
  Last update: 2008-12-04 03:47    [W:0.088 / U:2.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site