From: Daniel Vetter <daniel@ffwll.ch>
To: Jason Ekstrand <jason@jlekstrand.net>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 4/4] tests/i915/gem_exec_balancer: Add a test for combind balancing and bonding
Date: Thu, 3 Jun 2021 14:50:52 +0200 [thread overview]
Message-ID: <YLjQLKB2vjiFjfq/@phenom.ffwll.local> (raw)
In-Reply-To: <YLjBN0P146kxsKQZ@phenom.ffwll.local>
On Thu, Jun 03, 2021 at 01:47:03PM +0200, Daniel Vetter wrote:
> On Thu, Jun 03, 2021 at 01:46:09PM +0200, Daniel Vetter wrote:
> > On Wed, Apr 28, 2021 at 03:21:43PM -0500, Jason Ekstrand wrote:
> >
> > In the subject of this one: s/combind/combined/
> >
> > I think that's fairly complete sanity check. On the series:
> >
> > Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> >
> > I think best if you include this in your overall igt set (can't be CI'ed
> > otherwise) and the Test-With: check this together with your kernel set.
>
> Oh and sobs missing.
One more: For the new tests please add igt_describe(). Also since you
looked at these quite a bit, would be really great to do a follow-up patch
and roll out igt_describe for the ctx tests you're touching. At least
where it's obvious what's getting tested.
-Daniel
> -Daniel
>
> >
> > Cheers, Daniel
> >
> > > ---
> > > tests/i915/gem_exec_balancer.c | 26 ++++++++++++++++++++++++++
> > > 1 file changed, 26 insertions(+)
> > >
> > > diff --git a/tests/i915/gem_exec_balancer.c b/tests/i915/gem_exec_balancer.c
> > > index 4f1fa390..b594e2e1 100644
> > > --- a/tests/i915/gem_exec_balancer.c
> > > +++ b/tests/i915/gem_exec_balancer.c
> > > @@ -167,6 +167,7 @@ static uint32_t batch_create(int i915)
> > > static void invalid_balancer(int i915)
> > > {
> > > I915_DEFINE_CONTEXT_ENGINES_LOAD_BALANCE(balancer, 64);
> > > + I915_DEFINE_CONTEXT_ENGINES_BOND(bond, 1);
> > > I915_DEFINE_CONTEXT_PARAM_ENGINES(engines, 64);
> > > struct drm_i915_gem_context_param p = {
> > > .param = I915_CONTEXT_PARAM_ENGINES,
> > > @@ -283,6 +284,31 @@ static void invalid_balancer(int i915)
> > >
> > > munmap(ptr + 4096, 4096);
> > >
> > > + if (count >= 2) {
> > > + /* You can't bond to a balanced engine */
> > > + memset(&bond, 0, sizeof(bond));
> > > + bond.base.name = I915_CONTEXT_ENGINES_EXT_BOND;
> > > + bond.master = ci[0];
> > > + bond.virtual_index = 0;
> > > + bond.num_bonds = 1;
> > > + bond.engines[0] = ci[1];
> > > +
> > > + balancer.base.next_extension = to_user_pointer(&bond);
> > > + balancer.engine_index = 0;
> > > + balancer.num_siblings = count;
> > > + memcpy(balancer.engines, ci, count * sizeof(*ci));
> > > +
> > > + memset(&engines, 0, sizeof(engines));
> > > + engines.engines[0].engine_class = I915_ENGINE_CLASS_INVALID;
> > > + engines.engines[0].engine_instance = I915_ENGINE_CLASS_INVALID_NONE;
> > > + engines.extensions = to_user_pointer(&balancer);
> > > +
> > > + p.size = (sizeof(struct i915_context_param_engines) +
> > > + sizeof(*engines.engines));
> > > +
> > > + igt_assert_eq(__gem_context_set_param(i915, &p), -EINVAL);
> > > + }
> > > +
> > > gem_context_destroy(i915, p.ctx_id);
> > > free(ci);
> > > }
> > > --
> > > 2.31.1
> > >
> > > _______________________________________________
> > > igt-dev mailing list
> > > igt-dev@lists.freedesktop.org
> > > https://lists.freedesktop.org/mailman/listinfo/igt-dev
> >
> > --
> > Daniel Vetter
> > Software Engineer, Intel Corporation
> > http://blog.ffwll.ch
>
> --
> Daniel Vetter
> Software Engineer, Intel Corporation
> http://blog.ffwll.ch
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2021-06-03 12:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-28 20:21 [igt-dev] [PATCH i-g-t 0/4] Add tests for newly invalid cases Jason Ekstrand
2021-04-28 20:21 ` [igt-dev] [PATCH i-g-t 1/4] tests/i915/gem_ctx_param: Add tests for recently removed params Jason Ekstrand
2021-04-28 20:21 ` [igt-dev] [PATCH i-g-t 2/4] tests/i915/gem_ctx_param: Add a couple invalid PARAM_VM cases Jason Ekstrand
2021-04-28 20:21 ` [igt-dev] [PATCH i-g-t 3/4] tests/i915/gem_ctx_engines: Add more invalid SET_CONTEXT_PARAM cases Jason Ekstrand
2021-04-28 20:21 ` [igt-dev] [PATCH i-g-t 4/4] tests/i915/gem_exec_balancer: Add a test for combind balancing and bonding Jason Ekstrand
2021-06-03 11:46 ` Daniel Vetter
2021-06-03 11:47 ` Daniel Vetter
2021-06-03 12:50 ` Daniel Vetter [this message]
2021-04-28 20:42 ` [igt-dev] ✗ Fi.CI.BUILD: failure for Add tests for newly invalid cases Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YLjQLKB2vjiFjfq/@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=igt-dev@lists.freedesktop.org \
--cc=jason@jlekstrand.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.