dma-buf: add vmap interface
authorDave Airlie <airlied@redhat.com>
Sun, 20 May 2012 07:03:56 +0000 (12:03 +0530)
committerHiroshi Doyu <hdoyu@nvidia.com>
Fri, 7 Sep 2012 08:46:14 +0000 (11:46 +0300)
commit443d83ac293390fe29292e06f7f8fd8dfa369fe9
tree83beb3532fde0b6a78517be3b50aa2c6fa1fc70b
parent5af2514e37130e2c98de49234d4ec19094c8aafb
dma-buf: add vmap interface

The main requirement I have for this interface is for scanning out
using the USB gpu devices. Since these devices have to read the
framebuffer on updates and linearly compress it, using kmaps
is a major overhead for every update.

v2: fix warn issues pointed out by Sylwester Nawrocki.

v3: fix compile !CONFIG_DMA_SHARED_BUFFER and add _GPL for now

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Rob Clark <rob.clark@linaro.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
drivers/base/dma-buf.c
include/linux/dma-buf.h