diff options
author | Paul Cercueil <paul@crapouillou.net> | 2021-05-28 00:03:34 +0100 |
---|---|---|
committer | Paul Cercueil <paul@crapouillou.net> | 2021-05-28 09:47:53 +0100 |
commit | 162ba3bd9dce61889eb739adf2923811dcbeff94 (patch) | |
tree | 51042243cb6553794e3632d6f6af6ecb1b5bb07c /drivers/gpu/host1x/Makefile | |
parent | 71b970c8680732b3dec1f9506087ef56bd6a123d (diff) |
drm: Fix for GEM buffers with write-combine memory
The previous commit wrongly assumed that dma_mmap_wc() could be replaced
by pgprot_writecombine() + dma_mmap_pages(). It did work on my setup,
but did not work everywhere.
Use dma_mmap_wc() when the buffer has the write-combine cache attribute,
and dma_mmap_pages() when it has the non-coherent cache attribute.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reported-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Tested-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Fixes: cf8ccbc72d61 ("drm: Add support for GEM buffers backed by non-coherent memory")
Link: https://patchwork.freedesktop.org/patch/msgid/20210527230334.151947-1-paul@crapouillou.net
Diffstat (limited to 'drivers/gpu/host1x/Makefile')
0 files changed, 0 insertions, 0 deletions