drm/i915: Move updating color management to before vblank evasion
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 28 Feb 2017 14:28:47 +0000 (15:28 +0100)
committerJani Nikula <jani.nikula@intel.com>
Thu, 9 Mar 2017 08:45:44 +0000 (10:45 +0200)
commit38230243ef316ac696956d75dc78a22e3aa789b9
treeb9ac81df5712a723b07675e8cfe57a2f78b83506
parentd253371c4c2f5fc2d884ef25f64decd7549aff5a
drm/i915: Move updating color management to before vblank evasion

This cannot be done reliably during vblank evasasion
since the color management registers are not double buffered.

The original commit that moved it always during vblank evasion was
wrong, so revert it to before vblank evasion again.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: 20a34e78f0d7 ("drm/i915: Update color management during vblank evasion.")
Cc: stable@vger.kernel.org # v4.7+
Link: http://patchwork.freedesktop.org/patch/msgid/1488292128-14540-1-git-send-email-maarten.lankhorst@linux.intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
(cherry picked from commit 567f0792a6ad11c0c2620944b8eeb777359fb85a)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_display.c