]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Mark imported dma-buf objects as being coherent
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Jul 2016 08:21:14 +0000 (09:21 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Jul 2016 08:29:53 +0000 (09:29 +0100)
commit8718fa30c6e6660a6ddea4685c14c857fc5387cb
treef603730f79cd4e68d3600c3be8264ec4c13136fd
parent226bb163887b7b88f7613b40ef4df10e2658167e
drm/i915: Mark imported dma-buf objects as being coherent

A foreign dma-buf does not share our cache domain tracking, and we rely
on the producer ensuring cache coherency. Marking them as being in the
CPU domain is incorrect.

v2: Add commentary about the GTT domain. This is not the best place for
it, but pending an actual overhaul of our domain tracking and explaining
each one, this comment should help the next reader...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1469002875-2335-7-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_dmabuf.c