Ben Widawsky eac1f14fd1 drm/i915: Inifite timeout for wait ioctl
Change the ns_timeout parameter of the wait ioctl to a signed value.
Doing this allows the kernel to provide an infinite wait when a timeout
of less than 0 is provided. This mimics select/poll.

Initially the parameter was meant to match up with the GL spec 1:1, but
after being made aware of how much 2^64 - 1 nanoseconds actually is, I
do not think anyone will ever notice the loss of 1 bit.

The infinite timeout on waiting is similar to the existing i915
userspace interface with the exception that struct_mutex is dropped
while doing the wait in this ioctl.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-06-06 12:25:46 +02:00
..
2010-08-10 08:20:20 +10:00
2012-05-22 10:54:30 +01:00
2012-04-27 09:29:35 +01:00
2011-05-09 09:14:45 +10:00
2012-05-22 10:54:16 +01:00
2011-02-07 13:09:42 +10:00
2012-05-17 20:14:48 +09:00
2012-03-10 13:06:04 +00:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00