drm/i915: Remove delayed FBC activation.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 25 Jun 2018 16:37:58 +0000 (18:37 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 29 Jun 2018 08:06:31 +0000 (10:06 +0200)
commit457209595789a3acd57990e2e9dade95bbea8fba
tree432e02910cae3e857ea69affc0e6d963d2ed4130
parentc9855a561afa5b21db7f2218f0b7baaa555fa90c
drm/i915: Remove delayed FBC activation.

The only time we should start FBC is when we have waited a vblank
after the atomic update. We've already forced a vblank wait by doing
wait_for_flip_done before intel_post_plane_update(), so we don't need
to wait a second time before enabling.

Removing the worker simplifies the code and removes possible race
conditions, like happening in 103167.

Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103167
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180625163758.10871-2-maarten.lankhorst@linux.intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_fbc.c