drm/i915: Block enabling FBC until flips have been completed
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 25 Jun 2018 16:37:57 +0000 (18:37 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 29 Jun 2018 08:06:08 +0000 (10:06 +0200)
commitc9855a561afa5b21db7f2218f0b7baaa555fa90c
treec95c3bb982579244028cdcbfec14a6f114f6cf1c
parent9512f985c32d45ab439a210981e0d73071da395a
drm/i915: Block enabling FBC until flips have been completed

There is a small race window in which FBC can be enabled after
pre_plane_update is called, but before the page flip has been
queued or completed.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103167
Link: https://patchwork.freedesktop.org/patch/msgid/20180625163758.10871-1-maarten.lankhorst@linux.intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_fbc.c