]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Skip CPU synchronisation on dmabuf attachments
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 Nov 2017 18:07:02 +0000 (18:07 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Feb 2020 00:16:15 +0000 (00:16 +0000)
commit983d82ab1db846e8123097ce7735eb3a7580624f
treea06004a50196379f78ae19fc9e9ff33f92fb1fbc
parentb1b3a454f9de3d11f59f4ecbbfd8da52e308e6a8
drm/i915: Skip CPU synchronisation on dmabuf attachments

dma-bufs are device coherent, with explicit CPU synchronisation provided
via the begin/end cpu access ioctls. As the coherency of the dma-buf is
explicitly defined to be under user control, flushing any caches on
attach/detach of the dma-buf is additional work that doesn't aide the
user in the slightest.

Suggested-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Dongwon Kim <dongwon.kim@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171130180702.29357-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c