projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af56e0a
)
i915: add stub dma-buf mmap callback.
author
Dave Airlie
<airlied@redhat.com>
Tue, 29 May 2012 14:11:22 +0000
(15:11 +0100)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 31 May 2012 12:13:31 +0000
(13:13 +0100)
This just adds a stub for now, until we have some users in
place to test this functionality properly.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_gem_dmabuf.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem_dmabuf.c
b/drivers/gpu/drm/i915/i915_gem_dmabuf.c
index 8e269178d6a5a65c2f5ab8068ac86d283711fab6..4fba63e896d7aa454b6657d9910098ddfb9c2356 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem_dmabuf.c
+++ b/
drivers/gpu/drm/i915/i915_gem_dmabuf.c
@@
-93,6
+93,11
@@
static void i915_gem_dmabuf_kunmap(struct dma_buf *dma_buf, unsigned long page_n
}
+static int i915_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma)
+{
+ return -EINVAL;
+}
+
static const struct dma_buf_ops i915_dmabuf_ops = {
.map_dma_buf = i915_gem_map_dma_buf,
.unmap_dma_buf = i915_gem_unmap_dma_buf,
@@
-101,6
+106,7
@@
static const struct dma_buf_ops i915_dmabuf_ops = {
.kmap_atomic = i915_gem_dmabuf_kmap_atomic,
.kunmap = i915_gem_dmabuf_kunmap,
.kunmap_atomic = i915_gem_dmabuf_kunmap_atomic,
+ .mmap = i915_gem_dmabuf_mmap,
};
struct dma_buf *i915_gem_prime_export(struct drm_device *dev,