Commit bc7a71da authored by Gurchetan Singh's avatar Gurchetan Singh Committed by Gerd Hoffmann

udmabuf: use cache_sgt_mapping option

The GEM prime helpers do it, so should we. It's also possible to make
it optional later.
Signed-off-by: default avatarGurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20191203013627.85991-1-gurchetansingh@chromium.orgSigned-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 02c484a8
...@@ -94,10 +94,11 @@ static void release_udmabuf(struct dma_buf *buf) ...@@ -94,10 +94,11 @@ static void release_udmabuf(struct dma_buf *buf)
} }
static const struct dma_buf_ops udmabuf_ops = { static const struct dma_buf_ops udmabuf_ops = {
.map_dma_buf = map_udmabuf, .cache_sgt_mapping = true,
.unmap_dma_buf = unmap_udmabuf, .map_dma_buf = map_udmabuf,
.release = release_udmabuf, .unmap_dma_buf = unmap_udmabuf,
.mmap = mmap_udmabuf, .release = release_udmabuf,
.mmap = mmap_udmabuf,
}; };
#define SEALS_WANTED (F_SEAL_SHRINK) #define SEALS_WANTED (F_SEAL_SHRINK)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment