diff options
author | Boris Brezillon <boris.brezillon@collabora.com> | 2019-05-29 09:51:21 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2019-06-10 18:14:01 +0300 |
commit | be7d9f05c53e6fc88525f8e55cf2dae937761799 (patch) | |
tree | c0fb452c203168f200831d604b62712d9f03610e /drivers/uio | |
parent | 652b8b086538c8a10de5aa5cbdaef79333b46358 (diff) | |
download | linux-be7d9f05c53e6fc88525f8e55cf2dae937761799.tar.xz |
drm/gem_shmem: Use a writecombine mapping for ->vaddr
Right now, the BO is mapped as a cached region when ->vmap() is called
and the underlying object is not a dmabuf.
Doing that makes cache management a bit more complicated (you'd need
to call dma_map/unmap_sg() on the ->sgt field everytime the BO is about
to be passed to the GPU/CPU), so let's map the BO with writecombine
attributes instead (as done in most drivers).
Fixes: 2194a63a818d ("drm: Add library for shmem backed GEM objects")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190529065121.13485-1-boris.brezillon@collabora.com
Diffstat (limited to 'drivers/uio')
0 files changed, 0 insertions, 0 deletions