Re: [Intel-gfx] [PATCH v2] drm/i915: Handle full s64 precision for wait-ioctl

2017-08-15 Thread Chris Wilson
Quoting Joonas Lahtinen (2017-08-14 11:42:05) > On Fri, 2017-08-11 at 11:57 +0100, Chris Wilson wrote: > > The wait-ioctl is optionally supplied a timeout with nanosecond > > precision in a s64 field. We use nsecs_to_jiffies64() to convert that > > into the jiffies consumed by the scheduler, but

Re: [Intel-gfx] [PATCH v2] drm/i915: Handle full s64 precision for wait-ioctl

2017-08-14 Thread Joonas Lahtinen
On Fri, 2017-08-11 at 11:57 +0100, Chris Wilson wrote: > The wait-ioctl is optionally supplied a timeout with nanosecond > precision in a s64 field. We use nsecs_to_jiffies64() to convert that > into the jiffies consumed by the scheduler, but internally > nsecs_to_jiffies64() does not guard

[Intel-gfx] [PATCH v2] drm/i915: Handle full s64 precision for wait-ioctl

2017-08-11 Thread Chris Wilson
The wait-ioctl is optionally supplied a timeout with nanosecond precision in a s64 field. We use nsecs_to_jiffies64() to convert that into the jiffies consumed by the scheduler, but internally nsecs_to_jiffies64() does not guard against overflow (as it's purpose is for use by the scheduler and not