[Bug 85888] [Bisected] stuck pageflip

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 17 05:26:13 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=85888

--- Comment #22 from Chris Wilson <chris at chris-wilson.co.uk> ---
Just

diff --git a/drivers/gpu/drm/i915/intel_display.c
b/drivers/gpu/drm/i915/intel_display.c
index e5974ce1d32b..70a75136bc61 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -9229,7 +9229,8 @@ void intel_prepare_page_flip(struct drm_device *dev, int
plane)
         */
        spin_lock_irqsave(&dev->event_lock, flags);
        if (intel_crtc->unpin_work && page_flip_finished(intel_crtc))
-               atomic_inc_not_zero(&intel_crtc->unpin_work->pending);
+               atomic_cmpxchg(&intel_crtc->unpin_work->pending,
+                              INTEL_FLIP_PENDING, INTEL_FLIP_COMPLETE);
        spin_unlock_irqrestore(&dev->event_lock, flags);
 }

should preserve the stuck pageflip handling for 945gm that begat the original
hammer.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20141217/1229351e/attachment.html>


More information about the intel-gfx-bugs mailing list