All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Ekstrand <jason@jlekstrand.net>
To: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: IGT development <igt-dev@lists.freedesktop.org>,
	Daniel Vetter <daniel.vetter@intel.com>,
	Petri Latvala <petri.latvala@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/gem_exec_reloc: Remove banned tests
Date: Wed, 9 Jun 2021 12:53:48 -0500	[thread overview]
Message-ID: <CAOFGe95QDXUY3OSHw4eZxYqqXTEPr+wq_q_L+fiaHhMVEhm9tw@mail.gmail.com> (raw)
In-Reply-To: <20210608192533.28684-1-daniel.vetter@ffwll.ch>

On Tue, Jun 8, 2021 at 2:25 PM Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
>
> These have been banned across all CI for over 2 years, realistically
> that's not going to change and they're just in the way.
>
> v2: Keep the !HANG parts (CI)
>
> Cc: Jason Ekstrand <jason@jlekstrand.net>
> Cc: Petri Latvala <petri.latvala@intel.com>
> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> ---
>  tests/i915/gem_exec_reloc.c  | 33 +++++++--------------------------
>  tests/intel-ci/blacklist.txt |  1 -
>  2 files changed, 7 insertions(+), 27 deletions(-)
>
> diff --git a/tests/i915/gem_exec_reloc.c b/tests/i915/gem_exec_reloc.c
> index 397c335e4d3c..0e75a5e52cc4 100644
> --- a/tests/i915/gem_exec_reloc.c
> +++ b/tests/i915/gem_exec_reloc.c
> @@ -614,8 +614,6 @@ static bool has_64b_reloc(int fd)
>
>  #define NORELOC 1
>  #define ACTIVE 2
> -#define INTERRUPTIBLE 4
> -#define HANG 8
>  static void basic_reloc(int fd, unsigned before, unsigned after, unsigned flags)
>  {
>  #define OBJSZ 8192
> @@ -678,8 +676,7 @@ static void basic_reloc(int fd, unsigned before, unsigned after, unsigned flags)
>                         spin = igt_spin_new(fd,
>                                             .engine = I915_EXEC_DEFAULT,
>                                             .dependency = obj.handle);
> -                       if (!(flags & HANG))
> -                               igt_spin_set_timeout(spin, NSEC_PER_SEC/100);
> +                       igt_spin_set_timeout(spin, NSEC_PER_SEC/100);
>                         igt_assert(gem_bo_busy(fd, obj.handle));
>                 }
>
> @@ -746,8 +743,7 @@ static void basic_reloc(int fd, unsigned before, unsigned after, unsigned flags)
>                         spin = igt_spin_new(fd,
>                                             .engine = I915_EXEC_DEFAULT,
>                                             .dependency = obj.handle);
> -                       if (!(flags & HANG))
> -                               igt_spin_set_timeout(spin, NSEC_PER_SEC/100);
> +                       igt_spin_set_timeout(spin, NSEC_PER_SEC/100);
>                         igt_assert(gem_bo_busy(fd, obj.handle));
>                 }
>
> @@ -873,8 +869,7 @@ static void basic_range(int fd, unsigned flags)
>
>         if (flags & ACTIVE) {
>                 spin = igt_spin_new(fd, .dependency = obj[n].handle);
> -               if (!(flags & HANG))
> -                       igt_spin_set_timeout(spin, NSEC_PER_SEC/100);
> +               igt_spin_set_timeout(spin, NSEC_PER_SEC/100);
>                 igt_assert(gem_bo_busy(fd, obj[n].handle));
>         }
>
> @@ -1468,8 +1463,6 @@ igt_main
>                 { "", 0 , true},
>                 { "-noreloc", NORELOC, true },
>                 { "-active", ACTIVE, true },
> -               { "-interruptible", ACTIVE | INTERRUPTIBLE },
> -               { "-hang", ACTIVE | HANG },
>                 { },
>         }, *f;
>         uint64_t size;
> @@ -1483,14 +1476,7 @@ igt_main
>         }
>
>         for (f = flags; f->name; f++) {
> -               igt_hang_t hang;
> -
>                 igt_subtest_group {
> -                       igt_fixture {
> -                               if (f->flags & HANG)
> -                                       hang = igt_allow_hang(fd, 0, 0);
> -                       }
> -
>                         for (m = modes; m->name; m++) {
>                                 igt_subtest_f("%s%s%s",
>                                               f->basic ? "basic-" : "",
> @@ -1498,22 +1484,17 @@ igt_main
>                                               f->name) {
>                                         if ((m->before | m->after) & I915_GEM_DOMAIN_WC)
>                                                 igt_require(gem_mmap__has_wc(fd));
> -                                       igt_while_interruptible(f->flags & INTERRUPTIBLE)
> -                                               basic_reloc(fd, m->before, m->after, f->flags);
> +
> +                                       basic_reloc(fd, m->before, m->after, f->flags);
>                                 }
>                         }
>
>                         if (!(f->flags & NORELOC)) {
>                                 igt_subtest_f("%srange%s",
>                                               f->basic ? "basic-" : "", f->name) {
> -                                       igt_while_interruptible(f->flags & INTERRUPTIBLE)
> -                                               basic_range(fd, f->flags);

Did you mean to drop all basic_range here?  I think not.  With that
restored without the igt_while_interruptable(),

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>

> -                               }
> -                       }
>
> -                       igt_fixture {
> -                               if (f->flags & HANG)
> -                                       igt_disallow_hang(fd, hang);
> +                                       basic_range(fd, f->flags);
> +                               }
>                         }
>                 }
>         }
> diff --git a/tests/intel-ci/blacklist.txt b/tests/intel-ci/blacklist.txt
> index 33f92e37f602..4d2555f8adb3 100644
> --- a/tests/intel-ci/blacklist.txt
> +++ b/tests/intel-ci/blacklist.txt
> @@ -30,7 +30,6 @@ igt@gem_exec_flush@(?!.*basic).*
>  igt@gem_exec_latency(@.*)?
>  igt@gem_exec_lut_handle(@.*)?
>  igt@gem_exec_nop@(?!.*basic).*
> -igt@gem_exec_reloc@(?!.*basic).*
>  igt@gem_exec_suspend@(?!.*basic).*
>  igt@gem_exec_whisper@(?!basic).*
>  igt@gem_fd_exhaustion(@.*)?
> --
> 2.24.1
>
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2021-06-09 17:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-08  9:40 [igt-dev] [PATCH i-g-t 1/7] tests/gem_exec_reloc: Remove banned tests Daniel Vetter
2021-06-08  9:40 ` [igt-dev] [PATCH i-g-t 2/7] Revert "test/i915/gem_exec_reloc: Restore interclient testings" Daniel Vetter
2021-06-09 17:56   ` Jason Ekstrand
2021-06-14 10:40   ` Arkadiusz Hiler
2021-06-08  9:40 ` [igt-dev] [PATCH i-g-t 3/7] Revert "i915/gem_exec_reloc: Verify engine isolation" Daniel Vetter
2021-06-09 17:59   ` Jason Ekstrand
2021-06-08  9:40 ` [igt-dev] [PATCH i-g-t 4/7] Revert "i915/gem_exec_reloc: Exercise concurrent relocations" Daniel Vetter
2021-06-09 18:12   ` Jason Ekstrand
2021-06-08  9:40 ` [igt-dev] [PATCH i-g-t 5/7] Revert "i915/gem_exec_reloc: Flood the ring with GPU relocs" Daniel Vetter
2021-06-09 18:05   ` Jason Ekstrand
2021-06-08  9:40 ` [igt-dev] [PATCH i-g-t 6/7] Revert "i915/gem_exec_reloc: Check that relocations do not block" Daniel Vetter
2021-06-09 18:03   ` Jason Ekstrand
2021-06-08  9:40 ` [igt-dev] [PATCH i-g-t 7/7] tests/gem_exec_schedule: Use store_dword_plug again Daniel Vetter
2021-06-08 11:22 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/7] tests/gem_exec_reloc: Remove banned tests Patchwork
2021-06-08 16:02 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-06-08 19:25 ` [igt-dev] [PATCH i-g-t] " Daniel Vetter
2021-06-09 17:53   ` Jason Ekstrand [this message]
2021-06-08 19:44 ` [igt-dev] ✗ GitLab.Pipeline: warning for series starting with [i-g-t] tests/gem_exec_reloc: Remove banned tests (rev2) Patchwork
2021-06-08 20:08 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2021-06-09  0:49 ` [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=CAOFGe95QDXUY3OSHw4eZxYqqXTEPr+wq_q_L+fiaHhMVEhm9tw@mail.gmail.com \
    --to=jason@jlekstrand.net \
    --cc=daniel.vetter@ffwll.ch \
    --cc=daniel.vetter@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=petri.latvala@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.