drm/i915: Squelch any ktime/jiffie rounding errors for wait-ioctl
authorChris Wilson <[email protected]>
Thu, 16 Feb 2017 12:54:41 +0000 (12:54 +0000)
committerChris Wilson <[email protected]>
Thu, 16 Feb 2017 20:31:13 +0000 (20:31 +0000)
commitc1d2061b28c2aa25ec39b60d9c248e6beebd7315
treebafdc6a30a4b571911961d93b9d5fa2dce5a04ac
parentbbdf0b2ff32aa75c7bd167569130e9391d2e6282
drm/i915: Squelch any ktime/jiffie rounding errors for wait-ioctl

We wait upon jiffies, but report the time elapsed using a
high-resolution timer. This discrepancy can lead to us timing out the
wait prior to us reporting the elapsed time as complete.

This restores the squelching lost in commit e95433c73a11 ("drm/i915:
Rearrange i915_wait_request() accounting with callers").

Fixes: e95433c73a11 ("drm/i915: Rearrange i915_wait_request() accounting with callers")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Matthew Auld <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: <[email protected]> # v4.10-rc1+
Cc: [email protected]
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Joonas Lahtinen <[email protected]>
drivers/gpu/drm/i915/i915_gem.c