drm: Fix syncobj handing of schedule() returning 0
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 20 Sep 2018 20:05:30 +0000 (21:05 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Sep 2018 09:31:12 +0000 (10:31 +0100)
commit12fec62aea6ea67512f0ddabf960c9270b6d1b05
tree4e98cf230af14596be6f0d7900100849c35abb81
parent1664691a659f6115bae26e6256166e08b50def4e
drm: Fix syncobj handing of schedule() returning 0

After schedule() returns 0, we must do one last check of COND to
determine the reason for the wakeup with 0 jiffies remaining before
reporting the timeout -- otherwise we may lose the signal due to
scheduler delays.

References: https://bugs.freedesktop.org/show_bug.cgi?id=106690
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180920200530.2836-2-chris@chris-wilson.co.uk
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_syncobj.c