Skip to content

Commit

Permalink
drm/i915: Wait for all fences before installing an exclusive clflush …
Browse files Browse the repository at this point in the history
…fence

Ensure that before we overwrite the reservation_object with our
exclusive fence for the pending clflush operation, that we do wait upon
all the fences in the current reservation_object.

Fixes: 57822dc ("drm/i915: Perform object clflushing asynchronously")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170323085758.11695-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
  • Loading branch information
Chris Wilson committed Mar 23, 2017
1 parent 233ebf5 commit d223760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_gem_clflush.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void i915_gem_clflush_object(struct drm_i915_gem_object *obj,

i915_sw_fence_await_reservation(&clflush->wait,
obj->resv, NULL,
false, I915_FENCE_TIMEOUT,
true, I915_FENCE_TIMEOUT,
GFP_KERNEL);

reservation_object_lock(obj->resv, NULL);
Expand Down

0 comments on commit d223760

Please sign in to comment.