[Intel-gfx] [PATCH v2] drm/i915: Remove redundant i915_request_await_object in blit clears
Chris Wilson
chris at chris-wilson.co.uk
Mon Jun 15 16:16:50 UTC 2020
Quoting Tvrtko Ursulin (2020-06-15 16:14:49)
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>
> One i915_request_await_object is enough and we keep the one under the
> object lock so it is final.
>
> At the same time move async clflushing setup under the same locked
> section and consolidate common code into a helper function.
>
> v2:
> * Emit initial breadcrumbs after aways are set up. (Chris)
s/aways/awaits/
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Cc: Matthew Auld <matthew.auld at intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Michael J. Ruhl <michael.j.ruhl at intel.com>
> ---
> .../gpu/drm/i915/gem/i915_gem_object_blt.c | 52 ++++++++-----------
> 1 file changed, 21 insertions(+), 31 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gem/i915_gem_object_blt.c b/drivers/gpu/drm/i915/gem/i915_gem_object_blt.c
> index f457d7130491..bfdb32d46877 100644
> --- a/drivers/gpu/drm/i915/gem/i915_gem_object_blt.c
> +++ b/drivers/gpu/drm/i915/gem/i915_gem_object_blt.c
> @@ -126,6 +126,17 @@ void intel_emit_vma_release(struct intel_context *ce, struct i915_vma *vma)
> intel_engine_pm_put(ce->engine);
> }
>
> +static int
> +move_obj_to_gpu(struct drm_i915_gem_object *obj,
> + struct i915_request *rq,
> + bool write)
* shrug, I prefer to think in terms of vma, but even vma are unlikely to
be the final form here.
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris
More information about the Intel-gfx
mailing list