[igt-dev] [PATCH i-g-t 55/79] lib/i915/submission: Rework gem_test_all_engines to use intel_ctx_t

Jason Ekstrand jason at jlekstrand.net
Fri Jun 18 16:03:41 UTC 2021


On Thu, Jun 17, 2021 at 8:16 PM Dixit, Ashutosh
<ashutosh.dixit at intel.com> wrote:
>
> On Thu, 17 Jun 2021 12:14:52 -0700, Jason Ekstrand wrote:
> >
> > This function used to be called gem_test_engine but it's only ever used
> > to test all the engines in the GPU so we rename it for the one thing
> > it's used for.  We also convert to intel_ctx_t.  It now creates a new
> > context with all physical engines and iterates over all the engines in
> > it.
>
> Please add your SOB here.

Done

> > ---
> >  lib/i915/gem_submission.c | 19 ++++++++-----------
> >  lib/i915/gem_submission.h |  2 +-
> >  tests/i915/gem_eio.c      |  2 +-
> >  tests/i915/i915_pm_rpm.c  |  2 +-
> >  4 files changed, 11 insertions(+), 14 deletions(-)
> >
> > diff --git a/lib/i915/gem_submission.c b/lib/i915/gem_submission.c
> > index 7c305d6d6..bec952493 100644
> > --- a/lib/i915/gem_submission.c
> > +++ b/lib/i915/gem_submission.c
> > @@ -177,20 +177,23 @@ static bool is_wedged(int i915)
> >  }
> >
> >  /**
> > - * gem_test_engine:
> > + * gem_test_all_engines:
> >   * @i915: open i915 drm file descriptor
> >   * @engine: the engine (I915_EXEC_RING id) to exercise
>
> Delete @engine in the docs too.

Done

> >   *
> >   * Execute a nop batch on the engine specified, or ALL_ENGINES for all,
> >   * and check it executes.
> >   */
> > -void gem_test_engine(int i915, unsigned int engine)
> > +void gem_test_all_engines(int i915)
>
> With this this is:
>
> Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>

Thanks!


More information about the igt-dev mailing list