Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308066
b: refs/heads/master
c: b25b086
h: refs/heads/master
v: v3
  • Loading branch information
Dave Airlie authored and Sumit Semwal committed May 25, 2012
1 parent 2b8e101 commit e992a28
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 12c4727e1d5370270a7df781d2ba0a76e05c1137
refs/heads/master: b25b086d23eb852bf3cfdeb60409b4967ebb3c0c
11 changes: 11 additions & 0 deletions trunk/Documentation/dma-buf-sharing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,17 @@ Access to a dma_buf from the kernel context involves three steps:
Note that these calls need to always succeed. The exporter needs to complete
any preparations that might fail in begin_cpu_access.

For some cases the overhead of kmap can be too high, a vmap interface
is introduced. This interface should be used very carefully, as vmalloc
space is a limited resources on many architectures.

Interfaces:
void *dma_buf_vmap(struct dma_buf *dmabuf)
void dma_buf_vunmap(struct dma_buf *dmabuf, void *vaddr)

The vmap call can fail if there is no vmap support in the exporter, or if it
runs out of vmalloc space. Fallback to kmap should be implemented.

3. Finish access

When the importer is done accessing the range specified in begin_cpu_access,
Expand Down

0 comments on commit e992a28

Please sign in to comment.