<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - [Bisected] stuck pageflip"
href="https://bugs.freedesktop.org/show_bug.cgi?id=85888#c22">Comment # 22</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - [Bisected] stuck pageflip"
href="https://bugs.freedesktop.org/show_bug.cgi?id=85888">bug 85888</a>
from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are on the CC list for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>