projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e510a8
)
drm/i915: Assert that the request hasn't been retired
author
Chris Wilson
<chris@chris-wilson.co.uk>
Fri, 5 Aug 2016 09:14:24 +0000
(10:14 +0100)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Fri, 5 Aug 2016 09:54:44 +0000
(10:54 +0100)
With all callers now not playing tricks with dropping the struct_mutex
between waiting and retiring, we can assert that the request is ready to
be retired.
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/1470388464-28458-19-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem_request.c
b/drivers/gpu/drm/i915/i915_gem_request.c
index 1f91dc8c417134fe9f7ce316824d0aa946ed43e9..b317a672040ff0916b4a8ee63c5e48957d62a08f 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem_request.c
+++ b/
drivers/gpu/drm/i915/i915_gem_request.c
@@
-170,7
+170,7
@@
static void i915_gem_request_retire(struct drm_i915_gem_request *request)
struct i915_gem_active *active, *next;
trace_i915_gem_request_retire(request);
- list_del
_init
(&request->link);
+ list_del(&request->link);
/* We know the GPU must have read the request to have
* sent us the seqno + interrupt, so use the position
@@
-228,9
+228,7
@@
void i915_gem_request_retire_upto(struct drm_i915_gem_request *req)
struct drm_i915_gem_request *tmp;
lockdep_assert_held(&req->i915->drm.struct_mutex);
-
- if (list_empty(&req->link))
- return;
+ GEM_BUG_ON(list_empty(&req->link));
do {
tmp = list_first_entry(&engine->request_list,