]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Make legacy cursor updates more unsynced
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 29 Mar 2017 14:21:23 +0000 (17:21 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 26 Apr 2017 13:28:03 +0000 (16:28 +0300)
commit3cee97c11635a74f371d425d8af3554b3ab5d1c3
tree7a775cb27ab9607c35269b20e6fdd5d3c54dfb51
parent781fd99035919f7bb365bb9d199b78d55a282806
drm/i915: Make legacy cursor updates more unsynced

We're clearing the legacy_cursor_update flag before calling
drm_atomic_helper_setup_commit() which means the helper will
wait for the flip to complete before cleaning up the framebuffers.
That's not what we want for the legacy cursor, so let's clear
the flag after setting up the commit.

Also toss in a FIXME about solving these problems in a nicer
way using the fabled vblank workers.

v2: Also unsync with legacy page flips

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Uwe Kleine-König <uwe@kleine-koenig.org>
Cc: Rafael Ristovski <rafael.ristovski@gmail.com>
Fixes: c488da5241c6 ("drm/i915: Fix legacy cursor vs. watermarks for ILK-BDW")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170329142123.5923-1-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
(cherry picked from commit 895203044067af64400cedbc055898bcec98d102)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_display.c