All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: igt-dev@lists.freedesktop.org, sai.gowtham.ch@intel.com
Subject: Re: [igt-dev] [PATCH i-g-t][V2] tests/i915/gem_ringfill:Adjusted test to utilize all available engines.
Date: Wed, 06 May 2020 07:01:32 +0100	[thread overview]
Message-ID: <158874489237.11789.2125532991114580066@build.alporthouse.com> (raw)
In-Reply-To: <20200506045354.19122-1-sai.gowtham.ch@intel.com>

Quoting sai gowtham (2020-05-06 05:53:54)
> @@ -203,8 +203,9 @@ static void run_test(int fd, unsigned ring, unsigned flags, unsigned timeout)
>                 igt_debug("Forking %d children\n", nchild);
>                 igt_fork(child, nchild) {
>                         if (flags & NEWFD) {
> -                               fd = drm_open_driver(DRIVER_INTEL);
> -                               setup_execbuf(fd, &execbuf, obj, reloc, ring);
> +                               i915 = drm_open_driver(DRIVER_INTEL);
> +                               gem_context_copy_engines(fd, 0, i915, 0);
> +                               setup_execbuf(i915, &execbuf, obj, reloc, e);
>                         }
>                         fill_ring(fd, &execbuf, flags, timeout);

NEWFD broken.

> @@ -276,17 +279,28 @@ igt_main
>                 igt_info("Ring size: %d batches\n", ring_size);
>                 igt_require(ring_size);
>         }
> -
>         for (m = modes; m->suffix; m++) {
> -               const struct intel_execution_engine *e;
> -
> -               for (e = intel_execution_engines; e->name; e++) {
> -                       igt_subtest_f("%s%s%s",
> -                                     m->basic && !e->exec_id ? "basic-" : "",
> -                                     e->name,
> -                                     m->suffix) {
> +               /* Legacy testing must be first. */
> +               igt_subtest_with_dynamic_f("legacy-%s", m->suffix) {
> +                       for (e = intel_execution_engines; e->name; e++) {
> +                               struct intel_execution_engine2 e2__;
> +                               e2__ = gem_eb_flags_to_engine(eb_ring(e));
> +                               if (e2__.flags == -1)
> +                                       continue;
> +                               e2 = &e2__;
>                                 igt_skip_on(m->flags & NEWFD && master);
> -                               run_test(fd, eb_ring(e), m->flags, m->timeout);
> +                               igt_dynamic_f("%s%s",
> +                                               m->basic && !e2->instance ? "basic-" : "",
> +                                       e2->name)
> +                                       run_test(fd, e2, m->flags, m->timeout);
> +                       }

Farcical.
-Chris
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2020-05-06  6:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-06  4:53 [igt-dev] [PATCH i-g-t][V2] tests/i915/gem_ringfill:Adjusted test to utilize all available engines sai gowtham
2020-05-06  5:39 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/i915/gem_ringfill:Adjusted test to utilize all available engines. (rev2) Patchwork
2020-05-06  6:01 ` Chris Wilson [this message]
2020-05-06 11:59 ` [igt-dev] ✓ Fi.CI.IGT: " 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=158874489237.11789.2125532991114580066@build.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=sai.gowtham.ch@intel.com \
    /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.