]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Check the timeout passed to i915_wait_request
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Nov 2015 13:31:42 +0000 (13:31 +0000)
committerJani Nikula <jani.nikula@intel.com>
Tue, 1 Dec 2015 08:48:58 +0000 (10:48 +0200)
commit1075c7f166bbf69680086fef2ef2a9710ca944eb
tree7df1d1b139f3f19eb35aeb02190539654bb7df81
parentd261f05305826e52f981b03ce3edc28f35d62f2b
drm/i915: Check the timeout passed to i915_wait_request

We have relied upon the sole caller (wait_ioctl) validating the timeout
argument. However, when waiting for multiple requests I forgot to ensure
that the timeout was still positive on the later requests. This is more
simply done inside __i915_wait_request.

Fixes regression introduced in
commit 2cec2e2418495143ed9223d42449f26594704755
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon Apr 27 13:41:17 2015 +0100

    drm/i915: Implement inter-engine read-read optimisations

The impact of the regression is 1 jiffie for each extra active ring for
a wait_ioctl with a timeout -- I don't think anyone has noticed.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1448544702-5594-1-git-send-email-chris@chris-wilson.co.uk
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gem.c