diff options
author | Ben Widawsky | 2012-06-06 00:24:24 +0200 |
---|---|---|
committer | Daniel Vetter | 2012-06-06 12:25:46 +0200 |
commit | eac1f14fd1e7243aa782ef85f2a217e0c3a709ad (patch) | |
tree | a6078850f0479ccc9c5f18a52b8fec5897e843be /include/drm/i915_drm.h | |
parent | drm/i915: assert that the IBX port transcoder select w/a is implemented (diff) | |
download | kernel-qcow2-linux-eac1f14fd1e7243aa782ef85f2a217e0c3a709ad.tar.gz kernel-qcow2-linux-eac1f14fd1e7243aa782ef85f2a217e0c3a709ad.tar.xz kernel-qcow2-linux-eac1f14fd1e7243aa782ef85f2a217e0c3a709ad.zip |
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>
Diffstat (limited to 'include/drm/i915_drm.h')
-rw-r--r-- | include/drm/i915_drm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h index bab174334da5..aae346e7f635 100644 --- a/include/drm/i915_drm.h +++ b/include/drm/i915_drm.h @@ -893,7 +893,7 @@ struct drm_i915_gem_wait { __u32 bo_handle; __u32 flags; /** Number of nanoseconds to wait, Returns time remaining. */ - __u64 timeout_ns; + __s64 timeout_ns; }; #endif /* _I915_DRM_H_ */ |