diff options
| author | Lucas Stach <[email protected]> | 2017-11-30 18:34:28 +0100 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2017-12-04 17:30:19 +0100 |
| commit | ca0e68e21aae10220eff71a297e7d794425add77 (patch) | |
| tree | d2bc5239f3e104575f6fde63d62fd0382f6a346f /drivers/mtd/lpddr/lpddr_cmds.c | |
| parent | b57e8b7661e04690643031af276c7bfc5c969dc9 (diff) | |
drm/prime: skip CPU sync in map/unmap dma_buf
Dma-bufs should already be device coherent, as they are only pulled in the
CPU domain via the begin/end cpu_access calls. As we cache the mapping set
up by dma_map_sg a CPU sync at this point will not actually guarantee proper
coherency on non-coherent architectures, so we can as well stop pretending.
This is an important performance fix for architectures which need explicit
cache synchronization and userspace doing lots of dma-buf imports.
Improves Weston on Etnaviv performance 5x, where before this patch > 90%
of Weston CPU time was spent synchronizing caches for buffers which are
already device coherent.
Signed-off-by: Lucas Stach <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions