<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#c24">Comment # 24</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>On second thoughts:

diff --git a/drivers/gpu/drm/i915/intel_display.c
b/drivers/gpu/drm/i915/intel_display.c
index 70a75136bc61..0c43d970dbf9 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -9707,8 +9707,8 @@ static bool __intel_pageflip_stall_check(struct
drm_device *dev,
        struct intel_unpin_work *work = intel_crtc->unpin_work;
        u32 addr;

-       if (atomic_read(&work->pending) >= INTEL_FLIP_COMPLETE)
-               return true;
+       if (atomic_read(&work->pending) < INTEL_FLIP_COMPLETE)
+               return false;

        if (!work->enable_stall_check)
                return false;</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>