Re: [PATCH 11/12] drm/i915/selftests: Use GT engines in i915_gem_mman selftest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Tvrtko Ursulin (2019-10-22 10:47:25)
> From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
> 
> One more for_each_engine call site changed to work on GT engines.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
> ---
>  drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c b/drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c
> index 65d4dbf91999..45fc152ebf5c 100644
> --- a/drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c
> +++ b/drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c
> @@ -514,12 +514,13 @@ static int igt_smoke_tiling(void *arg)
>  static int make_obj_busy(struct drm_i915_gem_object *obj)
>  {
>         struct drm_i915_private *i915 = to_i915(obj->base.dev);
> +       struct intel_gt *gt = &i915->gt;
>         struct intel_engine_cs *engine;
>         enum intel_engine_id id;
>         struct i915_vma *vma;
>         int err;
>  
> -       vma = i915_vma_instance(obj, &i915->ggtt.vm, NULL);
> +       vma = i915_vma_instance(obj, &gt->ggtt->vm, NULL);
>         if (IS_ERR(vma))
>                 return PTR_ERR(vma);
>  
> @@ -527,7 +528,7 @@ static int make_obj_busy(struct drm_i915_gem_object *obj)
>         if (err)
>                 return err;
>  
> -       for_each_engine(engine, i915, id) {
> +       for_each_engine(engine, gt, id) {

I was thinking for_each_uabi_engine() -- but I was trying to answer to
myself why exactly.

Ok, I have an idea, let me float a patch.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux