From: Chris Wilson Date: Wed, 12 Aug 2015 12:08:22 +0000 (+0100) Subject: drm/i915: Do not check or a stalled pageflip prior to it being queued X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=908565c20888f790b96b03ae5be9cd175f3d8d72;p=linux-beck.git drm/i915: Do not check or a stalled pageflip prior to it being queued When we queue the command or operation to change the scanout address, we mark the flip as in progress. We can use this flag to prevent us from checking for a stalled flip prior to its existence! Signed-off-by: Chris Wilson Reviewed-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 7f6d5fd7c2cf..dc3e6b2e5663 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -11236,6 +11236,9 @@ static bool __intel_pageflip_stall_check(struct drm_device *dev, if (atomic_read(&work->pending) >= INTEL_FLIP_COMPLETE) return true; + if (atomic_read(&work->pending) < INTEL_FLIP_PENDING) + return false; + if (!work->enable_stall_check) return false;