]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only do a chipset flush after a clflush
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Aug 2013 13:41:09 +0000 (14:41 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Aug 2013 11:31:34 +0000 (13:31 +0200)
commit8d56d87860c44ea25c557d065e9d8cff6cba4dcd
tree7a7ef8cd2425158d0f376c130a3505560fd0a585
parent3a507cc27111001a01dd082c4c4d3a820a63df31
drm/i915: Only do a chipset flush after a clflush

Now that we skip clflushes more often, return a boolean indicating
whether the clflush was actually performed, and only if it was do the
chipset flush. (Though on most of the architectures where the clflush will
be skipped, the chipset flush is a no-op!)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c