]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add is-completed assert to request retire entrypoint
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 25 Nov 2016 13:17:15 +0000 (13:17 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 25 Nov 2016 13:49:23 +0000 (13:49 +0000)
commitc0e0008b9f881e41f87658443c3e83accfeafd09
treef8df7cafd83cfef61f84b2ea49fc08c6410304a1
parente05e1417d8e1a51cec9d9bf24bfc02ca400fa31e
drm/i915: Add is-completed assert to request retire entrypoint

While we will check that the request is completed prior to being
retired, by placing an assert that the request is complete at the
entrypoint of the function we can more clearly document the function's
preconditions.

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/20161125131718.20978-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c