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,6 +94,7 @@ static void release_udmabuf(struct dma_buf *buf) ...@@ -94,6 +94,7 @@ static void release_udmabuf(struct dma_buf *buf)
} }
static const struct dma_buf_ops udmabuf_ops = { static const struct dma_buf_ops udmabuf_ops = {
.cache_sgt_mapping = true,
.map_dma_buf = map_udmabuf, .map_dma_buf = map_udmabuf,
.unmap_dma_buf = unmap_udmabuf, .unmap_dma_buf = unmap_udmabuf,
.release = release_udmabuf, .release = release_udmabuf,
......
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