]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Stop skipping the final clflush back to system pages
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Nov 2016 14:58:09 +0000 (14:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Nov 2016 16:21:52 +0000 (16:21 +0000)
commitdb187311ceb68f05d5dce1eb000836e8f5fc8f9b
tree3317e4406264f98bac4e5ad506191ef0d0b76a3f
parent238b92627347cf9692fcc6b8d6b6a07ed060344c
drm/i915: Stop skipping the final clflush back to system pages

When we release the shmem backing storage, we make sure that the pages
are coherent with the cpu cache. However, our clflush routine was
skipping the flush as the object had no pages at release time. Fix this by
explicitly flushing the sg_table we are decoupling.

Fixes: 9c88a2a9b11a ("drm/i915: Pass around sg_table to get_pages/put_pages backend")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161111145809.9701-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c