aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorPaul Cercueil <[email protected]>2021-05-28 00:03:34 +0100
committerPaul Cercueil <[email protected]>2021-05-28 09:47:53 +0100
commit162ba3bd9dce61889eb739adf2923811dcbeff94 (patch)
tree51042243cb6553794e3632d6f6af6ecb1b5bb07c /lib/mpi/mpi-sub-ui.c
parent71b970c8680732b3dec1f9506087ef56bd6a123d (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 <[email protected]> Reported-by: Tomi Valkeinen <[email protected]> Reviewed-by: Tomi Valkeinen <[email protected]> Tested-by: Tomi Valkeinen <[email protected]> Fixes: cf8ccbc72d61 ("drm: Add support for GEM buffers backed by non-coherent memory") Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions