drm/i915: Expand bool interruptible to pass flags to i915_wait_request()

We need finer control over wakeup behaviour during i915_wait_request(),
so expand the current bool interruptible to a bitmask.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160909131201.16673-9-chris@chris-wilson.co.uk
This commit is contained in:
Chris Wilson
2016-09-09 14:11:49 +01:00
parent 2c7487a524
commit ea746f3659
12 changed files with 37 additions and 32 deletions

View File

@@ -2223,7 +2223,8 @@ static int wait_for_space(struct drm_i915_gem_request *req, int bytes)
if (WARN_ON(&target->ring_link == &ring->request_list))
return -ENOSPC;
ret = i915_wait_request(target, true, NULL, NO_WAITBOOST);
ret = i915_wait_request(target, I915_WAIT_INTERRUPTIBLE,
NULL, NO_WAITBOOST);
if (ret)
return ret;