drm/i915: Skip final clflush if LLC is coherent
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Nov 2016 21:17:47 +0000 (21:17 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Nov 2016 22:33:49 +0000 (22:33 +0000)
commit05c348377d90483f63362af3dc980d30fdc777be
tree8f74cc48ec117a227596bcc291c9eba32c3f4a6d
parenta6a7cc4b7db6deaeca11cdd38844ea147a354c7a
drm/i915: Skip final clflush if LLC is coherent

If the LLC is coherent with the object, we do not need to worry about
whether main memory and cache mismatch when we hand the object back to
the system.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161118211747.25197-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c