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)
commit2b3c83176e908401f31e26a4c0ba71f6248b11c1
tree3317e4406264f98bac4e5ad506191ef0d0b76a3f
parent9caa34aa9382bf9f204d674633537accb475064a
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: 03ac84f1830e ("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