drm/i915: Invalidate media caches on gen7
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 16 Dec 2014 08:44:31 +0000 (08:44 +0000)
committerJani Nikula <jani.nikula@intel.com>
Tue, 16 Dec 2014 13:04:39 +0000 (15:04 +0200)
commit148b83d0815a3778c8949e6a97cb798cbaa0efb3
tree9158e7af035f085ed0c3e1b46f5dd1e892f5c0fe
parentdbea3cea69508e9d548ed4a6be13de35492e5d15
drm/i915: Invalidate media caches on gen7

In the gen7 pipe control there is an extra bit to flush the media
caches, so let's set it during cache invalidation flushes.

v2: Rename to MEDIA_STATE_CLEAR to be more inline with spec.

Cc: Simon Farnsworth <simon@farnz.org.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_ringbuffer.c