[igt-dev] [PATCH i-g-t] tests/gem_exec_reloc: Remove banned tests
Jason Ekstrand
jason at jlekstrand.net
Wed Jun 9 17:53:48 UTC 2021
On Tue, Jun 8, 2021 at 2:25 PM Daniel Vetter <daniel.vetter at 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 at jlekstrand.net>
> Cc: Petri Latvala <petri.latvala at intel.com>
> Signed-off-by: Daniel Vetter <daniel.vetter at 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 at 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 at gem_exec_flush@(?!.*basic).*
> igt at gem_exec_latency(@.*)?
> igt at gem_exec_lut_handle(@.*)?
> igt at gem_exec_nop@(?!.*basic).*
> -igt at gem_exec_reloc@(?!.*basic).*
> igt at gem_exec_suspend@(?!.*basic).*
> igt at gem_exec_whisper@(?!basic).*
> igt at gem_fd_exhaustion(@.*)?
> --
> 2.24.1
>
More information about the igt-dev
mailing list