[Intel-gfx] [PATCH] drm/i915: Ensure that the wait ioctl return timeout is valid
Daniel Vetter
daniel at ffwll.ch
Thu Nov 29 13:42:17 CET 2012
On Wed, Nov 14, 2012 at 07:11:24PM +0000, Chris Wilson wrote:
> Due to a discrepancy between the sleep time and the amount of time we
> spend waiting inside the wait_event_timeout, it is possible that we end
> up computing that negative time remains in the wait_ioctl. This is
> obviously a bogus result to return to userspace, and triggers a WARN, so
> we need to fix up the value before propagating it back.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Ben Widawsky <ben at bwidawsk.net>
Ben, can you pls take a look at this and smash an r-b on it if you're ok?
Thanks, Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
More information about the Intel-gfx
mailing list