Searched hist:be7d9f05c53e6fc88525f8e55cf2dae937761799 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_gem_shmem_helper.c | diff be7d9f05c53e6fc88525f8e55cf2dae937761799 Wed May 29 01:51:21 CDT 2019 Boris Brezillon <boris.brezillon@collabora.com> 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
|