]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Before accessing an object via the cpu, flush GTT writes
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:16:48 +0000 (17:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:44 +0000 (22:36 +0100)
commitfc6a162a5416f90c475d5c33772e33da55bcdfe0
tree0a563aab4c943d342f32676f9171b972dbe84be8
parenta435731fc4b25a14a4020899960d2024d194bc89
drm/i915: Before accessing an object via the cpu, flush GTT writes

If we want to read the pages directly via the CPU, we have to be sure
that we have to flush the writes via the GTT (as the CPU can not see
the address aliasing).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160818161718.27187-9-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c