]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Always flush the dirty CPU cache when pinning the scanout
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Nov 2016 21:17:46 +0000 (21:17 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Nov 2016 22:33:22 +0000 (22:33 +0000)
commit12ca5e9f7c52c427ecf05db47fe26336a140baea
tree1188202170d26689db3b3bfc00343c0a16db1ef3
parent1ea0ebfe0dce3433cc955b21232a80fe62d8d661
drm/i915: Always flush the dirty CPU cache when pinning the scanout

Currently we only clflush the scanout if it is in the CPU domain. Also
flush if we have a pending CPU clflush. We also want to treat the
dirtyfb path similar, and flush any pending writes there as well.

v2: Only send the fb flush message if flushing the dirt on flip
v3: Make flush-for-flip and dirtyfb look more alike since they serve
similar roles as end-of-frame marker.

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