[PATCH] drm/vgem: Remember to offset relative timeouts to mod_timer() by jiffies

2016-07-18 Thread Daniel Vetter
On Mon, Jul 18, 2016 at 10:31:18AM +0100, Chris Wilson wrote: > mod_timer() takes an absolute jiffie value, not a relative timeout and > quietly fixup the missed ret=0 otherwise gcc just always returns that > the fence timed out. > > Testcase: igt/vgem_basic/fence > Fixes: 407779848445 ("drm/vgem:

[PATCH] drm/vgem: Remember to offset relative timeouts to mod_timer() by jiffies

2016-07-18 Thread Chris Wilson
mod_timer() takes an absolute jiffie value, not a relative timeout and quietly fixup the missed ret=0 otherwise gcc just always returns that the fence timed out. Testcase: igt/vgem_basic/fence Fixes: 407779848445 ("drm/vgem: Attach sw fences to exported vGEM dma-buf") Signed-off-by: Chris Wilson