diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-03-19 04:47:30 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-03-19 04:47:30 -0400 |
commit | 0d4a42f6bd298e826620585e766a154ab460617a (patch) | |
tree | 406d8f7778691d858dbe3e48e4bbb10e99c0a58a /include/linux/dma-buf.h | |
parent | d62b4892f3d9f7dd2002e5309be10719d6805b0f (diff) | |
parent | a937536b868b8369b98967929045f1df54234323 (diff) |
Merge tag 'v3.9-rc3' into drm-intel-next-queued
Backmerge so that I can merge Imre Deak's coalesced sg entries fixes,
which depend upon the new for_each_sg_page introduce in
commit a321e91b6d73ed011ffceed384c40d2785cf723b
Author: Imre Deak <imre.deak@intel.com>
Date: Wed Feb 27 17:02:56 2013 -0800
lib/scatterlist: add simple page iterator
The merge itself is just two trivial conflicts:
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/linux/dma-buf.h')
-rw-r--r-- | include/linux/dma-buf.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h index bd2e52ccc4f2..9978b614a1aa 100644 --- a/include/linux/dma-buf.h +++ b/include/linux/dma-buf.h | |||
@@ -53,7 +53,7 @@ struct dma_buf_attachment; | |||
53 | * @begin_cpu_access: [optional] called before cpu access to invalidate cpu | 53 | * @begin_cpu_access: [optional] called before cpu access to invalidate cpu |
54 | * caches and allocate backing storage (if not yet done) | 54 | * caches and allocate backing storage (if not yet done) |
55 | * respectively pin the objet into memory. | 55 | * respectively pin the objet into memory. |
56 | * @end_cpu_access: [optional] called after cpu access to flush cashes. | 56 | * @end_cpu_access: [optional] called after cpu access to flush caches. |
57 | * @kmap_atomic: maps a page from the buffer into kernel address | 57 | * @kmap_atomic: maps a page from the buffer into kernel address |
58 | * space, users may not block until the subsequent unmap call. | 58 | * space, users may not block until the subsequent unmap call. |
59 | * This callback must not sleep. | 59 | * This callback must not sleep. |
@@ -119,8 +119,10 @@ struct dma_buf { | |||
119 | struct file *file; | 119 | struct file *file; |
120 | struct list_head attachments; | 120 | struct list_head attachments; |
121 | const struct dma_buf_ops *ops; | 121 | const struct dma_buf_ops *ops; |
122 | /* mutex to serialize list manipulation and attach/detach */ | 122 | /* mutex to serialize list manipulation, attach/detach and vmap/unmap */ |
123 | struct mutex lock; | 123 | struct mutex lock; |
124 | unsigned vmapping_counter; | ||
125 | void *vmap_ptr; | ||
124 | void *priv; | 126 | void *priv; |
125 | }; | 127 | }; |
126 | 128 | ||